Skip to content

Releases

SimplexViz v1.0.0

Choose a tag to compare

@github-actions github-actions released this 22 Nov 22:37

Changed (Stable v1.0.0 Architectural Consolidation)

  • @simplex-viz/core & New @simplex-viz/core/dom Subpath:
    • Added the dedicated @simplex-viz/core/dom subpath 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/core root and @simplex-viz/core/worker remain strictly ES2022 / DOM-free and skipLibCheck: false compatible.
    • 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).
  • @simplex-viz/svg & @simplex-viz/canvas:
    • Deduplicated container resolution/resizing, prefers-reduced-motion media 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/canvas has zero dependency on @simplex-viz/svg).
  • @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/core and @simplex-viz/core/dom.
    • <SimplexTopicGraph /> built-in JSX tooltips now automatically flip cleanly at container edges to match SimplexSvgController and SimplexCanvasController.
  • 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/worker from @simplex-viz/core and @simplex-viz/canvas, and removed root convenience re-exports of @simplex-viz/svg/ssr from @simplex-viz/svg and @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.

SimplexViz v0.14.0

Choose a tag to compare

@github-actions github-actions released this 21 Nov 09:20

Added

  • @simplex-viz/canvas (New Package):
    • High-Capacity HTML5 Canvas 2D Renderer (#21): Introduced @simplex-viz/canvas as a Layer-2 peer renderer to @simplex-viz/svg with 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, automatic lodThresholdPx LOD simplification (circles/pills), 'geometric' / 'glyphs' / 'badges' presets + custom Canvas*Renderer hooks, continuous pan/zoom and 1:4 hierarchical drill-down with breadcrumbs, chronological timeline playback, Shift+Click/Shift+Drag multi-selection, WCAG 2.1 AA keyboard navigation & focus halo, custom/built-in tooltips, and native exportPng() (CanvasExportPngOptions).
  • @simplex-viz/core:
    • Optional Web Worker Offloading Adapter (@simplex-viz/core/worker, #22): Added a dedicated @simplex-viz/core/worker subpath (also re-exported from @simplex-viz/core) providing versioned RPC (SIMPLEX_WORKER_PROTOCOL_VERSION = 1), createSimplexWorkerClient(), attachSimplexWorkerHandler() (with a pluggable solver hook ready for future Rust/WASM backends), solveSimplexWorkerRequest(), solveSimplexSnapshotAsync(), SimplexWorkerClientError, and isSimplexWorkerCancelledError(). Supports stale-generation superseding cancellation, AbortSignal, zero-copy Float32Array embedding transfers, main-thread TItem rehydration, Node worker_threads ports, and main-thread async fallback in SSR/non-worker environments.
    • Custom Timeline Step Label Formatting (#30): Added formatStepLabel?: (step, index, total) => string to SimplexTimelineOptions and SimplexTimelineController so hosts can customize rendered step labels (e.g., "2024 Q3" or "Week 12").
  • @simplex-viz/svg:
    • Headless Timeline Auto-Play & Custom Step Labels (#30): Enabled requestAnimationFrame timeline playback progression when timeline.showControls is false so external host timeline HUDs can drive play() / pause() / togglePlay() seamlessly, and forwarded formatStepLabel through TimelinePlayerOptions.
  • @simplex-viz/react:
    • External Host Timeline HUD Ergonomics (#30): Forwarded formatStepLabel via a stable ref-proxy without resetting playback state, and exposed handle.subscribeTimeline(listener) on useSimplexGraphController().handle so custom React timeline bars can subscribe directly with zero mount-timing glue.
  • @simplex-viz/wc:
    • External Host Timeline Subscription (#30): Added el.subscribeTimeline(listener) on <simplex-topic-graph> (SimplexTopicGraphElement) returning a cleanup unsubscribe handle alongside simplex-timeline-change events and formatStepLabel support.
  • Documentation & Release Pipeline:
    • Added @simplex-viz/canvas API reference (/docs/api/canvas), updated root/package READMEs, site footer, llms.txt, and the GitHub Actions release workflow for all 5 monorepo packages.

SimplexViz v0.13.0

Choose a tag to compare

@github-actions github-actions released this 20 Nov 16:22

Added

  • @simplex-viz/core:
    • Structured Legend Data Model & Diff-Gated Updates (#29): Added SimplexLegendEntry, SimplexLegendModel, SimplexLegendModelOptions, engine.getLegendModel(options?), and diff-gated onLegendChange / engine.setOnLegendChange(). Exposes per-cluster swatches, labels, roles, tags, active/visible item counts, visibility, and focus state synchronized with hierarchical drill-down, zero-relayout itemFilter, emptyClusterBehavior, and cluster focus without duplicating geometry/state logic.
    • Configurable Shift+Click Multi-Selection Option (#27): Added shiftClickSelects (default true) on SimplexGraphEngineConfig with setShiftClickSelects() / getShiftClickSelects() so Shift-modified content clicks are handled consistently before consumer click callbacks while allowing explicit opt-out.
  • @simplex-viz/svg:
    • Custom DOM/HTML Tooltip Renderer Reusing Built-In Positioning (#28): Added SimplexDomTooltipRenderer, SimplexSvgTooltipTarget, SimplexSvgTooltipOption, and SimplexDomTooltipRenderResult so consumers can pass a { render(target, container), onHide?, className?, unstyled?, pointerEvents? } renderer object alongside boolean or nullable/falsy string formatters (SimplexTooltipFormatter returning null | 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): Added controller.getLegendModel(options?), onLegendChange option, and controller.setOnLegendChange() synchronizing legend snapshots across zoom depth, itemFilter, emptyClusterBehavior, focus, and active timelineStep.
  • @simplex-viz/react:
    • Legend Subscription, Custom DOM Tooltips & shiftClickSelects (#27, #28, #29): Added shiftClickSelects and onLegendChange props on <SimplexTopicGraph />, exposed getLegendModel(options?) on useSimplexGraphController().handle, and re-exported SimplexLegendEntry, SimplexLegendModel, SimplexLegendModelOptions, SimplexDomTooltipRenderer, SimplexSvgTooltipTarget, SimplexSvgTooltipOption, and SimplexDomTooltipRenderResult.
  • @simplex-viz/wc:
    • Legend Model, Custom DOM Tooltips & shift-click-selects (#27, #28, #29): Added the shift-click-selects HTML attribute & shiftClickSelects property, forwarded SimplexDomTooltipRenderer objects via el.tooltip, added el.getLegendModel(options?), and dispatched bubbling/composed simplex-legend-change CustomEvents (detail: SimplexLegendModel).

Fixed

  • @simplex-viz/core & @simplex-viz/svg:
    • Shift+Click Multi-Selection Precedence (#27): Handled Shift+Click content multi-selection before invoking user onContentClick callbacks when shiftClickSelects is true (default), preventing consuming click handlers (such as detail-drawer triggers) from swallowing Shift+Click cohort selection.

SimplexViz v0.12.1

Choose a tag to compare

@github-actions github-actions released this 20 Nov 13:27

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 into packages/wc/README.md so the published npm package page matches @simplex-viz/core, @simplex-viz/svg, and @simplex-viz/react.
  • Workspace Lockstep:
    • Synchronized @simplex-viz/core, @simplex-viz/svg, @simplex-viz/react, @simplex-viz/wc, and the API reference metadata to 0.12.1.

SimplexViz v0.12.0

Choose a tag to compare

@github-actions github-actions released this 20 Nov 12:27

Added

  • @simplex-viz/wc (New Package):
    • Dedicated Framework-Agnostic Web Component (<simplex-topic-graph>, #26): Introduced @simplex-viz/wc as a Layer-3 framework adapter with zero React dependency (sideEffects: ["./dist/define.js"], renderer="svg" ready for future renderers). Provides SimplexTopicGraphElement (Light DOM .sv-wc-stage preserving getBBox(), webfonts, CSS inheritance, and SVG/PNG export), SSR-safe idempotent & alias-safe defineSimplexTopicGraphElement(tagName?), @simplex-viz/wc/define auto-registration subpath, 23 reactive kebab-case HTML attributes + inline <script type="application/json"> support, typed JS properties with pre-upgrade property preservation, bubbling/composed CustomEvents (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).
  • @simplex-viz/core:
    • Reduced-Motion Support (prefers-reduced-motion, #23): Added ReducedMotionPreference ('auto' | boolean), reducedMotion engine 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 selectedIds state (NodeInteractionState.isSelected), selectedIds config option, setSelectedIds() / toggleSelectedId() / clearSelection() / getSelectedIds(), selectItemsInWorldRect() / selectItemsInScreenRect(), and onSelectionChange callback—orthogonal to highlightedIds, pinnedIds, and hover/focus states.
    • Serializable View State for Deep-Linking (#24): Added SimplexViewZoomStep, SimplexViewState (version: 1, camera, zoomPath, focusedClusterUid, focusedTriangleIndex, focusedItemId, sorted highlightedIds/selectedIds/pinnedIds, optional timelineStep), RestoreViewStateOptions, getPinnedIds(), getFocusedClusterUid(), getFocusedTriangleIndex(), getViewState(), and restoreViewState() (snaps immediately by default, replays zoomPath cleanly from root, and gracefully ignores stale IDs or unreachable steps without throwing).
  • @simplex-viz/svg:
    • Automatic prefers-reduced-motion Media Query Subscription (#23): Added reducedMotion ('auto' default) on SimplexSvgController with live matchMedia('(prefers-reduced-motion: reduce)') subscription & clean destroy() teardown, data-reduced-motion="true" attribute propagation, and setReducedMotion() / getReducedMotion() / isReducedMotionActive().
    • Interactive Multi-Selection & Shift+Drag Marquee (#25): Added Shift+Click toggle selection, Shift+Drag rectangular marquee selection (marqueeSelection: true default, marquee overlay cleanly excluded from exportSvg()), keyboard Shift+Enter / Shift+Space selection & Escape clearing, high-contrast violet selection rings across built-in node views and @simplex-viz/svg/ssr, selectedIds / onSelectionChange options, and setSelectedIds() / toggleSelectedId() / clearSelection() / getSelectedIds() / selectItemsInScreenRect().
    • Deep-Linking Snapshot Serialization (#24): Added controller.getViewState() (capturing active timelineStep when timeline is enabled) and controller.restoreViewState(state, options?) (synchronizing timeline step, drill-down overlays/breadcrumbs, camera, focus mirrors, and selection/highlight/pin state).
  • @simplex-viz/react:
    • Reduced Motion, Multi-Selection & Deep-Linking Props/Handle (#23, #24, #25): Added reducedMotion, selectedIds, marqueeSelection, and onSelectionChange props on <SimplexTopicGraph />; exposed setReducedMotion, getReducedMotion, isReducedMotionActive, setSelectedIds, toggleSelectedId, clearSelection, getSelectedIds, selectItemsInScreenRect, getViewState, and restoreViewState on useSimplexGraphController().handle; and re-exported all new core and SVG types.
  • Documentation & Site:
    • Updated root and package README.md files, added the @simplex-viz/wc API reference (/docs/api/wc), updated /docs/api/core, /docs/api/svg, /docs/api/react, /docs/quickstart, /docs/customization, landing page install targets, footer, imprint, and llms.txt for 0.12.0.

SimplexViz v0.11.0

Choose a tag to compare

@github-actions github-actions released this 20 Nov 08:45

Added

  • @simplex-viz/core:
    • Programmatic Search & Linked-View Navigation (#19): Added FocusItemOptions, ZoomToItemOptions, setHighlightedIds() / setHighlightedItems() accepting Iterable<string> | null, getHighlightedIds() / getHighlightedItems(), focusItem(itemId, options?), getFocusedItemId(), and zoomToItem(itemId, options?). In free-camera mode, zoomToItem() smoothly centers and zooms onto the target item; in drill-down mode, it drills down across covering triangles (up to maxDrillSteps) and optionally focuses the item.
  • @simplex-viz/svg:
    • Programmatic Search & Linked-View Navigation (#19): Added setHighlightedIds() / setHighlightedItems(), getHighlightedIds() / getHighlightedItems(), focusItem(itemId, { highlight?, hover?, announce? }), getFocusedItemId(), and zoomToItem(itemId, options?) on SimplexSvgController, plus highlightedIds and focusedItemId support in setOptions() (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) and controller.exportPng(options?) (ExportPngOptions: HiDPI scale default 2, format: 'blob' | 'dataUrl', mimeType: 'image/png' | 'image/jpeg' | 'image/webp', quality), together with resolveThemeBackgroundColor().
    • Headless Zero-DOM SSR SVG String Renderer (#18): Added a dedicated @simplex-viz/svg/ssr subpath export (also re-exported from @simplex-viz/svg) providing renderSimplexSvgString(itemsOrSnapshot, options?), estimateSsrTextWidth(), and createSsrPresetHullMeasurers() without any DOM globals (window/document). Solves overlap-free layouts (including 'badges' via deterministic font metrics or a pluggable measureText callback) or renders pre-solved SimplexLayoutSnapshot objects 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-js without Puppeteer.
  • @simplex-viz/react:
    • Linked Views, Snapshot Export & SSR Re-Exports (#18, #19, #20): Extended highlightedIds on <SimplexTopicGraph /> to accept Iterable<string> | null; exposed setHighlightedIds, setHighlightedItems, getHighlightedIds, getHighlightedItems, focusItem, getFocusedItemId, zoomToItem, exportSvg, and exportPng on useSimplexGraphController().handle; and re-exported renderSimplexSvgString, estimateSsrTextWidth, createSsrPresetHullMeasurers, resolveThemeBackgroundColor, and all new option/context types.
  • Documentation & READMEs:
    • Updated all four README.md files, Astro documentation guides (quickstart, customization), and package API references (@simplex-viz/core, @simplex-viz/svg, @simplex-viz/react) for 0.11.0.

SimplexViz v0.10.0

Choose a tag to compare

@github-actions github-actions released this 19 Nov 16:43

Added

  • @simplex-viz/core:
    • Zero-Relayout Item Filtering (#15): Added ItemFilterMode ('dim' | 'hide'), ItemFilterPredicate, ItemFilterOptions, ItemFilterState, NodeRenderState.isFilteredOut, itemFilter / itemFilterMode on SimplexGraphEngineConfig, and engine.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): Added engine.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(), and engine.getItemLayoutById() to support deterministic focus traversal and activation across clusters, content items, and triangles.
  • @simplex-viz/svg:
    • Zero-Relayout Item Filtering (#15): Added itemFilter / itemFilterMode options and setItemFilter() / getItemFilter() on SimplexSvgController, applied cleanly in SvgRendererAdapter without double-dimming or altering SAT hulls, and re-exported filter types.
    • Atomic batch() & setOptions() Updates (#16): Added SimplexSvgUpdateOptions, controller.batch(fn), and controller.setOptions(opts) to coalesce multi-property runtime updates (e.g. theme, preset, layoutOptions, itemFilter, strategies) into one recomputation, and internally batched setTheme() and setTimelineOptions().
    • WCAG 2.1 AA Keyboard Navigation & Screen-Reader Accessibility (#17): Added ariaLabel and keyboardNavigation (default true) options with runtime setters (setAriaLabel(), setKeyboardNavigation(), getKeyboardFocusTarget(), clearKeyboardFocus(), getInteractiveTargets()), single-tabstop role="application" + tabindex="0" + aria-activedescendant keyboard 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"]).
  • @simplex-viz/react:
    • Filtering, Batched Prop Sync & Accessibility (#15, #16, #17): Added itemFilter, itemFilterMode, ariaLabel, and keyboardNavigation props on <SimplexTopicGraph />; unified dynamic prop synchronization into a single batched controller.batch(...) effect per render commit; exposed setItemFilter, getItemFilter, batch, setOptions, getKeyboardFocusTarget, and clearKeyboardFocus on useSimplexGraphController(); and re-exported all new core and SVG types.
  • Documentation & READMEs:
    • Updated all four README.md files, Astro documentation guides (quickstart, customization), and package API references (@simplex-viz/core, @simplex-viz/svg, @simplex-viz/react) for 0.10.0.

SimplexViz v0.9.0

Choose a tag to compare

@github-actions github-actions released this 19 Nov 13:35

Added / Fixed

  • @simplex-viz/core:
    • Deferred 0×0 Mount Initialization & Clean Re-Initialization (#12): Added deferInitialSolve?: boolean on SimplexGraphEngineConfig and engine.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 stale 0×0 hull measurements.
  • @simplex-viz/svg:
    • Zero-Size Container Mount Recovery & deferInitialLayout (#12): Automatically detects 0×0 container mounts at construction, invalidates cached getBBox() hulls on the first non-zero ResizeObserver entry, and re-initializes the viewport cleanly with zero spring jump; added opt-in deferInitialLayout?: boolean | DeferInitialLayoutOptions ({ fallbackTimeoutMs?: number }) to skip the provisional 960×620 solve entirely until the container becomes visible.
    • Mobile Touch-Scroll Direction-Locking & Peak-Displacement Click Tolerance (#13): Added touchScrollLockPx (default 8) and clickTolerancePx (default 12) together with runtime setters setTouchScrollLockPx() and setClickTolerancePx(). Sets touch-action: pan-y when touchScrollLockPx > 0 so 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 exceeds clickTolerancePx across both free-camera and drill-down modes.
    • Lightweight shapeOptions Styling Hooks on GeometricShapeSvgView (#14): Added optional view-level hoverScale and dimmedOpacity hooks on SvgNodeView (applied cleanly in SvgRendererAdapter without altering SAT hulls or double-dimming), extended GeometricShapeSvgViewOptions with hoverScale, hoverRingColor, dimmedOpacity, strokeColor, and strokeWidth (factored into measureConvexHull() and preserved during morph()), forwarded shapeOptions through createPresetViews(preset, { shapeOptions }) (PresetViewsOptions) and SimplexSvgController, and added setShapeOptions().
  • @simplex-viz/react:
    • Production Embedding & Styling Props (#12, #13, #14): Added deferInitialLayout, touchScrollLockPx, clickTolerancePx, and shapeOptions props on <SimplexTopicGraph /> with dynamic useEffect synchronization, and re-exported DeferInitialLayoutOptions and PresetViewsOptions.
  • Documentation & READMEs:
    • Updated all four README.md files, Astro documentation guides (quickstart, customization), and package API references (@simplex-viz/core, @simplex-viz/svg, @simplex-viz/react) for 0.9.0.

SimplexViz v0.8.0

Choose a tag to compare

@github-actions github-actions released this 19 Nov 10:45

Added / Changed

  • @simplex-viz/core:
    • Chronological Timeline Engine (#8): Added zero-DOM SimplexTimelineController and createSimplexTimeline for grouping timestamped or frame-keyed records into ordered cumulative frames (play, pause, toggle, stepBy, seek, resetToEnd, setSpeed, setStepIntervalMs, setLoop, tick, subscribe), supporting getTimestamp, getFrameKey, undated step-0 baseline items, and includeEmptyStart.
    • 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 with canonicalSeedItems / engine.setCanonicalSeedItems(items) to freeze canonical (x, y) coordinates across timeline frames—keeping exact final scales ('pinned') or expanding sparse early frames symmetrically up to 1.0x with exact SAT 0.0 px overlap verification ('adaptive').
    • Configurable Empty-Cluster Rendering (#8): Added emptyClusterBehavior: 'normal' | 'dim' | 'hide' on SimplexGraphEngine (getEmptyClusterBehavior(), setEmptyClusterBehavior()) to keep future 0-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 into estimateClusterCount(ctx: EstimateClusterCountContext) and ClusteringStrategyContext so shrinking and regrowing the viewport cleanly restores the original cluster count.
    • Decoupled Tag Display Labels (#7): Added formatTagLabel and resolveTagDisplayLabel to 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 custom onWheel) so returning void/false composes with built-in drill-down/focus/tooltips/zoom and returning true consumes the event; added engine.relayout() to invalidate cached hulls and re-solve layout on demand.
  • @simplex-viz/svg:
    • Built-In Chronological Timeline Player HUD (#8): Added timeline option (boolean | TimelinePlayerOptions), controller.timeline, getTimeline(), setTimelineOptions(), and subscribeTimeline() with a theme-adaptive Play/Pause/Step/Scrubber overlay (showControls, position: 'bottom' | 'top'), automatic createFinalSeededClusteringStrategy wrapping (autoFinalSeed: true), optional createFinalSeededLayoutStrategy wrapping (autoFinalSeedLayout: false | 'pinned' | 'adaptive'), and emptyClusterBehavior ('normal' | 'dim' | 'hide').
    • Cluster Badge Formatting & Fixed/Item-Driven N-Gon Shapes (#4, #11): Added badgeOptions (showCode, maxTitleChars, formatTitle, truncateBadgeTitle) on BadgeClusterSvgView and presets, plus getShape / GeometricShapeSpec / resolveGeometricShapeSpec supporting arbitrary regular polygons (sides >= 3) with exact convex SAT hulls and invariance across 1:4 drill-down levels.
    • Webfont Auto-Relayout & Composable Handlers (#3, #9): Added relayoutOnFontLoad: true (subscribing to document.fonts.ready / loadingdone with clean destroy() teardown), controller.relayout(), setEmptyClusterBehavior(), and onWheel: 'none' without calling preventDefault().
  • @simplex-viz/react:
    • Timeline Props & Reactive Hook (#8): Added timeline, emptyClusterBehavior, and onTimelineStateChange props to <SimplexTopicGraph />, handle.getTimeline() and handle.relayout() on useSimplexGraphController(), and the reactive useSimplexTimeline() 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/core and @simplex-viz/svg APIs and types.
  • Showcase, Playground & Documentation:
    • Enabled live chronological timeline playback (1928–1976) with autoFinalSeedLayout: 'adaptive' and emptyClusterBehavior: '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.

SimplexViz v0.7.0

Choose a tag to compare

@github-actions github-actions released this 18 Nov 13:28

Fixed

  • @simplex-viz/core, @simplex-viz/svg, @simplex-viz/react — ESM Node16 / NodeNext .d.ts module resolution (#2):
    • Added explicit .js file extensions to all relative imports and export * re-exports across all three packages so published .d.ts declarations resolve cleanly under TypeScript moduleResolution: "node16" and "nodenext" without degrading cross-package re-exports to any.
    • Enforced "module": "NodeNext" and "moduleResolution": "NodeNext" in each package's tsconfig.build.json to catch extensionless relative specifiers at build time.
    • Added an automated Vitest integration test (nodenextResolution.test.ts) verifying nodenext typechecking with both skipLibCheck: true and skipLibCheck: false.
  • @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 createSubspaceZoomStrategy for representation-agnostic 6-vertex local subspace refinement across embeddings, pairwise similarity kernels, and tags (minItemsForRecluster: 6, blendFactor: 0.35), alongside assignDiscriminativeClusterLabels, resolveDiscriminativeClusterLabel, disambiguatePeerClusterTitle, and parentContextLabel breadcrumb/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 buildSimplexMesh and createAdaptiveHexMeshStrategy to align 60° lattice orientation to the viewport aspect ratio across mobile, standard, and widescreen canvases (minSideLength: 130, uncapped maxSideLength by default, maxClusters: 14, and adaptive innerPadding: 32–48 via resolveDefaultInnerPadding).
    • Space-Filling Layout Strategy Presets: Upgraded createPbdUniformLayoutStrategy, createWarmStartPbdLayoutStrategy, and createLocalAdaptiveLayoutStrategy to combine createMeshInwardFanSeeder + createSpaceFillingPbdRelaxer with post-dispersion scale/density regulation (crowdRadiusPx: 76, minLocalScale: 0.35, warmStart: true, and local halo collision polish instead of a global shrink fallback) while maintaining 0.0 px SAT overlap and covering-triangle containment.
  • @simplex-viz/svg & @simplex-viz/react:
    • Added WCAG-AA perceptual cluster surface contrast calibration (colorContrast) and two-line parentContextLabel rendering on chamfered intermediate subcluster plaques in BadgeClusterSvgView and ClusterAnchorSvgView.
    • Re-exported createSubspaceZoomStrategy, resolveDefaultInnerPadding, discriminative label helpers, and enriched SimplexZoomState fields (activeFrameKind, focusableTriangleIndices) across @simplex-viz/svg and @simplex-viz/react.
  • 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.yml gate (gating both GitHub Pages deployment and npm publishing while preserving release.yml for npm OIDC Trusted Publishing), enabled pnpm sync:brand:check in CI, switched brand PNG rendering to deterministic npm-managed @fontsource/* WOFF2 fonts (Plus Jakarta Sans + IBM Plex Mono + Noto Sans fallbacks) decompressed via woff2-encoder without relying on OS fonts, and cleaned stale artifacts from public/.