Braks
ae0772b6d4
update(docs): fix view height
2021-11-06 08:54:35 +01:00
Braks
67876cdd1b
update(docs): disable ssr
2021-11-06 08:54:35 +01:00
Braks
c21ad948c8
update: use yarn instead of pnpm
2021-11-06 08:54:35 +01:00
Braks
e99dfc3dd2
update(docs): Add all examples
2021-11-06 08:54:35 +01:00
Braks
61779638ac
update(dist): Remove rollup and use vite to build lib
...
* Remove custom tsconfig paths to avoid resolving issues on published package
2021-11-06 08:54:35 +01:00
Braks
64df75d405
feat(docs): Initial commit for docs in nuxt 3
2021-11-06 08:54:35 +01:00
Braks
6ec8258f33
fix: typings
2021-10-22 14:29:27 +02:00
Braks
cb96b1ab00
fix: missing node id in node components/slots
2021-10-22 13:04:33 +02:00
Braks
ee07affa89
fix: missing bgcolor in background
2021-10-22 13:03:25 +02:00
Braks
8779a58bab
update(examples): Add validation and zoom pan helper example
2021-10-22 13:03:14 +02:00
Braks
babcbd0e1f
update: Flow instance provides update node internals func
...
* Rename onLoadParams to FlowInstance
* Pass update node internals to instance
2021-10-22 12:39:55 +02:00
Braks
cd32f14a5a
update(examples): Add update node example
2021-10-22 11:05:27 +02:00
Braks
0cc7ef4805
update(examples): Add Unidirectional and updatable edge example
2021-10-22 10:46:54 +02:00
Braks
3ee3843af6
fix: Edge updates not triggering properly
...
update(types): Add FlowEvents type
2021-10-22 10:46:12 +02:00
Braks
c23bbfaa4a
update(examples): Add switch example
2021-10-22 10:00:38 +02:00
Braks
5611f79ea8
update(examples): Add stress example
2021-10-22 10:00:21 +02:00
Braks
89efc0b7e4
update: disable no-console rule
2021-10-22 10:00:21 +02:00
Braks
3f863ef71c
update(examples): Add Save & Restore example
...
* add localforage to dev deps
2021-10-22 10:00:21 +02:00
Braks
eb9714b898
update(examples): Add Provider example
...
* Provider example shows usage of store outside of Flow
2021-10-22 10:00:20 +02:00
Braks
0a45e09c32
feat: Add node/edge types id
...
* ID can be used to switch between different types of nodes/edges
* Add example
2021-10-22 08:49:53 +02:00
Braks
26b3901bd5
fix: node not updating handlebounds when handle pos changes
...
* watch source & target pos and update node dimensions on next tick
2021-10-22 08:16:32 +02:00
Braks
9532615cfd
chore(deps): Downgrade draggale to 0.2.5 due to transformation issue with current version
2021-10-21 18:03:06 +02:00
Braks
20e9d1d396
update: fix names
2021-10-21 17:42:33 +02:00
Braks
e9392b13c5
chore(deps): update draggable
2021-10-21 16:35:05 +02:00
Braks
cd02dd0444
fix: node type change not triggering recalculation of node dimensions
2021-10-21 16:23:23 +02:00
Braks
636eeff9fe
feat: use v-html for node labels
...
* add span tag as wrapper for node labels
feat(examples):
* Add overview example
2021-10-21 15:29:17 +02:00
Braks
a9f187697a
update(examples): remove "hack" from layouting example
2021-10-21 15:11:10 +02:00
Braks
e11fddf70a
fix: valid connection func in handle
2021-10-21 15:10:42 +02:00
Braks
0a9c1b0717
update(examples): Add multi flows example
2021-10-21 14:55:19 +02:00
Braks
712cf3ef66
update(examples): Add layouting example
2021-10-21 14:47:32 +02:00
Braks
6d197d7f2a
update: remove nodes selection props
2021-10-21 14:38:27 +02:00
Braks
0e79718720
update: Add validConnectFunc as prop to handle
2021-10-21 14:28:11 +02:00
Braks
24316e1386
update: background properties
2021-10-21 13:57:20 +02:00
Braks
ca2901bc01
fix: zoom pan helper not being initialized timely
2021-10-21 13:46:15 +02:00
Braks
c062601874
fix: nodeposdiff not updating correctly on node selection
2021-10-21 12:49:11 +02:00
Braks
5d3845b91c
update: remove babel (no jsx used anymore)
2021-10-21 12:48:54 +02:00
Braks
77d2e01fc0
update: types
...
* Add elements to flowoptions type
* add window interface to custom shims
2021-10-21 00:24:59 +02:00
Braks
31c896edb5
update: replace vue version when rolling bundle
...
* remove vue jsx
2021-10-21 00:09:23 +02:00
Braks
5f500bca18
fix: store actions blocking main thread
...
* map function overwriting nodes causes main thread to be blocked
* instead use splice
2021-10-20 23:46:47 +02:00
Braks
ff7ee5c7fe
fix: label type in edges
2021-10-20 23:09:36 +02:00
Braks
2bfecf7148
update: change name to vue flow
...
* Add gif to readme
Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com >
2021-10-20 22:39:54 +02:00
Braks
64a4b8c418
fix: nodes as fragments
...
feat: accept vnode as edge text
2021-10-20 22:39:54 +02:00
Braks
b2b1fe822f
feat: add useStore and useHooks composables that provide default store/hooks
2021-10-20 22:39:54 +02:00
Braks
61dc9dea33
fix: edges and edge anchors not re-calculating correctly
2021-10-20 22:39:54 +02:00
Braks
7ecbcba7eb
fix: edge anchor
2021-10-20 22:39:54 +02:00
Braks
8c54daedc0
feat: scope edge and node slots by name
...
* node, edge names slots scoped as `edge/node-${edge/node-type}`
2021-10-20 22:39:54 +02:00
Braks
9d9a90e9a7
update: Add slots to CustomConnectionLine.vue, Edge.vue, Node.vue
2021-10-20 22:39:54 +02:00
Braks
b3d276bfb8
fix: clamp transform values
2021-10-20 22:39:54 +02:00
Braks
cfc8f7782f
update: remove render tracking hooks
2021-10-20 22:39:54 +02:00
Braks
9373533e0e
update: disable vue-tsc for now
2021-10-20 22:39:54 +02:00
Braks
6cfe5f6d43
chore(deps): remove unused deps
...
* update deps
* some ts fixes
2021-10-20 22:39:54 +02:00
Braks
17f2517ab4
fix: too many re-render on edges and nodes
2021-10-20 22:39:54 +02:00
Braks
fede792a37
fix: correct event listeners in examples
2021-10-20 22:39:54 +02:00
Braks
c3fb3cd10a
fix: zoom pan helper
2021-10-20 22:39:54 +02:00
Braks
a895853b64
update: Add injection keys
2021-10-20 22:39:54 +02:00
Braks
1853c21353
update: add slots to Background.vue, Controls.vue and MiniMap.vue
2021-10-20 22:39:54 +02:00
Braks
6b4e7ab3ce
fix: Minimap
2021-10-20 22:39:54 +02:00
Braks
29c6df1755
update(examples): Fix examples
2021-10-20 22:39:54 +02:00
Braks
a5ae6a4e48
update(deps): Add unplugin-components
...
fix: Excessive rerender of edge texts
update(script-setup): Update some examples
* Remove more jsx files
2021-10-20 22:39:54 +02:00
Braks
1ff3a8dc9c
update(script-setup): Refactor additional-components
...
* Remove jsx files
fix: ConnectionLine.vue not recalculating properly
2021-10-20 22:39:54 +02:00
Braks
560bdc203b
update(script-setup): Refactor remaining files to script setup style
2021-10-20 22:39:54 +02:00
Braks
9b2f4b7406
fix: return transform from useZoom
2021-10-20 22:39:54 +02:00
Braks
f8728f0d6e
feat: script setup style
...
* Add Node.vue
2021-10-20 22:39:54 +02:00
Braks
9307c9066a
feat: script setup style
...
* Replace jsx with script setup syntax
* Simplify logic and make it more "composable"
* Move Zoom functions to useZoom composable
* Update eslint config & tsconfig
2021-10-20 22:39:54 +02:00
Braks
fec2ef40da
refactor: update usekeypress functions
2021-10-20 22:39:54 +02:00
Braks
3557284a40
refactor(types): Split types into separate files
...
* for better organization split typings into separate files
* use index as barrel file
2021-10-20 22:39:54 +02:00
Braks
769378a2ea
chore(deps): Use pnpm instead of yarn
...
* Add pnpm-lock
* update deps
2021-10-20 22:39:54 +02:00
Braks
77eac0c12a
chore(lint): Update eslint rules
...
* Remove semi
2021-10-20 22:39:54 +02:00
Braks
5ed1094dfe
feat: Add cb to useKeyPress
2021-08-18 09:51:10 +02:00
Braks
f6f7564894
update(perfomance): Fix node perfomance
2021-08-17 23:16:10 +02:00
Braks
ec17f8a879
v0.1.2
2021-08-17 22:32:52 +02:00
Braks
347f1edc32
update: Pass selection key code to zoom pane
...
* Use keypress handler in zoom pane instead of passing value as prop
2021-08-17 22:14:39 +02:00
Braks
d6a8ed6be5
update: Color prop optional in MarkerDefinitions
2021-08-17 22:14:02 +02:00
Braks
ece1fecbf8
fix(perfomance): Edge updating too much
...
* Edges update constantly even though options aren't really changing
2021-08-17 22:13:24 +02:00
Braks
e0bc7e2c96
update(example): Add measurment (px) to nodes width and font size
2021-08-17 19:47:49 +02:00
Braks
22a1dc6716
update: Add key to node
2021-08-17 19:47:24 +02:00
Braks
3f6d49914f
fix: Add measurment (px) to EdgeText width and height
2021-08-17 19:47:05 +02:00
Braks
9d8b49eeb1
fix: Connection line not working properly (regression)
2021-08-17 19:46:31 +02:00
Braks
908e741399
chore(deps): Update vueuse to 6.0.0
2021-08-17 19:45:49 +02:00
Braks
b8ce50ae3e
update: Add effect scope to useZoomPanHelper.ts
...
* Easier cleanup after zoompanhelper has been initialized
2021-08-17 19:45:26 +02:00
Braks
8d8a4a3d1e
update: Remove effect watcher from zoom pane
...
* Add zoom after initialization instead of applying it after every effect watcher call
2021-08-17 19:44:33 +02:00
Braks
23c5d2415c
feat(example): Add interaction demo
...
* Showcase how to dynamically activate/deactivate different options of the flowchart
2021-08-16 21:51:53 +02:00
Braks
e4a094017d
feat(example): Add hidden example
...
* Check if node/edge is hidden before rendering
2021-08-16 21:41:16 +02:00
Braks
489e12a8a7
feat(example): Add empty canvas example
...
* Add nodes on button click to an otherwise empty flowchart canvas
2021-08-16 21:27:22 +02:00
Braks
384c05240f
feat(example): Add edge types example (stress tests)
...
* Remove a lot of computed functions or merge them into existing ones
*
2021-08-16 21:17:38 +02:00
Braks
15f968c607
fix(example): Header showing an empty option
2021-08-08 23:05:10 +02:00
Braks
3cd0693b93
fix: shims-tsx.d.ts having duplicate string identifier? whatever that error meant...
2021-08-08 22:59:40 +02:00
Braks
47df2c75a4
v0.1.1
2021-08-08 22:53:31 +02:00
Braks
af87f08c6f
fix: version
2021-08-08 22:53:15 +02:00
Braks
9e76d07636
fix: rollup bundling css in d.ts file
2021-08-08 22:40:55 +02:00
Braks
e5d8338b32
chore(dev-deps): remove rollup-plugin-vue
2021-08-08 22:36:59 +02:00
Braks
545eb0ede7
fix: add intrinsicattributes to shims
...
* remove declaration from shims-vue.d.ts
2021-08-08 22:36:28 +02:00
Braks
2653c70334
update: rollup config
...
* add rollup.ts
* add esbuild register to devdeps
* add rollup plugin dts to devdeps
2021-08-08 21:36:40 +02:00
Braks
156b312336
update: button edge example to remove edge on click
2021-08-08 20:33:55 +02:00
Braks
74a2a3d8c3
feat: add edge with button example
2021-08-08 20:25:44 +02:00
Braks
6912993ebd
update(example): redirect to basic example as default
2021-08-08 19:33:44 +02:00
Braks
adb5ec544d
fix: Marker arrowheads not displayed
2021-08-08 19:28:45 +02:00
Braks
9e397e6817
fix(example): custom edges not displayed correctly
2021-08-08 19:28:45 +02:00
Braks
e7513b898c
fix(example): Custom node positions
2021-08-08 19:28:45 +02:00
Braks
2188c5d3d3
feat(example): Add custom edge example
...
update(example): fit view on custom node example
* node selection to use hooks
* dev script to use vue-tsc
2021-08-08 19:28:45 +02:00