From 847767c060e71ac5beb542b0b25c621c7bd1fdce Mon Sep 17 00:00:00 2001 From: Steve Ruiz Date: Fri, 9 Jul 2021 10:22:22 +0100 Subject: [PATCH] Update types-import.ts --- components/code-panel/types-import.ts | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/components/code-panel/types-import.ts b/components/code-panel/types-import.ts index 72e514ab2..7ac5b8bdb 100644 --- a/components/code-panel/types-import.ts +++ b/components/code-panel/types-import.ts @@ -516,7 +516,13 @@ interface ShapeUtility { onHandleChange( this: ShapeUtility, shape: Mutable, - handle: Partial + handle: Partial, + info?: Partial<{ + delta: number[] + shiftKey: boolean + altKey: boolean + metaKey: boolean + }> ): ShapeUtility onDoublePointHandle( @@ -1084,7 +1090,13 @@ interface ShapeUtility { onHandleChange( this: ShapeUtility, shape: Mutable, - handle: Partial + handle: Partial, + info?: Partial<{ + delta: number[] + shiftKey: boolean + altKey: boolean + metaKey: boolean + }> ): ShapeUtility onDoublePointHandle( @@ -1663,7 +1675,7 @@ type RequiredKeys = { const t = i / steps return t * t * t }) - .map((t) => [...Vec.lrp(a, b, t), (1 - t) / 2]) + .map((t) => Vec.round([...Vec.lrp(a, b, t), (1 - t) / 2])) } }