@david0 wrote:
When I call the
movemethod on a group, it seems to calculate its rendered position differently than how it was calculated for the initial layout.As a simple test, I would expect the following to be a no-op:
let loc = go.Point.parse(group.data.loc); group.move(new go.Point(loc.x, loc.y));But that causes the rendered position of the group to shift on the canvas.
This is a group deriving from "Spot", and I suspect
moveis not honoringlocationObjectNameand instead blindly calculating based on the group bounding box.Full example here: http://jsfiddle.net/Leca70eg/2/
When you click the button, the group shifts its rendered location, while I would have expected the group to stay put.
Is this expected behavior? Is there a way I can get
moveto do the same logic as what happens during the initial layout?
Posts: 9
Participants: 2