On Tuesday 04 August 2009 03:16:36 am Krzysztof KosiĆski wrote:
This is another place where the new representation turns out superior, and I didn't think of it before: the result of the effect is not limited to a path. For the label effect, instead of converting to path, we would just output the actual objects used: for example, for a rectangle with a text label, we would output svg:g that contains svg:rect and svg:tspan. The switch could contain an inkscape:object-label element in the first branch and a group of the two objects (the labelled one and the label) in the fallback fork.
This opens up tons of possibilities:
- Editable tilings where you can drag control points to adjust the spacing
and tiling area - something like the clone tiler dialog but does not cause you bodily harm. (Currently you have to tweak all parameters by putting numbers in entry fields.) 2. Text effects that output actual text rather than paths, for example an effect that scatters the letters.
Great! So there is place for a LPE that turns for example LaTeX formatted text into (possibly gtkmathview) rendered math text on screen. This would be a very nice addition to Inkscape!
- More types of gradients! (we put a clipped svg:image or clipped and
blurred circles in the result fork, while in the renderer we directly compute the gradient from its parameters)
Now that I think of it, we could use different element names for path effects, so that creating the SP nodes does not require looking at the type attribute: inkscape:boolean-union, inkscape:boolean-difference, inkscape:boolean-subtraction, inkscape:pattern-along-path, inkscape:render-gears, inkscape:bend-path, inkscape:offset, etc.
I can try to prototype this for dynamic offset after GSoC. I just noticed my node tool breaks it: using the node tool was the only way to bring up its knotholder, and my tool doesn't (yet) know how to edit things other than paths. The new offset would use the aforementioned switch structure, and the linked offset would be removed (it would be possible to create an offset of a clone which would work exactly like linked offset does now); at the same time the capability to edit the original shape would be preserved.
Regards, Krzysztof
Regards, Arcadie