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',
|
defaultMarkerColor: '#b1b1b7',
|
||||||
connectionLineStyle: {},
|
connectionLineStyle: {},
|
||||||
connectionLineType: ConnectionLineType.Bezier,
|
connectionLineType: null,
|
||||||
connectionLineOptions: {
|
connectionLineOptions: {
|
||||||
type: ConnectionLineType.Bezier,
|
type: ConnectionLineType.Bezier,
|
||||||
style: {},
|
style: {},
|
||||||
|
|||||||
@@ -114,7 +114,7 @@ export interface FlowProps {
|
|||||||
nodeTypes?: NodeTypesObject
|
nodeTypes?: NodeTypesObject
|
||||||
connectionMode?: ConnectionMode
|
connectionMode?: ConnectionMode
|
||||||
/** @deprecated use {@link ConnectionLineOptions.type} */
|
/** @deprecated use {@link ConnectionLineOptions.type} */
|
||||||
connectionLineType?: ConnectionLineType
|
connectionLineType?: ConnectionLineType | null
|
||||||
/** @deprecated use {@link ConnectionLineOptions.style} */
|
/** @deprecated use {@link ConnectionLineOptions.style} */
|
||||||
connectionLineStyle?: CSSProperties | null
|
connectionLineStyle?: CSSProperties | null
|
||||||
connectionLineOptions?: ConnectionLineOptions
|
connectionLineOptions?: ConnectionLineOptions
|
||||||
|
|||||||
@@ -81,7 +81,7 @@ export interface State extends Omit<FlowOptions, 'id' | 'modelValue'> {
|
|||||||
connectionMode: ConnectionMode
|
connectionMode: ConnectionMode
|
||||||
connectionLineOptions: ConnectionLineOptions
|
connectionLineOptions: ConnectionLineOptions
|
||||||
/** @deprecated use {@link ConnectionLineOptions.type} */
|
/** @deprecated use {@link ConnectionLineOptions.type} */
|
||||||
connectionLineType: ConnectionLineType
|
connectionLineType: ConnectionLineType | null
|
||||||
/** @deprecated use {@link ConnectionLineOptions.style} */
|
/** @deprecated use {@link ConnectionLineOptions.style} */
|
||||||
connectionLineStyle: CSSProperties | null
|
connectionLineStyle: CSSProperties | null
|
||||||
connectionStartHandle: StartHandle | null
|
connectionStartHandle: StartHandle | null
|
||||||
|
|||||||
Reference in New Issue
Block a user