Hi Walter,
I am attempting to shift the position of a ‘go.Shape’ on a ‘go.Panel.Position’.
Currently, the switch I have implemented is working correctly when turned on:
However, I am trying to play around with bindings such that when turned off, it is shifted lower down on the panel, to achieve something like this:
Instead, I currently have this, and do not know how to fix it:
The desired size of the shape is ok, it is simply set to 1/2 height and full width.
I wonder what properties I need to modify to shift things down on this position panel…
$(
go.Panel,
go.Panel.Position,
new go.Binding('desiredSize', '', getFlipPanelSize),
$(
go.Shape,
{
name: SwitchWidgetSegment.ThirdShape,
},
new go.Binding('geometryString', '', (block: Block) => {
return isSwitchActive(block) ? SwitchShape.FlipOn : SwitchShape.FlipOff;
}),
new go.Binding('desiredSize', '', getThirdShapeDesiredSize),
)