PiDraw API
    Preparing search index...

    Interface IFollowConfig

    A point that follows the mouse along a figure, and the tangent of the figure at that point.

    The figure must be one that a point can follow (followable): a line, a circle, a plot, a parametric curve.

    interface IFollowConfig {
        at?: XY;
        follow: AbstractFigure;
        size?: number;
        tangent?: boolean;
    }
    Index
    at?: XY

    Where the point is before the mouse moves, in pixels (a Point fits): the point of the figure that is the closest to it. By default the origin of the coordinate system.

    The figure the point follows.

    size?: number

    The diameter of the point, in pixels. 10 by default.

    tangent?: boolean

    Draw the tangent of the figure at the point. Not drawn by default.