DataExplorerProps
Defined in: DataExplorer.tsx:143
The props of DataExplorer. F is your focus type and D your items’ data type; both are inferred from source.
Type Parameters
Section titled “Type Parameters”F
D = unknown
Properties
Section titled “Properties”background?
Section titled “background?”
optionalbackground?:ExplorerBackground
Defined in: DataExplorer.tsx:208
US071 — the background behind the scene (today: the dot grid). Changes apply live.
customViews?
Section titled “customViews?”
optionalcustomViews?:ExplorerCustomViews
Defined in: DataExplorer.tsx:194
US071 — how many items custom renderers may draw at once.
edges?
Section titled “edges?”
optionaledges?:ExplorerEdges
Defined in: DataExplorer.tsx:212
US071 — draw the scene’s edges, styled per kind. Off by default. Changes apply live.
effects?
Section titled “effects?”
optionaleffects?:ExplorerEffects
Defined in: DataExplorer.tsx:210
US071 — switch the built-in effects on or off. Each defaults to on. Changes apply live.
focus:
F|null
Defined in: DataExplorer.tsx:150
The URL’s own current focus — read once at mount to resolve the initial scene, and watched
afterward only to reconcile a navigation this component didn’t itself cause (Back/Forward, a
pasted deep link) via the scene stack’s jumpTo.
limits?
Section titled “limits?”
optionallimits?:ExplorerLimits
Defined in: DataExplorer.tsx:198
How far the viewer may pan and zoom, so the scene cannot be lost off screen or shrunk to
nothing. Each limit is on by default; false turns one off. A change applies from the next
move of the camera.
onBackgroundClick?
Section titled “onBackgroundClick?”
optionalonBackgroundClick?: (event) =>void
Defined in: DataExplorer.tsx:181
US071 — a confirmed single click or tap on empty space. onNodeSelect(null) fires as well.
Parameters
Section titled “Parameters”Returns
Section titled “Returns”void
onCameraChange?
Section titled “onCameraChange?”
optionalonCameraChange?: (camera) =>void
Defined in: DataExplorer.tsx:179
US071 — the camera moved. At most once per drawn frame, and only while the canvas is up.
Parameters
Section titled “Parameters”camera
Section titled “camera”Returns
Section titled “Returns”void
onEnter?
Section titled “onEnter?”
optionalonEnter?: (event) =>void
Defined in: DataExplorer.tsx:175
US071 — the viewer entered a scene, by any route. Fires after onLeave for the scene left.
Parameters
Section titled “Parameters”ExplorerSceneEvent<F, D>
Returns
Section titled “Returns”void
onLeave?
Section titled “onLeave?”
optionalonLeave?: (event) =>void
Defined in: DataExplorer.tsx:177
US071 — the viewer left a scene. Fires before onEnter for the scene arrived at.
Parameters
Section titled “Parameters”ExplorerSceneEvent<F, D>
Returns
Section titled “Returns”void
onNodeActivate?
Section titled “onNodeActivate?”
optionalonNodeActivate?: (event) =>void
Defined in: DataExplorer.tsx:173
US071 — a double-click or double-tap on an item, or Enter on its outline entry. Call
event.preventDefault() to stop the explorer entering it (or zooming in).
Parameters
Section titled “Parameters”ExplorerActivateEvent<F, D>
Returns
Section titled “Returns”void
onNodeHover?
Section titled “onNodeHover?”
optionalonNodeHover?: (item) =>void
Defined in: DataExplorer.tsx:170
US071 — the item under the mouse, or null when it leaves every item. Mouse only (touch has
no hover), and only when the hovered item changes.
Parameters
Section titled “Parameters”ExplorerItem<F, D> | null
Returns
Section titled “Returns”void
onNodeSelect?
Section titled “onNodeSelect?”
optionalonNodeSelect?: (item) =>void
Defined in: DataExplorer.tsx:167
A single click/tap on a node, confirmed — fires only once it’s clear a second tap isn’t
following (the standard click/dblclick wait, DOUBLE_TAP_MS in gestures.ts), and never for
a double-click (that drills instead — see this file’s own gesture wiring below). null when
a click/tap on empty space clears the selection. Deliberately just a hook: this component
itself only tracks the Pixi selection-ring highlight from it; what a click means (open a
detail panel, whatever) is entirely the composing page’s call.
Parameters
Section titled “Parameters”ExplorerItem<F, D> | null
Returns
Section titled “Returns”void
onSceneChange?
Section titled “onSceneChange?”
optionalonSceneChange?: (scene) =>void
Defined in: DataExplorer.tsx:158
Fired on every scene swap, immediately — unlike onSettle, never debounced. For chrome that
should track what’s on screen right now (the breadcrumb); cheap because it fires once per
scene, not once per frame. Carries the scene itself so the caller can work out where it sits
in the hierarchy without waiting for the URL to settle.
Parameters
Section titled “Parameters”F | null
heading
Section titled “heading”string
ExplorerScene<F, D>
Returns
Section titled “Returns”void
onSettle?
Section titled “onSettle?”
optionalonSettle?: (focus) =>void
Defined in: DataExplorer.tsx:153
Called once the camera comes to rest on a new scene: store it (state or URL) and pass it back
as focus. Optional (US072 change 7): without it the explorer simply keeps its own place.
Parameters
Section titled “Parameters”F | null
Returns
Section titled “Returns”void
onTextureError?
Section titled “onTextureError?”
optionalonTextureError?: (event) =>void
Defined in: DataExplorer.tsx:184
US071 — an item texture could not be loaded or drawn (often a host without CORS headers). Once per URL; the item keeps its plain shape.
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”void
palette?
Section titled “palette?”
optionalpalette?:ExplorerPalette
Defined in: DataExplorer.tsx:203
US070 Step 4 — the canvas colours. Pass a new object when they change (a light/dark or colour-scheme switch) and the live canvas re-tints, with no new scene and no camera reset.
presence?
Section titled “presence?”
optionalpresence?:ExplorerPresence
Defined in: DataExplorer.tsx:220
How present each item is, from 0 to 1, by id (undefined is 1). Presence scales and fades an
item where it stands: the layout is untouched, so a time slider or a filter can change it on
every frame without anything moving. At 0 an item is a small, faint, unlabelled ghost that can
still be selected and entered. Pass a new function when the answer changes and items ease to
it (at once under reduced motion). Changes apply live.
optionalramp?:RampColours
Defined in: DataExplorer.tsx:206
The colour ramp item ramp positions are drawn on. Compared by value; a change re-tints the
live canvas, with no new scene and no camera reset.
renderCanvasUnavailable?
Section titled “renderCanvasUnavailable?”
optionalrenderCanvasUnavailable?: () =>ReactNode
Defined in: DataExplorer.tsx:226
Shown above the list fallback when the canvas cannot start (no WebGL).
Returns
Section titled “Returns”ReactNode
renderError?
Section titled “renderError?”
optionalrenderError?: () =>ReactNode
Defined in: DataExplorer.tsx:224
Shown when the first scene fails to load.
Returns
Section titled “Returns”ReactNode
renderers?
Section titled “renderers?”
optionalrenderers?: () =>Promise<RenderersModule| {default:RenderersModule; }>
Defined in: DataExplorer.tsx:192
US071 — custom renderers, keyed by item kind, loaded lazily the way the canvas itself is:
renderers={() => import("./my-renderers")}. Called once, when the canvas starts. The module
(and PixiJS) stay out of your page’s entry chunk as long as it is only reached through this.
Returns
Section titled “Returns”Promise<RenderersModule | { default: RenderersModule; }>
renderLoading?
Section titled “renderLoading?”
optionalrenderLoading?: () =>ReactNode
Defined in: DataExplorer.tsx:222
Shown while the first scene loads.
Returns
Section titled “Returns”ReactNode
source
Section titled “source”source:
SceneSource<F,D>
Defined in: DataExplorer.tsx:146
Owned by the caller, so its cache outlives this component being torn down and rebuilt by a re-render above it. Pass a new source to start over with an empty cache.
stats?
Section titled “stats?”
optionalstats?:boolean
Defined in: DataExplorer.tsx:200
Shows a small overlay of draw time, frame rate and pool sizes. Read once, at mount.
textures?
Section titled “textures?”
optionaltextures?:ExplorerTextures
Defined in: DataExplorer.tsx:186
US071 — item images: the size they start at, and how many are held.