@antadesign/plot
    Preparing search index...

    Interface PlotSurfacePropsUnreviewed

    Declarative surface props; controllers still own composition, drawing, and interaction policy.

    interface PlotSurfaceProps {
        className?: string;
        style?: CSSProperties;
        children?: ReactNode;
        id?: string;
        title?: string;
        slot?: string;
        tabIndex?: number;
        key?: string | number | null;
        presentation?: PlotSurfacePresentation | null;
        canvasOwner?: "worker";
        inputScope?: "parent";
        cursor?: string;
        onMeasureChange?: (event: CustomEvent<BoxMeasurementChange>) => void;
        onContextChange?: (event: CustomEvent<BoxContextChange>) => void;
        onWheelInput?: (event: CustomEvent<CaptureWheelInput>) => void;
        onPointerInput?: (event: CustomEvent<CapturePointerInput>) => void;
        onPlotMove?: (event: CustomEvent<PlotSurfaceMouseInput>) => void;
        onPlotLeave?: (event: CustomEvent<void>) => void;
        onPlotClick?: (event: CustomEvent<PlotSurfaceMouseInput>) => void;
        onZoomRequest?: (
            event: CustomEvent<
                PlotSurfaceMouseInput & { action: "in"
                | "out"
                | "reset" },
            >,
        ) => void;
        onCanvasTransfer?: (
            event: CustomEvent<PlotSurfaceCanvases & { scale: number }>,
        ) => void;
        onSurfaceError?: (event: CustomEvent<{ message: string }>) => void;
        "wheel-capture"?: string;
        "wheel-modifier"?: "none" | "ctrl" | "any";
        "wheel-activation"?: "hover" | "settled";
        "wheel-delay"?: string;
        "wheel-tolerance"?: string;
        "wheel-reset-on-move"?: string;
        "pointer-capture"?: "mouse";
        "pointer-buttons"?: string;
        "pointer-threshold"?: string;
        "pointer-modifier"?: "ctrl" | "any";
        [key: `data-${string}`]: unknown;
        [key: `aria-${string}`]: unknown;
    }

    Hierarchy

    • BaseProps
    • CaptureAttributes
      • PlotSurfaceProps

    Indexable

    • [key: `data-${string}`]: unknown

      Any data-* attribute is forwarded to the rendered element.

    • [key: `aria-${string}`]: unknown

      Any aria-* attribute is forwarded to the rendered element.

    Index
    className?: string

    Adds CSS classes to the root element and preserves its existing classes.

    style?: CSSProperties

    Inline CSS styles on the root element.

    children?: ReactNode

    Content to render in place of any default content.

    id?: string

    HTML id attribute.

    title?: string

    HTML title attribute, shown as a browser tooltip on hover.

    slot?: string

    Named slot in a parent web component, such as slot="header" in a <Dialog>.

    tabIndex?: number

    Tab order. Set to -1 to skip the element when tabbing.

    key?: string | number | null

    React/Preact reconciliation key when rendered inside a list. Consumed by the JSX runtime (not forwarded as a DOM attribute).

    presentation?: PlotSurfacePresentation | null
    canvasOwner?: "worker"

    Select worker ownership before mounting. Omit for imperative main-thread drawing.

    inputScope?: "parent"

    Observe bubbling input from host-owned siblings, including following tooltips.

    cursor?: string
    onMeasureChange?: (event: CustomEvent<BoxMeasurementChange>) => void
    onContextChange?: (event: CustomEvent<BoxContextChange>) => void
    onWheelInput?: (event: CustomEvent<CaptureWheelInput>) => void
    onPointerInput?: (event: CustomEvent<CapturePointerInput>) => void
    onPlotMove?: (event: CustomEvent<PlotSurfaceMouseInput>) => void
    onPlotLeave?: (event: CustomEvent<void>) => void
    onPlotClick?: (event: CustomEvent<PlotSurfaceMouseInput>) => void
    onZoomRequest?: (
        event: CustomEvent<
            PlotSurfaceMouseInput & { action: "in"
            | "out"
            | "reset" },
        >,
    ) => void
    onCanvasTransfer?: (
        event: CustomEvent<PlotSurfaceCanvases & { scale: number }>,
    ) => void
    onSurfaceError?: (event: CustomEvent<{ message: string }>) => void
    "wheel-capture"?: string = ...
    "wheel-modifier"?: "none" | "ctrl" | "any" = settings.wheel_modifier
    "wheel-activation"?: "hover" | "settled" = settings.wheel_activation
    "wheel-delay"?: string = ...
    "wheel-tolerance"?: string = ...
    "wheel-reset-on-move"?: string = ...
    "pointer-capture"?: "mouse" = ...
    "pointer-buttons"?: string = ...
    "pointer-threshold"?: string = ...
    "pointer-modifier"?: "ctrl" | "any" = settings.pointer_modifier