zimjs 18.2.3 → 18.2.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 +22 -23
package/package.json
CHANGED
package/src/zim.js
CHANGED
|
@@ -1743,7 +1743,7 @@ RETURNS any value returned from the loop - or true if no value is returned from
|
|
|
1743
1743
|
r = call(obj.item(i), i, total, start, end, obj, io);
|
|
1744
1744
|
}
|
|
1745
1745
|
|
|
1746
|
-
if (r == 'next') io.next();
|
|
1746
|
+
if (r == 'next' && i < total-1) io.next();
|
|
1747
1747
|
else if (typeof r != 'undefined') {
|
|
1748
1748
|
io.clear();
|
|
1749
1749
|
return r;
|
|
@@ -1780,7 +1780,7 @@ RETURNS any value returned from the loop - or true if no value is returned from
|
|
|
1780
1780
|
r = call(obj.item(i), i, total, start, end, obj, io);
|
|
1781
1781
|
}
|
|
1782
1782
|
|
|
1783
|
-
if (r == 'next') io.next();
|
|
1783
|
+
if (r == 'next' && i < total-1) io.next();
|
|
1784
1784
|
else if (typeof r != 'undefined') {
|
|
1785
1785
|
io.clear();
|
|
1786
1786
|
return r;
|
|
@@ -1814,7 +1814,7 @@ RETURNS any value returned from the loop - or true if no value is returned from
|
|
|
1814
1814
|
|
|
1815
1815
|
r = call(props[i], obj[props[i]], i, total, start, end, obj, io);
|
|
1816
1816
|
|
|
1817
|
-
if (r == 'next') io.next();
|
|
1817
|
+
if (r == 'next' && i < total-1) io.next();
|
|
1818
1818
|
else if (typeof r != 'undefined') {
|
|
1819
1819
|
io.clear();
|
|
1820
1820
|
return r;
|
|
@@ -1835,7 +1835,7 @@ RETURNS any value returned from the loop - or true if no value is returned from
|
|
|
1835
1835
|
|
|
1836
1836
|
r = call(props[i], obj[props[i]], i, total, start, end, obj, io);
|
|
1837
1837
|
|
|
1838
|
-
if (r == 'next') io.next();
|
|
1838
|
+
if (r == 'next' && i < total-1) io.next();
|
|
1839
1839
|
else if (typeof r != 'undefined') {
|
|
1840
1840
|
io.clear();
|
|
1841
1841
|
return r;
|
|
@@ -2148,8 +2148,8 @@ pauseTimeLeft - if paused, get how much time is left once unpaused
|
|
|
2148
2148
|
obj.paused = state;
|
|
2149
2149
|
};
|
|
2150
2150
|
obj.next = function() {
|
|
2151
|
-
obj.count++;
|
|
2152
|
-
(call)(obj);
|
|
2151
|
+
obj.count++;
|
|
2152
|
+
(call)(obj);
|
|
2153
2153
|
checkTotal();
|
|
2154
2154
|
};
|
|
2155
2155
|
obj.clear = function() {
|
|
@@ -30553,7 +30553,7 @@ var layer = new Layer().center();
|
|
|
30553
30553
|
timeout(100, function(){zog(layer.transformControls);}); // will probably do the trick
|
|
30554
30554
|
The transformControls property holds the following:
|
|
30555
30555
|
|
|
30556
|
-
TRANSFORM
|
|
30556
|
+
TRANSFORM CONTROLS OBJECT PROPERTIES
|
|
30557
30557
|
visible - read only whether the controls are visible
|
|
30558
30558
|
ghost - read only as to whether the ghost outline is showing - set with showGhost and hideGhost
|
|
30559
30559
|
ghostEnabled - read only as to whether the ghost outline will be turned on and off - set with addGhost and removeGhost
|
|
@@ -30562,7 +30562,7 @@ stretchXControls - reference to the Container that holds the left and right boxe
|
|
|
30562
30562
|
stretchYControls - reference to the Container that holds the top and bottom boxes for stretching
|
|
30563
30563
|
rotateControls - reference to the Container that holds the outer circles for rotating
|
|
30564
30564
|
|
|
30565
|
-
TRANSFORM
|
|
30565
|
+
TRANSFORM CONTROLS OBJECT METHODS
|
|
30566
30566
|
hide() - hides the controls - returns object for chaining
|
|
30567
30567
|
show() - shows the controls - returns object for chaining
|
|
30568
30568
|
recordData(toJSON) - returns an object with type, x, y, scaleX, scaleY, rotation, skewX, skewY, visible PROPERTIES
|
|
@@ -60594,7 +60594,7 @@ RETURNS any value returned from the loop - or true if no value is returned from
|
|
|
60594
60594
|
zim.loop = function(obj, call, reverse, interval, step, start, end, immediate, complete, completeParams) {
|
|
60595
60595
|
var sig = "obj, call, reverse, interval, step, start, end, immediate, complete, completeParams";
|
|
60596
60596
|
var duo; if (duo = zob(zim.loop, arguments, sig)) return duo;
|
|
60597
|
-
|
|
60597
|
+
|
|
60598
60598
|
if (!zim.zimLoopCheck) z_d("45.3");
|
|
60599
60599
|
zim.zimLoopCheck = true;
|
|
60600
60600
|
if (zot(obj) || zot(call)) return undefined;
|
|
@@ -60653,7 +60653,7 @@ RETURNS any value returned from the loop - or true if no value is returned from
|
|
|
60653
60653
|
r = call(obj.item(i), i, total, start, end, obj, io);
|
|
60654
60654
|
}
|
|
60655
60655
|
|
|
60656
|
-
if (r == 'next') io.next();
|
|
60656
|
+
if (r == 'next' && i < total-1) io.next();
|
|
60657
60657
|
else if (typeof r != 'undefined') {
|
|
60658
60658
|
io.clear();
|
|
60659
60659
|
return r;
|
|
@@ -60690,7 +60690,7 @@ RETURNS any value returned from the loop - or true if no value is returned from
|
|
|
60690
60690
|
r = call(obj.item(i), i, total, start, end, obj, io);
|
|
60691
60691
|
}
|
|
60692
60692
|
|
|
60693
|
-
if (r == 'next') io.next();
|
|
60693
|
+
if (r == 'next' && i < total-1) io.next();
|
|
60694
60694
|
else if (typeof r != 'undefined') {
|
|
60695
60695
|
io.clear();
|
|
60696
60696
|
return r;
|
|
@@ -60724,7 +60724,7 @@ RETURNS any value returned from the loop - or true if no value is returned from
|
|
|
60724
60724
|
|
|
60725
60725
|
r = call(props[i], obj[props[i]], i, total, start, end, obj, io);
|
|
60726
60726
|
|
|
60727
|
-
if (r == 'next') io.next();
|
|
60727
|
+
if (r == 'next' && i < total-1) io.next();
|
|
60728
60728
|
else if (typeof r != 'undefined') {
|
|
60729
60729
|
io.clear();
|
|
60730
60730
|
return r;
|
|
@@ -60745,7 +60745,7 @@ RETURNS any value returned from the loop - or true if no value is returned from
|
|
|
60745
60745
|
|
|
60746
60746
|
r = call(props[i], obj[props[i]], i, total, start, end, obj, io);
|
|
60747
60747
|
|
|
60748
|
-
if (r == 'next') io.next();
|
|
60748
|
+
if (r == 'next' && i < total-1) io.next();
|
|
60749
60749
|
else if (typeof r != 'undefined') {
|
|
60750
60750
|
io.clear();
|
|
60751
60751
|
return r;
|
|
@@ -60765,7 +60765,7 @@ RETURNS any value returned from the loop - or true if no value is returned from
|
|
|
60765
60765
|
if (typeof r != 'undefined' && r != "next") return r;
|
|
60766
60766
|
}
|
|
60767
60767
|
} else {
|
|
60768
|
-
zim.interval(interval, function(io) {
|
|
60768
|
+
zim.interval(interval, function(io) {
|
|
60769
60769
|
i = io.count;
|
|
60770
60770
|
if (!immediate) i--;
|
|
60771
60771
|
if (step) i *= step;
|
|
@@ -60773,7 +60773,7 @@ RETURNS any value returned from the loop - or true if no value is returned from
|
|
|
60773
60773
|
|
|
60774
60774
|
r = call(obj.getChildAt(i), i, total, start, end, obj, io);
|
|
60775
60775
|
|
|
60776
|
-
if (r == 'next') io.next();
|
|
60776
|
+
if (r == 'next' && i < total-1) io.next();
|
|
60777
60777
|
else if (typeof r != 'undefined') {
|
|
60778
60778
|
io.clear();
|
|
60779
60779
|
return r;
|
|
@@ -60792,9 +60792,8 @@ RETURNS any value returned from the loop - or true if no value is returned from
|
|
|
60792
60792
|
if (!immediate) i--;
|
|
60793
60793
|
if (step != 1) i = -start + i*step;
|
|
60794
60794
|
|
|
60795
|
-
r = call(obj.getChildAt(i), i, total, start, end, obj, io);
|
|
60796
|
-
|
|
60797
|
-
if (r == 'next') io.next();
|
|
60795
|
+
r = call(obj.getChildAt(i), i, total, start, end, obj, io);
|
|
60796
|
+
if (r == 'next' && i < total-1) io.next();
|
|
60798
60797
|
else if (typeof r != 'undefined') {
|
|
60799
60798
|
io.clear();
|
|
60800
60799
|
return r;
|
|
@@ -90708,12 +90707,12 @@ SVG will give a "ready" and a "complete" event when loaded.
|
|
|
90708
90707
|
These events are triggered 20 ms after making the object if the object is already preloaded.
|
|
90709
90708
|
|
|
90710
90709
|
NOTE: SVG is a container with a bitmap inside (see bitmap property)
|
|
90711
|
-
or if the bitmap option is not selected there are
|
|
90710
|
+
or if the bitmap option is not selected there are various shapes inside.
|
|
90712
90711
|
This means that other objects can be added to the SVG object.
|
|
90713
90712
|
This is like the ZIM Shapes (Rectangle, Circle, etc.) which are containers and can have objects added to them.
|
|
90714
|
-
If doing this, note that the container has its mouseChildren
|
|
90713
|
+
If doing this, note that the container has its mouseChildren turned off
|
|
90715
90714
|
so when dragging, for instance, the whole SVG moves rather than the bitmap inside the SVG.
|
|
90716
|
-
To interact with objects inside, set
|
|
90715
|
+
To interact with objects inside, set mySVG.mouseChildren = true.
|
|
90717
90716
|
Generally, for clarity, avoid adding objects to Shapes, Pics SVGs unless you are used to the mouseChildren setting.
|
|
90718
90717
|
|
|
90719
90718
|
NOTE: as of ZIM 5.5.0 the zim namespace is no longer required (unless zns is set to true before running zim)
|
|
@@ -98172,7 +98171,7 @@ for (z_i = 0; z_i < globalFunctions.length; z_i++) {
|
|
|
98172
98171
|
WW[pair[0]] = zim[pair[0]] = pair[1];
|
|
98173
98172
|
}
|
|
98174
98173
|
|
|
98175
|
-
|
|
98174
|
+
|
|
98176
98175
|
// these are global regardless
|
|
98177
98176
|
var globalsConstants = [
|
|
98178
98177
|
["FIT", zim.FIT],
|
|
@@ -98229,7 +98228,7 @@ if (zns) {
|
|
|
98229
98228
|
for (z_i = 0; z_i < zim.colors.length; z_i++) {
|
|
98230
98229
|
WW[zim.colors[z_i]] = zim.colorsHex[z_i];
|
|
98231
98230
|
}
|
|
98232
|
-
|
|
98231
|
+
|
|
98233
98232
|
|
|
98234
98233
|
WW.zim = zim;
|
|
98235
98234
|
export default zim;
|