[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-panel-devel
Subject: JavaScript API: Manipulate elements of a PlasmaSvg
From: "Liebe Markus \(RtP2/TEF72\)" <Markus.Liebe () de ! bosch ! com>
Date: 2010-02-24 13:35:54
Message-ID: 611E60826D016B4A9DB609B3F852B00D05384399CE () SI-MBX09 ! de ! bosch ! com
[Download RAW message or body]
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
_______________________________________________
Plasma-devel mailing list
Plasma-devel@kde.org
https://mail.kde.org/mailman/listinfo/plasma-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic