new lime.style.Transform(opt_precision)
Object representing CSS Transform.
Parameters:
| Name | Type | Argument | Description |
|---|---|---|---|
opt_precision |
number |
<optional> |
Default precision. |
- Source:
- helper/style.js, line 74
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 anglenumber Angle to rotate. opt_unitstring <optional>
Units. Defaults to degrees. - Source:
- helper/style.js, line 111
Returns:
object itself.- Type
- lime.style.Transform
-
scale(sx, sy) → {lime.style.Transform}
-
Scale current transform object
Parameters:
Name Type Description sxnumber X-axis scale factor. synumber y-axis scale factor. - Source:
- helper/style.js, line 99
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 valueBoolean - Source:
- helper/style.js, line 88
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 pnumber Precision(Lowest value to make a difference). - Source:
- helper/style.js, line 155
Returns:
object itself.- Type
- lime.style.Transform
-
toString() → {string}
-
Return CSS transform string from the object
- Source:
- helper/style.js, line 172
Returns:
CSS value string.- Type
- string
-
translate(tx, ty, opt_tz) → {lime.style.Transform}
-
Translate(move) current transform object
Parameters:
Name Type Argument Description txnumber Offset in x-axis. tynumber Offset in y-axis. opt_tznumber <optional>
Offset in z-axis. - Source:
- helper/style.js, line 132
Returns:
object itself.- Type
- lime.style.Transform