JavaScript API: Manipulate elements of a PlasmaSvg
Liebe Markus (RtP2/TEF72)
Markus.Liebe at de.bosch.com
Wed Feb 24 14:35:54 CET 2010
Hi there,
Is it possible to manipulate text items of a SVG image?
In the main.js of the plasmoid I did:
svg = new PlasmaSvg('foo'); // loading foo.svg
In the svg file there is a text element:
<text id="textitem" ... >mytext</text>
Is it somehow possible to access this textitem and set/change its value using the Plasma Javascript API?
The only other way I can think of is to open the svg file and parse the xml, change the value there, save it back and load it again.
Which seems to be rather complicated.
Regards,
Markus
More information about the Plasma-devel
mailing list