Hi,
I’m not using GoJs Palette, I’m using a custom palette
export class CustomDiagram extends go.Diagram {
protected computeBounds() {
return super.computeBounds().unionPoint(new go.Point(0, 0));
}
}
const diagramRef = useRef<VolanteDiagram>()
let localDig = $(CustomDiagram, 'messageFlowDiv' , {
'animationManager.isEnabled': false,
'initialPosition': new go.Point(0, 0),
})
diagramRef.current = localDig
- when we drag the node(B) from the palette and drop it nearest to the other node(A). The automatic link should be created(A → B).
- A and B are linked already. When we try to drop node C on the link. The output should be A → C ->B
is there any example for both the scenarios and using the location I need to get the nearest part.