fix(core): allow null for deprecated connection line type
Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
This commit is contained in:
@@ -77,7 +77,7 @@ const defaultState = (): State => ({
|
||||
|
||||
defaultMarkerColor: '#b1b1b7',
|
||||
connectionLineStyle: {},
|
||||
connectionLineType: ConnectionLineType.Bezier,
|
||||
connectionLineType: null,
|
||||
connectionLineOptions: {
|
||||
type: ConnectionLineType.Bezier,
|
||||
style: {},
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user