parentship

318 views
Skip to first unread message

Sebastian Gurin

unread,
Sep 5, 2009, 10:19:00 AM9/5/09
to Raphaël
Hello all.

First of all I would like to congratulate raphaeljs authors for the
great work. Now my question. I need parent/children support for
raphaeljs visual elements (like xml elements does with, appendChild(),
removeChild() parentNode, etc). Does raphaeljs visual elements support
parentship stuff, or should I implement this by hand?

A simple use case would be putting some (children) elements inside a
(parent) element. If the parent is translated or rotated, then the
children are translated/rotated also.

thanks in advance. Any tip about how to accomplish this is
appreciated.

p/d: excuse me for my bad english.

chasbeen

unread,
Sep 6, 2009, 8:12:36 AM9/6/09
to Raphaël
Sebastian

We use the "grouping" concept in SVG/Inkscape. We use "set" to add to
these "collections".
See the discussion at:
http://groups.google.com/group/raphaeljs/browse_thread/thread/3dacbdeb15981ff5/77e8c181b6464eb8?lnk=gst&q=use+set#77e8c181b6464eb8

Sebastian Gurin

unread,
Sep 6, 2009, 11:11:31 AM9/6/09
to raph...@googlegroups.com
Hello all.

First of all I would like to congratulate raphaeljs authors for the great work. Now my question. I need parent/children support for raphaeljs visual elements (like xml elements does with, appendChild(), removeChild() parentNode, etc). Does raphaeljs visual elements support parentship stuff, or should I implement this by hand?

A simple use case would be putting some (children) elements inside a (parent) element. If the parent is translated or rotated, then the children must be translated/rotated also.

Thanks in advance. Any help is appreciated.

p/d: excuse me for my bad english.

--
Sebastian Gurin <sgu...@softpoint.org>

Sebastian Gurin

unread,
Sep 7, 2009, 8:57:44 AM9/7/09
to Raphaël
thank you chasbeen. I'm trying to build a graphic editor framework for
javascript, based on GEF (www.eclipse.org/gef) .I'm using raphaeljs
for implementing the view part. Support for parent/children
relationship between visual elements is mandatory here, so I 'm
implementing an "composite element" (using Set internally)

thanks again!


On 6 sep, 09:12, chasbeen <charles...@yahoo.com> wrote:
> Sebastian
>
> We use the "grouping" concept in SVG/Inkscape. We use "set" to add to
> these "collections".
> See the discussion at:http://groups.google.com/group/raphaeljs/browse_thread/thread/3dacbde...
Reply all
Reply to author
Forward
0 new messages