Skip to content

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.