Using gojs, I would like to apply parameters only when the object is placed inside another object.
for example a panel should only have the padding added (or change value, from 0 to 25)
when placed inside a H Group.
is this possible?
looking at gojs docs I see SelectionGrouped
but not sure if this includes dropping the object into a H Group
myDiagram.nodeTemplateMap.add("j2",
$(go.Node, "Auto",
$(go.Panel, "auto", {padding:0},
$(go.Shape, "File"),
$(go.TextBlock, "This\n is a\n file", textStyle(),
new go.Binding("text", "text").makeTwoWay())
)
));