Draws a cubic or quadratic bezier
Draws one or more circles. Will draw outline/fill depending on
whether strokeStyle
or fillStyle
params are present in the drawing options.
Draws a line between all the given points. If a fillStyle is specified, it will be filled.
Creates a new HTML IMG element with a snapshot of the canvas. Element will need to be inserted into the document.
Draws filled circle(s) at provided point(s)
Creates and returns an immutable drawing stack for a context
Draws one or more ellipses. Will draw outline/fill depending on
whether strokeStyle
or fillStyle
params are present in the drawing options.
Gets a 2d drawing context from canvas element or query, or throws an error
Draws one or more lines.
Draws a curved line through a set of points
Makes a helper object that wraps together a bunch of drawing functions that all use the same drawing context
Draws one or more paths. supported paths are quadratic beziers and lines.
Draws labels for a set of points
Draws one or more rectangles.
Draws a block of text. Each array item is considered a line.
Draws an aligned text block
Returns the width of text
. Rounds number up to nearest multiple if provided. If
text is empty or undefined, 0 is returned.
Returns point
with the canvas's translation matrix applied
Draws one or more triangles
Drawing options
A drawing stack (immutable)
A drawing stack operation
Draws one or more arcs.