Creates and initializes a new DiagramView from the specified element. This method is static and can be called without creating an instance of the class.
Namespace: MindFusion.Diagramming
File: DiagramView.js
JavaScript Copy Code |
---|
function create (element, [diagram]) |
HTMLCanvasElement. The DOM <canvas> element that the DiagramView should be attached to.
Diagram. The Diagram instance that should be rendered by the new view.
DiagramView. The newly created DiagramView object.
MindFusion.Diagramming for JavaScript Programmer's Guide | © 2024 MindFusion |