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