weasel API - v0.8.0
    Preparing search index...

    Interface CreatePathEditingOverlayLayerOptions

    interface CreatePathEditingOverlayLayerOptions {
        style?: PathEditingOverlayStyle;
        getEditingId(): string | null;
        getMarquee?(): | { height: number; width: number; x: number; y: number }
        | null;
        getPose(id: string): Path | null;
        getSelectedAnchors?(): ReadonlySet<number>;
        isVisible?(chromeId: string): boolean;
    }
    Index

    Properties

    Optional styling overrides.

    Methods

    • Returns the id of the polygon currently in anchor-edit mode, or null when no node is being edited. Read each frame so live selection / edit-target changes show up without re-creating the layer.

      Returns string | null

    • In-flight anchor-marquee rect in world coords, or null. Drawn as a rubber band while marqueeAnchorsAction is dragging.

      Returns { height: number; width: number; x: number; y: number } | null

    • Flat indices of the selected anchors. Selected anchors render filled; unselected ones hollow — the standard vector-editor cue for "these are what the arrow keys and Delete will act on". Omit when the consumer has no anchor selection to show.

      Returns ReadonlySet<number>

    • Chrome-caps predicate. The layer asks 'path-edit.anchors' before drawing anything, so paint and the anchor hit-test in affordanceAt consult the same rule — otherwise a consumer that hides the chrome still gets grabbable invisible anchors, or vice versa. Omit to always draw when an edit target is set.

      Parameters

      • chromeId: string

      Returns boolean