Commit Graph
263 Commits
Author SHA1 Message Date
Braks 6c2bdcdae6 fix(types): remove sourceX/Y, targetX/Y attributes from edge type
Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com>
2021-11-16 17:55:14 +01:00
Braks fc19ddec46 v0.0.10 2021-11-16 17:47:08 +01:00
Braks 413c7ac688 update(types!): Merge EdgeProps into Edge type
Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com>
2021-11-16 17:45:01 +01:00
Braks 525a1880b6 v0.0.9 2021-11-16 16:04:29 +01:00
Braks a58d952e9f fix: disable inherting attrs on nodes/edges to avoid warnings
* disable context warnings for non-dev environments

Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com>
2021-11-16 16:01:44 +01:00
Braks 63f710e422 update(docs): README.md
Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com>
2021-11-16 15:44:24 +01:00
Braks a0921859ce v0.0.8 2021-11-16 13:35:24 +01:00
Braks 4fb55aba68 fix: cancel keypress for input dom nodes
Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com>
2021-11-16 13:34:21 +01:00
Braks b077241625 fix: missing script lang in README.md
Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com>
2021-11-16 13:11:44 +01:00
Braks e560cdd257 v0.0.7 2021-11-16 13:08:28 +01:00
Braks 8414ee1ac1 update: remove js files after declaration generation
Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com>
2021-11-16 13:08:18 +01:00
Braks 476a5aa09b fix: type in usehooks
Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com>
2021-11-16 13:06:54 +01:00
Braks 490983bebe fix: todo in useHandle
* edge update end only emits the mouse event, not the edge

Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com>
2021-11-16 13:04:55 +01:00
Braks 7c66cf5d9b update!: Remove update node internals composable
* It's practically useless as vue doesn't need the trigger to catch a re-render
* Remove unused types

Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com>
2021-11-16 12:58:16 +01:00
Braks b8c8142dc4 v0.0.6 2021-11-16 10:01:06 +01:00
Braks d1dab4cda8 feat: Extend options to pass custom nodes / edges
* Accept either a Record<string, Component | boolean> or string[] as nodetypes option
* If bool / string is used a slot will be expected, otherwise no node/edge will be rendered

Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com>
2021-11-16 09:43:17 +01:00
Braks d9e310403c v0.0.5 2021-11-16 09:06:19 +01:00
Braks 65b73d3f7b update: Transform d.ts file paths to resolve correctly
* Add typescript-transform-paths plugin as dev-dep
* Add ts-patch as dev-dep
* Use tsc instead of vue-tsc to build declaration files
* Update tsconfig.json to emit declaration and use transform plugin
* Remove vue-tsc from dev-deps

Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com>
2021-11-16 09:04:42 +01:00
Braks 7c72507234 update(docs): README.md
Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com>
2021-11-15 21:18:58 +01:00
Braks 814212e369 v0.0.4 2021-11-15 21:04:57 +01:00
Braks 30d667bf83 update: remove umd build
* default to es

Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com>
2021-11-15 21:04:12 +01:00
Braks eeb604715f v0.0.3 2021-11-15 20:57:46 +01:00
Braks b5e56f85bd update: switch to umd build
Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com>
2021-11-15 20:57:08 +01:00
Braks 9dc8c09ebe v0.0.2 2021-11-15 20:37:48 +01:00
Braks 0a55693fb1 update(docs): README.md
Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com>
2021-11-15 20:35:26 +01:00
Braks ffdadda051 update!: Rename Flow container to VueFlow
* Export renamed to VueFlow

Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com>
2021-11-15 20:34:02 +01:00
Braks 98d7053951 update(docs): Remove docs dir
* Docs are in a dedicated repo now

Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com>
2021-11-15 20:07:03 +01:00
Braks dec2774145 update(edge): hide edge if source/target pos are NaN-ish
Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com>
2021-11-15 14:31:54 +01:00
Braks d6ee5f8868 fix: wrong watch source in nodes
* causes console warnings

Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com>
2021-11-15 12:50:03 +01:00
Braks 9c3eeef5eb fix: warnings when NaN values are passed to svg transformations
Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com>
2021-11-15 12:44:09 +01:00
Braks 3705a39fa8 refactor: perfomance optimisations through less dependency tracking
Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com>
2021-11-15 11:22:56 +01:00
Braks 482a1aa4af fix(examples): Proper events for listeners
Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com>
2021-11-15 10:43:58 +01:00
Braks 4d7712fdb2 v0.0.1 2021-11-06 17:04:31 +01:00
Braks 9f329c8802 feat(docs): Add docs index page
Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com>
2021-11-06 15:42:05 +01:00
Braks 066155b9f7 feat: copy default theme css file separately to dist
* to enable overwriting the default theme export it separately
* add rollup plugin copy for copying the css file

Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com>
2021-11-06 15:42:05 +01:00
Braks 1b0602dcce update(docs): README.md
Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com>
2021-11-06 15:42:05 +01:00
Braks 412a84a898 update(docs): styling of sidebar and header
Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com>

update(docs): target server generation

Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com>
2021-11-06 15:42:05 +01:00
Braks ea7db92b6e fix: draggable not updating on nodes
* remove alias for dagre

Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com>
2021-11-06 09:43:31 +01:00
Braks aaf5f608f5 feat: add path alias for src
Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com>
2021-11-06 09:38:02 +01:00
Braks 27c72e0022 update: remove examples-app dir
Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com>
2021-11-06 09:38:02 +01:00
Braks 5437d48325 fix: custom node example not fitting view
* fit view can't work (for the onLoad event) for elements assigned after the host has mounted (onMounted hook) as we can't calculate a rect of elements that don't exist at flow creation
* in this case just trigger fit view __after__ elements have been created/passed to the flow

Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com>
2021-11-06 08:54:35 +01:00
Braks a8f7cc2389 fix: zoom pane not scaling
Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com>
2021-11-06 08:54:35 +01:00
Braks 3931a59524 fix(docs): dedupe and add alias for vue
Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com>
2021-11-06 08:54:35 +01:00
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