MAIDR JavaScript API
    Preparing search index...

    A run of points in dot coordinates, taken from one SVG shape.

    interface DotRing {
        points: DotPoint[];
        closed: boolean;
        parts?: { points: DotPoint[]; closed: boolean }[];
    }
    Index

    Properties

    Properties

    points: DotPoint[]

    The shape's outline, sampled densely enough that consecutive points land on adjacent pins.

    closed: boolean

    True when the last point joins back to the first, which decides whether the shape can be filled.

    parts?: { points: DotPoint[]; closed: boolean }[]

    The pieces of a shape drawn in more than one piece, when it is.

    One SVG path can hold several subpaths that do not touch: an error bar's two caps and its stem, a box plot's box and its whiskers, a region and its islands. points then runs through all of them, for measuring, and these say where the pen was lifted -- drawn as one run, the pieces come back joined by straight lines the chart never drew, which at whole-plot zoom land inside the mark but a few steps in cut across it as a slash.