Constructs a new arrow shape.
Array of mxPoint that define the points. This is stored in mxShape.points.
String that defines the fill color. This is stored in mxShape.fill.
String that defines the stroke color. This is stored in mxShape.stroke.
Optional integer that defines the stroke width. Default is 1. This is stored in mxShape.strokewidth.
Optional integer that defines the arrow width. Default is mxConstants.ARROW_WIDTH. This is stored in {@link mxShape.arrowWidth}.
Optional integer that defines the spacing between the arrow shape and its endpoints. Default is mxConstants.ARROW_SPACING. This is stored in mxShape.spacing.
Optional integer that defines the size of the arrowhead. Default is mxConstants.ARROW_SIZE. This is stored in mxShape.endSize.
Variable: antiAlias
Rendering hint for configuring the canvas.
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: 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).
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).
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).
Stroke width.
Note: this property is not documented in the JavaScript API but it does exist and is necessary (see apply).
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
Allows to use the SVG bounding box in SVG.
Variable: visible
Specifies if the shape is visible. Default is true.
Variable: vmlScale
Scale for improving the precision of VML rendering. Default is 1.
Paints the given points with rounded corners.
Overrides apply to get smooth transition from default start- and endsize.
Augments the bounding box with the edge width and markers.
Function: checkBounds
Returns true if the bounds are not null and all of its variables are numeric.
Function: clear
Removes all child nodes and resets all CSS.
Sets the state of the canvas for drawing the shape.
Function: create
Creates and returns the DOM node(s) for the shape in
the given container. This implementation invokes
Parameters:
container - DOM node that will contain the shape.
Function: createBoundingBox
Returns a new rectangle that represents the bounding box of the bare shape with no shadows or strokewidths.
Function: createCanvas
Creates a new canvas for drawing this shape. May return null.
Function: createHtml
Creates and returns the HTML DOM node(s) to represent
this shape. This implementation falls back to
Function: createSvg
Creates and returns the SVG node(s) to represent this shape.
Function: createSvgCanvas
Creates and returns an
Function: createTransparentSvgRectangle
Adds a transparent rectangle that catches all events.
Function: createVml
Creates and returns the VML node to represent this shape.
Function: createVmlCanvas
Creates and returns an
Function: createVmlGroup
Returns the temporary element used for rendering in IE8 standards mode.
Function: destroy
Destroys the shape by removing it from the DOM and releasing the DOM node associated with the shape using <mxEvent.release>.
Function: getArcSize
Returns the arc size for the given dimension.
Function: getCursor
Returns the current cursor.
the width of the body of the edge
the width of the end arrow
Function: getGradientBounds
Returns the bounding box for the gradient box for this shape.
Function: getLabelBounds
Returns the
Function: getLabelMargins
Returns the scaled top, left, bottom and right margin to be used for
computing the label bounds as an
Function: getRotation
Returns the rotation from the style.
Function: getShapeRotation
Returns the actual rotation of the shape.
the width of the start arrow
Function: getSvgScreenOffset
Returns 0, or 0.5 if
Function: getTextRotation
Returns the rotation for the text label.
Function: init
Initializes the shape by creaing the DOM node using
Parameters:
container - DOM node that will contain the shape.
Function: initStyles
Sets the styles to their default values.
whether the arrow is rounded
Function: isHtmlAllowed
Returns true if HTML is allowed for this shape. This implementation always returns false.
whether the end marker is drawn
whether the start marker is drawn
whether the ends of the shape are drawn
Function: isPaintBoundsInverted
Returns true if the bounds should be inverted.
Function: isParseVml
Specifies if any VML should be added via insertAdjacentHtml to the DOM. This is only needed in IE8 and only if the shape contains VML markup. This method returns true.
Hook for subclassers.
Generic rendering code.
Function: paintBackground
Hook for subclassers. This implementation is empty.
Paints the line shape.
Hook for subclassers. This implementation is empty.
Function: paintGlassEffect
Paints the glass gradient effect.
Function: paintVertexShape
Paints the vertex shape.
Function: reconfigure
Reconfigures this shape. This will update the colors etc in addition to the bounds or points.
Function: redraw
Creates and returns the SVG node(s) to represent this shape.
Function: redrawHtml
Allow optimization by replacing VML with HTML.
Function: redrawShape
Updates the SVG or VML shape.
Function: releaseSvgGradients
Paints the line shape.
Overrides mxShape to reset spacing.
Function: setCursor
Sets the cursor on the given shape.
Parameters:
cursor - The cursor to be used.
Function: setTransparentBackgroundImage
Sets a transparent background CSS style to catch all events.
Paints the line shape.
Function: updateBoundingBox
Updates the
Function: updateBoundsFromPoints
Updates the bounds based on the points.
Function: mixedModeHtml
Allow optimization by replacing VML with HTML.
Function: mixedModeHtml
Allow optimization by replacing VML with HTML.
Function: updateHtmlFilters
Allow optimization by replacing VML with HTML.
Function: updateTransform
Sets the scale and rotation on the given canvas.
Function: updateVmlContainer
Updates the bounds of the VML container.
Generated using TypeDoc
Extends mxShape to implement an new rounded arrow shape with support for waypoints and double arrows. The shape is used to represent edges, not vertices.
This shape is registered under mxConstants.SHAPE_ARROW_CONNECTOR in mxCellRenderer.