Field Notes
    Preparing search index...

    Interface LocalAwarenessHost

    The viewport capabilities the publisher reads; Viewport satisfies it.

    interface LocalAwarenessHost {
        camera: { screenToWorld(screen: Point): Point };
        domLayer: HTMLElement;
        toolManager: {
            activeTool: { name: string } | null;
            onChange(listener: (name: string) => void): () => void;
        };
        getSelectedIds(): string[];
        onSelectionChange(listener: () => void): () => void;
    }
    Index
    camera: { screenToWorld(screen: Point): Point }
    domLayer: HTMLElement

    The pointer listener attaches to domLayer.parentElement (the wrapper).

    toolManager: {
        activeTool: { name: string } | null;
        onChange(listener: (name: string) => void): () => void;
    }