i was trying to group some button. so that they fixed together. but i don’t want background color or border.
My code is:
myDiagram = GO(go.Diagram, document.getElementById("myDiagramDiv"), // must name or refer to the DIV HTML element { initialContentAlignment: go.Spot.Center, allowDrop: true, // must be true to accept drops from the Palette "LinkDrawn": showLinkLabel, // this DiagramEvent listener is defined below "LinkRelinked": showLinkLabel, "animationManager.duration": 800, // slightly longer than default (600ms) animation "undoManager.isEnabled": true, // enable undo & redo "dragSelectingTool.isEnabled": false, "commandHandler.archetypeGroupData": { text: "Group", isGroup: true, color: "white",fill:"#000000" }, "animationManager.isEnabled": false, scrollMode: go.Diagram.InfiniteScroll, allowZoom: false, allowHorizontalScroll: false, allowVerticalScroll: false, hasHorizontalScrollbar: false, hasVerticalScrollbar: false, initialPosition: new go.Point(0, 0), padding: 0 } );
And the method which i call for group is:
function groupWebHmi() { if (myDiagram.commandHandler.canGroupSelection()) { myDiagram.commandHandler.groupSelection(); } }