Commit Graph
54 Commits
Author SHA1 Message Date
moklick f858cbb404 chore(apply-changes): cleanup) 2025-11-25 12:34:49 +01:00
Svilen IvanovandGitHub f739c7fae1 Avoid modifying node.measured object, create copy instead
When working with immutable `node` data, modifying in-place `node.measured` properties is not allowed. Since we perform a shallow copy, we need to create a new `measured` object to populate `width` and `height`
2025-10-30 16:04:40 +02:00
moklick cb6f0736dd refactor(changes): allow set attributes to be width or height 2025-04-17 13:22:56 +02:00
Moritz KlackandGitHub e3febd9fe5 Merge pull request #5172 from dimaMachina/tsdoc2-18
Improve TSDoc comments for `useNodesData`, `useReactFlow`, `isNode` and `isEdge`
2025-04-07 11:22:05 +02:00
Dimitri POSTOLOV e6139a00d4 Improve TSDoc comments for useNodesData, useReactFlow, isNode and isEdge 2025-04-06 04:52:08 +02:00
Dimitri POSTOLOV eb2a33c6df Improve TSDoc comments for interface GetSimpleBezierPathParams and getSimpleBezierPath 2025-04-06 04:46:01 +02:00
Dimitri POSTOLOV 7b4a81fb6b lint: use React.JSX type instead of the deprecated global JSX namespace 2025-02-20 16:11:00 +07:00
moklick 4117622970 chore(react): cleanup 2025-02-12 16:58:52 +01:00
moklick a541799654 chore(types): add tsdocs 2025-02-12 12:26:22 +01:00
moklick 381ed2a5bf chore(types): add tsdocs 2025-02-11 17:57:21 +01:00
moklick fb63462be3 chore(utils): tsdoc update 2025-02-11 15:18:41 +01:00
moklick d8ab3bf0bd chore(hooks): tsdoc update 2025-02-11 13:59:17 +01:00
moklick e3890f7e38 chore(applyChanges): cleanup 2024-08-28 16:21:38 +02:00
moklick e02e3703c1 fix(setNodes): use correct index when using setNodes for inserting #4455 2024-08-28 16:17:03 +02:00
moklick 5093213116 chore(react): udpate return type of fixedForwardRef function 2024-05-07 14:47:47 +02:00
moklick 7501eace79 fix(react): default node updates closes #4202 2024-04-29 13:35:58 +02:00
moklick a7b6789ce0 fix(react): handle setNodes batching in provider #4147 2024-04-25 12:57:24 +02:00
moklick 7e8bcd8825 refactor(react): add setAttributes for dimension changes 2024-04-22 14:51:23 +02:00
moklick 6bab47fcb7 refactor(node-selection): cleanup 2024-04-17 12:34:31 +02:00
moklick ea18e46a1a refactor(nodes): rename computed to measured, add helpers 2024-04-03 14:54:24 +02:00
moklick 67d979985d refactor(react): handle parent expand in store instead of applyChanges 2024-03-28 17:08:05 +01:00
moklick 844d574c4f refactor(react): separate user nodes and indernal nodes 2024-03-27 11:22:43 +01:00
moklick 24a63391fc chore(packages): bump 2024-03-16 12:22:07 +01:00
moklick 54c69c7d8e fix(react): use fixedForwardRef function 2024-03-14 15:08:39 +01:00
moklick f507fbcb4b chore(react): createSelectionChange types 2024-02-07 17:16:24 +01:00
Moritz KlackandGitHub 6b18c9daeb refactor defaultNodes/defaultEdges handling (#3882)
* refactor(react): cleanup defaultnodes/defaultedges handling

* chore(examples): cleanup

* chore(examples): cleanup

* fix(react): selection for uncontrolled flows
2024-02-07 17:09:39 +01:00
moklick a027b26f11 fix(react): expandParent option for child nodes 2024-01-25 21:13:06 +01:00
moklick 1bc1ae855d refactor(util-functions): cleanup types so that node/edge types get infered 2024-01-15 17:32:30 +01:00
Felipe Emos 88c9372bb9 fix: typesafety of Node and Edge changes
On some functions and type definitions related to Change Events,
the generics for the types Node and Edge were being lost.

This commit fixes those:
  - Functions
    - applyNodeChanges
    - applyEdgeChanges
  - Types
    - NodeChange
    - EdgeChange
    - OnNodesChange
    - OnEdgesChange
2024-01-13 00:46:34 -03:00
moklick 2ba35de186 refactor(applyChanges): use specific replace events instead of a rough reset 2024-01-11 16:03:02 +01:00
moklick cf6c9a86b7 refactor(react/changes): cleanup 2024-01-11 11:08:32 +01:00
moklick f4def7d6c1 refactor(react/changes): handle resize 2024-01-11 10:27:07 +01:00
Hayleigh Thompson c9c1db8e79 Merge branch 'main' into refactor/set-nodes 2024-01-10 19:00:56 +00:00
Hayleigh Thompson 8c05ec419e ♻️ Refactor 'applyChanges' for better perf. 2024-01-10 18:17:58 +00:00
moklick cc921045ca fix(react/applyChanges): handle deletion and expandParent 2024-01-10 11:11:38 +01:00
moklick b18ef10e43 refactor(react): use node.width/height for resizer changes 2024-01-09 16:20:47 +01:00
moklick 2870c2f367 fix(react): applyChanges broken for multi changes for one node 2024-01-08 15:29:21 +01:00
moklick 1efd3ee3d5 fix(applyChanges): handle empty flows + addNodes/addEdges closes #3770 2024-01-08 11:35:59 +01:00
moklick 97ab615e6a Merge branch 'next' into refactor/tsdoc 2023-12-19 11:59:44 +01:00
moklick 0feda91446 refactor(react): do not set selections for all nodes/edges 2023-12-18 17:21:14 +01:00
moklick 4143591d96 refactor(react): dont create new edge objects on setEdges 2023-12-18 17:03:48 +01:00
moklick 5b455a0b2d refactor(edge-wrapper): cleanup 2023-12-18 11:00:27 +01:00
moklick eb0b09c00e refactor(reactflow): optimize applyChanges handler 2023-12-14 12:32:19 +01:00
moklick 8ceb1addc1 refactor(useSetNodeData): put function in useReactFlow/useSvelteFlow 2023-12-12 18:52:45 +01:00
moklick 10f31e79e6 refactor(types): use custom node type as generic 2023-12-07 12:24:03 +01:00
moklick a58f915697 refactor(connectionlookup): use maps instead of arrays 2023-12-06 17:49:34 +01:00
Peter 46815e546a TSDocs for applyNodeChanges & applyEdgeChanges 2023-12-05 14:26:55 +01:00
Peter 95dfd1d6de Finished TSDocs for util functions in React 2023-12-05 13:46:59 +01:00
Peter b264c11c54 Added some more TSDocs for util functions 2023-12-05 13:35:12 +01:00
moklick b6743a3cf3 refactor(react/handle-connection-state): cleanup 2023-12-04 14:23:42 +01:00