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 angle
number Angle to rotate. opt_unit
string <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 sx
number X-axis scale factor. sy
number 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 value
Boolean - 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 p
number 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 tx
number Offset in x-axis. ty
number Offset in y-axis. opt_tz
number <optional>
Offset in z-axis. - Source:
- helper/style.js, line 132
Returns:
object itself.- Type
- lime.style.Transform