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

Binding points to an array of objects

$
0
0

@Jednorozec wrote:

Hello,

I’ve got a problem binding points to save them into DB and parse them back into diagram.

Here is my binding for my link:

this.diagram.linkTemplateMap.add('ToApproval',
      $(go.Link,
        {
          routing: go.Link.Normal,
          curve: go.Link.Bezier,
          reshapable: true,
          resegmentable: true,
          selectionAdorned: false,
          selectable: true,
          isLayoutPositioned: false,
          isTreeLink: false,
          curviness: -15,
          cursor: 'pointer',
        },
        new go.Binding('points', 'points').makeTwoWay(),
        $(go.Shape,
          {
            stroke: 'grey',
            strokeWidth: 3,
            strokeDashArray: [5, 5],
          })));

My array looks like this:

image

Any idea what could i possibly doing wrong?

P.S. go-debug seems to not identify an error.

Posts: 3

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 7069

Trending Articles