Repository navigation
Releases
Releases · ghackenberg/simplex-viz
SimplexViz v1.0.0
Changed (Stable v1.0.0 Architectural Consolidation)
@simplex-viz/core& New@simplex-viz/core/domSubpath:- Added the dedicated
@simplex-viz/core/domsubpath exporting zero-dependency, structurally typed host/browser helpers (resolveSimplexContainer,measureSimplexContainer,ensureSimplexContainerPositioned,observeSimplexContainerResize,resolveSimplexReducedMotion,subscribeSimplexReducedMotionMedia,subscribeSimplexFontLoadRelayout,createSimplexSrAnnouncer,computeSimplexZoomAnnouncementSignature,formatSimplexInteractiveTargetAriaLabel,formatSimplexZoomLevelAnnouncement,applySimplexTooltipTheme,computeSimplexTooltipCoords,positionSimplexTooltipElement,buildSimplexTooltipContentModel,formatSimplexTooltipText,resolveSimplexPinchDrillTarget,applySimplexPinchDrillTarget,resolveSimplexCursorForPoint,stepSimplexDrillDownWheelPinch,normalizeSimplexMarqueeRect,dispatchSimplexDefaultLeftClick,isSameSimplexKeyboardTarget,toSimplexKeyboardFocusTargetRef,resolveNextSimplexKeyboardFocusIndex,isSimplexHoverEventConsumed,zoomSimplexViewportByFactor,toSimplexNormalizedPointerEvent). Because all interfaces are structural (SimplexDomElementLike,SimplexDomDocumentLike,SimplexDomWindowLike),@simplex-viz/coreroot and@simplex-viz/core/workerremain strictlyES2022/ DOM-free andskipLibCheck: falsecompatible. - Extracted shared DOM-free utilities into
@simplex-viz/core(extractSimplexItemLabel,truncateSimplexBadgeTitle,resolveClusterBadgeTitle,resolveGeometricShapeSpec,NAMED_POLYGON_SIDES,getHexRelativeLuminance,resolveClusterSurfaceColors,hexWithAlpha,estimateSimplexTextWidth,createSimplexTimelineNotifier,areSimplexMeshOptionsEqual,areSimplexLayoutOptionsEqual,areSimplexTimelineOptionsEqual,normalizeTimelineLayoutScaleMode,wrapClusteringStrategyForTimeline,wrapLayoutStrategyForTimeline).
- Added the dedicated
@simplex-viz/svg&@simplex-viz/canvas:- Deduplicated container resolution/resizing,
prefers-reduced-motionmedia subscriptions, webfont relayout subscriptions, screen-reader announcers & ARIA target formatters, tooltip modeling/edge-flipping, cursor & pinch-drill resolution, left-click dispatching, keyboard focus stepping, timeline strategy wrapping/notifiers, OKLab badge surface palettes, shape-spec resolution, and SSR/Canvas text width estimation onto@simplex-viz/core+@simplex-viz/core/dom, while preserving strict package independence (@simplex-viz/canvashas zero dependency on@simplex-viz/svg).
- Deduplicated container resolution/resizing,
@simplex-viz/react&@simplex-viz/wc:- Unified React prop option comparisons (
areSimplexMeshOptionsEqual,areSimplexLayoutOptionsEqual,areSimplexTimelineOptionsEqual), built-in tooltip formatting/edge-flipping (buildSimplexTooltipContentModel,computeSimplexTooltipCoords), viewport zoom (zoomSimplexViewportByFactor), and click delegation (dispatchSimplexDefaultLeftClick) with@simplex-viz/coreand@simplex-viz/core/dom. <SimplexTopicGraph />built-in JSX tooltips now automatically flip cleanly at container edges to matchSimplexSvgControllerandSimplexCanvasController.
- Unified React prop option comparisons (
- Exclusive Subpath Entry Points (
@simplex-viz/core/worker,@simplex-viz/core/dom,@simplex-viz/svg/ssr,@simplex-viz/wc/define):- Removed root convenience re-exports of
@simplex-viz/core/workerfrom@simplex-viz/coreand@simplex-viz/canvas, and removed root convenience re-exports of@simplex-viz/svg/ssrfrom@simplex-viz/svgand@simplex-viz/react. All four specialized subpaths are now strict canonical entrypoints with automated CI contract enforcement (docsContract.test.ts), preventing worker/SSR/DOM symbol leakage across package boundaries.
- Removed root convenience re-exports of
SimplexViz v0.14.0
Added
@simplex-viz/canvas(New Package):- High-Capacity HTML5 Canvas 2D Renderer (#21): Introduced
@simplex-viz/canvasas a Layer-2 peer renderer to@simplex-viz/svgwith zero per-node DOM overhead (CanvasRendererAdapter,SimplexCanvasController,createSimplexCanvas,renderSimplexSnapshotToCanvas,createCanvasPresetVisualResolver). Supports 2,000–10,000+ items at 60 FPS via HiDPI DPR scaling, world-space frustum culling, automaticlodThresholdPxLOD simplification (circles/pills),'geometric'/'glyphs'/'badges'presets + customCanvas*Rendererhooks, continuous pan/zoom and1:4hierarchical drill-down with breadcrumbs, chronological timeline playback,Shift+Click/Shift+Dragmulti-selection, WCAG 2.1 AA keyboard navigation & focus halo, custom/built-in tooltips, and nativeexportPng()(CanvasExportPngOptions).
- High-Capacity HTML5 Canvas 2D Renderer (#21): Introduced
@simplex-viz/core:- Optional Web Worker Offloading Adapter (
@simplex-viz/core/worker, #22): Added a dedicated@simplex-viz/core/workersubpath (also re-exported from@simplex-viz/core) providing versioned RPC (SIMPLEX_WORKER_PROTOCOL_VERSION = 1),createSimplexWorkerClient(),attachSimplexWorkerHandler()(with a pluggablesolverhook ready for future Rust/WASM backends),solveSimplexWorkerRequest(),solveSimplexSnapshotAsync(),SimplexWorkerClientError, andisSimplexWorkerCancelledError(). Supports stale-generation superseding cancellation,AbortSignal, zero-copyFloat32Arrayembedding transfers, main-threadTItemrehydration, Nodeworker_threadsports, and main-thread async fallback in SSR/non-worker environments. - Custom Timeline Step Label Formatting (#30): Added
formatStepLabel?: (step, index, total) => stringtoSimplexTimelineOptionsandSimplexTimelineControllerso hosts can customize rendered step labels (e.g.,"2024 Q3"or"Week 12").
- Optional Web Worker Offloading Adapter (
@simplex-viz/svg:- Headless Timeline Auto-Play & Custom Step Labels (#30): Enabled
requestAnimationFrametimeline playback progression whentimeline.showControlsisfalseso external host timeline HUDs can driveplay()/pause()/togglePlay()seamlessly, and forwardedformatStepLabelthroughTimelinePlayerOptions.
- Headless Timeline Auto-Play & Custom Step Labels (#30): Enabled
@simplex-viz/react:- External Host Timeline HUD Ergonomics (#30): Forwarded
formatStepLabelvia a stable ref-proxy without resetting playback state, and exposedhandle.subscribeTimeline(listener)onuseSimplexGraphController().handleso custom React timeline bars can subscribe directly with zero mount-timing glue.
- External Host Timeline HUD Ergonomics (#30): Forwarded
@simplex-viz/wc:- External Host Timeline Subscription (#30): Added
el.subscribeTimeline(listener)on<simplex-topic-graph>(SimplexTopicGraphElement) returning a cleanup unsubscribe handle alongsidesimplex-timeline-changeevents andformatStepLabelsupport.
- External Host Timeline Subscription (#30): Added
- Documentation & Release Pipeline:
- Added
@simplex-viz/canvasAPI reference (/docs/api/canvas), updated root/package READMEs, site footer,llms.txt, and the GitHub Actions release workflow for all 5 monorepo packages.
- Added
SimplexViz v0.13.0
Added
@simplex-viz/core:- Structured Legend Data Model & Diff-Gated Updates (#29): Added
SimplexLegendEntry,SimplexLegendModel,SimplexLegendModelOptions,engine.getLegendModel(options?), and diff-gatedonLegendChange/engine.setOnLegendChange(). Exposes per-cluster swatches, labels, roles, tags, active/visible item counts, visibility, and focus state synchronized with hierarchical drill-down, zero-relayoutitemFilter,emptyClusterBehavior, and cluster focus without duplicating geometry/state logic. - Configurable
Shift+ClickMulti-Selection Option (#27): AddedshiftClickSelects(defaulttrue) onSimplexGraphEngineConfigwithsetShiftClickSelects()/getShiftClickSelects()so Shift-modified content clicks are handled consistently before consumer click callbacks while allowing explicit opt-out.
- Structured Legend Data Model & Diff-Gated Updates (#29): Added
@simplex-viz/svg:- Custom DOM/HTML Tooltip Renderer Reusing Built-In Positioning (#28): Added
SimplexDomTooltipRenderer,SimplexSvgTooltipTarget,SimplexSvgTooltipOption, andSimplexDomTooltipRenderResultso consumers can pass a{ render(target, container), onHide?, className?, unstyled?, pointerEvents? }renderer object alongsidebooleanor nullable/falsy string formatters (SimplexTooltipFormatterreturningnull | undefined | ''suppresses the tooltip). Includes target-key render caching during hover movement, automatic cleanup/onHide lifecycle handling, and dynamic viewport edge-flipping based on measured tooltip dimensions. - Structured Legend Model & Diff-Gated
onLegendChange(#29): Addedcontroller.getLegendModel(options?),onLegendChangeoption, andcontroller.setOnLegendChange()synchronizing legend snapshots across zoom depth,itemFilter,emptyClusterBehavior, focus, and activetimelineStep.
- Custom DOM/HTML Tooltip Renderer Reusing Built-In Positioning (#28): Added
@simplex-viz/react:- Legend Subscription, Custom DOM Tooltips &
shiftClickSelects(#27, #28, #29): AddedshiftClickSelectsandonLegendChangeprops on<SimplexTopicGraph />, exposedgetLegendModel(options?)onuseSimplexGraphController().handle, and re-exportedSimplexLegendEntry,SimplexLegendModel,SimplexLegendModelOptions,SimplexDomTooltipRenderer,SimplexSvgTooltipTarget,SimplexSvgTooltipOption, andSimplexDomTooltipRenderResult.
- Legend Subscription, Custom DOM Tooltips &
@simplex-viz/wc:- Legend Model, Custom DOM Tooltips &
shift-click-selects(#27, #28, #29): Added theshift-click-selectsHTML attribute &shiftClickSelectsproperty, forwardedSimplexDomTooltipRendererobjects viael.tooltip, addedel.getLegendModel(options?), and dispatched bubbling/composedsimplex-legend-changeCustomEvents (detail: SimplexLegendModel).
- Legend Model, Custom DOM Tooltips &
Fixed
@simplex-viz/core&@simplex-viz/svg:Shift+ClickMulti-Selection Precedence (#27): HandledShift+Clickcontent multi-selection before invoking useronContentClickcallbacks whenshiftClickSelectsistrue(default), preventing consuming click handlers (such as detail-drawer triggers) from swallowing Shift+Click cohort selection.
SimplexViz v0.12.1
Documentation & Brand Assets
@simplex-viz/wc:- Added the dedicated Emerald-accented banner logo (
docs/assets/logo-wc.svg/logo-wc.png) and Light-/Dark-mode-compatible architecture showcase (docs/assets/preview-wc.svg/preview-wc.png) to the brand-sync pipeline and embedded both visuals intopackages/wc/README.mdso the published npm package page matches@simplex-viz/core,@simplex-viz/svg, and@simplex-viz/react.
- Added the dedicated Emerald-accented banner logo (
- Workspace Lockstep:
- Synchronized
@simplex-viz/core,@simplex-viz/svg,@simplex-viz/react,@simplex-viz/wc, and the API reference metadata to0.12.1.
- Synchronized
SimplexViz v0.12.0
Added
@simplex-viz/wc(New Package):- Dedicated Framework-Agnostic Web Component (
<simplex-topic-graph>, #26): Introduced@simplex-viz/wcas a Layer-3 framework adapter with zero React dependency (sideEffects: ["./dist/define.js"],renderer="svg"ready for future renderers). ProvidesSimplexTopicGraphElement(Light DOM.sv-wc-stagepreservinggetBBox(), webfonts, CSS inheritance, and SVG/PNG export), SSR-safe idempotent & alias-safedefineSimplexTopicGraphElement(tagName?),@simplex-viz/wc/defineauto-registration subpath, 23 reactive kebab-case HTML attributes + inline<script type="application/json">support, typed JS properties with pre-upgrade property preservation, bubbling/composedCustomEvents (simplex-click,simplex-hover,simplex-selection-change,simplex-zoom,simplex-timeline-change,simplex-metrics,simplex-clusters-change), and full imperative delegation (getViewState,restoreViewState,exportSvg,exportPng, selection, filtering, drill-down, camera,batch,setOptions,relayout).
- Dedicated Framework-Agnostic Web Component (
@simplex-viz/core:- Reduced-Motion Support (
prefers-reduced-motion, #23): AddedReducedMotionPreference('auto' | boolean),reducedMotionengine option,setReducedMotion()/getReducedMotion()/isReducedMotionActive(), and immediate snapping of node springs, camera flights, zoom transitions, and visual morphs when reduced motion is active. - Interactive Multi-Selection State (#25): Added independent
selectedIdsstate (NodeInteractionState.isSelected),selectedIdsconfig option,setSelectedIds()/toggleSelectedId()/clearSelection()/getSelectedIds(),selectItemsInWorldRect()/selectItemsInScreenRect(), andonSelectionChangecallback—orthogonal tohighlightedIds,pinnedIds, and hover/focus states. - Serializable View State for Deep-Linking (#24): Added
SimplexViewZoomStep,SimplexViewState(version: 1,camera,zoomPath,focusedClusterUid,focusedTriangleIndex,focusedItemId, sortedhighlightedIds/selectedIds/pinnedIds, optionaltimelineStep),RestoreViewStateOptions,getPinnedIds(),getFocusedClusterUid(),getFocusedTriangleIndex(),getViewState(), andrestoreViewState()(snaps immediately by default, replayszoomPathcleanly from root, and gracefully ignores stale IDs or unreachable steps without throwing).
- Reduced-Motion Support (
@simplex-viz/svg:- Automatic
prefers-reduced-motionMedia Query Subscription (#23): AddedreducedMotion('auto'default) onSimplexSvgControllerwith livematchMedia('(prefers-reduced-motion: reduce)')subscription & cleandestroy()teardown,data-reduced-motion="true"attribute propagation, andsetReducedMotion()/getReducedMotion()/isReducedMotionActive(). - Interactive Multi-Selection &
Shift+DragMarquee (#25): AddedShift+Clicktoggle selection,Shift+Dragrectangular marquee selection (marqueeSelection: truedefault, marquee overlay cleanly excluded fromexportSvg()), keyboardShift+Enter/Shift+Spaceselection &Escapeclearing, high-contrast violet selection rings across built-in node views and@simplex-viz/svg/ssr,selectedIds/onSelectionChangeoptions, andsetSelectedIds()/toggleSelectedId()/clearSelection()/getSelectedIds()/selectItemsInScreenRect(). - Deep-Linking Snapshot Serialization (#24): Added
controller.getViewState()(capturing activetimelineStepwhen timeline is enabled) andcontroller.restoreViewState(state, options?)(synchronizing timeline step, drill-down overlays/breadcrumbs, camera, focus mirrors, and selection/highlight/pin state).
- Automatic
@simplex-viz/react:- Reduced Motion, Multi-Selection & Deep-Linking Props/Handle (#23, #24, #25): Added
reducedMotion,selectedIds,marqueeSelection, andonSelectionChangeprops on<SimplexTopicGraph />; exposedsetReducedMotion,getReducedMotion,isReducedMotionActive,setSelectedIds,toggleSelectedId,clearSelection,getSelectedIds,selectItemsInScreenRect,getViewState, andrestoreViewStateonuseSimplexGraphController().handle; and re-exported all new core and SVG types.
- Reduced Motion, Multi-Selection & Deep-Linking Props/Handle (#23, #24, #25): Added
- Documentation & Site:
- Updated root and package
README.mdfiles, added the@simplex-viz/wcAPI reference (/docs/api/wc), updated/docs/api/core,/docs/api/svg,/docs/api/react,/docs/quickstart,/docs/customization, landing page install targets, footer, imprint, andllms.txtfor0.12.0.
- Updated root and package
SimplexViz v0.11.0
Added
@simplex-viz/core:- Programmatic Search & Linked-View Navigation (#19): Added
FocusItemOptions,ZoomToItemOptions,setHighlightedIds()/setHighlightedItems()acceptingIterable<string> | null,getHighlightedIds()/getHighlightedItems(),focusItem(itemId, options?),getFocusedItemId(), andzoomToItem(itemId, options?). Infree-cameramode,zoomToItem()smoothly centers and zooms onto the target item; indrill-downmode, it drills down across covering triangles (up tomaxDrillSteps) and optionally focuses the item.
- Programmatic Search & Linked-View Navigation (#19): Added
@simplex-viz/svg:- Programmatic Search & Linked-View Navigation (#19): Added
setHighlightedIds()/setHighlightedItems(),getHighlightedIds()/getHighlightedItems(),focusItem(itemId, { highlight?, hover?, announce? }),getFocusedItemId(), andzoomToItem(itemId, options?)onSimplexSvgController, plushighlightedIdsandfocusedItemIdsupport insetOptions()(SimplexSvgUpdateOptions) with synchronized keyboard focus ring & screen-reader announcements. - Client-Side SVG & PNG Snapshot Export (#20): Added
controller.exportSvg(options?)(ExportSvgOptions:includeBackground,backgroundColor,padding,width,height,inlineStyles,includeFocusRing,title,xmlDeclaration) andcontroller.exportPng(options?)(ExportPngOptions: HiDPIscaledefault2,format: 'blob' | 'dataUrl',mimeType: 'image/png' | 'image/jpeg' | 'image/webp',quality), together withresolveThemeBackgroundColor(). - Headless Zero-DOM SSR SVG String Renderer (#18): Added a dedicated
@simplex-viz/svg/ssrsubpath export (also re-exported from@simplex-viz/svg) providingrenderSimplexSvgString(itemsOrSnapshot, options?),estimateSsrTextWidth(), andcreateSsrPresetHullMeasurers()without any DOM globals (window/document). Solves overlap-free layouts (including'badges'via deterministic font metrics or a pluggablemeasureTextcallback) or renders pre-solvedSimplexLayoutSnapshotobjects across all built-in presets, themes, filters, highlights, hulls, and custom SVG string render hooks (renderTriangle,renderEdge,renderCluster,renderContent)—ready for SSR embedding or headless rasterization via@resvg/resvg-jswithout Puppeteer.
- Programmatic Search & Linked-View Navigation (#19): Added
@simplex-viz/react:- Linked Views, Snapshot Export & SSR Re-Exports (#18, #19, #20): Extended
highlightedIdson<SimplexTopicGraph />to acceptIterable<string> | null; exposedsetHighlightedIds,setHighlightedItems,getHighlightedIds,getHighlightedItems,focusItem,getFocusedItemId,zoomToItem,exportSvg, andexportPngonuseSimplexGraphController().handle; and re-exportedrenderSimplexSvgString,estimateSsrTextWidth,createSsrPresetHullMeasurers,resolveThemeBackgroundColor, and all new option/context types.
- Linked Views, Snapshot Export & SSR Re-Exports (#18, #19, #20): Extended
- Documentation & READMEs:
- Updated all four
README.mdfiles, Astro documentation guides (quickstart,customization), and package API references (@simplex-viz/core,@simplex-viz/svg,@simplex-viz/react) for0.11.0.
- Updated all four
SimplexViz v0.10.0
Added
@simplex-viz/core:- Zero-Relayout Item Filtering (#15): Added
ItemFilterMode('dim' | 'hide'),ItemFilterPredicate,ItemFilterOptions,ItemFilterState,NodeRenderState.isFilteredOut,itemFilter/itemFilterModeonSimplexGraphEngineConfig, andengine.setItemFilter(predicate, options?)/engine.getItemFilter(). Filters items visually without re-clustering or re-solving SAT layout so node coordinates remain completely stable while'hide'items suppress hit-testing and visual presence cleanly. - Re-entrant
batch()Coalescing (#16): Addedengine.batch(fn)to defer intermediate clustering, layout, and rendering passes across nested or sequential engine mutations and flush a single minimal pipeline recomputation when the outermost batch exits. - Keyboard Navigation & Interactive Target Primitives (#17): Added
SimplexKeyboardFocusTarget,SimplexInteractiveTarget,engine.getInteractiveTargets(),engine.hoverInteractiveTarget(),engine.activateInteractiveTarget(),engine.getClusterByUid(), andengine.getItemLayoutById()to support deterministic focus traversal and activation across clusters, content items, and triangles.
- Zero-Relayout Item Filtering (#15): Added
@simplex-viz/svg:- Zero-Relayout Item Filtering (#15): Added
itemFilter/itemFilterModeoptions andsetItemFilter()/getItemFilter()onSimplexSvgController, applied cleanly inSvgRendererAdapterwithout double-dimming or altering SAT hulls, and re-exported filter types. - Atomic
batch()&setOptions()Updates (#16): AddedSimplexSvgUpdateOptions,controller.batch(fn), andcontroller.setOptions(opts)to coalesce multi-property runtime updates (e.g.theme,preset,layoutOptions,itemFilter, strategies) into one recomputation, and internally batchedsetTheme()andsetTimelineOptions(). - WCAG 2.1 AA Keyboard Navigation & Screen-Reader Accessibility (#17): Added
ariaLabelandkeyboardNavigation(defaulttrue) options with runtime setters (setAriaLabel(),setKeyboardNavigation(),getKeyboardFocusTarget(),clearKeyboardFocus(),getInteractiveTargets()), single-tabstoprole="application"+tabindex="0"+aria-activedescendantkeyboard traversal (ArrowRight/ArrowDown/ArrowLeft/ArrowUp/Home/End/Enter/Space/Escape), collision-free instance-scoped SVG DOM IDs and semantic ARIA roles/labels (SvgAriaAttributes,SvgAriaMetadataResolver,ariaIdPrefix), a zoom- and theme-adaptive high-contrast double-halo SVG focus ring (g.sv-a11y-focus-ring), and a polite screen-reader live region (div.sv-sr-announcer[role="status"][aria-live="polite"]).
- Zero-Relayout Item Filtering (#15): Added
@simplex-viz/react:- Filtering, Batched Prop Sync & Accessibility (#15, #16, #17): Added
itemFilter,itemFilterMode,ariaLabel, andkeyboardNavigationprops on<SimplexTopicGraph />; unified dynamic prop synchronization into a single batchedcontroller.batch(...)effect per render commit; exposedsetItemFilter,getItemFilter,batch,setOptions,getKeyboardFocusTarget, andclearKeyboardFocusonuseSimplexGraphController(); and re-exported all new core and SVG types.
- Filtering, Batched Prop Sync & Accessibility (#15, #16, #17): Added
- Documentation & READMEs:
- Updated all four
README.mdfiles, Astro documentation guides (quickstart,customization), and package API references (@simplex-viz/core,@simplex-viz/svg,@simplex-viz/react) for0.10.0.
- Updated all four
SimplexViz v0.9.0
Added / Fixed
@simplex-viz/core:- Deferred
0×0Mount Initialization & Clean Re-Initialization (#12): AddeddeferInitialSolve?: booleanonSimplexGraphEngineConfigandengine.reinitializeViewport(width, height)so graphs mounted inside hidden tabs, modals, or before async CSS loads can either defer clustering/layout completely until a real viewport size arrives or perform a fresh'initial'solve with zero spring jump and zero stale0×0hull measurements.
- Deferred
@simplex-viz/svg:- Zero-Size Container Mount Recovery &
deferInitialLayout(#12): Automatically detects0×0container mounts at construction, invalidates cachedgetBBox()hulls on the first non-zeroResizeObserverentry, and re-initializes the viewport cleanly with zero spring jump; added opt-indeferInitialLayout?: boolean | DeferInitialLayoutOptions({ fallbackTimeoutMs?: number }) to skip the provisional960×620solve entirely until the container becomes visible. - Mobile Touch-Scroll Direction-Locking & Peak-Displacement Click Tolerance (#13): Added
touchScrollLockPx(default8) andclickTolerancePx(default12) together with runtime setterssetTouchScrollLockPx()andsetClickTolerancePx(). Setstouch-action: pan-ywhentouchScrollLockPx > 0so vertical single-finger swipes yield cleanly to native page scrolling while horizontal swipes and two-finger pinches lock onto the canvas, and suppresses trailing clicks whenever peak pointer displacement exceedsclickTolerancePxacross bothfree-cameraanddrill-downmodes. - Lightweight
shapeOptionsStyling Hooks onGeometricShapeSvgView(#14): Added optional view-levelhoverScaleanddimmedOpacityhooks onSvgNodeView(applied cleanly inSvgRendererAdapterwithout altering SAT hulls or double-dimming), extendedGeometricShapeSvgViewOptionswithhoverScale,hoverRingColor,dimmedOpacity,strokeColor, andstrokeWidth(factored intomeasureConvexHull()and preserved duringmorph()), forwardedshapeOptionsthroughcreatePresetViews(preset, { shapeOptions })(PresetViewsOptions) andSimplexSvgController, and addedsetShapeOptions().
- Zero-Size Container Mount Recovery &
@simplex-viz/react:- Documentation & READMEs:
- Updated all four
README.mdfiles, Astro documentation guides (quickstart,customization), and package API references (@simplex-viz/core,@simplex-viz/svg,@simplex-viz/react) for0.9.0.
- Updated all four
SimplexViz v0.8.0
Added / Changed
@simplex-viz/core:- Chronological Timeline Engine (#8): Added zero-DOM
SimplexTimelineControllerandcreateSimplexTimelinefor grouping timestamped or frame-keyed records into ordered cumulative frames (play,pause,toggle,stepBy,seek,resetToEnd,setSpeed,setStepIntervalMs,setLoop,tick,subscribe), supportinggetTimestamp,getFrameKey, undated step-0baseline items, andincludeEmptyStart. - Path-Independent Final-Seeded Clustering & Layout Strategies (#5, #8):
- Added
createFinalSeededClusteringStrategy(baseStrategy?, options?)to pin canonical full-corpus clusters, vertex assignments, UIDs, and OKLab hues across chronological subsets (0..N) or filtered views while re-seeding cleanly on viewport/mesh resizes. - Added
createFinalSeededLayoutStrategy(baseStrategy?, { scaleMode?: 'pinned' | 'adaptive', unseenItemPolicy?: 'fallback' | 'reseed' })together withcanonicalSeedItems/engine.setCanonicalSeedItems(items)to freeze canonical(x, y)coordinates across timeline frames—keeping exact final scales ('pinned') or expanding sparse early frames symmetrically up to1.0xwith exact SAT0.0 pxoverlap verification ('adaptive').
- Added
- Configurable Empty-Cluster Rendering (#8): Added
emptyClusterBehavior: 'normal' | 'dim' | 'hide'onSimplexGraphEngine(getEmptyClusterBehavior(),setEmptyClusterBehavior()) to keep future0-item clusters dimmed or hidden until their first item arrives. - Viewport-Aware Update Reasons (#6): Threaded explicit
PipelineUpdateReason('initial' | 'items' | 'viewport' | 'mesh' | 'strategy') and viewport dimensions intoestimateClusterCount(ctx: EstimateClusterCountContext)andClusteringStrategyContextso shrinking and regrowing the viewport cleanly restores the original cluster count. - Decoupled Tag Display Labels (#7): Added
formatTagLabelandresolveTagDisplayLabelto map canonical normalized tag IDs to human-readable labels across cluster titles, breadcrumbs, semantic zoom subclusters, and tooltips without affecting clustering. - Composable Interaction Contract & Manual Relayout (#3, #9): Standardized target-specific click/hover handlers (
onContentClick,onClusterClick,onTriangleClick,onBackgroundClick,onLeftClick,onRightClick,onContentHover,onClusterHover,onTriangleHover, and customonWheel) so returningvoid/falsecomposes with built-in drill-down/focus/tooltips/zoom and returningtrueconsumes the event; addedengine.relayout()to invalidate cached hulls and re-solve layout on demand.
- Chronological Timeline Engine (#8): Added zero-DOM
@simplex-viz/svg:- Built-In Chronological Timeline Player HUD (#8): Added
timelineoption (boolean | TimelinePlayerOptions),controller.timeline,getTimeline(),setTimelineOptions(), andsubscribeTimeline()with a theme-adaptive Play/Pause/Step/Scrubber overlay (showControls,position: 'bottom' | 'top'), automaticcreateFinalSeededClusteringStrategywrapping (autoFinalSeed: true), optionalcreateFinalSeededLayoutStrategywrapping (autoFinalSeedLayout: false | 'pinned' | 'adaptive'), andemptyClusterBehavior('normal' | 'dim' | 'hide'). - Cluster Badge Formatting & Fixed/Item-Driven N-Gon Shapes (#4, #11): Added
badgeOptions(showCode,maxTitleChars,formatTitle,truncateBadgeTitle) onBadgeClusterSvgViewand presets, plusgetShape/GeometricShapeSpec/resolveGeometricShapeSpecsupporting arbitrary regular polygons (sides >= 3) with exact convex SAT hulls and invariance across1:4drill-down levels. - Webfont Auto-Relayout & Composable Handlers (#3, #9): Added
relayoutOnFontLoad: true(subscribing todocument.fonts.ready/loadingdonewith cleandestroy()teardown),controller.relayout(),setEmptyClusterBehavior(), andonWheel: 'none'without callingpreventDefault().
- Built-In Chronological Timeline Player HUD (#8): Added
@simplex-viz/react:- Timeline Props & Reactive Hook (#8): Added
timeline,emptyClusterBehavior, andonTimelineStateChangeprops to<SimplexTopicGraph />,handle.getTimeline()andhandle.relayout()onuseSimplexGraphController(), and the reactiveuseSimplexTimeline()hook for declarative custom playback UIs. - Preset Customization & Composable Interactions (#3, #4, #7, #9, #11): Added
formatTagLabel,badgeOptions,getShape,relayoutOnFontLoad, and target-specific click props (onContentClick,onClusterClick,onTriangleClick,onBackgroundClick) on<SimplexTopicGraph />, and re-exported all new@simplex-viz/coreand@simplex-viz/svgAPIs and types.
- Timeline Props & Reactive Hook (#8): Added
- Showcase, Playground & Documentation:
- Enabled live chronological timeline playback (
1928–1976) withautoFinalSeedLayout: 'adaptive'andemptyClusterBehavior: 'dim'on the Vega Cinema example, added full Timeline, Final-Seeded Layout, and Empty-Cluster controls to the interactive Playground, and updated all READMEs, docs guides, and homepage copy.
- Enabled live chronological timeline playback (
SimplexViz v0.7.0
Fixed
@simplex-viz/core,@simplex-viz/svg,@simplex-viz/react— ESMNode16/NodeNext.d.tsmodule resolution (#2):- Added explicit
.jsfile extensions to all relative imports andexport *re-exports across all three packages so published.d.tsdeclarations resolve cleanly under TypeScriptmoduleResolution: "node16"and"nodenext"without degrading cross-package re-exports toany. - Enforced
"module": "NodeNext"and"moduleResolution": "NodeNext"in each package'stsconfig.build.jsonto catch extensionless relative specifiers at build time. - Added an automated Vitest integration test (
nodenextResolution.test.ts) verifyingnodenexttypechecking with bothskipLibCheck: trueandskipLibCheck: false.
- Added explicit
@simplex-viz/core— Content-node selection clarity:- Removed automatic nearest-neighbor emphasis when selecting a content item so individual node inspection remains visually clean.
Added / Changed
@simplex-viz/core:- Subspace Zoom & Discriminative Cluster Labeling: Added
createSubspaceZoomStrategyfor representation-agnostic6-vertex local subspace refinement across embeddings, pairwise similarity kernels, and tags (minItemsForRecluster: 6,blendFactor: 0.35), alongsideassignDiscriminativeClusterLabels,resolveDiscriminativeClusterLabel,disambiguatePeerClusterTitle, andparentContextLabelbreadcrumb/corner context. - Single-Triangle Leaf Focus (
'triangle-focus',leafTriangleFocus: true): Non-subdividable leaf triangles remain focusable as single triangles (focusableTriangleIndices,activeFrameKind: 'triangle-focus') via their open triangle background while keeping covered content items directly clickable (no pointer pass-through on leaf triangles) and toggling back up on repeat background clicks. - Uniform 1-Ring
'incident-star'Cluster & Subcluster Drill-Down: Standardized both primary and intermediate cluster focus on lattice-conformal 1-ring'incident-star'meshes with continuous barycentric simplex-distance item dimming (opacity = 0.32 + 0.68 · w̃₀), direct lateral rim switching, and toggle-up when re-clicking the centered cluster. - Aspect-Aligned Full-Canvas Triangulation: Updated
buildSimplexMeshandcreateAdaptiveHexMeshStrategyto align60°lattice orientation to the viewport aspect ratio across mobile, standard, and widescreen canvases (minSideLength: 130, uncappedmaxSideLengthby default,maxClusters: 14, and adaptiveinnerPadding: 32–48viaresolveDefaultInnerPadding). - Space-Filling Layout Strategy Presets: Upgraded
createPbdUniformLayoutStrategy,createWarmStartPbdLayoutStrategy, andcreateLocalAdaptiveLayoutStrategyto combinecreateMeshInwardFanSeeder+createSpaceFillingPbdRelaxerwith post-dispersion scale/density regulation (crowdRadiusPx: 76,minLocalScale: 0.35,warmStart: true, and local halo collision polish instead of a global shrink fallback) while maintaining0.0 pxSAT overlap and covering-triangle containment.
- Subspace Zoom & Discriminative Cluster Labeling: Added
@simplex-viz/svg&@simplex-viz/react:- Added WCAG-AA perceptual cluster surface contrast calibration (
colorContrast) and two-lineparentContextLabelrendering on chamfered intermediate subcluster plaques inBadgeClusterSvgViewandClusterAnchorSvgView. - Re-exported
createSubspaceZoomStrategy,resolveDefaultInnerPadding, discriminative label helpers, and enrichedSimplexZoomStatefields (activeFrameKind,focusableTriangleIndices) across@simplex-viz/svgand@simplex-viz/react.
- Added WCAG-AA perceptual cluster surface contrast calibration (
- Documentation, Brand Pipeline & CI/CD:
- Built the multi-page Astro 7 documentation, interactive strategy catalog, live Playground, real-world open dataset explorers (UCI Zoo, Hillenbrand American English Vowels, Palmer Penguins, Wikimedia Commons Media, arXiv CS Abstracts), package API references, and engineering notes.
- Added
scripts/gh-issue.ts(npm run issue) for fetching open GitHub issues and comments directly from the repository via the public GitHub REST API. - Refactored GitHub Actions workflows around a reusable
_quality.ymlgate (gating both GitHub Pages deployment and npm publishing while preservingrelease.ymlfor npm OIDC Trusted Publishing), enabledpnpm sync:brand:checkin CI, switched brand PNG rendering to deterministic npm-managed@fontsource/*WOFF2 fonts (Plus Jakarta Sans+IBM Plex Mono+Noto Sansfallbacks) decompressed viawoff2-encoderwithout relying on OS fonts, and cleaned stale artifacts frompublic/.