anti-art / auto-node-types Goto Github PK
View Code? Open in Web Editor NEWInkscape extension that automatically sets the right type (cusp/smooth/symmetry) to handles of the selected path/s.
License: MIT License
Inkscape extension that automatically sets the right type (cusp/smooth/symmetry) to handles of the selected path/s.
License: MIT License
Even if it was clearly smooth.
Cause: Cubicsuperpath breaks it into two points with one 0,0 handle.
Solution: Maybe special case that takes vec_a from first point, vec_b from last...
If n paths are selected, n copies of the full debug string will be written.
Try
In this testcase the path was ([x] = tested, not the problem):
Theory:
May be Inkscape bug? ๐ ๐ ๐คทโโ๏ธ
The node.set() pretty clearly just touches sodipodi:nodetypes.
The transform attribute is always deleted no matter if I try to change the "sodipodi:nodetypes", the "id" or if I node.set("wtf", "idk"). Or if I change NOTHING AT ALL ๐ฑ
On the other hand: No other extension removes the transform-attrib...
Instead of just changing the sodipodi:nodetypes the plugin could also correct the path data to use S, s (or T, t).
It's not really supported by Inkscape. Manually entered S-Data is instantly turned into C/c...
...and it's not even changing to "s" or "z" in the :nodetypes string! ๐
Idea postponed for now.
M 0,0 C 1,0 10,5 10,10 S 20,15 20,20 ==> M 0,0 C 1,0 10,5 10,10 C 10,15 20,15 20,20
sodipodi:nodetypes is one long string, put cubicsuperpath splits path data into subpaths (and messes up the endpoints...).
This complicates #1 considerably.
There needs to be a better way to iterate. Maybe collect all data into list/s first, clean up endpoints, then run the node type recognition...
sodipodi:nodetypes is completely unreliable? It may be missing completely or is not updated. Inkscape recalulates it when touching a handle... May be best to completely ignore it and generate a new one.
Make it forward compatible in case the cubicsuperpath is changed in the future to omit the added 0,0-handle node at the end. The additional node at the end comes from "Z" close in svg-d...
M 0,0 C 5,0 20,10 20,20 C 20,23 0,7 0,5 Z M 10,9 C 10,8 12,7 12,11 C 12,15 10,13 10,13
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.