Skip to content

Releases: tokarchyn/react-easy-diagram

v0.11.3

11 Feb 11:56
8e56499
Compare
Choose a tag to compare

Changes

  • Fix rendering diagram with old/default settings
  • Recalculate diagram boundaries on zoomToFit
  • Do not use "global" variable

v0.11.2

31 Oct 20:56
Compare
Choose a tag to compare

Changes

  • Fix exported node typescript type
  • Add linkState.swapEndpoint method
  • Update useGesture library to 10.2.21
  • Fix distance equals to 0 on zoom with mouse wheel and holding ctrl (the problem is not solved entirely due to the bug in useGesture)

v0.11.1

11 Sep 19:08
Compare
Choose a tag to compare

Changes

  • Fix ignored data of port defined in component settings when data is not defined in node state

v0.11.0

10 Sep 19:58
Compare
Choose a tag to compare

Changes

  • [BREAKING] onNodePositionChanged - rename oldPosition and newPosition to oldValue and newValue respectively
  • Add onNodeLabelChanged, onNodeTypeChanged, onNodeDataChanged, onNodeIsSelectionEnabledChanged and onNodeIsDragEnabledChanged callbacks

v0.10.0

06 Sep 20:12
Compare
Choose a tag to compare

BREAKING CHANGES

  • From now node ports should be defined either in node type or in individual node state. Component <Port/> is used only to specify where port should be rendered. See additional information in documentation
  • Callbacks were completely changed. Callbacks documentation.
  • Rename extra properties to data.
  • Rename zoom to fit setting callOnLoad to callOnImportState.
  • Fix type for tranlsateAndZoomInto -> translateAndZoomInto.
  • Add and refactor methods in NodesStore and LinksStore.
  • Render <Diagram/> and <DiagramInner/> child.
  • Fix removeSelectedCommand.

v0.9.5

08 Jun 20:23
Compare
Choose a tag to compare

Changes

  • Update dependencies.
  • Add react of version 18 to peer dependencies.

0.9.4

25 May 18:06
Compare
Choose a tag to compare

Changes

  • Fix node size calculcation on node data changes

0.9.3

09 May 17:55
Compare
Choose a tag to compare

Changes

  • Fix ignoring nearly all of the properties of a node object passed to the createNodeOnDrop function

0.9.2

13 Nov 13:26
Compare
Choose a tag to compare

Changes

  • Add drag and drop
  • Enable to use diagram context and component that render it separately
  • Improve perfromance
  • Improve multiple simultaneous user interactions
  • Do not unselect links on drag
  • Add two stylable states for port: 'node-hovered' and 'node-selected'
  • Add additional settings for zoom to fit feature
  • Fix nodes snapping when dragging more than one node
  • Update use-gesture package

0.9.1

17 Oct 21:01
Compare
Choose a tag to compare

Changes

  • Fix hidden svg child elements when svg is out of screen
  • Disable tap-to-search in Chrome for Android
  • Restyle ports and change colors for other elements
  • Improve performance by replacing observable object for styling with hooks