Docs Navigation (Stage 04)›

Warm-Start PBD Layout

Reuses settled coordinates across live mutations with space-filling PBD relaxation and uniform scale ratios.

Key Takeaways

  • Ideal for streaming dashboards and interactive editors where items are inserted or deleted frequently.
  • Preserves global uniform scale ratios while anchoring existing item IDs to their previously settled coordinates.

Visual Mechanism

Frame t (Settled Coordinates Cached)warm-start MTVFrame t+1 (Minimal Local Shift on Insert)
Carries settled world coordinates (x, y) from frame t into frame t + 1 during live item mutations so existing nodes settle locally with minimal displacement.

Factory Signature

Re-exported from @simplex-viz/core, @simplex-viz/svg, and @simplex-viz/reactStage 04 Overview →
createWarmStartPbdLayoutStrategy(): SimplexLayoutStrategy

Options & Defaults

This preset strategy requires zero configuration parameters—invoke createWarmStartPbdLayoutStrategy() directly, or compose custom building blocks via createComposedLayoutStrategy(...).

Minimal Node Displacement Across Live Mutations

Re-seeding every item from scratch when a single new record arrives can cause unnecessary local swaps among neighboring nodes. Warm-Start PBD Layout wraps createMeshInwardFanSeeder() with withWarmStartSeeder(...) and pairs it with createSpaceFillingPbdRelaxer(): existing item IDs start relaxation from their exact previous-frame (x, y) coordinates, so only nodes directly displaced by the newcomer shift smoothly out of the way.

Usage Example

import {
  SimplexTopicGraph,
  createIncrementalAnchorClusteringStrategy,
  createWarmStartPbdLayoutStrategy,
} from '@simplex-viz/react';

<SimplexTopicGraph
  items={streamingItems}
  clusteringStrategy={createIncrementalAnchorClusteringStrategy()}
  layoutStrategy={createWarmStartPbdLayoutStrategy()}
/>;