Creates and initializes a new Diagram from the specified element. This method is static and can be called without creating an instance of the class.
Namespace: MindFusion.Diagramming
Package: Diagram.js
JavaScript Copy Code |
---|
function create (element) |
The DOM element that the diagram should be attached to.
A Diagram object that represents the newly created diagram.
This method is a shortcut method for Sys.Component.create and can be used to enable IntelliSense on the returned object.