get whether the Form has received the Space's rendering context
Abstract arc drawing
center position
radius of the arc circle
start angle of the arc
end angle of the arc
an optional boolean value to specify if it should be drawn clockwise (false
) or counter-clockwise (true
). Default is clockwise.
Abstract circle drawing
usually a Group of 2 Pts, but it can also take an array of two numeric arrays [ [position], [size] ]
Draw multiple circles at once
an array of Groups that defines multiple circles
Set fill color (not implemented)
Set current fill style and without stroke.
fill color which can be as color, gradient, or pattern. (See canvas documentation)
Abstract font setting
either a number to specify font-size, or a Font
object to specify all font properties
Optional font-weight string such as "bold"
Optional font-style string such as "italic"
Optional line-height number suchas 1.5
Optional font-family such as "Helvetica, sans-serif"
Abstract a line or polyline drawing
a Group of multiple Pts, or an array of multiple numeric arrays
Draw multiple lines at once
An array of Groups of Pts
Abstract point drawing
a Pt object
radius of the point. Default is 5.
The shape of the point. Defaults to "square", but it can be "circle" or a custom shape function in your own implementation.
Draw multiple points at once
an array of Pt or an array of number arrays
radius of the point. Default is 5.
The shape of the point. Defaults to "square", but it can be "circle" or a custom shape function in your own implementation.
Abstract polygon drawing
a Group of multiple Pts, or an array of multiple numeric arrays
Draw multiple polygons at once
An array of Groups of Pts
Abstract rectangle drawing
usually a Group of 2 Pts specifying the top-left and bottom-right positions. Alternatively it can be an array of numeric arrays.
Draw multiple rectangles at once
An array of Groups of Pts
Abstract reset style
Draw multiple squares at once
an array of Groups that defines multiple circles
Set stroke style (not implemented)
Set current stroke style and without fill.
stroke color which can be as color, gradient, or pattern. (See canvas documentation
Abstract text rendering
Check number of items in a Group against a required number
Generated using TypeDoc
VisualForm is an abstract class that represents a form that can be used to express Pts visually. For example, CanvasForm is an implementation of VisualForm that draws on CanvasSpace which represents a html canvas.