Commit Graph
709 Commits
Author SHA1 Message Date
moklick e011375c3d feat(props): add onNodesDelete and onEdgesDelete handler 2022-02-20 21:17:59 +01:00
moklick 522780eac9 fix(ts): dont make viewport optional for move callbacks 2022-02-10 12:54:50 +01:00
himself65 d250a7d2cd fix: enhance type 2022-02-06 17:13:51 -06:00
moklick 3067b72d91 refactor(hooks): export key press hook 2022-01-31 17:22:25 +01:00
moklick b3b8ac9553 refactor(props): rename paneMoveable to panOnDrag 2022-01-31 17:19:52 +01:00
moklick b1791eaaec refactor(useViewport): use shallow for selector 2022-01-30 14:45:48 +01:00
moklick 4e97472fe9 refactor(rf): cleanup 2022-01-29 22:21:22 +01:00
Moritz KlackandGitHub f789703db4 Merge pull request #1861 from andreyworkspace/bugfix/v10
Removed wrong type
2022-01-29 22:15:10 +01:00
moklick 8dcb8758a8 feat(nodes): add group type 2022-01-29 22:14:45 +01:00
andreyworkspace 4ad17d8318 removed wrong type 2022-01-29 19:53:48 +03:00
moklick 578c278b31 refactor(wrapnode): create mouse handler util hook 2022-01-28 17:05:40 +01:00
moklick 588b590e14 refactor(wrapnode): pass shallow clones to handlers 2022-01-28 16:46:35 +01:00
moklick c40a36fdb6 refactor(wrapnode): get node from store in event handlers 2022-01-28 15:02:52 +01:00
moklick 7e915ad39f refactor(nodes): re-init when sourcePos, targetPos or type changes 2022-01-28 14:48:14 +01:00
moklick ee1a393dcb refactor(changes): handle expand parent on dimension update 2022-01-28 13:26:16 +01:00
moklick 1b45a3f85d fix(fitview): only fit view once 2022-01-28 13:25:56 +01:00
Christopher Möller af52bab2a5 refactor(fitView): use same fitView function for viewport helper and initial prop 2022-01-27 13:00:03 +01:00
moklick 067d681485 refactor(types): add NodePositionChange type 2022-01-25 13:54:33 +01:00
moklick 0cfcf656a0 refactor(defaultNode/Edges): always trigger onNodesChange and onEdgesChange 2022-01-20 17:55:27 +01:00
moklick bfea566d70 fix(exports): add hooks 2022-01-20 12:02:45 +01:00
moklick a182458781 feat(hooks): add useViewport 2022-01-20 10:03:19 +01:00
moklick e52c5eda19 refactor(types): drop NodeInternalsItem type 2022-01-19 22:17:07 +01:00
moklick 08b2696e6b feat(hooks): add useNodes and useEdges 2022-01-19 22:16:53 +01:00
Christopher Möller f95f390cb3 chore(nodes): prevent crashing when data is not set on nodes object 2022-01-19 18:47:52 +01:00
Christopher Möller c2bae79916 feat(hooks): add useReactFlow hook, refactor types and properties 2022-01-19 18:31:49 +01:00
Christopher MöllerandGitHub 1755da3089 Merge pull request #1843 from wbkd/v10-default-nodes-edges
feat(general): add defaultNodes, defaultEdges and defaultEdgeOptions
2022-01-19 10:58:10 +01:00
moklick 97b5327e1e refactor(controls): add titles for buttons 2022-01-18 15:49:18 +01:00
moklick 634b592b3a feat(general): add defaultNodes, defaultEdges and defaultEdgeOptions 2022-01-18 13:05:41 +01:00
moklick 660ec00be5 refactor(store): cleanup 2022-01-17 15:15:48 +01:00
moklick 0b241d27c1 feat(attribution): add react flow attribution 2022-01-05 16:45:04 +01:00
moklick eaeebdd12e feat(subflow): add extendParent option 2022-01-04 11:15:44 +01:00
moklick f01e239947 refactor(useKeyPress): check if key code is string 2022-01-03 17:54:26 +01:00
moklick a969c63400 chore(examples): use new api 2021-12-25 13:30:13 +01:00
moklick ca77d0ef4c fix(edges): draw connection line when there are no edges closes #1785 2021-12-22 11:17:29 +01:00
moklick 6bbd06a16e fix(selection): use start x and y when direction changes 2021-12-18 14:28:01 +01:00
moklick d8b054c7d6 feat(props): add connectOnClick 2021-12-17 10:49:05 +01:00
moklick 3206d49c15 chore(examples): add overview, cleanup 2021-12-17 10:43:53 +01:00
moklick 3b25086149 feat(nodes): connect on touch device 2021-12-17 10:35:53 +01:00
moklick 639aa1ee23 refactor(bundle): remove d3-color via rollup alias 2021-12-16 16:57:16 +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 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 266007b38b feat(rf): add fitViewOnInit option 2021-12-08 23:19:43 +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