fix(core): allow null for deprecated connection line type

Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
This commit is contained in:
braks
2023-02-11 02:13:20 +01:00
parent c47bc5ceb2
commit 1ae5659b6b
3 changed files with 3 additions and 3 deletions

View File

@@ -77,7 +77,7 @@ const defaultState = (): State => ({
defaultMarkerColor: '#b1b1b7',
connectionLineStyle: {},
connectionLineType: ConnectionLineType.Bezier,
connectionLineType: null,
connectionLineOptions: {
type: ConnectionLineType.Bezier,
style: {},

View File

@@ -114,7 +114,7 @@ export interface FlowProps {
nodeTypes?: NodeTypesObject
connectionMode?: ConnectionMode
/** @deprecated use {@link ConnectionLineOptions.type} */
connectionLineType?: ConnectionLineType
connectionLineType?: ConnectionLineType | null
/** @deprecated use {@link ConnectionLineOptions.style} */
connectionLineStyle?: CSSProperties | null
connectionLineOptions?: ConnectionLineOptions

View File

@@ -81,7 +81,7 @@ export interface State extends Omit<FlowOptions, 'id' | 'modelValue'> {
connectionMode: ConnectionMode
connectionLineOptions: ConnectionLineOptions
/** @deprecated use {@link ConnectionLineOptions.type} */
connectionLineType: ConnectionLineType
connectionLineType: ConnectionLineType | null
/** @deprecated use {@link ConnectionLineOptions.style} */
connectionLineStyle: CSSProperties | null
connectionStartHandle: StartHandle | null