Key Takeaways
- Added chronological timeline playback across @simplex-viz/core, @simplex-viz/svg, and @simplex-viz/react with built-in HUD controls and useSimplexTimeline().
- Introduced createFinalSeededClusteringStrategy, createFinalSeededLayoutStrategy (pinned and adaptive scaling), and configurable emptyClusterBehavior ('normal' | 'dim' | 'hide').
- Added formatTagLabel, badgeOptions, item-driven N-gon getShape, composable click/hover/wheel handlers, viewport-aware cluster count restoration, and automatic webfont relayout.
SimplexViz 0.8.0 is now ready across @simplex-viz/core, @simplex-viz/svg, and @simplex-viz/react. This release brings first-class chronological timeline playback with path-independent cluster and layout stability, alongside a wave of ergonomic preset, typography, and interaction upgrades driven by Issues #3–#11.
Chronological Timeline Playback & Three Independent Stability Axes (#5, #8)
Timestamped datasets—publication corpora, software releases, or decades of film history—can now be stepped and replayed directly on the 60° simplex mesh via a single timeline option (SimplexSvgController and <SimplexTopicGraph />) or headlessly through SimplexTimelineController / createSimplexTimeline() and the React useSimplexTimeline() hook:
- Cluster Stability (
autoFinalSeed/createFinalSeededClusteringStrategy): Enabled by default (autoFinalSeed: true), pinning the canonical full-corpus clusters, mesh vertices, UIDs, and OKLab hues across frames0..Nwhile still re-seeding cleanly on viewport resizes. - Item Position & Scale Stability (
autoFinalSeedLayout/createFinalSeededLayoutStrategy): Choosefalsefor dynamic per-frame layout,'pinned'to lock every item’s canonical full-corpus(x, y)coordinate and final scale with zero drift, or'adaptive'to keep canonical coordinates pinned while symmetrically expanding sparse early-frame items up to1.0xunder exact SAT0.0 pxoverlap checks. - Future / Empty Cluster Visibility (
emptyClusterBehavior): Configure'normal','dim', or'hide'for0-item clusters—both insidetimelineand standalone viaemptyClusterBehavior/setEmptyClusterBehavior().
You can explore this live on the Vega Cinema (1928–1976) example (configured with autoFinalSeedLayout: 'adaptive' and emptyClusterBehavior: 'dim') as well as in the Interactive Playground, which now exposes live toggles for every timeline, layout, and cluster visibility option.
Preset Ergonomics: formatTagLabel, badgeOptions & N-Gon getShape (#4, #7, #11)
Built-in presets can now be tailored deeply without writing a custom VisualResolver or SvgNodeView:
- Decoupled Tag Display Labels (
formatTagLabel): Keep canonical slug IDs for clustering and matching while rendering human-readable labels across cluster badges, breadcrumbs, semantic zoom subclusters, and hover tooltips. - Cluster Badge Formatting (
badgeOptions): Hide internalT1/T2prefix codes (showCode: false), apply word-aware truncation (maxTitleChars), or supply a customformatTitlecallback. - Fixed & Item-Driven N-Gon Shapes (
getShape): Bind items globally or per category to named polygons or arbitrary regular N-gons (sides >= 3,{ sides, rotationRad }) with exact convex SAT hulls that remain invariant across1:4drill-down levels.
Composable Interactions, Viewport Resize Restoration & Webfont Relayout (#3, #6, #9)
- Uniform Compose-vs-Consume Handlers: Target-specific click callbacks (
onContentClick,onClusterClick,onTriangleClick,onBackgroundClick),onLeftClick,onRightClick, hover handlers, and customonWheelall compose with built-in drill-down/focus/tooltips when returningvoid/false, and suppress built-in defaults when returningtrue(onWheel="none"no longer callspreventDefault()). - Viewport-Aware Cluster Count Restoration:
estimateClusterCount(ctx)andClusteringStrategyContextnow receive explicitreason('initial' | 'items' | 'viewport' | 'mesh' | 'strategy') and viewport dimensions so shrinking and expanding a container restores the expected cluster count cleanly. - Automatic Webfont Relayout (
relayoutOnFontLoad):@simplex-viz/svgand@simplex-viz/reactautomatically invalidate cached SVGgetBBox()hulls and re-solve layout once webfonts finish loading (document.fonts.ready/loadingdone), with an imperativerelayout()method available across all three packages.