Browse Source

Adds center type

Perhaps using unifying translate and transform? But the snapshots are different.
main
Steve Ruiz 4 years ago
parent
commit
fb0bb47c19
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      lib/shape-utils/index.tsx

+ 2
- 2
lib/shape-utils/index.tsx View File

@@ -60,7 +60,7 @@ export interface ShapeUtility<K extends Shape> {
60 60
     shape: K,
61 61
     bounds: Bounds,
62 62
     info: {
63
-      type: TransformEdge | TransformCorner
63
+      type: TransformEdge | TransformCorner | "center"
64 64
       initialShape: K
65 65
       scaleX: number
66 66
       scaleY: number
@@ -72,7 +72,7 @@ export interface ShapeUtility<K extends Shape> {
72 72
     shape: K,
73 73
     bounds: Bounds,
74 74
     info: {
75
-      type: TransformEdge | TransformCorner
75
+      type: TransformEdge | TransformCorner | "center"
76 76
       initialShape: K
77 77
       scaleX: number
78 78
       scaleY: number

Loading…
Cancel
Save