feat(core): add auto pan props
Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
This commit is contained in:
@@ -42,6 +42,8 @@ const props = withDefaults(defineProps<FlowProps>(), {
|
|||||||
disableKeyboardA11y: undefined,
|
disableKeyboardA11y: undefined,
|
||||||
edgesFocusable: undefined,
|
edgesFocusable: undefined,
|
||||||
nodesFocusable: undefined,
|
nodesFocusable: undefined,
|
||||||
|
autoPanOnConnect: undefined,
|
||||||
|
autoPanOnNodeDrag: undefined,
|
||||||
})
|
})
|
||||||
|
|
||||||
const emit = defineEmits<{
|
const emit = defineEmits<{
|
||||||
|
|||||||
@@ -119,6 +119,9 @@ const defaultState = (): State => ({
|
|||||||
elevateEdgesOnSelect: false,
|
elevateEdgesOnSelect: false,
|
||||||
elevateNodesOnSelect: true,
|
elevateNodesOnSelect: true,
|
||||||
|
|
||||||
|
autoPanOnNodeDrag: true,
|
||||||
|
autoPanOnConnect: true,
|
||||||
|
|
||||||
disableKeyboardA11y: false,
|
disableKeyboardA11y: false,
|
||||||
ariaLiveMessage: '',
|
ariaLiveMessage: '',
|
||||||
|
|
||||||
|
|||||||
@@ -171,6 +171,9 @@ export interface FlowProps {
|
|||||||
edgesFocusable?: boolean
|
edgesFocusable?: boolean
|
||||||
nodesFocusable?: boolean
|
nodesFocusable?: boolean
|
||||||
|
|
||||||
|
autoPanOnConnect?: boolean
|
||||||
|
autoPanOnNodeDrag?: boolean
|
||||||
|
|
||||||
__experimentalFeatures?: {
|
__experimentalFeatures?: {
|
||||||
nestedFlow?: boolean
|
nestedFlow?: boolean
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -126,6 +126,9 @@ export interface State extends Omit<FlowOptions, 'id' | 'modelValue'> {
|
|||||||
elevateEdgesOnSelect: boolean
|
elevateEdgesOnSelect: boolean
|
||||||
elevateNodesOnSelect: boolean
|
elevateNodesOnSelect: boolean
|
||||||
|
|
||||||
|
autoPanOnConnect: boolean
|
||||||
|
autoPanOnNodeDrag: boolean
|
||||||
|
|
||||||
disableKeyboardA11y: boolean
|
disableKeyboardA11y: boolean
|
||||||
|
|
||||||
ariaLiveMessage: string
|
ariaLiveMessage: string
|
||||||
|
|||||||
Reference in New Issue
Block a user