Hi ,
I need to reduce the selection area.
Any idea
myFullDiagram.nodeTemplateMap.add("Field",
GO(go.Node, go.Panel.Auto, { locationSpot: go.Spot.Center },
new go.Binding("location", "loc", go.Point.parse).makeTwoWay(go.Point.stringify),
new go.Binding("text", "key"),
GO(go.Shape, "RoundedRectangle",
{ fill: null, portId: "", toLinkable: true, stroke: null }),
GO(go.Panel, go.Panel.Vertical,
GO(go.Panel, go.Panel.Auto,
GO(go.Shape, "RoundedRectangle",
{ fill: FieldColor, stroke: null }),
GO(go.Panel, go.Panel.Horizontal,
GO(go.Picture,
new go.Binding("source", "category", nodeTypeImage), { width: 20, height: 20 }),
GO(go.TextBlock, textStyle(),
{ text: 'Field' },
new go.Binding("text", "text").makeTwoWay())
)),
GO(go.Panel, go.Panel.Vertical, { margin: new go.Margin(5, 0, 0, 0) },
GO(go.TextBlock, { wrap: go.TextBlock.WrapFit, font: smallfont }, new go.Binding("text", "counter1")),
GO(go.TextBlock, { wrap: go.TextBlock.WrapFit, font: smallfont }, new go.Binding("text", "counter2")),
GO(go.TextBlock, { wrap: go.TextBlock.WrapFit, font: smallfont }, new go.Binding("text", "counter3")),
GO(go.TextBlock, { isMultiline: true, font: smallfont }, new go.Binding("text", "counter4"))
)
)));