pharo-graphics / Roassal

The Roassal Visualization Engine
MIT License
16 stars 11 forks source link

Control points do not update on from/to extent change #39

Closed akevalion closed 9 months ago

akevalion commented 10 months ago

Control points of lines connected to a shape are updated when position of the shape is changed, but not when extent is changed. For default (Centered) attach point, it does not matter, but for all other attach points, it does - when the shape is resized, the line does not move even if it should. Only way to hotfix it from user end is to have extent event subscriptions that call update on the lines or updateConnectedLines on the shapes that can be resized.

c := RSCanvas new.
b1 := RSBox new.
b1 size: 100.
b1 translateTo: -150@0.
b2 := RSBox new.
b2 size: 100.
b2 translateTo: 150@0.
l := RSLine new.
l from: b1; to: b2.
l withBorderAttachPoint.
c add: b1; add: b2; add: l.

c open.

b1 size: 10

obrazek

akevalion commented 9 months ago

moved to roassal3