On Wed, Mar 9, 2016 at 10:02 PM, Johan Fabry <jfa...@dcc.uchile.cl> wrote:

> Heh, also a funny feature of your anchor constraints: they do not play
> well with layouts and animations. Try the code below (adapted from the
> example to use the layout and animation of LRP ) and you will see that the
> circles keep spinning around, they never stop. I think it would be better
> for them to stop ;-)
>

can't help myself :)

https://youtu.be/PGNiXGX2nLU?t=1m


> stepping := RTSpringLayoutStepping new
> view: v; layout: layout;
> afterBlock: [ v canvas camera focusOnCenter].
>

The problem is that RTSpringLayoutStepping>>view sets in effect the layout
on all elements in the view, which obviously won't work since they'll start
competing.

I'm not sure right now how to address it, but try this

stepping := RTSpringLayoutStepping new
view: RTView new; layout: layout;
nodes: es;
afterBlock: [ v canvas camera focusOnCenter].

>
> I even have a bug report for you … before, when I removed the edge, the
> label was also removed automatically. Now this is no longer the case. :-(
>
>
Ah right, thanks. I've extracted the class from my code and I have
different removal mechanism...
Please try the latest version, it should be fixed there.

Peter

Reply via email to