@Rajeshpatil74 wrote:
I have a diagram as shown in Fig.
When decorative element is added in the diagram and then user tries to do drag -drop of "Task" & "Gateway"
the mousedrop event doesn't get raised for the group elements (which are below the decorative element)How one can achieve same ?
For decorative node the template is defined as below -> BPMNMileStoneDiagramManager.prototype.getShapeNodeTemplate = function () { > var current = this; > var palscale = 1; > var nodeTemplate = > current.goObj(go.Node, "Auto", > { selectionAdorned: true, resizable: true, zOrder: -1, layerName : "decoration" }, > new go.Binding("location", "loc", go.Point.parse).makeTwoWay(go.Point.stringify), > new go.Binding("desiredSize", "size", go.Size.parse).makeTwoWay(go.Size.stringify), > new go.Binding("zOrder", "zOrder"), > { > toolTip: > current.goObj(go.Adornment, "Auto", > current.goObj(go.Shape, { fill: "#FFFFCC" }), > current.goObj(go.TextBlock, { margin: 4, text: "Tool Tip text" }, new go.Binding("text", "text").makeTwoWay()) > ), > doubleClick: function (e, node) { > var tb = node.findObject("TEXT"); > if (tb !== null) { > if (tb.text == "") tb.text = "____"; > e.diagram.commandHandler.editTextBlock(tb); > } > } > }, > current.goObj(go.Shape, > { fill: "transparent", stroke: "black", strokeWidth: 1, minSize: new go.Size(75, 75) }, > new go.Binding("fill", "", current.fillColorConverter.bind(current)), > new go.Binding("stroke", "", current.borderColorConverter.bind(current)), > new go.Binding("strokeDashArray", "strokeDashArray"), > new go.Binding("strokeWidth", "strokeWidth"), > new go.Binding("figure", "figure")), > current.goObj(go.TextBlock, > { name: "TEXT", margin: 5, editable: true }, > new go.Binding("text").makeTwoWay(), > new go.Binding("font", "font"), > new go.Binding("stroke", "", current.textColorConverter.bind(current)), > new go.Binding("alignment", "textAlign", go.Spot.parse) > ) > ); > return nodeTemplate; > }
Posts: 2
Participants: 1