Skip to content

List view

  • No due date
  • # Description - A simple API to extend the vue flow store - Provide hooks to hook into store lifecycles (beforeCreate, created, beforeDestroy, destroyed) - Add some simple plugins to start off - DnD Plugin - ...? # Implementation ## Types ```ts interface PluginHooks { onBeforeCreate: EventHookOn<[string, FlowOptions | undefined]> created: EventHookOn<VueFlowStore> beforeDestroy: EventHookOn<VueFlowStore> destroyed: EventHookOn<string> } type Plugin = (hooks: PluginHooks) => void ``` ## Example ```ts // main.ts or your App entry point import { createVueFlow, Plugin } from '@vue-flow/core' const plugin: Plugin = (hooks) => { hooks.beforeCreate(([id, preloadedState]) => { // do something before a store instance is created } // after a store has been created hooks.created((storeInstance) => {}) // before a store is destroyed hooks.beforeDestroy((storeInstance) => {}) // after a store is destroyed hooks.destroyed(() => {}) } // install an array of Plugins const vueFlowApp = createVueFlow({ // options that are globally set for all store instances as defaults fitViewOnInit: true, }) vueFlowApp.use(plugin) ``` ## Extending Store Type (TypeScript shims) ```ts declare module '@vue-flow/core' { interface StoreBase { myProperty: boolean myRefProperty: Ref<boolean> } } ```

    No due date
    β€’6/6 issues closed
  • - Add support for a11y

    No due date
    β€’2/2 issues closed
  • # Upcoming changes - [ ] split pkg into multiple pkgs (core, bg, minimap, controls) - [ ] switch scope from `@braks` to `@vue-flow` - [ ] Additional testing (Vitest[?]) - [ ] A11y - [ ] Keyboard handler - [ ] Generics for Types - [ ] ...?

    No due date
    β€’2/2 issues closed
  • Relase 0.4.0 includes: * support for nesting nodes * composables for better access to internal state of nodes/edges * extended useVueFlow composable with easy access to event-listeners * removal of elements in state (replaced by nodes/edges) * removal of elements prop (replaced by modelValue / nodes / edges) and more

    Overdue by 3 year(s)
    β€’
    Due by December 31, 2021
    β€’8/8 issues closed