zimjs 16.4.3 → 16.4.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/zim.js +36 -9
package/package.json
CHANGED
package/src/zim.js
CHANGED
|
@@ -32593,6 +32593,13 @@ added, click, dblclick, mousedown, mouseout, mouseover, pressdown (ZIM), pressmo
|
|
|
32593
32593
|
}
|
|
32594
32594
|
next.y = height/2;
|
|
32595
32595
|
}
|
|
32596
|
+
|
|
32597
|
+
}
|
|
32598
|
+
|
|
32599
|
+
if (arrows && rightForward===false) {
|
|
32600
|
+
// zim.swapProperties("x", next, prev);
|
|
32601
|
+
// zim.swapProperties("y", next, prev);
|
|
32602
|
+
// zim.swapProperties("rotation", next, prev);
|
|
32596
32603
|
}
|
|
32597
32604
|
|
|
32598
32605
|
// pressdown and move mouse changes speed and direction of stepper
|
|
@@ -32943,16 +32950,30 @@ added, click, dblclick, mousedown, mouseout, mouseover, pressdown (ZIM), pressmo
|
|
|
32943
32950
|
arrowNext.color = arrowColor;
|
|
32944
32951
|
next.cur("pointer");
|
|
32945
32952
|
if (!continuous) {
|
|
32946
|
-
if (
|
|
32947
|
-
if (
|
|
32948
|
-
if (
|
|
32949
|
-
|
|
32950
|
-
|
|
32951
|
-
if (
|
|
32953
|
+
if (rightForward!==false) {
|
|
32954
|
+
if (stepperType == "number") {
|
|
32955
|
+
if (index == that.min) {
|
|
32956
|
+
if (numDir > 0) {greyPrev();} else {greyNext();}
|
|
32957
|
+
}
|
|
32958
|
+
if (index == that.max) {
|
|
32959
|
+
if (numDir > 0) {greyNext();} else {greyPrev();}
|
|
32960
|
+
}
|
|
32961
|
+
} else {
|
|
32962
|
+
if (index == 0) vertical?greyNext():greyPrev();
|
|
32963
|
+
if (index == list.length-1) vertical?greyPrev():greyNext();
|
|
32952
32964
|
}
|
|
32953
32965
|
} else {
|
|
32954
|
-
if (
|
|
32955
|
-
|
|
32966
|
+
if (stepperType == "number") {
|
|
32967
|
+
if (index == that.min) {
|
|
32968
|
+
if (numDir > 0) {greyNext();} else {greyPrev();}
|
|
32969
|
+
}
|
|
32970
|
+
if (index == that.max) {
|
|
32971
|
+
if (numDir > 0) {greyPrev();} else {greyNext();}
|
|
32972
|
+
}
|
|
32973
|
+
} else {
|
|
32974
|
+
if (index == 0) vertical?greyPrev():greyNext();
|
|
32975
|
+
if (index == list.length-1) vertical?greyNext():greyPrev();
|
|
32976
|
+
}
|
|
32956
32977
|
}
|
|
32957
32978
|
}
|
|
32958
32979
|
}
|
|
@@ -42298,7 +42319,7 @@ added, click, dblclick, mousedown, mouseout, mouseover, pressdown (ZIM), pressmo
|
|
|
42298
42319
|
draggable:true,
|
|
42299
42320
|
});
|
|
42300
42321
|
that.textArea = new zim.TextArea(Math.min(400, that.stage.width-70), Math.min(400, that.stage.height-70))
|
|
42301
|
-
|
|
42322
|
+
that.pane.add(that.textArea);
|
|
42302
42323
|
}
|
|
42303
42324
|
that.pane.show();
|
|
42304
42325
|
that.textArea.text = JSON.stringify(_steps);
|
|
@@ -52021,6 +52042,7 @@ sequence - (default 0) the delay time in seconds to run on children of a contain
|
|
|
52021
52042
|
If the loop prop is true then sequenceCall below would activate for each loop
|
|
52022
52043
|
For an array, you must use the zim function with a target parameter - otherwise you can use the ZIM 4TH method
|
|
52023
52044
|
Note: a sequence cannot be seriesed and a series cannot be sequenced
|
|
52045
|
+
Note: for a sequence animate() give the animate() an id and pauseAnimate() or stopAnimate() that id.
|
|
52024
52046
|
sequenceCall - (default null) the function that will be called for each sequence animation
|
|
52025
52047
|
Note: the value of the sequenceCall parameter will be the object that just ended animation unless there is a sequenceParams value
|
|
52026
52048
|
sequenceParams - (default null) a parameter sent to the sequenceCall function
|
|
@@ -52136,6 +52158,7 @@ PROPERTIES - zim.animate() adds the following properties to any object it animat
|
|
|
52136
52158
|
even if other animations are still running.
|
|
52137
52159
|
Pausing multiple objects should work fine.
|
|
52138
52160
|
See the tweenState property to test which ids are animating or paused
|
|
52161
|
+
For a sequence animate() give the animate() an id and pauseAnimate() or stopAnimate() that id.
|
|
52139
52162
|
waiting - read-only - true when animation is waiting in wait, rewindWait, loopWait
|
|
52140
52163
|
tweenState - an object with tween ids as properties along with an all property (unless no tweens anymore)
|
|
52141
52164
|
these properties are true if animating and false if paused
|
|
@@ -55016,6 +55039,8 @@ To stop a Shape tween, set an id in the animate call and use that id to stop the
|
|
|
55016
55039
|
this is because the shape tween animation is not on the shape but on its many control points
|
|
55017
55040
|
See also pauseAnimate()
|
|
55018
55041
|
|
|
55042
|
+
NOTE: for a sequence animate() give the animate() an id and pauseAnimate() or stopAnimate() that id.
|
|
55043
|
+
|
|
55019
55044
|
NOTE: formerly stopZimAnimate - which still works but is depreciated
|
|
55020
55045
|
|
|
55021
55046
|
NOTE: calling stopAnimate(id) stops tweens with this id on all objects
|
|
@@ -55103,6 +55128,8 @@ To pause a Shape tween, set an id in the animate call and use that id to pause t
|
|
|
55103
55128
|
this is because the shape tween animation is not on the shape but on its many control points
|
|
55104
55129
|
See also stopAnimate
|
|
55105
55130
|
|
|
55131
|
+
NOTE: for a sequence animate() give the animate() an id and pauseAnimate() or stopAnimate() that id.
|
|
55132
|
+
|
|
55106
55133
|
NOTE: formerly pauseZimAnimate - which still works but is depreciated
|
|
55107
55134
|
|
|
55108
55135
|
NOTE: calling pauseAnimate(true, id) pauses tweens with this id on all objects
|