[transform] Fix mishap

This commit is contained in:
Behdad Esfahbod 2023-02-03 09:14:08 -07:00
parent 2e20e47473
commit 89aeff636c

View File

@ -402,15 +402,15 @@ def Scale(x, y=None):
@dataclass
class DecomposedTransform:
translateX: float = (0,)
translateY: float = (0,)
rotation: float = (0,) # in degrees, counter-clockwise
scaleX: float = (1,)
scaleY: float = (1,)
skewX: float = (0,) # in degrees, counter-clockwise
skewY: float = (0,) # in degrees, counter-clockwise
tCenterX: float = (0,)
tCenterY: float = (0,)
translateX: float = 0
translateY: float = 0
rotation: float = 0 # in degrees, counter-clockwise
scaleX: float = 1
scaleY: float = 1
skewX: float = 0 # in degrees, counter-clockwise
skewY: float = 0 # in degrees, counter-clockwise
tCenterX: float = 0
tCenterY: float = 0
def toTransform(self):
t = Transform()