@no_one345 wrote:
i m working on a diagram where i need shadow on group templates but it is not working in case of groups my group template is
this.diagram.groupTemplate = Go(go.Group, "Auto", { doubleClick: (e, obj) => { if (obj instanceof go.Group) if (obj.isSubGraphExpanded == false) { obj.isSubGraphExpanded = true; } else if (obj.isSubGraphExpanded == true) { obj.isSubGraphExpanded = false; } }, isShadowed: true, shadowOffset: new go.Point(43, 0), shadowColor: "black", background: "transparent", // highlight when dragging into the Group mouseDragEnter: (e, grp, prev) => { this.highlightGroup(e, grp, true); }, mouseDragLeave: (e, grp, next) => { this.highlightGroup(e, grp, false); }, computesBoundsAfterDrag: true, // resizable: true, // when the selection is dropped into a Group, add the selected // Parts into that Group; // if it fails, cancel the tool, rolling back any changes mouseDrop: (e, obj) => this.finishDrop(this, e, obj), handlesDragDropForMembers: true, // don't need to define // handlers on member Nodes // and Links // Groups containing Groups lay out their members horizontally // layout: Go(go.GridLayout, { // wrappingColumn: 4, // alignment: go.GridLayout.Position, // cellSize: new go.Size(1, 1), // spacing: new go.Size(50, 50) // } // // ,new go.Binding("wrappingColumn", "wrappingColumn", // function(h) // // { // // // // return h; // // // // }) // ) }, new go.Binding("textEditable", "readOnly", (h) => { return !h; }), new go.Binding("deletable", "readOnly", (h) => { return !h; }), new go.Binding("background", "isHighlighted", (h) => { return h ? "rgba((124,252,0),0.8)" : "transparent";.......
Posts: 2
Participants: 2
