refactor(types)!: remove arrowhead and replace with markertype

* remove markerEndId
* rename arrowHeadColor to defaultMarkerColor

Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com>
This commit is contained in:
Braks
2021-12-20 19:29:52 +01:00
parent 6903dcb139
commit 056bcd5dd9
2 changed files with 69 additions and 12 deletions
+2 -8
View File
@@ -53,11 +53,6 @@ export interface Rect extends Dimensions, XYPosition {}
export type SnapGrid = [number, number]
export enum ArrowHeadType {
Arrow = 'arrow',
ArrowClosed = 'arrowclosed',
}
export enum BackgroundVariant {
Lines = 'lines',
Dots = 'dots',
@@ -142,8 +137,7 @@ export interface FlowProps<DataNode = any, DataEdge = DataNode> {
defaultPosition?: [number, number]
translateExtent?: CoordinateExtent
nodeExtent?: CoordinateExtent
arrowHeadColor?: string
markerEndId?: string
defaultMarkerColor?: string
zoomOnScroll?: boolean
zoomOnPinch?: boolean
panOnScroll?: boolean
@@ -156,4 +150,4 @@ export interface FlowProps<DataNode = any, DataEdge = DataNode> {
loading?: string
}
export type FlowOptions = FlowProps
export type FlowOptions<N = any, E = N> = FlowProps<N, E>