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.
mxArrowConnector | Extends mxShape to implement an new rounded arrow shape with support for waypoints and double arrows. |
Functions | |
mxArrowConnector | Constructs a new arrow shape. |
Variables | |
useSvgBoundingBox | Allows to use the SVG bounding box in SVG. |
resetStyles | Overrides mxShape to reset spacing. |
Functions | |
augmentBoundingBox | Augments the bounding box with the edge width and markers. |
paintEdgeShape | Paints the line shape. |
paintEdgeShape | Paints the line shape. |
isArrowRounded | Returns wether the arrow is rounded |
getStartArrowWidth | Returns the width of the start arrow |
getEndArrowWidth | Returns the width of the end arrow |
getEdgeWidth | Returns the width of the body of the edge |
isOpenEnded | Returns whether the ends of the shape are drawn |
isMarkerStart | Returns whether the start marker is drawn |
isMarkerEnd | Returns whether the end marker is drawn |
function mxArrowConnector( points, fill, stroke, strokewidth, arrowWidth, spacing, endSize )
Constructs a new arrow shape.
points | Array of mxPoints that define the points. This is stored in mxShape.points. |
fill | String that defines the fill color. This is stored in <fill>. |
stroke | String that defines the stroke color. This is stored in <stroke>. |
strokewidth | Optional integer that defines the stroke width. Default is 1. This is stored in <strokewidth>. |
arrowWidth | Optional integer that defines the arrow width. Default is mxConstants.ARROW_WIDTH. This is stored in <arrowWidth>. |
spacing | Optional integer that defines the spacing between the arrow shape and its endpoints. Default is mxConstants.ARROW_SPACING. This is stored in <spacing>. |
endSize | Optional integer that defines the size of the arrowhead. Default is mxConstants.ARROW_SIZE. This is stored in <endSize>. |
Constructs a new arrow shape.
function mxArrowConnector( points, fill, stroke, strokewidth, arrowWidth, spacing, endSize )
Allows to use the SVG bounding box in SVG.
mxArrowConnector.prototype.useSvgBoundingBox
Overrides mxShape to reset spacing.
mxArrowConnector.prototype.resetStyles
Augments the bounding box with the edge width and markers.
mxArrowConnector.prototype.augmentBoundingBox = function( bbox )
Paints the line shape.
mxArrowConnector.prototype.paintEdgeShape = function( c, pts )
Returns wether the arrow is rounded
mxArrowConnector.prototype.isArrowRounded = function()
Returns the width of the start arrow
mxArrowConnector.prototype.getStartArrowWidth = function()
Returns the width of the end arrow
mxArrowConnector.prototype.getEndArrowWidth = function()
Returns the width of the body of the edge
mxArrowConnector.prototype.getEdgeWidth = function()
Returns whether the ends of the shape are drawn
mxArrowConnector.prototype.isOpenEnded = function()
Returns whether the start marker is drawn
mxArrowConnector.prototype.isMarkerStart = function()
Returns whether the end marker is drawn
mxArrowConnector.prototype.isMarkerEnd = function()
Name under which mxArrowConnector is registered in mxCellRenderer.
SHAPE_ARROW_CONNECTOR: 'arrowConnector'
Holds the array of mxPoints that specify the points of this shape.
mxShape.prototype.points
Defines the width of the arrow shape.
ARROW_WIDTH: 30
Defines the spacing between the arrow shape and its terminals.
ARROW_SPACING: 0
Defines the size of the arrowhead in the arrow shape.
ARROW_SIZE: 30