Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
ngAfterViewInit() {
this.graph = new WorkflowGraph({
svgRoot: this.canvas.nativeElement,
model: this.model as any,
plugins: [
new SVGEdgeHoverPlugin(),
new SelectionPlugin(),
new ZoomPlugin(),
new SVGNodeMovePlugin(),
new SVGJobFileDropPlugin(),
new SVGArrangePlugin(),
new SVGRequiredInputMarkup(),
new SVGExecutionProgressPlugin(),
]
});
this.graph.fitToViewport();
this.draw.emit(this);
drawGraphAndAttachListeners() {
this.graph = new Workflow({
svgRoot: this.canvas.nativeElement as SVGSVGElement,
model: this.model as any,
plugins: [
new SVGArrangePlugin(),
new SVGPortDragPlugin(),
new SVGNodeMovePlugin(),
new SVGEdgeHoverPlugin(),
new SVGValidatePlugin(),
new SelectionPlugin(),
new ZoomPlugin(),
new DeletionPlugin(),
new UpdatePlugin()
],
editingEnabled: !this.readonly
});