const styleBase = { stroke: "none", strokeLinecap: "butt", strokeLinejoin: "miter", } const styleCasing = { ...styleBase, fill: "#808080", }; const styleGround = { ...styleBase, fill: "#deaa87", }; const styleTower = { ...styleBase, fill: "#999999", }; const styleWell = { ...styleBase, fill: "#37abc8", }; const styleBitDrive = { ...styleBase, fill: "#ff8080", }; const styleBitTool = { ...styleBase, fill: "#f9f9f9", }; const styleBlock = { ...styleBase, fill: "#ffdd55", }; const stylePump1 = { ...styleBase, fill: "#5fd35f", }; const stylePump2 = { ...styleBase, fill: "#b3b3b3", }; export default function RigMnemo({ blockPosition, bitPosition, }) { let blockPositionLocal = +blockPosition blockPositionLocal = blockPositionLocal ? blockPositionLocal : 0 const blockTranslate = `translate(-75, ${-35 + (50 * (30 - blockPositionLocal) / 30)})` //let bitPositionLocal = +bitPosition //bitPositionLocal = bitPositionLocal ? bitPositionLocal : 0 //const bitTranslate = `translate(0, ${-41 + 41 * (3426 - bitPosition)/(3426 - 3200)})` const bitTranslate = `translate(0, 0)` return ( ); }