Quantcast
Channel: GoJS - Northwoods Software
Viewing all articles
Browse latest Browse all 6969

Two way binding for size and rotation

$
0
0

@ramire01 wrote:

Hello,

I am trying to bind two way the node size and the rotation. I tried:

   new go.Binding("geometryString", "geo").makeTwoWay(),
   new go.Binding("size", "dim").makeTwoWay()

Where can I find a list of "figure", "location", etc. that may be used in Binding? And their appropriate placement.
I tried adding entries where marked [HERE] below:
$(go.Node, "Spot", {},
[HERE]
// the main object is a Panel that surrounds a TextBlock with a rectangular Shape
$(go.Panel, "Auto",
$(go.Shape, "RoundedRectangle", { fill: "#00A9C9", stroke: null },
[HERE]
),
$g(go.TextBlock, {
font: "bold 11pt Helvetica, Arial, sans-serif",
stroke: lightText,
margin: 8,
maxSize: new go.Size(160, NaN),
wrap: go.TextBlock.WrapFit,
editable: true
},
new go.Binding("text").makeTwoWay())
),
[HERE]
)

Thanks,

Posts: 3

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 6969

Trending Articles