Commit Graph
2369 Commits
Author SHA1 Message Date
moklick d5cffa730b refactor(deps): remove unused deps 2021-12-11 07:14:54 +01:00
moklick 895e0bc524 refactor(store): use store.setState directly instead of actions 2021-12-11 05:22:41 +01:00
moklick 1a2ac5aa3e refactor(storeupdater): cleanup 2021-12-10 00:35:41 +01:00
Christopher Möller 774db77597 chore(package.json): bump next version 2021-12-09 15:07:59 +01:00
Christopher Möller 747097f61b chore(zoompane): remove unused code 2021-12-09 15:00:20 +01:00
moklick 81585dbff5 refactor(general): cleanup 2021-12-09 09:17:36 +01:00
moklick 38308781ee refactor(store): remove unused tree generation code 2021-12-09 07:27:23 +01:00
moklick 88582a86cc refactor(general): fit view in store to prevent flickering, rename onLoad => onPaneReady 2021-12-09 07:24:45 +01:00
moklick 3a52efbb1f chore(version): bump 2021-12-08 23:34:53 +01:00
moklick 266007b38b feat(rf): add fitViewOnInit option 2021-12-08 23:19:43 +01:00
moklick 91256c1f92 chore(version): bump 2021-12-07 04:39:03 +01:00
moklick 427c933389 refactor(hooks): rename useNodeDimensions to useNodeBounds 2021-12-07 04:38:17 +01:00
moklick d9c99a8a6d refactor(onLoad): add new zoom pan helpers 2021-12-07 04:05:45 +01:00
moklick c2644f16bb refactor(nodeInternals): widht and height types optional 2021-12-07 02:01:40 +01:00
moklick b5bba7dc70 refactor(useZoomPanHelper): add getTransform, getZoom, rename transform to getTransform closes #1746 2021-12-07 01:59:57 +01:00
moklick 731918dc13 feat(hooks): add useNodeDimensions 2021-12-07 01:58:48 +01:00
moklick 79a32ae2fc chore(version): bump 2021-12-04 01:02:42 +01:00
moklick 2e83af4638 Merge branch 'main' into v10 2021-12-04 01:01:25 +01:00
moklick 5fbf3d8c83 refactor(types): add useZoomPanHelperFunc types 2021-12-04 00:44:59 +01:00
moklick 8710130883 refactor(node): mutate select value before user changes 2021-12-04 00:44:23 +01:00
moklick 31b379c83c chore: release v9.7.0 2021-12-03 23:33:58 +01:00
Moritz KlackandGitHub d880c13754 Merge pull request #1590 from doctoroyy/fix/first-render
fix: avoid render all nodes at first render if set width
2021-12-03 23:28:43 +01:00
moklick f913ae77ff refactor(zoomPanHelper): add duration to fit view params 2021-12-03 23:22:01 +01:00
moklick d9e0f2a555 Merge branch 'main' of github.com:wbkd/react-flow 2021-12-02 22:28:35 +01:00
Moritz KlackandGitHub 70b85692ea Merge pull request #1699 from Mahdi-Esbati/feature/d3-smooth-transition
Smooth transitions for useZoomPanHelper using built-in d3 functions
2021-12-02 22:28:26 +01:00
moklick ebd5a5f0a0 fix(pos-updates): multi selection drag 2021-12-02 22:24:34 +01:00
Mahdi 7dc8311476 set the default animation duration to 0ms 2021-12-03 00:51:26 +03:30
moklick 2d4d31bab2 chore(version): bump 2021-12-02 21:41:22 +01:00
Moritz KlackandGitHub f6b8bfb6be Merge pull request #1720 from wbkd/dependabot/npm_and_yarn/main/cypress-9.1.0
chore(deps-dev): bump cypress from 9.0.0 to 9.1.0
2021-12-02 21:41:04 +01:00
dependabot[bot]andGitHub 053baf1741 chore(deps-dev): bump cypress from 9.0.0 to 9.1.0
Bumps [cypress](https://github.com/cypress-io/cypress) from 9.0.0 to 9.1.0.
- [Release notes](https://github.com/cypress-io/cypress/releases)
- [Changelog](https://github.com/cypress-io/cypress/blob/develop/.releaserc.base.js)
- [Commits](https://github.com/cypress-io/cypress/compare/v9.0.0...v9.1.0)

---
updated-dependencies:
- dependency-name: cypress
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-12-02 20:37:04 +00:00
Moritz KlackandGitHub fbc7b0e6ba Merge pull request #1721 from wbkd/dependabot/npm_and_yarn/main/rollup-plugin-postcss-4.0.2
chore(deps-dev): bump rollup-plugin-postcss from 4.0.1 to 4.0.2
2021-12-02 21:36:26 +01:00
Moritz KlackandGitHub 37d1d227b0 Merge pull request #1722 from wbkd/dependabot/npm_and_yarn/main/postcss-8.4.4
chore(deps-dev): bump postcss from 8.3.11 to 8.4.4
2021-12-02 21:36:18 +01:00
Moritz KlackandGitHub b795e7251a Merge pull request #1723 from wbkd/dependabot/npm_and_yarn/main/svgr/rollup-6.0.0
chore(deps-dev): bump @svgr/rollup from 5.5.0 to 6.0.0
2021-12-02 21:36:10 +01:00
Moritz KlackandGitHub be08b14401 Merge pull request #1724 from wbkd/dependabot/npm_and_yarn/main/prettier-2.5.0
chore(deps-dev): bump prettier from 2.4.1 to 2.5.0
2021-12-02 21:36:03 +01:00
Moritz KlackandGitHub 2e243776d0 Merge pull request #1725 from wbkd/dependabot/npm_and_yarn/main/rollup-plugin-typescript2-0.31.1
chore(deps-dev): bump rollup-plugin-typescript2 from 0.31.0 to 0.31.1
2021-12-02 21:35:55 +01:00
Moritz KlackandGitHub 49757e4744 Merge pull request #1728 from xixixao/patch-1
Fix bug in updateNodePosDiff action
2021-12-02 21:35:43 +01:00
Moritz KlackandGitHub 5b0a1b20e3 Merge pull request #1732 from wbkd/refactor/selection
Refactor/selection
2021-11-30 18:23:37 +01:00
Michal SrbandGitHub c1b9275083 Fix bug in updateNodePosDiff action
This is the intended logic. Without it triggering this action with a node id will always move selected nodes, which is not desirable if we want to move just an unselected node.

The bug doesn't show up in current examples because at the moment either one selected node is moved or all the selected nodes are moved. TBH this should probably be changed to accept `ids` instead to handle the two cases instead of this tight coupling between the group selection code and this action.
2021-11-29 08:38:49 +01:00
dependabot[bot]andGitHub 7c17dffda0 chore(deps-dev): bump rollup-plugin-typescript2 from 0.31.0 to 0.31.1
Bumps [rollup-plugin-typescript2](https://github.com/ezolenko/rollup-plugin-typescript2) from 0.31.0 to 0.31.1.
- [Release notes](https://github.com/ezolenko/rollup-plugin-typescript2/releases)
- [Commits](https://github.com/ezolenko/rollup-plugin-typescript2/compare/0.31.0...0.31.1)

---
updated-dependencies:
- dependency-name: rollup-plugin-typescript2
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-11-29 04:03:07 +00:00
dependabot[bot]andGitHub 3c8ee17898 chore(deps-dev): bump prettier from 2.4.1 to 2.5.0
Bumps [prettier](https://github.com/prettier/prettier) from 2.4.1 to 2.5.0.
- [Release notes](https://github.com/prettier/prettier/releases)
- [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md)
- [Commits](https://github.com/prettier/prettier/compare/2.4.1...2.5.0)

---
updated-dependencies:
- dependency-name: prettier
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-11-29 04:02:55 +00:00
dependabot[bot]andGitHub 0ae72abe1e chore(deps-dev): bump @svgr/rollup from 5.5.0 to 6.0.0
Bumps [@svgr/rollup](https://github.com/gregberge/svgr) from 5.5.0 to 6.0.0.
- [Release notes](https://github.com/gregberge/svgr/releases)
- [Changelog](https://github.com/gregberge/svgr/blob/main/CHANGELOG.md)
- [Commits](https://github.com/gregberge/svgr/compare/v5.5.0...v6.0.0)

---
updated-dependencies:
- dependency-name: "@svgr/rollup"
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-11-29 04:02:45 +00:00
dependabot[bot]andGitHub 1b6e92f63f chore(deps-dev): bump postcss from 8.3.11 to 8.4.4
Bumps [postcss](https://github.com/postcss/postcss) from 8.3.11 to 8.4.4.
- [Release notes](https://github.com/postcss/postcss/releases)
- [Changelog](https://github.com/postcss/postcss/blob/main/CHANGELOG.md)
- [Commits](https://github.com/postcss/postcss/compare/8.3.11...8.4.4)

---
updated-dependencies:
- dependency-name: postcss
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-11-29 04:02:17 +00:00
dependabot[bot]andGitHub ff263e363f chore(deps-dev): bump rollup-plugin-postcss from 4.0.1 to 4.0.2
Bumps [rollup-plugin-postcss](https://github.com/egoist/rollup-plugin-postcss) from 4.0.1 to 4.0.2.
- [Release notes](https://github.com/egoist/rollup-plugin-postcss/releases)
- [Changelog](https://github.com/egoist/rollup-plugin-postcss/blob/master/CHANGELOG-OLD.md)
- [Commits](https://github.com/egoist/rollup-plugin-postcss/compare/v4.0.1...v4.0.2)

---
updated-dependencies:
- dependency-name: rollup-plugin-postcss
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-11-29 04:01:58 +00:00
moklick 14b9ec4a6a refactor(wrapNode): simplify mouse handler 2021-11-28 02:48:09 +01:00
moklick 2cd047bc76 fix(child-nodes): dragging when parent is selected 2021-11-28 02:39:27 +01:00
moklick 801d8f2ad4 fix(subflows): handle selections correctly 2021-11-26 19:35:31 +01:00
moklick 330eefe695 refactor(selection): only fire selection changes that changed 2021-11-26 18:42:52 +01:00
moklick d260abec75 refactor(actions): addSelectedElements => addSelectedNodes, addSelectedEdges 2021-11-26 15:18:27 +01:00
moklick a032306408 feat(hooks): add useNodesState and useEdgesState 2021-11-26 14:39:22 +01:00
moklick 713e7e1bd4 refactor(examples): on connect use connection type 2021-11-26 13:58:30 +01:00