Specifies if offsetWidth and offsetHeight should be cached. This is used to speed up repaint of text in updateText.
Holds the operator for closing curves. Default is 'Z'.
Holds the
Contains the string used for bezier curves. Default is 'C'.
Specifies the fallback text for unsupported foreignObjects in exported documents.
If this is set to null
then no fallback text is added to the exported document.
Specifies if use of foreignObject for HTML markup is allowed.
Padding to be added for text that is not wrapped to account for differences in font metrics on different platforms in pixels.
Offset to be used for foreignObjects.
Offset to be used for image elements.
Holds the last x coordinate.
Holds the last y coordinate.
Correction factor for mxConstants.LINE_HEIGHT in HTML output.
Contains the string used for moving in paths. Default is 'L'.
Specifies if plain text output should match the vertical HTML alignment.
Minimum stroke width for output.
Contains the string used for moving in paths. Default is 'M'.
Holds the current DOM node.
Holds the current path as an array.
Boolean value that specifies if events should be handled. Default is false.
Default value for active pointer events.
Contains the string used for quadratic paths. Default is 'Q'.
Local counter for references in SVG export.
Switch for rotation of HTML. Default is false.
Holds the current state.
Stack of states.
Adds transparent paths for strokes.
Specifies if text output should be enabled.
Offset to be used for text elements.
Creates a foreignObject for the given string and adds it to the given root.
Background color and border
Returns the alternate content for the given foreignObject.
Private helper function to create SVG elements
Creates the state of the this canvas.
Creates the given SVG gradient.
Create a new
Returns the alternate text string for the given foreignObject.
Returns the URL of the page without the hash part. This needs to use href to include any search part with no params (ie question mark alone). This is a workaround for the fact that window.location.search is empty if there is no search string behind the question mark.
Private helper function to create SVG elements
Paints the given text. Possible values for format are empty string for plain text and html for HTML markup.
Sets the current gradient.
Paints the given text. Possible values for format are empty string for plain
text and html for HTML markup. Note that HTML markup is only supported if
foreignObject is supported and
Transfers the stroke attributes from mxAbstractCanvas2D.state to node.
Transfers the stroke attributes from mxAbstractCanvas2D.state to node.
Updates existing DOM nodes for text rendering. LATER: Merge common parts with text function below.
Updates existing DOM nodes for text rendering.
Static
createUpdates existing DOM nodes for text rendering.
Extends mxAbstractCanvas2D to implement a canvas for SVG. This canvas writes all calls as SVG output to the given SVG root node.
To disable anti-aliasing in the output, use the following code.
Or set the respective attribute in the SVG element directly.