Extends mxShape to implement a rhombus (aka diamond) shape. This shape is registered under mxConstants.SHAPE_RHOMBUS in mxCellRenderer.
mxRhombus | Extends mxShape to implement a rhombus (aka diamond) shape. |
Functions | |
mxRhombus | Constructs a new rhombus shape. |
Variables | |
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. |
Functions | |
createHtml | Creates and returns the HTML node to represent this shape. |
createVml | Creates and returns the VML node(s) to represent this shape. |
createSvg | Creates and returns the SVG node(s) to represent this shape. |
redrawVml | Updates the VML node(s) to reflect the latest bounds and scale. |
redrawHtml | Updates the HTML node(s) to reflect the latest bounds and scale. |
redrawSvg | Updates the SVG node(s) to reflect the latest bounds and scale. |
createSvgSpan | Updates the path for the given SVG node. |
function mxRhombus( bounds, fill, stroke, strokewidth )
Constructs a new rhombus shape.
bounds | mxRectangle that defines the bounds. This is stored in mxShape.bounds. |
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>. |
Constructs a new rhombus shape.
function mxRhombus( bounds, fill, stroke, strokewidth )
Overrides the parent value with false, meaning it will draw in VML in mixed Html mode.
mxRhombus.prototype.mixedModeHtml
Overrides the parent value with false, meaning it will draw as VML in prefer Html mode.
mxRhombus.prototype.preferModeHtml
Creates and returns the HTML node to represent this shape.
mxRhombus.prototype.createHtml = function()
Creates and returns the VML node(s) to represent this shape.
mxRhombus.prototype.createVml = function()
Creates and returns the SVG node(s) to represent this shape.
mxRhombus.prototype.createSvg = function()
Updates the VML node(s) to reflect the latest bounds and scale.
mxRhombus.prototype.redrawVml = function()
Updates the HTML node(s) to reflect the latest bounds and scale.
mxRhombus.prototype.redrawHtml = function()
Updates the SVG node(s) to reflect the latest bounds and scale.
mxRhombus.prototype.redrawSvg = function()
Holds the mxRectangle that specifies the bounds of this shape.
mxShape.prototype.bounds