galaxy-nodes
    Preparing search index...

    Interface GalaxySceneProps<NMeta, EMeta, CMeta>

    interface GalaxySceneProps<NMeta = unknown, EMeta = unknown, CMeta = unknown> {
        accessibility?: {
            describedBy?: string;
            keyShortcuts?: string;
            label?: string;
        };
        accessors?: GraphAccessors<NMeta, EMeta>;
        activeGroup: string | null;
        cameraCommand: CameraCommand | null;
        contextLimit?: number;
        dataset: GraphDataset<NMeta, EMeta, CMeta>;
        expectedSize?: number;
        galaxyMode: boolean;
        layout?: GraphLayoutInput;
        motionPreference?: GalaxyMotionPreference;
        nodeSizeScale?: number;
        onCameraViewChange?: (view: GalaxyCameraView) => void;
        onContextBudgetExceeded?: (budget: GalaxyRendererContextBudget) => void;
        onHoverEdge: (edge: GraphEdge<EMeta> | null) => void;
        onHoverNode: (node: GraphNode<NMeta> | null) => void;
        onHoverNodeAnchor?: (anchor: GalaxyNodeHoverAnchor | null) => void;
        onSceneFailure?: (failure: GalaxySceneFailure) => void;
        onSceneReady?: () => void;
        onSelectEdge: (edge: GraphEdge<EMeta> | null) => void;
        onSelectNode: (node: GraphNode<NMeta> | null) => void;
        paused?: boolean;
        planetSizing?: GalaxyPlanetSizingOptions;
        renderMode?: GalaxyRenderMode;
        selectedEdgeId: string | null;
        selectedNodeId: string | null;
        showClusters: boolean;
        theme?: GalaxyGraphTheme;
    }

    Type Parameters

    • NMeta = unknown
    • EMeta = unknown
    • CMeta = unknown

    Hierarchy

    Index

    Properties

    accessibility?: { describedBy?: string; keyShortcuts?: string; label?: string }
    accessors?: GraphAccessors<NMeta, EMeta>

    Visual accessors. They are now applied in place rather than rebuilding the scene.

    activeGroup: string | null

    Active group filter, or null to show everything.

    cameraCommand: CameraCommand | null
    contextLimit?: number

    Maximum active Galaxy renderer WebGL contexts allowed in this browser tab. Defaults to 12.

    expectedSize?: number

    Expected final element count (nodes + edges) for streamed/progressive datasets. The render tier is chosen up front from this hint so a graph that grows past the scale threshold mid-stream is never rebuilt from tubes to lines. Construction-time only; changing it after mount has no effect until the scene rebuilds.

    galaxyMode: boolean
    motionPreference?: GalaxyMotionPreference
    nodeSizeScale?: number

    Global multiplier for rendered node point sprites. Defaults to a slightly larger 1.22.

    onCameraViewChange?: (view: GalaxyCameraView) => void
    onContextBudgetExceeded?: (budget: GalaxyRendererContextBudget) => void
    onHoverEdge: (edge: GraphEdge<EMeta> | null) => void
    onHoverNode: (node: GraphNode<NMeta> | null) => void
    onHoverNodeAnchor?: (anchor: GalaxyNodeHoverAnchor | null) => void
    onSceneFailure?: (failure: GalaxySceneFailure) => void
    onSceneReady?: () => void
    onSelectEdge: (edge: GraphEdge<EMeta> | null) => void
    onSelectNode: (node: GraphNode<NMeta> | null) => void
    paused?: boolean
    renderMode?: GalaxyRenderMode

    Edge render tier. 'auto' (default) uses tube edges for small graphs and switches to lightweight line edges past the scale threshold; 'quality' forces tubes, 'scale' forces lines. Construction-time only.

    selectedEdgeId: string | null
    selectedNodeId: string | null
    showClusters: boolean