feat(core): add auto pan props

Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
This commit is contained in:
braks
2023-02-01 23:32:45 +01:00
committed by Braks
parent e1628ec660
commit 84f2235f23
4 changed files with 11 additions and 0 deletions
@@ -42,6 +42,8 @@ const props = withDefaults(defineProps<FlowProps>(), {
disableKeyboardA11y: undefined,
edgesFocusable: undefined,
nodesFocusable: undefined,
autoPanOnConnect: undefined,
autoPanOnNodeDrag: undefined,
})
const emit = defineEmits<{
+3
View File
@@ -119,6 +119,9 @@ const defaultState = (): State => ({
elevateEdgesOnSelect: false,
elevateNodesOnSelect: true,
autoPanOnNodeDrag: true,
autoPanOnConnect: true,
disableKeyboardA11y: false,
ariaLiveMessage: '',
+3
View File
@@ -171,6 +171,9 @@ export interface FlowProps {
edgesFocusable?: boolean
nodesFocusable?: boolean
autoPanOnConnect?: boolean
autoPanOnNodeDrag?: boolean
__experimentalFeatures?: {
nestedFlow?: boolean
}
+3
View File
@@ -126,6 +126,9 @@ export interface State extends Omit<FlowOptions, 'id' | 'modelValue'> {
elevateEdgesOnSelect: boolean
elevateNodesOnSelect: boolean
autoPanOnConnect: boolean
autoPanOnNodeDrag: boolean
disableKeyboardA11y: boolean
ariaLiveMessage: string