Open HenrySkup opened 3 years ago
To clarify—are you suggesting specifying the machine settings in the SVG? Perhaps something like this?
<path saxi:speed="100" d="..." />
<path saxi:speed="150" d="..." />
<!-- ... -->
yes, something like that for sure. 👍
Sorry for the long read, but just wanted to get some thoughts down:
seems like Layer Control allows for control over :
This could be expanded, of course, these things come to mind :
nodecount
, other settings) Two things about the Layer Control implementation which seem sub-optimal :
It only works fo
The "inheritance" model doesn't seem supper intuitive. Right now there is no inheritance, i would think that something more DOM/CSS like would make more sense for people.
There would be "root" level settings that could be overridden at a container or geometry level. Some settings would be inherited, others (ex. 'pause-for-button-press') would not.
It could be interesting to also have the option to do something like
<saxi:settings>
<saxt:preset name="fast" saxi:speed="200" ... />
<saxt:rule for="circle" saxi:resolution="0.8" ... />
</saxi:settings>
<!-- ... -->
<path saxi:preset="fast" d="..." />
<path saxi:speed="150" d="..." />
<circle ... />
<!-- ... -->
or even
<saxi:settings>
.fast {
speed : 200;
}
circle {
resolution : 0.8;
}
.slow circle {
resolution : 0.9;
}
</saxi:settings>
<!-- ... -->
<path class="fast" d="..." />
<path saxi:speed="150" d="..." />
<circle ... />
<g class="slow">
<circle ... />
</g>
<!-- ... -->
I don't know if this is "reinventing" CSS, but it would allow for specifying settings across the hierarchical inheritance. Though I can imagine that it could complicate things?
I was wondering if it would be possible to "pull out" machine settings on a geometry / layer level. Something similar to AxiDraw's Layer Control. If the interface is predictable, then it could be some pretty powerful functionality.
Use cases: you are creating an SVG of hash lines each line you want to set to a different pen speed (would get different ink bleeding)