Skip to content

v0.7.0

Compare
Choose a tag to compare
@tkonopka tkonopka released this 30 Jul 08:42
· 23 commits to main since this release

Highlights

  • Control for enter and exit transitions in MilestoneMotion
  • Support for more customization in high-order components through prop componentProps
  • New component Viewfinder
  • Double-click interactions with legends

Added

  • [core] generic type PreparedDataContextProps to hold datasets with view-specific coordinates/formating
  • [annotation] prop variant in BlockArrow to support caret shapes
  • [core] support for exit states in shape and typography components (settings passed to componentProps in higher-order components affect animations in response to legend toggles, but do not take effect during milestone updates)
  • [all] transitioned package components to the ComponentProps interface where relevant, enabling customization of base components, including with custom animation states and custom transitions
  • [core] interface ComponentProps to support customization of base components in higher-order components
  • [core] separate motion settings for tooltip transitions
  • [core] prop transition in typography and shape components
  • [core] support for distinct enter and exit transitions in MilestoneMotion
  • [annotation] component Viewfinder
  • [core] prop allowDisableAll in legend components to toggle ability to mark all keys in a view as disabled; defaults to false in order to always preserve some visible view content, compute non-trivial scales, and avoid flashes during legend double-clicks
  • [core] support for double-clicks on legend items to toggle multiple keys at once

Changed

  • [all] removed exported types for contexts with prepared data, e.g. StripPreparedDataContextProps;
  • [core] rendering of Rectangle objects to avoid unnecessary fields with 'undefined' values in svg code
  • [matrix] replaced prop cell in HeatMapCells by component for consistency with other components
  • [core] renamed key Colors in ThemeSpec and CompleteThemeSpec to Color (for consistency with Target and Transition)
  • [core] renamed key Animation in ThemeSpec and CompleteThemeSpec to Target
  • [core] renamed key Motion in ThemeSpec and CompleteThemeSpec to Transition
  • [core] replaced prop transition in MilestoneMotion by pair of props enterTransition and exitTransition to enable different timings
  • [core] types for interactivity components to include onDoubleClick