Commit Graph

2408 Commits

Author SHA1 Message Date
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
Braks
6b9c608381 update: edge label bg true by default 2021-08-08 19:28:45 +02:00
Braks
05c111e5df fix: default position for handle on output node 2021-08-08 19:28:45 +02:00
Braks
16e93af184 fix: edges not updating text 2021-08-08 19:28:45 +02:00
Braks
e2162c95a8 fix: return render function 2021-08-08 19:28:45 +02:00
Braks
6347cf97cb fix: copy preloadedstate object for pinia to avoid using an existing state when re-creating store 2021-08-08 19:28:45 +02:00
Braks
3b5857febb fix: typecast edges and nodes
* make GraphView props all required
refactor: renamed "NodesTypeType" to "NodeType" and "EdgesTypeType" to "EdgeType"
2021-08-08 19:28:45 +02:00
Braks
83216f8ece fix: custom nodes not getting styled properly
* BezierEdge.tsx not drawing paths correctly
2021-08-08 19:28:45 +02:00
Braks
1d542aba65 refactor: back to jsx 🥇 2021-08-08 19:28:45 +02:00
Braks
a6f7678c0f refactor: resize handler and zoom pan helper to watch until refs are resolved 2021-08-08 19:28:45 +02:00
Braks
25c92ecd84 update: Remove wrapEdge and wrapNode files
* implement Edge.tsx and Node.vue to wrap the components accordingly
refactor!: Removing callbacks from props in favor of events
chore: upgrade vue and vite vue plugin
2021-08-08 19:28:45 +02:00
Braks
ffd41fb679 refactor: Refactor some jsx files to vue files
feat: add global hooks to emulate sort of an event bus between components
* global hooks are not exposed to user but emit events upward from Revue-flow component, just more convenient
2021-08-08 19:28:45 +02:00
Braks
ef9647ceb4 chore: add vueuse/core to deps
feat: Implement onKeystrok of vueuse
* Implement useEventlistener
fix: node selection not properly selecting underlying nodes
2021-07-23 17:50:48 +02:00