Commit d1b8a5ee27620e0fb0f77b5b78bc674c0e4dd6a7

Authored by 陈鑫涛
1 parent 984e0fd3

盒型设计

src/components/Common/BoxDesignCompontent/svg.js
@@ -1206,7 +1206,6 @@ const SvgBox = props => { @@ -1206,7 +1206,6 @@ const SvgBox = props => {
1206 // 获取他的偏移距离 1206 // 获取他的偏移距离
1207 const leftOffect = boxList.find(x=>x.sName === "左偏移")?.value || 0 1207 const leftOffect = boxList.find(x=>x.sName === "左偏移")?.value || 0
1208 const rightOffect = boxList.find(x=>x.sName === "右偏移")?.value || 0 1208 const rightOffect = boxList.find(x=>x.sName === "右偏移")?.value || 0
1209 - console.log("🚀 ~ initSVG ~ rightOffect:", leftOffect,rightOffect)  
1210 const rectangles = [{ x: 0, y: 0, width: scaleHeadLength, height: scaleHeadWidth }]; 1209 const rectangles = [{ x: 0, y: 0, width: scaleHeadLength, height: scaleHeadWidth }];
1211 rectangles.forEach(rect => { 1210 rectangles.forEach(rect => {
1212 g.appendChild(createPathElement(rect.x, rect.y, rect.width, rect.height)); 1211 g.appendChild(createPathElement(rect.x, rect.y, rect.width, rect.height));