> I am in the process of developing a Graphics Editor and trying to find the
> best way to
> detect mouse events on the screen.
>
> I need to implement functions such as:
> Select, Move, Add, Delete, screen objects such as lines, circles etc.
>
> 1) Where can I put my Mouse listener (which object).
>
> 2) Is the best way to display from an svg file and then use 2D to
> manipulate
> (Select, Move etc)
> or is it better to go via DOM and manipulate the DOM tree.

I would recommend to use the SVG DOM for your manipulation.

The SVG DOM is our model and the repaint will work properly if you are using
the DOM to manipulate your SVG content.

For MouseEvent, use a regular DOM EventListener. In an authoring tool
context, the capture phase might be really useful (provide a way to override
the user behavior defined in the SVG document you are currently editing).

Thierry.



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to