mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-08-15 06:19:24 +02:00
chore: Fix type in 'getLineFunctionsWithOffset'
This commit is contained in:
@@ -38,7 +38,9 @@ const pointTransformer = (data: Point | [number, number]) => {
|
||||
return data;
|
||||
};
|
||||
|
||||
export const getLineFunctionsWithOffset = (edge: EdgeData) => {
|
||||
export const getLineFunctionsWithOffset = (
|
||||
edge: Pick<EdgeData, 'arrowTypeStart' | 'arrowTypeEnd'>
|
||||
) => {
|
||||
return {
|
||||
x: function (d: Point | [number, number], i: number, data: (Point | [number, number])[]) {
|
||||
let offset = 0;
|
||||
|
Reference in New Issue
Block a user