Hello,
We are creating some sample map using the Diagram feature in the angular. We want zoom and panning feature in the diagram. We have created diagram like below,
In the drawshape.component.html
<ejs-diagram #diagram id="diagram" width="100%" height="700px" [snapSettings]='snapSettings' [getConnectorDefaults]='connDefaults' [getNodeDefaults]='getNodeDefaults' dragEnter='dragEnter' (created)="diagramCreate($event)" [constraints]='diagramConstraints'> </ejs-diagram>
And in the drawshape.component.ts file,
ngOnInit(): void {
this.diagramConstraints = DiagramConstraints.PageEditable | DiagramConstraints.Zoom & ~DiagramConstraints.Pan;
},
What changes need to be done in the code? Please suggest. Thank you.