Warm-Start PBD Layout
Reuses settled coordinates across live mutations with space-filling PBD relaxation and uniform scale ratios.
- Stage 04: Composable Layout
- Built-In Preset
- 1 min read
- Updated 2026-11-15
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
Factory Signature
Re-exported from
@simplex-viz/core, @simplex-viz/svg, and @simplex-viz/reactStage 04 Overview →createWarmStartPbdLayoutStrategy(): SimplexLayoutStrategyOptions & 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()}
/>;