Adds center type

Perhaps using unifying translate and transform? But the snapshots are different.
This commit is contained in:
Steve Ruiz 2021-05-22 10:00:00 +01:00
parent f57507a882
commit fb0bb47c19

View file

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