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

How to resize the length of LineH using adorner?

$
0
0

@tesicg wrote:

The code looks as following:

var hLineTemplate =
    $(go.Node, "Horizontal", nodeStyle1(),
    $(go.Shape, "LineH",
        { fill: black, width: 50 })
    );

function nodeStyle1() {
    return [new go.Binding("location", "loc", go.Point.parse).makeTwoWay(go.Point.stringify),
            new go.Binding("isShadowed", "isSelected").ofObject(),
            {
                selectionAdorned: true,
                shadowOffset: new go.Point(0, 0),
                shadowBlur: 15,
                shadowColor: "blue",
                resizable: true,
            }];
}

It looks as following:

And the additional question - how to increase the width of LineH?

Posts: 4

Participants: 3

Read full topic


Viewing all articles
Browse latest Browse all 7069

Trending Articles