Good morning,

> You can do all of this with a single Svg, because the G elements
> (svg.struct.Group) can function as layers. So you could create 3 group
> elements, which will contain the painting canvas, attendees doodles and
> the slide, respectively.

I did this and it already works. great! :)

Sometimes I need the first one, sometimes I need the second one. The
main difference is whether I want to build the doodles incrementally,
or whether I need a full update of the canvas.

> As for the data to transfer:
> - You could send accross the path data (as Daniel suggested). This is
> limited to Path elements, obviously.

 I send across this pathdata and then I add it to the svg, as if the
user had written it. no trouble here.

> - You could send over full Svg code, using qx.xml.Element.serialize().

I guess I have to serialize the svg element of the svg widget, right?
( svgWidget.getSvg() ). I tried this in a sandbox and it was ok.
However, I can't figure out how to use it once it's been serialised. I
was expecting a method to create an object out of the string.
The thing is that I have a vector of objects (Slide) and doodle are
slide-dependant, so the n-th set of doodles are related to the n-th
slide. When user changes slides, the svg object should update the
doodles. I can do that with the slide image, but I don't know how to
tell qooxdoo "use this string, which is svg, for this group instead of
what you're currently showing me".

what's more, I should serialize only two of the three groups (group1:
slide.png; group2: attendee's doodles; group3: currentUser's doodles),
that is without the background slide image, so I can still take
advantage of the qooxdoo image features. looks like it precaches it,
right?

as usual, any hints and best practices are much appreciated :)

Regards,
Edu

------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to