From fb0bb47c192705c0b0ed3ff440ccd6a063255491 Mon Sep 17 00:00:00 2001 From: Steve Ruiz Date: Sat, 22 May 2021 10:00:00 +0100 Subject: [PATCH] Adds center type Perhaps using unifying translate and transform? But the snapshots are different. --- lib/shape-utils/index.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/shape-utils/index.tsx b/lib/shape-utils/index.tsx index f8decc40c..64efce3c8 100644 --- a/lib/shape-utils/index.tsx +++ b/lib/shape-utils/index.tsx @@ -60,7 +60,7 @@ export interface ShapeUtility { shape: K, bounds: Bounds, info: { - type: TransformEdge | TransformCorner + type: TransformEdge | TransformCorner | "center" initialShape: K scaleX: number scaleY: number @@ -72,7 +72,7 @@ export interface ShapeUtility { shape: K, bounds: Bounds, info: { - type: TransformEdge | TransformCorner + type: TransformEdge | TransformCorner | "center" initialShape: K scaleX: number scaleY: number