Comments (8)
I believe it's interpreting -7 as a flag and not an argument. Try putting it in quotes: '-7'.
That is what I was thinking. I tried ' and " for just the x and for both, no joy. Still does not like the -x. I also found if I put a , in front of the x, it assumes x is 0 and uses the first value and ignores the next comma and other value without throwing any errors. Doesn't matter, just more info in case it means anything to you.
from svg2gcode.
I believe it's interpreting -7 as a flag and not an argument. Try putting it in quotes: '-7'.
That is what I was thinking. I tried ' and " for just the x and for both, no joy. Still does not like the -x. I also found if I put a , in front of the x, it assumes x is 0 and uses the first value and ignores the next comma and other value without throwing any errors. Doesn't matter, just more info in case it means anything to you.
Ok, this is a bit counterintuitive. The syntax is actually --origin="-7,0"
. The way the CLI parses args is a little outdated now. Things may have improved over the past 2-3 years so I'll look into upgrading that to see if it helps.
from svg2gcode.
Also, I see the web interface offset is being scaled by the DPI (as in an offset of 10 turns into 2.64...).
This sounds like a bug. After I fixed the way viewboxes and dimensions are handled, looks like there is an incorrect DPI scaling applied assuming it is in points. I'll push a fix for this soon.
Simple origin offsets as already exist except allow negative values too.
I don't see any reason not to allow this. Will look into why it's not working.
from svg2gcode.
This sounds like a bug. After I fixed the way viewboxes and dimensions are handled, looks like there is an incorrect DPI scaling applied assuming it is in points. I'll push a fix for this soon.
Fixed by e50e42b. The web UI should be up to date now.
from svg2gcode.
Excellent! Both of those items seem to be working now on web UI. Thanks.
I assume yes... Did you update the CLI core as well?
I have not run the update on my RPI for a rust crate type setup. I will have to look into the syntax.
from svg2gcode.
Excellent! Both of those items seem to be working now on web UI. Thanks.
No problem, glad we got that fixed.
I assume yes... Did you update the CLI core as well?
I have not run the update on my RPI for a rust crate type setup. I will have to look into the syntax.
Yes the CLI has also been updated.
from svg2gcode.
CLI errors when outputting an --origin with -x value. With -y it acts happy. Where I output --origin -70,-30, it gave me:
error: Found argument '-7' which wasn't expected, or isn't valid in this context
from svg2gcode.
CLI errors when outputting an --origin with -x value. With -y it acts happy. Where I output --origin -70,-30, it gave me:
error: Found argument '-7' which wasn't expected, or isn't valid in this context
I believe it's interpreting -7 as a flag and not an argument. Try putting it in quotes: '-7'.
from svg2gcode.
Related Issues (20)
- Generate Line Numbers
- Origin based on svg 0,0 HOT 6
- Install for CLI on RPI HOT 5
- Support other non-closed, non-path elements HOT 3
- Use a zip for bulk downloads
- question: does svg2gcode support creating G02/G03 commands? HOT 5
- cannot build unknown feature `proc_macro_span_shrink` HOT 3
- Multiple tools
- your code can produce single-line word? HOT 3
- Button disabled HOT 4
- Random Artefacts after Conversion of Custom Font HOT 10
- web: g-code preview
- web: g-code snippet syntax highlighting
- DTD Detected HOT 1
- Conversion yields strange artefacts HOT 3
- Support use/def elements
- How to ignore/skip SVG elements? HOT 16
- M2 End of program should be optional HOT 6
- Web version tends to panic
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from svg2gcode.