chore(core): deprecate flow props
This commit is contained in:
@@ -127,6 +127,7 @@ export interface FlowExportObject {
|
|||||||
|
|
||||||
export interface FlowProps {
|
export interface FlowProps {
|
||||||
id?: string
|
id?: string
|
||||||
|
/** @deprecated use `nodes` & `edges` instead */
|
||||||
modelValue?: Elements
|
modelValue?: Elements
|
||||||
nodes?: Node[]
|
nodes?: Node[]
|
||||||
edges?: Edge[]
|
edges?: Edge[]
|
||||||
@@ -174,12 +175,19 @@ export interface FlowProps {
|
|||||||
preventScrolling?: boolean
|
preventScrolling?: boolean
|
||||||
selectionMode?: SelectionMode
|
selectionMode?: SelectionMode
|
||||||
edgeUpdaterRadius?: number
|
edgeUpdaterRadius?: number
|
||||||
|
/** will be renamed to `fitView` */
|
||||||
fitViewOnInit?: boolean
|
fitViewOnInit?: boolean
|
||||||
/** allow connection with click handlers, i.e. support touch devices */
|
/** allow connection with click handlers, i.e. support touch devices */
|
||||||
connectOnClick?: boolean
|
connectOnClick?: boolean
|
||||||
/** apply default change handlers for position, dimensions, adding/removing nodes. set this to false if you want to apply the changes manually */
|
/**
|
||||||
|
* @deprecated - will be removed in the next major version, changes will not be auto applied in the future
|
||||||
|
* apply default change handlers for position, dimensions, adding/removing nodes. set this to false if you want to apply the changes manually
|
||||||
|
*/
|
||||||
applyDefault?: boolean
|
applyDefault?: boolean
|
||||||
/** automatically create an edge when connection is triggered */
|
/**
|
||||||
|
* @deprecated - will be removed in the next major version
|
||||||
|
* automatically create an edge when connection is triggered
|
||||||
|
*/
|
||||||
autoConnect?: boolean | Connector
|
autoConnect?: boolean | Connector
|
||||||
noDragClassName?: string
|
noDragClassName?: string
|
||||||
noWheelClassName?: string
|
noWheelClassName?: string
|
||||||
|
|||||||
Reference in New Issue
Block a user