chore: Fix type in 'getLineFunctionsWithOffset'

This commit is contained in:
Sidharth Vinod
2023-09-14 13:05:21 +05:30
parent ed9159cece
commit ce78ff116e

View File

@@ -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;