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

Error in point constructor

$
0
0

@no_one345 wrote:

i m using this as link template but when i load my model i get this error

this.diagram.linkTemplateMap.add("Curved",
  this.Go(go.Link,  // the whole link panel
    {isTreeLink: false,
      isLayoutPositioned: false, selectable: true, selectionAdornmentTemplate: linkSelectionAdornmentTemplate },
    { relinkableFrom: true, relinkableTo: true, reshapable: true },
    {
      // routing: go.Link.Orthogonal,
      curve: go.Link.Bezier,
      toShortLength: 4
    },
    new go.Binding("fromEndSegmentLength")
    ,new go.Binding("toEndSegmentLength"),
    // new go.Binding("points").makeTwoWay(),
    this.Go(go.Shape,  // the link path shape
      { fill: "#0080ff", isPanelMain: true, strokeWidth: 1, stroke: "#0080ff" }),
    this.Go(go.Shape,  // the arrowhead
      { fill: "#0080ff", toArrow: "Standard", stroke: null })
  ));

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 6974

Trending Articles