PiDraw API
    Preparing search index...

    Interface IParametricConfig

    A parametric curve: the point (x(t), y(t)) for t in the domain. The functions are written as text with the only variable t (cos(t), t^2/4): see NumExp for what they can contain.

    The domain is from 0 to 2π by default; samples are per unit of t, and by default there are 64 at least, or one every 8 pixels of the extent of the domain.

    interface IParametricConfig {
        asymptoteThreshold?: number;
        domain?: Domain;
        expressions: { x: string; y: string };
        maxDepth?: number;
        samples?: number;
        tolerance?: number;
    }

    Hierarchy (View Summary)

    Index
    asymptoteThreshold?: number

    Where a curve is taken for an asymptote, in heights of the graph: a point farther than this from the origin is not drawn, and the curve is cut where it jumps farther than this. 10 by default.

    domain?: Domain

    The values of the variable that are drawn. The default is the one of each figure.

    expressions: { x: string; y: string }
    maxDepth?: number

    How many times an interval may be cut in two to follow a curve that bends. 6 by default.

    samples?: number

    How many samples per unit of the variable the curve starts from, before it is refined where it bends.

    tolerance?: number

    How far from the curve the drawn line may be, in pixels. 0.5 by default.