Hi. I use next group template
$(
go.Group,
'Spot',
{
layerName: 'PH',
ungroupable: true,
locationSpot: go.Spot.Center,
selectionObjectName: 'PH',
resizeObjectName: 'PH',
locationObjectName: 'PH',
// computesBoundsAfterDrag: false,
// computesBoundsIncludingLocation: false,
// handlesDragDropForMembers: true,
// avoidable: false,
// resizable: true,
mouseDragEnter(e, group) {
group.isHighlighted = true;
},
mouseDragLeave(e, group) {
group.isHighlighted = false;
},
mouseDrop(e, grp) {
const isOkAppending = grp.addMembers(grp.diagram.selection, true);
if (!isOkAppending) grp.diagram.currentTool.doCancel();
},
},
makeTwoWaySubBinding('location', 'location', 'diagramSettings', go.Point.parse, go.Point.stringify),
makeTwoWaySubBinding('zOrder', 'zOrder', 'graphSettings'),
$(
go.Panel,
'Auto',
{
name: 'BODY',
},
$(
go.Shape,
{
name: 'PH',
parameter1: 10,
strokeWidth: 2,
opacity: 0.9,
cursor: 'pointer',
fromSpot: go.Spot.AllSides,
toSpot: go.Spot.AllSides,
},
new go.Binding('fill', 'graphSettings', ObjectExtractor.getFillColor),
new go.Binding('stroke', 'graphSettings', ObjectExtractor.getStrokeColor),
new go.Binding('strokeWidth', 'graphSettings', ObjectExtractor.getStrokeWidth),
new go.Binding('strokeDashArray', 'graphSettings', ObjectExtractor.isDashedGroupStroke),
),
$(
go.Placeholder,
{
background: 'transparent',
},
new go.Binding('margin', 'graphSettings', ObjectExtractor.renderGroupPlaceholderMargin),
),
$(
go.TextBlock,
{
alignment: go.Spot.TopLeft,
alignmentFocus: go.Spot.TopLeft,
editable: true,
background: 'rgba(0, 0, 0, 0)',
margin: new go.Margin(3, 0, 0, 7),
},
new go.Binding('text', 'showedText').makeTwoWay(),
new go.Binding('font', 'graphSettings', ObjectExtractor.renderFont),
new go.Binding('isUnderline', 'graphSettings', ObjectExtractor.isDashedStroke),
new go.Binding('stroke', 'graphSettings', ObjectExtractor.getFontColor),
),
),
)
);
ctrl+g is grouping node, but ctrl+shift+g is not working. Why does not ungrouping work?