Extends mxShape to implement a polyline (a line with multiple points). This shape is registered under <mxConstants.SHAPE_POLYLINE> in mxCellRenderer.
mxPolyline | Extends mxShape to implement a polyline (a line with multiple points). |
Functions | |
mxPolyline | Constructs a new polyline shape. |
create | Override to create HTML regardless of gradient and rounded property. |
redrawVml | Overrides the method to update the bounds if they have not been assigned. |
createSvg | Creates and returns the SVG node(s) to represent this shape. |
redrawSvg | Updates the SVG node(s) to reflect the latest bounds and scale. |
function mxPolyline( points, stroke, strokewidth )
Constructs a new polyline shape.
points | Array of mxPoints that define the points. This is stored in mxShape.points. |
stroke | String that defines the stroke color. Default is ‘black’. This is stored in <stroke>. |
strokewidth | Optional integer that defines the stroke width. Default is 1. This is stored in <strokewidth>. |
Constructs a new polyline shape.
function mxPolyline( points, stroke, strokewidth )
Override to create HTML regardless of gradient and rounded property.
mxPolyline.prototype.create = function()
Overrides the method to update the bounds if they have not been assigned.
mxPolyline.prototype.redrawVml = function()
Creates and returns the SVG node(s) to represent this shape.
mxPolyline.prototype.createSvg = function()
Updates the SVG node(s) to reflect the latest bounds and scale.
mxPolyline.prototype.redrawSvg = function()
Holds the array of mxPoints that specify the points of this shape.
mxShape.prototype.points