Releases: tokarchyn/react-easy-diagram
Releases · tokarchyn/react-easy-diagram
v0.11.3
Changes
- Fix rendering diagram with old/default settings
- Recalculate diagram boundaries on zoomToFit
- Do not use "global" variable
v0.11.2
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
Changes
- Fix ignored data of port defined in component settings when data is not defined in node state
v0.11.0
Changes
- [BREAKING] onNodePositionChanged - rename
oldPosition
and newPosition
to oldValue
and newValue
respectively
- Add
onNodeLabelChanged
, onNodeTypeChanged
, onNodeDataChanged
, onNodeIsSelectionEnabledChanged
and onNodeIsDragEnabledChanged
callbacks
v0.10.0
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
Changes
- Update dependencies.
- Add react of version 18 to peer dependencies.
0.9.4
Changes
- Fix node size calculcation on node data changes
0.9.3
Changes
- Fix ignoring nearly all of the properties of a node object passed to the createNodeOnDrop function
0.9.2
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
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