Hi Eduard,

It's nice to hear that you're looking into the Svg contrib. :)


On 06/10/2011 09:35 AM, Eduard Gamonal wrote:
> Yep, I checked the source of those demos before sending the first 
> e-mail. It doesn't look hard to use. However, I don't know if I can 
> place it on top of an image and set the background to transparent. 
> It'd be great if Marc Puts saw this e-mail and could confirm it. My 
> worries aren't about developing but about chosing the wrong solution. 
> Unfortunately I don't have much time left for this project :(

Yes, it should be possible to place the SVG on top of an image. Just be 
aware that the SVG widget (svg.embed.Svg) has an opaque white background 
by default. But you can easily override that, by either changing the 
appearance of the widget, or by creating your own widget that embeds the 
Svg element.

However, there's another (and I think better) approach:

> therefore, there should be 2 canvas? the stack would be:
> - my canvas, where I paint
> - all attendees canvas, which I can't edit and contains all attendee's 
> doodles.
> - the slide, a png file in qx.ui.Image

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.

You can include the slide PNG in the 3rd group using the 
svg.struct.Image element. This has the advantage that you can use Svg's 
features with regards to zooming, panning etc, without having to worry 
about keeping canvas and slide coordinates aligned.


As for the data to transfer:
- You could send accross the path data (as Daniel suggested). This is 
limited to Path elements, obviously.
- You could send over full Svg code, using qx.xml.Element.serialize().
- You could develop your own protocol to serialize the painting on one 
client and rebuilding it on the other clients.


Regards,
Marc

------------------------------------------------------------------------------
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to