Commit Graph
55 Commits
Author SHA1 Message Date
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 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 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 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 22a1dc6716 update: Add key to node 2021-08-17 19:47:24 +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 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 545eb0ede7 fix: add intrinsicattributes to shims
* remove declaration from shims-vue.d.ts
2021-08-08 22:36:28 +02:00
Braks adb5ec544d fix: Marker arrowheads not displayed 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 1d542aba65 refactor: back to jsx 🥇 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
Braks 1a7f3da0b6 fix: types 2021-07-20 20:11:13 +02:00
Braks b4fcab4004 fix: inject store instance components
chore: update revue-draggable to next tag
2021-07-20 20:01:10 +02:00
Braks 7c7c31b46f fix: no use of fragments for nodes as it results in warning from vue and we got enough of those as is
* some typing issues
2021-07-17 22:54:52 +02:00
Braks dfd9e96356 fix: node selection rect not dragging correctly
* issue comes from revue-draggable (has been fixed in 0.0.12) naming collision of the prop onDrag (callback fn) and the way JSX events are bound (onDrag instead of drag)
2021-07-17 21:07:24 +02:00
Braks 528f8f4420 refactor: remove passing props to reactive obj instead use props directly again (sort of breaks reactivity in some cases...)
fix: node selection not displaying correct rect after mouseup
2021-07-17 20:30:58 +02:00
Braks 61ab006e94 fix: node selection rect not properly rendering on key press and mousemove
* issue came from some reactivity problems; a component shouldn't return null, else it'll basically do nothing ever again if it's not completely remounted
* some type fixes, removed some any's
2021-07-17 19:34:32 +02:00
Braks 2f93c917e0 fix: user selection
deps: upgrade to latest revue-draggable
2021-07-15 23:32:58 +02:00
Braks c7fda830a6 update: use store injection in UserSelection component
fix: keypress not displaying working properly
2021-07-14 23:48:19 +02:00
Braks 6c9d88b09d refactor: use injected store so we can use a distinct instance not a global one 2021-07-13 16:13:15 +02:00
Braks ec45cd74e9 fix: create store instance for every revue flow instance 2021-07-11 09:32:51 +02:00
Braks e4f57c79e8 feat: Create examples directory and add some examples
* Add svg plugins for vite & rollup
update: more bundle stuff
2021-07-10 23:51:04 +02:00
Braks 881655d483 update: renaming stuff from react to "revue" 2021-07-10 18:33:38 +02:00
Braks d50d74598b update: no vue-2 compatability (doesn't work with current build)
* README.md
2021-07-10 16:42:39 +02:00
Braks f685c7a20a fix: some bundle stuff 2021-07-10 14:28:21 +02:00
Braks 6f39ae6de8 update: more changes to bundle config... 2021-07-10 12:31:09 +02:00
Braks 082d460e12 update: more changes to bundle config... 2021-07-10 12:21:45 +02:00
Braks 92caccfd6e update: use vue-demi again to add compatability to vue2
* add vite.config.app.ts for demo generation
2021-07-10 11:51:12 +02:00
Braks 6a6c5c9ee1 fix: proptype 2021-07-10 01:00:12 +02:00
Braks 59b6af384c update: remove vue-demi 2021-07-10 00:45:46 +02:00
Braks 303444f74d fix: some prop type issues
update: rollup.config.js & vite.config.ts & package.json
2021-07-10 00:05:49 +02:00
Braks 99548a0dba fix: try to deploy as package... 2021-07-09 21:54:05 +02:00
Braks 65332cfde3 update: add lint script to package.json
* lint files
2021-07-09 19:21:29 +02:00
Braks b6d9265317 update: revue-flow index.tsx 2021-07-09 16:34:05 +02:00
Braks 125340341d feat: update graph on new elements pushed 2021-07-09 16:32:03 +02:00