freegroup / draw2d

Create Visio like drawings, diagrams or workflows with JavaScript and HTML5
https://freegroup.github.io/draw2d/#/examples
MIT License
738 stars 227 forks source link

draw2d-types codes not working in angular? why could it be. #195

Open reserturk opened 2 years ago

reserturk commented 2 years ago

ngOnInit(): void {

const canvas = new draw2d.Canvas('div');
const test = new draw2d.shape.basic.Circle({x: 40, y: 10, stroke: 3, color: '#3d3d3d', bgColor: '#3dff3d'});
canvas.add(test);

}