Class: Transform

lime.style.Transform

new lime.style.Transform(opt_precision)

Object representing CSS Transform.
Parameters:
Name Type Argument Description
opt_precision number <optional>
Default precision.
Source:

Summary

Methods
rotate(angle, opt_unit) → {lime.style.Transform}
Rotate current transform object
scale(sx, sy) → {lime.style.Transform}
Scale current transform object
set3DAllowed(value) → {lime.style.Transform}
Sets 3D enabling flag for css hardware acceleration (on by default)
setPrecision(p) → {lime.style.Transform}
Set the current precision of transform. This is handled as a state machine so it's added when called not when done.
toString() → {string}
Return CSS transform string from the object
translate(tx, ty, opt_tz) → {lime.style.Transform}
Translate(move) current transform object

Methods

rotate(angle, opt_unit) → {lime.style.Transform}

Rotate current transform object
Parameters:
Name Type Argument Description
angle number Angle to rotate.
opt_unit string <optional>
Units. Defaults to degrees.
Source:
Returns:
object itself.
Type
lime.style.Transform

scale(sx, sy) → {lime.style.Transform}

Scale current transform object
Parameters:
Name Type Description
sx number X-axis scale factor.
sy number y-axis scale factor.
Source:
Returns:
object itself.
Type
lime.style.Transform

set3DAllowed(value) → {lime.style.Transform}

Sets 3D enabling flag for css hardware acceleration (on by default)
Parameters:
Name Type Description
value Boolean
Source:
Returns:
object itself.
Type
lime.style.Transform

setPrecision(p) → {lime.style.Transform}

Set the current precision of transform. This is handled as a state machine so it's added when called not when done.
Parameters:
Name Type Description
p number Precision(Lowest value to make a difference).
Source:
Returns:
object itself.
Type
lime.style.Transform

toString() → {string}

Return CSS transform string from the object
Source:
Returns:
CSS value string.
Type
string

translate(tx, ty, opt_tz) → {lime.style.Transform}

Translate(move) current transform object
Parameters:
Name Type Argument Description
tx number Offset in x-axis.
ty number Offset in y-axis.
opt_tz number <optional>
Offset in z-axis.
Source:
Returns:
object itself.
Type
lime.style.Transform