Quantcast
Channel: Northwoods Software - Latest topics
Viewing all articles
Browse latest Browse all 7406

Picture resizing in graphLinksModel

$
0
0

@petemorales wrote:

need help in resizing the picture in my node…
$(go.Picture,
{ name: “BUTTONS”,margin: 0, width: 100, height: 100,
portId: “”, fromSpot: new go.Spot(1, 0.35), toSpot: new go.Spot(0, 0.35) }, new
go.Binding(“source”,“foto”)),

I want to use the same node for different pictures , therefore I can’t size it here. I want to size it in the GraphLinksModel.

myDiagram.model = new go.GraphLinksModel(
[ { key: "A", category:"MYNODE2",foto:"L1 FUSES.png"},
      { key: "B1",category:"CARDS",foto:"input card.png",angle:0,pos:"300 200"},
    ]

how do I change the size here?
can I do in my go.picture a go.Binding(“DesiredSize”,“size”)?
please help

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 7406

Trending Articles