MindFusion.Diagramming for JavaScript Programmer's Guide
Canvas Members
Constructors Fields Methods
 


The Canvas class represents a wrapper class for the HTML5 Canvas element.

The following tables list the members exposed by the Canvas type.

 Public Constructors

  Name Description

Canvas

Initializes a new instance of the Canvas class.

 Public Fields

  Name Description

bounds

The object's bounds.

measureUnit

The unit of measure used for logical coordinates.

zoomFactor

The zoom factor used to scale up or down the drawing.

 Public Methods

  Name Description

clientToDoc

Transforms a point from client to document coordinates.

docToClient

Transforms a point from document to client coordinates.

getBounds

Gets the underlying Canvas element's bounds.

getMeasureUnit

Gets the unit of measure used for logical coordinates.

getZoomFactor

Gets the zoom factor.

setBounds

Sets the underlying Canvas element's bounds.

setMeasureUnit

Sets the unit of measure used for logical coordinates.

setZoomFactor

Sets the zoom factor.

 See Also

Canvas Class
MindFusion.Drawing Namespace