>
> Oop! Here is the attachment.
>
> Tak
>
> On Wed, Aug 12, 2009 at 10:00 PM, Tak-po Li <takpo.li
> <
http://takpo.li>@gmail.com <
http://gmail.com>> wrote:
>
>
> I am new with gfx. To experience line drag-and-drop with gfx, I did
> the following:
>
> 1. change 100 circles example to make 10 circles only.
> 2. draw 9 lines between them, from center to center.
> 3. change x1y1 or x2y2 of the lines that attached to the circle by
> using xxx.setShape("x1: xx, y1: yy")
>
> It is not working. The code is attached. Please help.
> Thanks,
>
> Tak
>
>
>
>
> On Wed, Oct 15, 2008 at 8:00 AM,
> <
dojo-interest-request@...
> <mailto:
dojo-interest-request@...>> wrote:
>
> Send Dojo-interest mailing list submissions to
>
dojo-interest@...
> <mailto:
dojo-interest@...>
>
> To subscribe or unsubscribe via the World Wide Web, visit
>
http://turtle.dojotoolkit.org/mailman/listinfo/dojo-interest> or, via email, send a message with subject or body 'help' to
>
dojo-interest-request@...
> <mailto:
dojo-interest-request@...>
>
> You can reach the person managing the list at
>
dojo-interest-owner@...
> <mailto:
dojo-interest-owner@...>
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Dojo-interest digest..."
>
>
> Today's Topics:
>
> 1. Re: gfx (Eugene Lazutkin)
> 2. Re: gfx (Eugene Lazutkin)
> 3. Re: dojox.layout.ContentPane not loading CSS linked in
> included page (Deno Vichas)
> 4. Re: dojox.layout.ContentPane not loading CSS linked in
> included page (Alessandro Vernet)
> 5. [Q] declaring variables in module for export (V S P)
> 6. Re: [Q] declaring variables in module for export (Peter
> Svensson)
> 7. Re: [Q] declaring variables in module for export (Peter E
> Higgins)
> 8. Drag and Drop - Problem in Dragging the Item ( (?`?.k ! k
> !.???))
> 9. any good resources? (Scott Ballantyne)
> 10. Re: any good resources? (Peter Svensson)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Tue, 14 Oct 2008 11:35:47 -0500
> From: Eugene Lazutkin <
eugene.lazutkin@...
> <mailto:
eugene.lazutkin@...>>
> Subject: Re: [Dojo-interest] gfx
> To:
dojo-interest@...
> <mailto:
dojo-interest@...>
> Message-ID: <
gd2hp3$54i$1@... <mailto:
1@...>>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
> gfx is meant to shield you from details of an actual
> implementation. You
> definitely can use it for SVG only, but any SVG trick would not work
> with other renderers. For example, there are renderers that are not
> DOM-based, or use a separate DOM (outside of HTML). It is better to
> follow the documentation:
http://docs.dojocampus.org/dojox/gfx. It
> explains what's universally available and what platform-specific
> differences can be encountered.
>
> Thanks,
>
> Eugene
>
> Tak-po Li wrote:
> >
> > Eugene,
> >
> > I can live with the problem with clipped border by assigning
> width 2.
> > The border of rect itself is OK.
> >
> > I can use createGroup and createText to generate the following
> svg dom
> > structure in FF:
> >
> > <g>
> > <rect>....</rect>
> > <text>...</text>
> > <g></g>
> > <g></g>
> > </g>
> >
> > I attach the top group to your Movable and the whole group
> moves with
> > the cursor movement.
> >
> > From dom inspector, I notice the group attribute is empty
> when it is
> > generated. I need some attributes such as 'id',
> 'attachedto'....for the
> > group. Where is best module to add them to the group? I also
> notice
> > attribute 'transform' is added when the group is moved by
> 'Movable'. As
> > you know, I plan to handle event myself, do I still need attribute
> > 'transform'? If I do needed it, where is a good example that
> get added?
> >
> > Thanks again,
> >
> > Tak
> >
> >
> >
> >
> > _renderShape: function(/* Object */ ctx){
> > // nothing
> > },
> >
> >
> >
> >
> >
> ------------------------------------------------------------------------
> >
> > _______________________________________________
> > FAQ:
http://dojotoolkit.org/support/faq> > Book:
http://dojotoolkit.org/docs/book> > Forums:
http://dojotoolkit.org/forum> >
Dojo-interest@...
> <mailto:
Dojo-interest@...>
> >
http://turtle.dojotoolkit.org/mailman/listinfo/dojo-interest>
>
>
> ------------------------------
>
> Message: 2
> Date: Tue, 14 Oct 2008 11:39:00 -0500
> From: Eugene Lazutkin <
eugene.lazutkin@...
> <mailto:
eugene.lazutkin@...>>
> Subject: Re: [Dojo-interest] gfx
> To:
dojo-interest@...
> <mailto:
dojo-interest@...>
> Message-ID: <
gd2hv5$5ri$1@... <mailto:
1@...>>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
> Yes, this picture is mostly correct. But instead of
> dojo.connect() gfx
> provides it's one method on shape objects: shape.connect() that is
> modeled after dojo.connect(). It is documented and used in tests and
> demos. The reason is that dojo.connect() works with HTML DOM,
> while some
> renderers don't use HTML DOM at all.
>
> But if you want to attach events to HTML DOM objects (e.g.,
> document,
> body, or surface.rawNode) dojo.connect() is the right way to go.
>
> Thanks,
>
> Eugene
>
> Tak-po Li wrote:
> >
> > Eugene,
> >
> > I misunderstood what you wrote.
> >
> > It sounds I should use dojo.connect function for creating the
> linkage
> > between Shapes and Functions. I should save them in my own
> storage and
> > add to the Json in serializer when user wants to save his work. I
> > should reconnect Shapes and Functions in deserializer from the
> saved
> > Json when user resume his work, right?
> >
> > Thanks,
> >
> > Tak
> >
> >
> >
> ------------------------------------------------------------------------
> >
> > _______________________________________________
> > FAQ:
http://dojotoolkit.org/support/faq> > Book:
http://dojotoolkit.org/docs/book> > Forums:
http://dojotoolkit.org/forum> >
Dojo-interest@...
> <mailto:
Dojo-interest@...>
> >
http://turtle.dojotoolkit.org/mailman/listinfo/dojo-interest>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> FAQ:
http://dojotoolkit.org/support/faq> Book:
http://dojotoolkit.org/docs/book> Forums:
http://dojotoolkit.org/forum>
Dojo-interest@...
>
http://mail.dojotoolkit.org/mailman/listinfo/dojo-interest