Extends mxShape to implement a connector shape. The connector shape allows for arrow heads on either side.
This shape is registered under mxConstants.SHAPE_CONNECTOR in mxCellRenderer.
mxConnector | Extends mxShape to implement a connector shape. |
Functions | |
mxConnector | Constructs a new connector shape. |
Variables | |
vmlNodes | Adds local references to mxShape.vmlNodes. |
mixedModeHtml | Overrides the parent value with false, meaning it will draw in VML in mixed Html mode. |
preferModeHtml | Overrides the parent value with false, meaning it will draw as VML in prefer Html mode. |
allowCrispMarkers | Specifies if mxShape.crisp should be allowed for markers. |
Functions | |
configureHtmlShape | Overrides mxShape.configureHtmlShape to clear the border and background. |
createVml | Creates and returns the VML node to represent this shape. |
updateVmlMarkerOpacity | Updates the opacity for the markers in VML. |
redrawVml | Redraws this VML shape by invoking <updateVmlShape> on this.node. |
redrawVml | Redraws this VML shape by invoking <updateVmlShape> on this.node. |
createSvg | Creates and returns the SVG node to represent this shape. |
redrawSvg | Updates the SVG node(s) to reflect the latest bounds and scale. |
createDashPattern | Creates a dash pattern for the given factor. |
redrawMarker | Updates the given SVG or VML marker. |
function mxConnector( points, stroke, strokewidth )
Constructs a new connector shape.
points | Array of mxPoints that define the points. This is stored in mxShape.points. |
stroke | String that defines the stroke color. This is stored in <stroke>. Default is ‘black’. |
strokewidth | Optional integer that defines the stroke width. Default is 1. This is stored in <strokewidth>. |
mxConnector.prototype.vmlNodes
Adds local references to mxShape.vmlNodes.
mxConnector.prototype.allowCrispMarkers
Specifies if mxShape.crisp should be allowed for markers. Default is false.
mxConnector.prototype.configureHtmlShape = function( node )
Overrides mxShape.configureHtmlShape to clear the border and background.
Constructs a new connector shape.
function mxConnector( points, stroke, strokewidth )
Adds local references to mxShape.vmlNodes.
mxConnector.prototype.vmlNodes
Array if VML node names to fix in IE8 standards mode.
mxShape.prototype.vmlNodes
Overrides the parent value with false, meaning it will draw in VML in mixed Html mode.
mxConnector.prototype.mixedModeHtml
Overrides the parent value with false, meaning it will draw as VML in prefer Html mode.
mxConnector.prototype.preferModeHtml
Specifies if mxShape.crisp should be allowed for markers.
mxConnector.prototype.allowCrispMarkers
Special attribute for SVG rendering to set the shape-rendering attribute to crispEdges in the output.
mxShape.prototype.crisp
Overrides mxShape.configureHtmlShape to clear the border and background.
mxConnector.prototype.configureHtmlShape = function( node )
Configures the specified HTML node by applying the current color, bounds, shadow, opacity etc.
mxShape.prototype.configureHtmlShape = function( node )
Creates and returns the VML node to represent this shape.
mxConnector.prototype.createVml = function()
Updates the opacity for the markers in VML.
mxConnector.prototype.updateVmlMarkerOpacity = function()
Redraws this VML shape by invoking updateVmlShape on this.node.
mxConnector.prototype.redrawVml = function()
Creates and returns the SVG node to represent this shape.
mxConnector.prototype.createSvg = function()
Updates the SVG node(s) to reflect the latest bounds and scale.
mxConnector.prototype.redrawSvg = function()
Creates a dash pattern for the given factor.
mxConnector.prototype.createDashPattern = function( factor )
Updates the given SVG or VML marker.
mxConnector.prototype.redrawMarker = function( node, type, p0, pe, color, size )
Holds the array of mxPoints that specify the points of this shape.
mxShape.prototype.points