Fixed Grid Lattice
Pins an exact (cols × rows) equilateral vertex grid across viewport resizes.
- Stage 01: Mesh Triangulation
- Built-In Preset
- 2 min read
- Updated 2026-11-15
Key Takeaways
- Use when your visualization requires a constant, predictable vertex count K = cols × rows across all screen sizes.
- Ideal for static SSR exports, side-by-side cohort comparisons, and fixed taxonomy boards.
Visual Mechanism
Factory Signature
@simplex-viz/core, @simplex-viz/svg, and @simplex-viz/reactStage 01 Overview →createFixedLatticeMeshStrategy<TItem>(config: FixedLatticeConfig): SimplexMeshStrategy<TItem>Options & Defaults
number
Exact number of columns in the staggered equilateral grid.
number
Exact number of rows in the staggered equilateral grid.
'auto' | 'horizontal' | 'vertical'
Aligns the lattice major axis with the viewport aspect ratio when 'auto', or locks horizontal/vertical bases.
boolean
Selects staggered parity of the first row/column.
number | undefined
Outer viewport margin in pixels when fitting side length.
number | undefined
Pins an exact world-space edge length instead of scaling to viewport.
Deterministic Fixed Topology
Whereas Adaptive Hex Lattice adjusts vertex count dynamically, Fixed Grid Lattice locks the exact planar graph (cols × rows) across every resize. By default (orientation: 'auto'), the grid aligns its longer axis with the canvas aspect ratio (landscape vs. mobile portrait) while scaling the equilateral side length s to fill the container—or keeping s constant when sideLength is explicitly specified.
Usage Example
import {
SimplexTopicGraph,
createFixedLatticeMeshStrategy,
} from '@simplex-viz/react';
// Exact 3 × 3 = 9 topic vertices in horizontal 60° rows:
const fixedNine = createFixedLatticeMeshStrategy({
cols: 3,
rows: 3,
orientation: 'horizontal',
wideFirst: true,
});
<SimplexTopicGraph items={items} meshStrategy={fixedNine} />;