Key Takeaways
- Fixed ESM Node16/NodeNext .d.ts module resolution across all three packages with build-time enforcement and automated tsc verification.
- Added createSubspaceZoomStrategy, discriminative cluster labeling helpers, and single-triangle leaf focus ('triangle-focus') with directly clickable items.
- Upgraded aspect-aligned triangulation (resolveDefaultInnerPadding), space-filling PBD layouts, and WCAG-AA cluster surface contrast calibration.
SimplexViz 0.7.0 is now published on npm across @simplex-viz/core, @simplex-viz/svg, and @simplex-viz/react. This release combines a critical TypeScript packaging fix for strict ESM consumers with representation-agnostic subspace zoom, discriminative cluster labeling, and cleaner full-canvas layouts.
Fixing ESM Node16 / NodeNext .d.ts Resolution (#2)
TypeScript projects configured with "moduleResolution": "node16" or "nodenext" require explicit .js file extensions on relative imports and re-exports inside emitted declaration files. Previously, extensionless relative specifiers in bundled .d.ts files caused strict TypeScript consumers to degrade cross-package re-exports to any.
In 0.7.0, this is solved structurally and guarded against regression:
- Every relative
importandexport *across@simplex-viz/core,@simplex-viz/svg, and@simplex-viz/reactnow uses explicit.jsspecifiers. - Each package’s
tsconfig.build.jsonenforces"module": "NodeNext"and"moduleResolution": "NodeNext"at build time. - A dedicated Vitest integration suite (
nodenextResolution.test.ts) compiles realistic consumer programs against the built package declarations under"moduleResolution": "nodenext"with bothskipLibCheck: trueandskipLibCheck: false.
Local Subspace Refinement & Discriminative Labeling
Drilling into a dense triangle often surfaces items that already share their parent cluster’s dominant baseline traits. createSubspaceZoomStrategy projects out locally constant dimensions (σ_local ≈ 0) across embeddings, pairwise similarity kernels, and tags (minItemsForRecluster: 6, blendFactor: 0.35), partitioning the 6 sub-vertices strictly along traits that remain discriminative inside that cell.
Pairings with assignDiscriminativeClusterLabels, resolveDiscriminativeClusterLabel, and disambiguatePeerClusterTitle ensure outer corner badges retain two-line parentContextLabel breadcrumbs while midpoint clusters highlight cross-cutting bridges without duplicate titles.
Barycentric 1:4 & Semantic 3→6 Drill-Down
Midpoints split ▲ into 3▲ + 1▼ preserving exact orientation
1-Ring Incident Cluster Star
Clicking a cluster focuses all incident triangles + neighbors
Leaf Triangle Focus, Aspect-Aligned Meshes & Space-Filling PBD
- Single-Triangle Leaf Focus (
'triangle-focus'): Once a triangle reaches full scale (stopWhenFullScale: true,leafTriangleFocus: true), clicking its open background focuses that single un-subdivided leaf triangle (focusableTriangleIndices), while covered content items remain directly clickable rather than passing pointers through. - Uniform 1-Ring
'incident-star'Drill-Down: Both primary and intermediate cluster foci resolve to lattice-conformal 1-ring stars with continuous barycentric simplex-distance item dimming (opacity = 0.32 + 0.68 · w̃₀). - Aspect-Aligned Triangulation & Space-Filling Presets:
buildSimplexMeshandcreateAdaptiveHexMeshStrategyalign lattice orientation to viewport proportions with adaptiveinnerPadding(resolveDefaultInnerPadding), whilecreatePbdUniformLayoutStrategy,createWarmStartPbdLayoutStrategy, andcreateLocalAdaptiveLayoutStrategycombine inward-fan seeding with space-filling PBD relaxation. - WCAG-AA Surface Contrast:
BadgeClusterSvgViewandClusterAnchorSvgViewcalibrate cluster surface contrast automatically via perceptualcolorContrastalongside cleaner single-node selection without automatic nearest-neighbor emphasis.