Braks
8cf22797f5
update(types): use MouseTouchEvent type for drag events
...
Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com >
2021-12-07 16:20:19 +01:00
Braks
fe3f6e6e19
chore(deps): update draggable to ^0.4.1
...
Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com >
2021-12-07 14:26:17 +01:00
Braks
c5228065b4
refactor(zoom): remove get and invoke imports
...
Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com >
2021-12-05 09:03:36 +01:00
Braks
4663bb228d
v0.3.1
2021-12-04 16:43:30 +01:00
Braks
8151c28495
update: use es file for default export
...
Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com >
2021-12-04 16:40:37 +01:00
Braks
601b65a75f
update: use tryOnMounted
...
Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com >
2021-12-04 16:40:07 +01:00
Braks
527a70c040
v0.3.0
2021-12-04 16:16:15 +01:00
Braks
f5caf94cfa
update(examples): remove node zoom from basic example
...
Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com >
2021-12-04 15:42:18 +01:00
Braks
1a3b68373e
update(store, types): overload flowoptions typings with non-nullables in flowstate
...
Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com >
2021-12-04 15:42:18 +01:00
Braks
f8cf71cfb8
refactor(store): rename param of setState
...
* newState -> opts
Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com >
2021-12-04 15:42:18 +01:00
Braks
3b448100d6
fix(store): correct injection and remove id from refs
...
Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com >
2021-12-04 15:42:18 +01:00
Braks
491c83dcc8
update(flow): disable loading component if prop not passed
...
Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com >
2021-12-04 15:42:18 +01:00
Braks
19a55759df
chore: move comment in vite.config.ts
...
Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com >
2021-12-04 15:42:18 +01:00
Braks
0fcf8bbeaa
update(store): static id for store state
...
Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com >
2021-12-04 15:42:18 +01:00
Braks
aa72527ad2
update(test): add more flow tests
...
Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com >
2021-12-04 15:42:18 +01:00
Braks
eab715b13a
update(types): remove Loading type from components.ts
...
Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com >
2021-12-04 15:42:18 +01:00
Braks
b838977687
feat(test): Add container.spec.ts
...
Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com >
2021-12-04 15:42:18 +01:00
Braks
b1f541b63d
refactore(store)!: Remove transition and loading.transition property
...
* Tranisitions break testing and are superflous
Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com >
2021-12-04 15:42:18 +01:00
Braks
9abc222c14
update(store): add test mode
...
* add key to loading slot
Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com >
2021-12-04 15:42:18 +01:00
Braks
bf9ce37b64
update(store): only inject if in current instance
...
Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com >
2021-12-04 15:42:18 +01:00
Braks
0816bf0c75
update(examples): remove pinia
...
Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com >
2021-12-04 15:42:18 +01:00
Braks
55122ed187
update(store, deps): remove microdiff
...
Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com >
2021-12-04 15:42:18 +01:00
Braks
55e738f6bf
update(test): remove pinia from tests
...
* update tests to succeed with new "store"
Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com >
2021-12-04 15:42:18 +01:00
Braks
3c9840cc50
update(types): Rename FlowStore to Store and ReactiveFlowStore to FlowStore
...
Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com >
2021-12-04 15:42:18 +01:00
Braks
70b44dbc03
update: add cjs to build
...
Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com >
2021-12-04 15:42:18 +01:00
Braks
58a8f9d4df
refactor(store)!: remove pinia
...
* replace pinia with a reactive state object and inject/provide
Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com >
update(store)!: inject store if possible, otherwise create a new one by id
Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com >
2021-12-04 15:42:18 +01:00
Braks
58f5c2568c
update(store): try to get active pinia before using new one
...
Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com >
2021-12-04 15:42:18 +01:00
Braks
a66425294c
update: exclude cypress dir from build
...
Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com >
2021-12-04 15:42:18 +01:00
Braks
229bbb7a3c
fix(store): zoom related state to update when flow is ready
...
Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com >
2021-11-28 10:01:23 +01:00
Braks and GitHub
796c60431f
feat(test): Add cypress for testing
2021-11-27 16:53:24 +01:00
Braks
43b68c1699
feat(zoom): Add option to zoom to specific node ids and transitionDuration for smooth transitions on fitView
...
Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com >
2021-11-26 15:59:01 +01:00
Braks
043ba21a94
fix(zoom): translateExtent not set correctly
...
Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com >
2021-11-26 15:38:03 +01:00
Braks
27e39796a0
fix(nodes): nodeExtent not set on position update
...
Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com >
2021-11-26 15:33:56 +01:00
Braks
4740a2c8fe
update(hooks): add elementsProcessed event hook
...
* triggered after elements have been processed and updated in store
* add missing selection change trigger to store
Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com >
2021-11-26 13:54:49 +01:00
Braks
b88f2105fb
update(edges): add updatable as prop to edges
...
Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com >
2021-11-26 11:30:23 +01:00
Braks
f0ca05f0c4
v0.2.2
2021-11-26 11:28:35 +01:00
Braks
512df8e42b
update(store): use setElements for addElements with force set false
...
Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com >
2021-11-26 11:26:37 +01:00
Braks
4630f3efc1
refactor(edges): Make edge updating optional
...
* add an option to enable edge updating globally
* pass an option to an edge to enable updating for a single edge
Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com >
2021-11-26 11:08:12 +01:00
Braks
98b6fdb717
update: watch node height too for updating dimensions
...
Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com >
2021-11-25 20:38:52 +01:00
Braks
166d83725b
v0.2.1
2021-11-25 19:30:40 +01:00
Braks
01f5456407
fix: setState syntax error
...
Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com >
2021-11-25 19:30:19 +01:00
Braks
e73a55af62
update: zoom-pane style
...
Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com >
2021-11-25 19:29:13 +01:00
Braks
c3f8809362
fix: import paths in components
...
Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com >
2021-11-25 19:29:13 +01:00
Braks
0b2764028f
update(nodes): watch nodes width for dimension update
...
* add force param to setElements, if set we clear the elements arr (default true)
* wait for store watcher until store is ready (i.e. a state has been set)
* move renderer css class to Renderer.vue
Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com >
2021-11-25 19:29:13 +01:00
Braks
5b00049a65
refactor(flow): deferr initial loading to Renderer.vue component
...
* suspend flow while async processing is going on (fallback to loading component)
Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com >
2021-11-25 19:29:13 +01:00
Braks
4408ca1eb7
refactor(graph): async process elements
...
* process elements in chunks of 50 per ms to avoid blocking main thread
Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com >
refactor(flow): deferr initial loading to Renderer.vue component
2021-11-25 19:29:13 +01:00
Braks
50fc0f2fd8
v0.2.0
2021-11-25 15:26:22 +01:00
Braks
6c3bce88a7
update(graph): mutate elements arr on updateEdge
...
Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com >
2021-11-25 15:21:36 +01:00
Braks
bd140f1549
update(flow): remove store, worker props
...
Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com >
2021-11-25 15:21:36 +01:00
Braks
f2e38ca7ac
update(nodes): add __vf to node props
...
* move edge/node component-types to components file
Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com >
2021-11-25 15:21:36 +01:00