I’d like to know why, when you are doing new development, you cannot update your dependencies.
const $ = go.GraphObject.make;
const roundedRectangleParams = {
parameter1: 2, // set the rounded corner
spot1: go.Spot.TopLeft,
spot2: go.Spot.BottomRight, // make content
};
myDiagram.nodeTemplate =
$(go.Node, 'Auto', {
resizable: true,
locationSpot: go.Spot.Top,
selectionAdornmentTemplate:
$(go.Adornment, 'Auto',
$(go.Shape, 'RoundedRectangle', {
fill: null,
stroke: '#7986cb',
strokeWidth: 3,
},
roundedRectangleParams),
new go.Placeholder()
) // end Adornment
},
new go.Binding('desiredSize', 'size', go.Size.parse).makeTwoWay(go.Size.stringify),
$(go.Shape, 'RoundedRectangle', {
parameter1: 2,
fill: 'white',
stroke: 'gray',
strokeWidth: 5,
},
roundedRectangleParams),
$(go.Panel, 'Table', { stretch: go.GraphObject.Fill, margin: 2 },
$(go.Panel, 'Auto', { row: 0, stretch: go.GraphObject.Fill },
$(go.Shape, 'RoundedRectangle', { fill: 'red', strokeWidth: 0 },
roundedRectangleParams,
new go.Binding('fill', 'color')),
$(go.Panel, 'Horizontal', { margin: 4 },
$(go.TextBlock, {
editable: true,
overflow: go.TextBlock.OverflowEllipsis,
font: 'bold 14px sans-serif',
text: 'node name',
alignment: go.Spot.Left,
margin: 2,
},
new go.Binding('text').makeTwoWay()),
$('PanelExpanderButton', {
background: 'white',
alignment: go.Spot.Right,
})
)
),
$(go.Panel, 'Vertical', {
row: 1,
name: 'COLLAPSIBLE',
visible: false,
margin: 8,
defaultAlignment: go.Spot.Left
},
$(go.TextBlock, 'additional information 1'),
$(go.TextBlock, 'additional information 2')
)
)
);