Skip to main content

ImperativeDeckController

from v9.4status Work-in-Progress

ImperativeDeckController exposes imperative navigation for the currently mounted trace deck target.

import {
ImperativeDeckController,
imperativeDeckController
} from '@deck.gl-community/trace-layers/layers';

Use it for

  • host-owned search result navigation
  • breadcrumb jumps
  • deep-link restore after a graph is mounted
  • custom shells that need trace-aware imperative viewport commands

The singleton imperativeDeckController is useful when one shared mounted viewer owns navigation. Use an instance when a host needs explicit ownership.

Target

ImperativeDeckControllerTarget is the adapter a mounted deck surface gives to the controller. Keep that target lifecycle aligned with the mounted viewer; do not retain stale targets across unmounts.

See DeckTraceGraph for the higher-level React handle.