Commit Graph
27 Commits
Author SHA1 Message Date
Braks 365a8a80fa update(types): default nodrag/nowheel/nopan class as type 2022-04-11 11:30:10 +02:00
Braks 8fbb1cf505 update(types): Connection target and source as non-nullable strings
* Required for a valid edge, so it should be required in a connection as well
2022-04-11 11:30:10 +02:00
Braks 8e3fef504c refactor(nodes,edges,types!): Change label-type to string | VNode | Object 2022-04-11 11:30:10 +02:00
Braks 817f69ccb5 update(nodes): NodeProps comments 2022-04-11 11:30:10 +02:00
Braks 6b76b8be06 refactor(nodes): Add nodeElements prop again
* Remove templateRef and use regular ref (templateRef causes infinite re-renders)
2022-04-11 11:30:10 +02:00
Braks c964fb6b7d refactor(nodes): Remove position func
* it's not improving on existing methods, i.e. no real benefit to it
2022-04-11 11:30:10 +02:00
Braks 106d2879ce update(types): Allow void return for styles/class func 2022-04-11 11:30:10 +02:00
Braks 60feb5d661 refactor(flow!): Remove paneReady state value 2022-04-11 11:30:10 +02:00
Braks 1e9cbc0643 feat(nodes): Add PositionFunc as node position type
* Allows position to be set relative to another node
2022-04-11 11:30:10 +02:00
Braks 8f2d94ae55 refactor(nodes!): Remove dimensions option, replace with width and height
* Can be used to set width, height (similar to style prop but with easier access)
2022-04-11 11:30:10 +02:00
Braks 4f026e841a refactor(nodes): Remove DraggableCore component and use composable
* Remove node-element prop from NodeProps
2022-04-11 11:30:10 +02:00
Braks 92a0817c48 refactor(types): ElementData as any type 2022-04-05 21:00:35 +02:00
Braks 453f155954 fix(edges): Remove duplicate source/targetHandle prop 2022-04-04 21:42:48 +02:00
Braks 094c4ff9ae feat(nodes): Allow pre-defined dimensions of a node 2022-04-04 21:42:48 +02:00
Braks d179838f64 feat(theme,types): Add css vars for overwriting node colors
* Add Styles type
2022-04-04 21:42:48 +02:00
Braks 7d509487c3 chore(types): remove some unnecessary generics 2022-04-04 21:42:48 +02:00
Braks 4d901ae4e8 chore(types): add element data typing 2022-04-04 21:42:48 +02:00
Braks d02ade03e9 feat(edges): return new edge from updateEdge utility 2022-04-04 21:42:48 +02:00
Braks 981511c76f fix(flow): computed getter type 2022-04-04 21:42:48 +02:00
Braks 186b96f87d update(flow): generic types 2022-04-04 21:42:48 +02:00
Braks ade61ca2e1 update(types): Remove unnecessary type exports
* rename StringFunc for better understanding
2022-04-04 21:42:48 +02:00
Braks 8e6e85a007 fix: use global nodeExtent if node.extent is undefined 2022-04-04 21:42:48 +02:00
Braks be8d4afa86 chore: remove unused export 2022-04-04 21:42:48 +02:00
Braks a50101bfd3 feat(nodes,edges): Allow class or styles to be bound with function
* function param is current node
* makes it easier to add classes / styles if specific node is selected etc.
2022-04-04 21:42:48 +02:00
Braks 73a9016aff fix(store): Getter type 2022-04-04 21:42:48 +02:00
Braks 95bc46e616 fix(flow): store & usevueflow types 2022-04-04 21:42:48 +02:00
Braks cd817b7f53 feat: implement workspaces 2022-04-04 21:42:48 +02:00