ixfx
    Preparing search index...

    Namespace Drawing

    Functions

    arc

    Draws one or more arcs.

    bezier

    Draws a cubic or quadratic bezier

    circle

    Draws one or more circles. Will draw outline/fill depending on whether strokeStyle or fillStyle params are present in the drawing options.

    connectedPoints

    Draws a line between all the given points. If a fillStyle is specified, it will be filled.

    copyToImg

    Creates a new HTML IMG element with a snapshot of the canvas. Element will need to be inserted into the document.

    dot

    Draws filled circle(s) at provided point(s)

    drawingStack

    Creates and returns an immutable drawing stack for a context

    ellipse

    Draws one or more ellipses. Will draw outline/fill depending on whether strokeStyle or fillStyle params are present in the drawing options.

    getContext

    Gets a 2d drawing context from canvas element or query, or throws an error

    line

    Draws one or more lines.

    lineThroughPoints

    Draws a curved line through a set of points

    makeHelper

    Makes a helper object that wraps together a bunch of drawing functions that all use the same drawing context

    paths

    Draws one or more paths. supported paths are quadratic beziers and lines.

    pointLabels

    Draws labels for a set of points

    rect

    Draws one or more rectangles.

    textBlock

    Draws a block of text. Each array item is considered a line.

    textBlockAligned

    Draws an aligned text block

    textHeight
    textRect
    textWidth

    Returns the width of text. Rounds number up to nearest multiple if provided. If text is empty or undefined, 0 is returned.

    translatePoint

    Returns point with the canvas's translation matrix applied

    triangle

    Draws one or more triangles

    Type Aliases

    CanvasContextQuery
    ConnectedPointsOptions
    DotOpts
    DrawingHelper
    DrawingOpts

    Drawing options

    DrawingStack

    A drawing stack (immutable)

    HorizAlign
    LineOpts
    RectOpts
    StackOp

    A drawing stack operation

    VertAlign