update threejs. remove stroke from shaper laser output

This commit is contained in:
Stewart Allen 2025-03-22 23:08:51 -04:00
commit 22a307be59
2 changed files with 3 additions and 2 deletions

View file

@ -51,7 +51,7 @@
"manifold-3d": "^2.5.1", "manifold-3d": "^2.5.1",
"moment": "^2.29.4", "moment": "^2.29.4",
"serve-static": "^1.14.1", "serve-static": "^1.14.1",
"three": "^0.167.1", "three": "^0.174.0",
"three-mesh-bvh": "^0.7.6", "three-mesh-bvh": "^0.7.6",
"uglify-js": "3.14.5", "uglify-js": "3.14.5",
"validator": ">=13.7.0", "validator": ">=13.7.0",

View file

@ -738,7 +738,8 @@ function exportSVG(settings, data, cut_color) {
def.push(`z="${z}"`); def.push(`z="${z}"`);
} }
let path = poly.map((xy, i) => i > 0 ? `L${xy}` : `M${xy}`); let path = poly.map((xy, i) => i > 0 ? `L${xy}` : `M${xy}`);
lines.push(`<${def.join(' ')} d="${path.join(' ')}" fill="none" stroke="${cout}" stroke-width="${swidth}" />`); let std = ctOutShaper ? '' : `fill="none" stroke="${cout}" stroke-width="${swidth}" `;
lines.push(`<${def.join(' ')} d="${path.join(' ')}" ${std}/>`);
} else { } else {
let def = ["polyline"]; let def = ["polyline"];
if (z !== undefined) def.push(`z="${z}"`); if (z !== undefined) def.push(`z="${z}"`);