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
Package: DiagramView.js
JavaScript Copy Code |
---|
function create (element, [diagram]) |
HTMLCanvasElement. The DOM 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.
NetDiagram Programmer's Guide | © 2023 MindFusion |