From 55549ec5d7c71114c3aab3d7d9281ab0b3a9f846 Mon Sep 17 00:00:00 2001 From: moklick Date: Sun, 27 Sep 2020 22:25:16 +0200 Subject: [PATCH] docs(readme): add offset params to getEdgeCenter closes #523 --- README.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 8fa7c45d..8bd0e870 100644 --- a/README.md +++ b/README.md @@ -350,6 +350,8 @@ Returns the path of a bezier edge. targetX, targetY, targetPosition = Position.Top, + centerX, // optional + centerY // optional }: GetBezierPathParams): string` ### getSmoothStepPath @@ -364,11 +366,13 @@ Returns the path of a smooth step edge. You can set `borderRadius` = `0` to get targetY, targetPosition = Position.Top, borderRadius = 5, + centerX, // optional + centerY // optional }: GetSmoothStepPathParams): string` ### 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]`