@forresto/svg-to-cnc
Advanced tools
Comparing version 0.0.1 to 0.0.2
@@ -12,6 +12,5 @@ import svgpath from './web_modules/svgpath.js'; | ||
// Don't want SVG viewBox while measuring | ||
const viewBox = pathified.getAttribute('viewBox'); | ||
const toMeasure = pathified.cloneNode(true); | ||
// toMeasure.removeAttribute('width'); | ||
// toMeasure.removeAttribute('height'); | ||
toMeasure.removeAttribute('width'); | ||
toMeasure.removeAttribute('height'); | ||
toMeasure.removeAttribute('viewBox'); | ||
@@ -18,0 +17,0 @@ |
@@ -12,6 +12,5 @@ import svgpath from 'svgpath'; | ||
// Don't want SVG viewBox while measuring | ||
const viewBox = pathified.getAttribute('viewBox'); | ||
const toMeasure = pathified.cloneNode(true); | ||
// toMeasure.removeAttribute('width'); | ||
// toMeasure.removeAttribute('height'); | ||
toMeasure.removeAttribute('width'); | ||
toMeasure.removeAttribute('height'); | ||
toMeasure.removeAttribute('viewBox'); | ||
@@ -18,0 +17,0 @@ |
{ | ||
"name": "@forresto/svg-to-cnc", | ||
"version": "0.0.1", | ||
"description": "Compiles SVG paths for CNC software down to basic X/Y movements. Each combination of stroke and fill becomes one path element. This makes it easier to attach them in Cricut, and then set the tool for each layer.", | ||
"version": "0.0.2", | ||
"description": "Compiles SVG shapes and transforms for CNC software down to basic paths. Each combination of stroke and fill becomes one path element. This makes it easier to attach them in CAM software (like Cricut Designer), and then set the tool for each layer.", | ||
"main": "index.js", | ||
@@ -6,0 +6,0 @@ "module": "build/index.js", |
# svg-to-cnc | ||
Compiles SVG paths for CNC software down basic paths. Each combination of stroke and fill becomes one path element. This makes it easier to attach them in Cricut, and then set the tool for each layer. | ||
Compiles SVG shapes and transforms for CNC software down to basic paths. Each combination of stroke and fill becomes one path element. This makes it easier to attach them in CAM software (like Cricut Designer), and then set the tool for each layer. | ||
@@ -58,3 +58,3 @@ Demo, with SVG file input: https://observablehq.com/@forresto/svg-to-cnc | ||
- [ ] Fix unneeded penup / pendown (\`M\`) | ||
- [ ] Option to not consolidate paths (only group by "tool") | ||
- [x] Option to not consolidate paths (only group by "tool") | ||
- [ ] Nix fills? |
58060
1602