ShapeType Type

Specifies the shape type to be drawn. If "line", a line is drawn from (`x0`,`y0`) to (`x1`,`y1`) If "circle", a circle is drawn from ((`x0`+`x1`)/2, (`y0`+`y1`)/2)) with radius (|(`x0`+`x1`)/2 - `x0`|, |(`y0`+`y1`)/2 -`y0`)|) If "rect", a rectangle is drawn linking (`x0`,`y0`), (`x1`,`y0`), (`x1`,`y1`), (`x0`,`y1`), (`x0`,`y0`) If "path", draw a custom SVG path using `path`.

Union cases

Union case Description

Circle

Full Usage: Circle

Line

Full Usage: Line

Rectangle

Full Usage: Rectangle

SvgPath

Full Usage: SvgPath

Instance members

Instance member Description

this.Convert

Full Usage: this.Convert

Returns: obj
Returns: obj

Static members

Static member Description

ShapeType.convert

Full Usage: ShapeType.convert

Returns: ShapeType -> obj
Returns: ShapeType -> obj

ShapeType.toString

Full Usage: ShapeType.toString

Returns: ShapeType -> string
Returns: ShapeType -> string