You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Returns `getStart` and `getEnd` functions for a Tween's Data based on a target property and end value.
40
+
* Returns `getActive`, `getStart` and `getEnd` functions for a TweenData based on a target property and end value.
41
+
*
42
+
* `getActive` if not null, is invoked _immediately_ as soon as the TweenData is running, and is set on the target property.
43
+
* `getEnd` is invoked once any start delays have expired and returns what the value should tween to.
44
+
* `getStart` is invoked when the tween reaches the end and needs to either repeat or yoyo, it returns the value to go back to.
33
45
*
34
-
* If the end value is a number, it will be treated as an absolute value and the property will be tweened to it. A string can be provided to specify a relative end value which consists of an operation (`+=` to add to the current value, `-=` to subtract from the current value, `*=` to multiply the current value, or `/=` to divide the current value) followed by its operand. A function can be provided to allow greater control over the end value; it will receive the target object being tweened, the name of the property being tweened, and the current value of the property as its arguments. If both the starting and the ending values need to be controlled, an object with `getStart` and `getEnd` callbacks, which will receive the same arguments, can be provided instead. If an object with a `value` property is provided, the property will be used as the effective value under the same rules described here.
46
+
* If the end value is a number, it will be treated as an absolute value and the property will be tweened to it.
47
+
* A string can be provided to specify a relative end value which consists of an operation
48
+
* (`+=` to add to the current value, `-=` to subtract from the current value, `*=` to multiply the current
49
+
* value, or `/=` to divide the current value) followed by its operand.
50
+
*
51
+
* A function can be provided to allow greater control over the end value; it will receive the target
52
+
* object being tweened, the name of the property being tweened, and the current value of the property
53
+
* as its arguments.
54
+
*
55
+
* If both the starting and the ending values need to be controlled, an object with `getStart` and `getEnd`
56
+
* callbacks, which will receive the same arguments, can be provided instead. If an object with a `value`
57
+
* property is provided, the property will be used as the effective value under the same rules described here.
35
58
*
36
59
* @function Phaser.Tweens.Builders.GetValueOp
37
60
* @since 3.0.0
38
61
*
39
62
* @param {string} key - The name of the property to modify.
40
63
* @param {*} propertyValue - The ending value of the property, as described above.
41
64
*
42
-
* @return {function} An array of two functions, `getStart` and `getEnd`, which return the starting and the ending value of the property based on the provided value.
65
+
* @return {function} An array of functions, `getActive`, `getStart` and `getEnd`, which return the starting and the ending value of the property based on the provided value.
43
66
*/
44
67
varGetValueOp=function(key,propertyValue)
45
68
{
@@ -51,6 +74,9 @@ var GetValueOp = function (key, propertyValue)
51
74
// The returned value sets what the property will be at the START of the Tween (usually called at the end of the Tween)
0 commit comments