feat(core): add __experimentalFeatures flag to store

This commit is contained in:
braks
2022-11-17 18:38:51 +01:00
committed by Braks
parent d24e2113d6
commit 3c660583cb
2 changed files with 8 additions and 0 deletions

View File

@@ -114,6 +114,10 @@ const defaultState = (): State => ({
defaultEdgeOptions: undefined,
elevateEdgesOnSelect: false,
__experimentalFeatures: {
nestedFlow: false,
},
vueFlowVersion: typeof __VUE_FLOW_VERSION__ !== 'undefined' ? __VUE_FLOW_VERSION__ : '-',
})

View File

@@ -157,6 +157,10 @@ export interface FlowProps {
defaultEdgeOptions?: DefaultEdgeOptions
/** elevates edges when selected and applies z-Index to put them above their nodes */
elevateEdgesOnSelect?: boolean
__experimentalFeatures?: {
nestedFlow?: boolean
}
}
export type FlowOptions = FlowProps