Function: allowEval
Static global switch that specifies if the use of eval is allowed for evaluating text content and images. Default is false. Set this to true if stencils can not contain user input.
Variable: antiAlias
Rendering hint for configuring the canvas.
Variable: aspect
Holds the aspect of the shape. Default is 'auto'.
Variable: bgNodes
Holds the XML node with the stencil description.
Variable: boundingBox
Contains the bounding box of the shape, that is, the smallest rectangle that includes all pixels of the shape.
Variable: bounds
Holds the
Variable: constraints
Holds an array of
Variable: defaultLocalized
Static global variable that specifies the default value for the localized attribute of the text element. Default is false.
Variable: desc
Holds the XML node with the stencil description.
Variable: dialect
Holds the dialect in which the shape is to be painted.
This can be one of the DIALECT constants in
Specify the direction of certain shapes (eg. mxTriangle). Possible values are mxConstants.DIRECTION_EAST (default),
mxConstants.DIRECTION_WEST, mxConstants.DIRECTION_NORTH, and mxConstants.DIRECTION_SOUTH.
Note: this property is not documented in the JavaScript API but it does exist and is necessary (see apply).
Possible values are all constants with an ARROW-prefix.
Note: this property is not documented in the JavaScript API but it does exist and is necessary (see apply).
Size of the end marker in pixels.
Note: this property is not documented in the JavaScript API but it does exist and is necessary (see apply).
Variable: fgNodes
Holds the XML node with the stencil description.
Fill color.
Note: this property is not documented in the JavaScript API but it does exist and is necessary (see apply).
Fill opacity. Possible range is 0-100
.
Note: this property is not documented in the JavaScript API but it does exist and is necessary (see apply).
Note: this property is not documented in the JavaScript API but it does exist and is necessary (see apply implementation).
Note: this property is not documented in the JavaScript API but it does exist and is necessary (see apply implementation).
Note: this property is not documented in the JavaScript API but it does exist and is necessary (see apply).
Gradient color.
Note: this property is not documented in the JavaScript API but it does exist and is necessary (see apply).
Gradient direction.
Note: this property is not documented in the JavaScript API but it does exist and is necessary (see apply).
Variable: h0
Holds the height of the shape. Default is 100.
Note: this property is not documented in the JavaScript API but it does exist and is necessary (see apply).
For edges this determines whether or not joins between edges segments are smoothed to a rounded finish.
For vertices that have the rectangle shape, this determines whether or not the rectangle is rounded.
Note: this property is not documented in the JavaScript API but it does exist and is necessary (see apply).
Note: this property is not documented in the JavaScript API but it does exist and is necessary (see apply).
Variable: minSvgStrokeWidth
Minimum stroke width for SVG output.
Variable: node
Holds the outermost DOM node that represents this shape.
Opacity. Possible range is 0-100
.
Note: this property is not documented in the JavaScript API but it does exist and is necessary (see apply).
Variable: outline
Specifies if the shape should be drawn as an outline. This disables all
fill colors and can be used to disable other drawing states that should
not be painted for outlines. Default is false. This should be set before
calling
Variable: pointerEvents
Specifies if pointer events should be handled. Default is true.
Variable: points
Holds the array of
Possible range is 0-360.
Note: this property is not documented in the JavaScript API but it does exist and is necessary (see apply).
Variable: scale
Holds the scale in which the shape is being painted.
Variable: shapePointerEvents
Specifies if pointer events outside of shape should be handled. Default is false.
The value represents the spacing, in pixels, added to each side of a label in a vertex (style applies to vertices only).
Note: this property is not documented in the JavaScript API but it does exist and is necessary (see apply).
Possible values are all constants with an ARROW-prefix.
Note: this property is not documented in the JavaScript API but it does exist and is necessary (see apply).
Size of the start marker or the size of the swimlane title region depending on the shape it is used for.
Note: this property is not documented in the JavaScript API but it does exist and is necessary (see apply).
Variable: state
Optional reference to the corresponding
Variable: stencil
Holds the
Variable: stencilPointerEvents
Specifies if pointer events outside of stencils should be handled. Default is false. Set this to true for backwards compatibility with the 1.x branch.
Stroke color.
Note: this property is not documented in the JavaScript API but it does exist and is necessary (see apply).
Stroke opacity. Possible range is 0-100
.
Note: this property is not documented in the JavaScript API but it does exist and is necessary (see apply).
Variable: strokewidth
Holds the strokewidth direction from the description.
Variable: style
Optional reference to the style of the corresponding
Variable: svgPointerEvents
Specifies if pointer events should be handled. Default is true.
Variable: svgStrokeTolerance
Event-tolerance for SVG strokes (in px). Default is 8. This is only passed
to the canvas in
Variable: useSvgBoundingBox
Allows to use the SVG bounding box in SVG. Default is false for performance reasons.
Variable: visible
Specifies if the shape is visible. Default is true.
Variable: vmlScale
Scale for improving the precision of VML rendering. Default is 1.
Variable: w0
Holds the width of the shape. Default is 100.
Paints the given points with rounded corners.
Function: apply
Applies the style of the given
This keeps a reference to the
Implements a generic shape which is based on a XML node as a description.