Extends mxShape to implement an arrow shape. (The shape is used to represent edges, not vertices.) This shape is registered under mxConstants.SHAPE_ARROW in mxCellRenderer.
mxArrow | Extends mxShape to implement an arrow shape. |
Functions | |
mxArrow | Constructs a new arrow shape. |
Variables | |
addPipe | Specifies if a SVG path should be created around any path to increase the tolerance for mouse events. |
enableFill | Specifies if fill colors should be ignored. |
Functions | |
configureTransparentBackground | Overidden to remove transparent background. |
createVml | Extends <mxShape.createVml> to ignore fill if enableFill is false. |
createSvg | Extends mxActor.createSvg to ignore fill if enableFill is false and create an event handling shape if <this.addPipe> is true. |
reconfigure | Extends <mxActor.reconfigure> to ignore fill if enableFill is false. |
redrawSvg | Extends mxActor.redrawSvg to update the event handling shape if one exists. |
redrawPath | Draws the path for this shape. |
function mxArrow( 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>. |
mxArrow.prototype.createVml = function()
Extends <mxShape.createVml> to ignore fill if enableFill is false.
mxArrow.prototype.createSvg = function()
Extends mxActor.createSvg to ignore fill if enableFill is false and create an event handling shape if <this.addPipe> is true.
mxArrow.prototype.reconfigure = function()
Extends <mxActor.reconfigure> to ignore fill if enableFill is false.
mxArrow.prototype.redrawSvg = function()
Extends mxActor.redrawSvg to update the event handling shape if one exists.
mxArrow.prototype.redrawPath = function( path, x, y, w, h )
Draws the path for this shape. This method uses the mxPath abstraction to paint the shape for VML and SVG.
Constructs a new arrow shape.
function mxArrow( points, fill, stroke, strokewidth, arrowWidth, spacing, endSize )
Specifies if a SVG path should be created around any path to increase the tolerance for mouse events.
mxArrow.prototype.addPipe
Specifies if fill colors should be ignored.
mxArrow.prototype.enableFill
Overidden to remove transparent background.
mxArrow.prototype.configureTransparentBackground = function( node )
Extends mxShape.createVml to ignore fill if enableFill is false.
mxArrow.prototype.createVml = function()
Extends mxActor.createSvg to ignore fill if enableFill is false and create an event handling shape if this.addPipe is true.
mxArrow.prototype.createSvg = function()
Creates and returns the SVG node(s) to represent this shape.
mxActor.prototype.createSvg = function()
Extends mxActor.reconfigure to ignore fill if enableFill is false.
mxArrow.prototype.reconfigure = function()
Extends mxActor.redrawSvg to update the event handling shape if one exists.
mxArrow.prototype.redrawSvg = function()
Updates the SVG node(s) to reflect the latest bounds and scale.
mxActor.prototype.redrawSvg = function()
Draws the path for this shape.
mxArrow.prototype.redrawPath = function( path, x, y, w, h )
Holds the array of mxPoints that specify the points of this shape.
mxShape.prototype.points