docs(readme): add offset params to getEdgeCenter closes #523
This commit is contained in:
@@ -350,6 +350,8 @@ Returns the path of a bezier edge.
|
|||||||
targetX,
|
targetX,
|
||||||
targetY,
|
targetY,
|
||||||
targetPosition = Position.Top,
|
targetPosition = Position.Top,
|
||||||
|
centerX, // optional
|
||||||
|
centerY // optional
|
||||||
}: GetBezierPathParams): string`
|
}: GetBezierPathParams): string`
|
||||||
|
|
||||||
### getSmoothStepPath
|
### getSmoothStepPath
|
||||||
@@ -364,11 +366,13 @@ Returns the path of a smooth step edge. You can set `borderRadius` = `0` to get
|
|||||||
targetY,
|
targetY,
|
||||||
targetPosition = Position.Top,
|
targetPosition = Position.Top,
|
||||||
borderRadius = 5,
|
borderRadius = 5,
|
||||||
|
centerX, // optional
|
||||||
|
centerY // optional
|
||||||
}: GetSmoothStepPathParams): string`
|
}: GetSmoothStepPathParams): string`
|
||||||
|
|
||||||
### getEdgeCenter
|
### getEdgeCenter
|
||||||
|
|
||||||
Returns the center poostion `[centerX, centerY]` of the edge.
|
Returns the center poostion `[centerX, centerY, offsetX, offsetY]` of the edge.
|
||||||
|
|
||||||
`getEdgeCenter({ sourceX, sourceY, targetX, targetY }: GetCenterParams): [number, number, number, number]`
|
`getEdgeCenter({ sourceX, sourceY, targetX, targetY }: GetCenterParams): [number, number, number, number]`
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user