Holds the operator for closing curves.
Contains the string used for bezier curves.
Holds the last x coordinate.
Holds the last y coordinate.
Contains the string used for moving in paths.
Contains the string used for moving in paths.
Holds the current path as an array.
Boolean value that specifies if events should be handled.
Contains the string used for quadratic paths.
Switch for rotation of HTML.
Holds the current state.
Stack of states.
Adds the given operation to the path.
Adds the given arc to the current path. This is a synthetic operation that is broken down into curves.
Starts a new path.
Closes the current path.
Note: the mxGraph JS code declares arguments (x1: number, y1: number, x2: number, y2: number, x3: number, y3: number) which are not used in the abstract implementation. The mxXmlCanvas2D JS implementation overrides this method without arguments. Decision is then taken to remove them here.
Creates the state of the this canvas.
Create a new mxUrlConverter and returns it.
Adds a bezier curve to the current path.
Empty implementation for backwards compatibility. This will be removed.
Fills the current path.
Fills and paints the outline of the current path.
Rounds all numbers to integers.
Draws a line to the given coordinates. Uses moveTo with the op argument.
Moves the current path the given coordinates.
Adds a quadratic curve to the current path.
Resets the state of this canvas.
Restores the current state.
Rotates the current state.
Rotates the given point and returns the result as an
Saves the current state.
Scales the current state.
Sets the current alpha.
Sets the current dash pattern.
Enables or disables dashed lines.
specifies whether or not the lines are dashed
specifies whether or not the lines use fix dash
Sets the current solid fill alpha.
Sets the current fill color.
Sets the current font color.
Sets the current font color.
Sets the current font color.
Sets the current font family.
Sets the current font size.
Sets the current font style.
Sets the current gradient.
Sets the current line cap.
Sets the current line join.
Sets the current link. Hook for subclassers.
Sets the current miter limit.
Enables or disables and configures the current shadow.
Enables or disables and configures the current shadow.
Enables or disables and configures the current shadow.
Enables or disables and configures the current shadow.
Sets the current stroke alpha.
Sets the current stroke color.
Sets the current stroke width.
Paints the outline of the current path.
Translates the current state.
Generated using TypeDoc
Base class for all canvases. All color values of <mxConstants.NONE> will be converted to null in the state.
The following methods make up the public interface of the canvas 2D for all painting in mxGraph:
arcTo is an additional method for drawing paths. This is a synthetic method, meaning that it is turned into a sequence of curves by default. Subclassers may add native support for arcs.
Note: this type is not
abstract
in the mxGraph JavaScript code (ES5) but both its name and its usage shows that it should not be instantiated and that it only serves as base class for usage and extension.