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

Inner and outer border

$
0
0

@kobe wrote:

I want an inner and an outer border in my node like this :

I tried like this :

    this.go(go.Panel, 'Auto',

      this.go(go.Shape, 'RoundedRectangle', {
        spot1: go.Spot.TopLeft,
        spot2: go.Spot.BottomRight,
        strokeWidth: 1,
        stretch: go.GraphObject.Fill,
        stroke: '#CCCCCC',
        fill: '#FFFFA5',
      }),

      this.go(go.Shape, 'RoundedRectangle', {
        spot1: go.Spot.TopLeft,
        spot2: go.Spot.BottomRight,
        strokeWidth: 0,
        margin: new go.Margin(1, 1),
        stretch: go.GraphObject.Fill,
        fill: '#FF0000',
      }),

But the result is very strange and I dont understand why :

Do you have an example to make a result like the first example ?

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 6969

Trending Articles