Adds center type

Perhaps using unifying translate and transform? But the snapshots are different.
canvas-rendering
Steve Ruiz 2021-05-22 10:00:00 +01:00
rodzic f57507a882
commit fb0bb47c19
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -60,7 +60,7 @@ export interface ShapeUtility<K extends Shape> {
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<K extends Shape> {
shape: K,
bounds: Bounds,
info: {
type: TransformEdge | TransformCorner
type: TransformEdge | TransformCorner | "center"
initialShape: K
scaleX: number
scaleY: number