Canvas for drawing graphs using HTML.
| mxHtmlCanvas | Canvas for drawing graphs using HTML. |
| Variables | |
| html | Holds the html markup. |
| Functions | |
| mxGdCanvas | Constructs a new GD canvas. |
| getHtml | Gets the HTML that represents the canvas. |
| out | Adds the specified string to the output. |
| drawLine | Draws the specified line. |
| drawShape | Draws the specified shape. |
| drawImage | Draws the specified image. |
| drawText | Draws the specified text. |
| destroy | Destroy all allocated resources. |
| drawGraph | Draws the given graph using this canvas. |
Holds the html markup.
var $html
Gets the HTML that represents the canvas.
function getHtml()
Adds the specified string to the output.
function out( $string )
Draws the specified line.
function drawLine( $x0, $y0, $x1, $y1, $stroke = null, $dashed = false )
Draws the specified shape.
function drawShape( $shape, $x, $y, $w, $h, $stroke = null, $fill = null )
Draws the specified image.
function drawImage( $x, $y, $w, $h, $image, $aspect = true, $flipH = false, $flipV = false )
Draws the specified text.
function drawText( $string, $x, $y, $w, $h, $style )
Destroy all allocated resources.
function destroy()
Draws the given graph using this canvas.
public static function drawGraph( $graph, $clip = null, $bg = null )