Docs Navigation (Stage 04)›

Uniform PBD Layout

Space-filling mesh-inward fan seeding with global uniform scale search and exact convex SAT separation.

Key Takeaways

  • Built-in default layout strategy when node area encodes a quantitative metric that must remain globally comparable.
  • Applies a single global scale factor α ∈ [minContentScale, 1] across every item in the atlas.

Visual Mechanism

1. Phyllotaxis Golden-Angle Seed (137.5°)global α + SAT2. Exact Size Ratios · 0.0 px Convex Overlap
Seeds co-located nodes on a golden-angle Vogel spiral (137.5°) and binary-searches a single global scale α across the entire atlas so quantitative size ratios remain exact.

Factory Signature

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

Options & Defaults

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

Global Relative Size Preservation

When circle or glyph radius encodes an exact quantitative variable—such as citation count, market cap, or clip duration—shrinking one dense region locally would alter visual size comparisons across the canvas. Uniform PBD Layout fans co-located items into their open covering mesh triangles (createMeshInwardFanSeeder() + createSpaceFillingPbdRelaxer()), binary-searches the largest global α where the entire scene settles cleanly, and polishes coordinates via Separating Axis Theorem (SAT) Minimum Translation Vectors (0.0 px overlap).

(Note: General solver bounds such as minContentScale, nodePadding, and maxIterations can also be passed via layoutOptions on <SimplexTopicGraph />.)

Usage Example

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

<SimplexTopicGraph
  items={papers}
  layoutStrategy={createPbdUniformLayoutStrategy()}
  layoutOptions={{ nodePadding: 4 }}
/>;