From 813cd4f7801235bef903624b6d9fd2eb3583aa43 Mon Sep 17 00:00:00 2001 From: Anton Lavrenov Date: Mon, 25 Dec 2023 10:26:28 -0500 Subject: [PATCH] add missing types, close #1693 --- src/shapes/Transformer.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/shapes/Transformer.ts b/src/shapes/Transformer.ts index ed044b655..f699a132d 100644 --- a/src/shapes/Transformer.ts +++ b/src/shapes/Transformer.ts @@ -42,6 +42,12 @@ export interface TransformerConfig extends ContainerConfig { boundBoxFunc?: (oldBox: Box, newBox: Box) => Box; useSingleNodeRotation?: boolean; shouldOverdrawWholeArea?: boolean; + anchorDragBoundFunc?: ( + oldPos: Vector2d, + newPos: Vector2d, + evt: any + ) => Vector2d; + anchorStyleFunc?: (anchor: Shape) => void; } var EVENTS_NAME = 'tr-konva';