Skip to content

Commit 46be1fe

Browse files
committed
chore(core): deprecate flow props
1 parent 31903e4 commit 46be1fe

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

Diff for: packages/core/src/types/flow.ts

+10-2
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@ export interface FlowExportObject {
127127

128128
export interface FlowProps {
129129
id?: string
130+
/** @deprecated use `nodes` & `edges` instead */
130131
modelValue?: Elements
131132
nodes?: Node[]
132133
edges?: Edge[]
@@ -174,12 +175,19 @@ export interface FlowProps {
174175
preventScrolling?: boolean
175176
selectionMode?: SelectionMode
176177
edgeUpdaterRadius?: number
178+
/** will be renamed to `fitView` */
177179
fitViewOnInit?: boolean
178180
/** allow connection with click handlers, i.e. support touch devices */
179181
connectOnClick?: boolean
180-
/** apply default change handlers for position, dimensions, adding/removing nodes. set this to false if you want to apply the changes manually */
182+
/**
183+
* @deprecated - will be removed in the next major version, changes will not be auto applied in the future
184+
* apply default change handlers for position, dimensions, adding/removing nodes. set this to false if you want to apply the changes manually
185+
*/
181186
applyDefault?: boolean
182-
/** automatically create an edge when connection is triggered */
187+
/**
188+
* @deprecated - will be removed in the next major version
189+
* automatically create an edge when connection is triggered
190+
*/
183191
autoConnect?: boolean | Connector
184192
noDragClassName?: string
185193
noWheelClassName?: string

0 commit comments

Comments
 (0)