Search
DiagramView.create Method
See Also
 





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

 Syntax

JavaScript  Copy Code

function create (element, [diagram])

 Parameters

element

HTMLCanvasElement. The DOM element that the DiagramView should be attached to.

diagram
Optional.

Diagram. The Diagram instance that should be rendered by the new view.

 Return Value

DiagramView. The newly created DiagramView object.

 See Also