MAIDR Documentation - v3.69.0
    Preparing search index...

    Minimal interface for an amCharts 5 visual sprite / graphic.

    In amCharts 5, geometry accessors (x(), y(), width(), height()) are methods returning pixels in the sprite's local coordinate space, and toGlobal() maps a local point to root-container coordinates. They are optional here because not every sprite exposes laid-out geometry.

    interface AmSprite {
        dom?: SVGElement;
        uid?: number;
        x?: () => number;
        y?: () => number;
        width?: () => number;
        height?: () => number;
        toGlobal?: (point: AmPoint) => AmPoint;
        globalBounds?: () => AmBounds;
    }
    Index

    Properties

    dom?: SVGElement
    uid?: number
    x?: () => number
    y?: () => number
    width?: () => number
    height?: () => number
    toGlobal?: (point: AmPoint) => AmPoint
    globalBounds?: () => AmBounds

    Global bounding box in CSS px; the reliable way to get a sprite's rect.