zimjs 19.0.5 → 19.0.7
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 +54 -51
package/package.json
CHANGED
package/src/zim.js
CHANGED
|
@@ -14874,7 +14874,7 @@ zim.Shader = function(width, height, fragment, uniforms, vertex, dynamic, preCal
|
|
|
14874
14874
|
if (value) {
|
|
14875
14875
|
zim.Ticker.add(this.ticker, null, mID, that);
|
|
14876
14876
|
} else {
|
|
14877
|
-
zim.Ticker.remove(this.ticker, mID, that);
|
|
14877
|
+
if (this.ticker) zim.Ticker.remove(this.ticker, mID, that);
|
|
14878
14878
|
}
|
|
14879
14879
|
_dynamic = value?true:false;
|
|
14880
14880
|
}
|
|
@@ -15003,7 +15003,7 @@ zim.ShaderOverlay = function(width, height, fragment, uniforms, vertex, dynamic,
|
|
|
15003
15003
|
if (value) {
|
|
15004
15004
|
zim.Ticker.add(this.ticker, null, mID, that);
|
|
15005
15005
|
} else {
|
|
15006
|
-
zim.Ticker.remove(this.ticker, mID, that, that);
|
|
15006
|
+
if (this.ticker) zim.Ticker.remove(this.ticker, mID, that, that);
|
|
15007
15007
|
}
|
|
15008
15008
|
_dynamic = value?true:false;
|
|
15009
15009
|
}
|
|
@@ -15261,7 +15261,7 @@ function makeShader(DS, width, height, fragment, uniforms, vertex, dynamic, preC
|
|
|
15261
15261
|
update();
|
|
15262
15262
|
var ticker = zim.Ticker.add(update, null, mID, tether);
|
|
15263
15263
|
if (!dynamic) {
|
|
15264
|
-
zim.Ticker.remove(ticker, mID, tether);
|
|
15264
|
+
if (ticker) zim.Ticker.remove(ticker, mID, tether);
|
|
15265
15265
|
setTimeout(update, 50);
|
|
15266
15266
|
if (tether.stage) tether.stage.update();
|
|
15267
15267
|
}
|
|
@@ -15743,7 +15743,7 @@ borderWidth - |ZIM VEE| (default 1 if stroke is set) the size of the stroke in p
|
|
|
15743
15743
|
dashed - (default false) set to true for dashed border (if borderWidth or borderColor set)
|
|
15744
15744
|
or set to an array of line size then space size, etc.
|
|
15745
15745
|
eg. [20, 10] is 20 line and 10 space repeated and [20,100,50,10] is 20 line, 100 space, 50 line, 10 space, etc.
|
|
15746
|
-
percent - (default 100) set to a percentage of a circle (arc) - registration stays at radius center, bounds shrink to arc
|
|
15746
|
+
percent - |ZIM VEE| - (default 100) set to a percentage of a circle (arc) - registration stays at radius center, bounds shrink to arc
|
|
15747
15747
|
percentClose - (default true) set to false to not close the border of a circle with percent set
|
|
15748
15748
|
percentArc - (default false) set to a percent to make moon shapes - must have percent turned on
|
|
15749
15749
|
the value is the distance the arc-making circle is placed from the original circle's edge
|
|
@@ -30619,7 +30619,7 @@ added, click, dblclick, mousedown, mouseout, mouseover, pressdown (ZIM), pressmo
|
|
|
30619
30619
|
if (!scrollBarActive && optimize) {
|
|
30620
30620
|
if (that.zDE) content.off("mousedown", that.zDE, null, mID);
|
|
30621
30621
|
that.zDE = content.on("mousedown", function() {
|
|
30622
|
-
if (that.zTI) zim.Ticker.remove(testContent, mID, that);
|
|
30622
|
+
if (that.zTI && testContent) zim.Ticker.remove(testContent, mID, that);
|
|
30623
30623
|
}, null, null, null, null, mID);
|
|
30624
30624
|
if (that.zME) content.off("pressmove", that.zME, null, mID);
|
|
30625
30625
|
that.zME = content.on("pressmove", testContent, null, null, null, null, mID);
|
|
@@ -30691,7 +30691,7 @@ added, click, dblclick, mousedown, mouseout, mouseover, pressdown (ZIM), pressmo
|
|
|
30691
30691
|
}
|
|
30692
30692
|
|
|
30693
30693
|
function stageUp() {
|
|
30694
|
-
zim.Ticker.remove(swipeMovescrollBars, mID, that);
|
|
30694
|
+
if (swipeMovescrollBars) zim.Ticker.remove(swipeMovescrollBars, mID, that);
|
|
30695
30695
|
swipeCheck = false;
|
|
30696
30696
|
if (hCheck) if (scrollBarFade && scrollBarActive) zim.animate(hscrollBar, {alpha:0}, scrollBar.fadeTime);
|
|
30697
30697
|
if (vCheck) if (scrollBarFade && scrollBarActive) zim.animate(vscrollBar, {alpha:0}, scrollBar.fadeTime);
|
|
@@ -30715,7 +30715,7 @@ added, click, dblclick, mousedown, mouseout, mouseover, pressdown (ZIM), pressmo
|
|
|
30715
30715
|
that.dispatchEvent("hoverout");
|
|
30716
30716
|
hoverOutCalled = true;
|
|
30717
30717
|
}
|
|
30718
|
-
zim.Ticker.remove(timeMouse, mID, that);
|
|
30718
|
+
if (timeMouse) zim.Ticker.remove(timeMouse, mID, that);
|
|
30719
30719
|
}
|
|
30720
30720
|
function timeMouse() {
|
|
30721
30721
|
if (!content.stage) {
|
|
@@ -30723,7 +30723,7 @@ added, click, dblclick, mousedown, mouseout, mouseover, pressdown (ZIM), pressmo
|
|
|
30723
30723
|
that.dispatchEvent("hoverout");
|
|
30724
30724
|
hoverOutCalled = true;
|
|
30725
30725
|
}
|
|
30726
|
-
zim.Ticker.remove(timeMouse, mID, that);
|
|
30726
|
+
if (timeMouse) zim.Ticker.remove(timeMouse, mID, that);
|
|
30727
30727
|
return;
|
|
30728
30728
|
}
|
|
30729
30729
|
if (Math.abs(lastMouseX-that.windowMouseX) > thresh || Math.abs(lastMouseY-that.windowMouseY) > thresh) {
|
|
@@ -41597,7 +41597,7 @@ added, click, dblclick, mousedown, mouseout, mouseover, pressdown (ZIM), pressmo
|
|
|
41597
41597
|
currentEvent = e;
|
|
41598
41598
|
}, null, null, null, null, mID);
|
|
41599
41599
|
this.on("pressup", function () {
|
|
41600
|
-
zim.Ticker.remove(that.ticker, mID, that);
|
|
41600
|
+
if (that.ticker) zim.Ticker.remove(that.ticker, mID, that);
|
|
41601
41601
|
that.dirX = that.dirY = 0;
|
|
41602
41602
|
arrows.loop(function (arrow) {
|
|
41603
41603
|
arrow.color = indicatorColor;
|
|
@@ -45397,7 +45397,7 @@ zim.Keyboard = function(labels, backgroundColor, color, shiftBackgroundColor, sh
|
|
|
45397
45397
|
|
|
45398
45398
|
function stopDragging() {
|
|
45399
45399
|
currentStage.off("pressmousemove", that.tickerMouseEvent, null, mID);
|
|
45400
|
-
zim.Ticker.remove(startDragging, mID, that);
|
|
45400
|
+
if (startDragging) zim.Ticker.remove(startDragging, mID, that);
|
|
45401
45401
|
}
|
|
45402
45402
|
|
|
45403
45403
|
that.setBounds(1000,400-(numH-10)*26); // Dan Zen for any size keyboard
|
|
@@ -49050,6 +49050,7 @@ zim.Carousel3D = function(width, height, items, widthFactor, heightFactor, curve
|
|
|
49050
49050
|
});
|
|
49051
49051
|
|
|
49052
49052
|
this.dispose = function(a,b,disposing) {
|
|
49053
|
+
if (that.tick) zim.Ticker.remove(that.tick);
|
|
49053
49054
|
if (that.swiper) that.swiper.dispose();
|
|
49054
49055
|
if (!disposing) {this.zimContainer_dispose();}
|
|
49055
49056
|
return true;
|
|
@@ -53821,7 +53822,7 @@ RETURNS obj for chaining
|
|
|
53821
53822
|
if (Math.abs(dragObject.x-dragObject.dragStartX) < 1 && Math.abs(dragObject.y-dragObject.dragStartY) < 1) {
|
|
53822
53823
|
hasMoved = false;
|
|
53823
53824
|
dragObject.dispatchEvent("slidestop");
|
|
53824
|
-
zim.Ticker.remove(obj.zimDragTicker, mID, obj);
|
|
53825
|
+
if (obj.zimDragTicker) zim.Ticker.remove(obj.zimDragTicker, mID, obj);
|
|
53825
53826
|
}
|
|
53826
53827
|
|
|
53827
53828
|
// if (dampX) dampX.immediate(50);
|
|
@@ -53833,7 +53834,7 @@ RETURNS obj for chaining
|
|
|
53833
53834
|
for (var o in obj.pointers) {
|
|
53834
53835
|
pointerCount++;
|
|
53835
53836
|
}
|
|
53836
|
-
if (pointerCount == 0) zim.Ticker.remove(obj.zimDragTicker, mID, obj);
|
|
53837
|
+
if (pointerCount == 0 && obj.zimDragTicker) zim.Ticker.remove(obj.zimDragTicker, mID, obj);
|
|
53837
53838
|
// extra pen drag
|
|
53838
53839
|
if (obj.type == "Pen") {
|
|
53839
53840
|
obj.zimDragCheck = false;
|
|
@@ -54017,7 +54018,7 @@ RETURNS obj for chaining
|
|
|
54017
54018
|
o.slideStartY = null;
|
|
54018
54019
|
if (hasMoved) {
|
|
54019
54020
|
o.dispatchEvent("slidestop");
|
|
54020
|
-
zim.Ticker.remove(obj.zimDragTicker, mID, obj);
|
|
54021
|
+
if (obj.zimDragTicker) zim.Ticker.remove(obj.zimDragTicker, mID, obj);
|
|
54021
54022
|
}
|
|
54022
54023
|
// extra pen drag
|
|
54023
54024
|
if (obj.type == "Pen") {
|
|
@@ -59301,7 +59302,7 @@ RETURNS the target for chaining (or null if no target is provided and run on zim
|
|
|
59301
59302
|
return target;
|
|
59302
59303
|
}
|
|
59303
59304
|
var coTarget = target;
|
|
59304
|
-
if (coTarget.cT)
|
|
59305
|
+
if (coTarget.cT) zim.Ticker.remove(coTarget.cT, mID, target);
|
|
59305
59306
|
target = {val:0, zimTweens:{}, ticker:coTarget.cT};
|
|
59306
59307
|
var startColor = coTarget.material.color.getHexString();
|
|
59307
59308
|
var endColor = obj.color;
|
|
@@ -61037,7 +61038,7 @@ RETURNS the target for chaining (or null if no target is provided and run on zim
|
|
|
61037
61038
|
var ticker = target.zimTweens[id].zimTicker;
|
|
61038
61039
|
if (target.zimTweens[id].extraTickers) {
|
|
61039
61040
|
for (var k=0; k<target.zimTweens[id].extraTickers.length; k++) {
|
|
61040
|
-
zim.Ticker.remove(target.zimTweens[id].extraTickers[k]);
|
|
61041
|
+
if (target.zimTweens[id].extraTickers[k]) zim.Ticker.remove(target.zimTweens[id].extraTickers[k]);
|
|
61041
61042
|
}
|
|
61042
61043
|
}
|
|
61043
61044
|
// if (ticker) zim.Ticker.remove(ticker); ticker = null;
|
|
@@ -61057,7 +61058,9 @@ RETURNS the target for chaining (or null if no target is provided and run on zim
|
|
|
61057
61058
|
tween.zimPaused = paused;
|
|
61058
61059
|
|
|
61059
61060
|
if (paused) {
|
|
61060
|
-
if (tween.zimTicker) tween.zimAnimateTimeout = setTimeout(function(){
|
|
61061
|
+
if (tween.zimTicker) tween.zimAnimateTimeout = setTimeout(function(){
|
|
61062
|
+
if (tween.zimTicker) zim.Ticker.remove(tween.zimTicker, mID, target);
|
|
61063
|
+
},200);
|
|
61061
61064
|
// if (target.zimZoomTicker) zim.Ticker.remove(target.zimZoomTicker);
|
|
61062
61065
|
} else {
|
|
61063
61066
|
tween.startPaused = false;
|
|
@@ -61117,7 +61120,7 @@ RETURNS the target for chaining (or null if no target is provided and run on zim
|
|
|
61117
61120
|
target.off("pressmove", target.zimAnimateDragPress, null, mID);
|
|
61118
61121
|
target.off("pressup", target.zimAnimateDragUp, null, mID);
|
|
61119
61122
|
if (target.amu) stage.frame.off("mouseupplus", target.amu, null, mID);
|
|
61120
|
-
zim.Ticker.remove(target.zimDragAnimateTicker, mID, target);
|
|
61123
|
+
if (target.zimDragAnimateTicker) zim.Ticker.remove(target.zimDragAnimateTicker, mID, target);
|
|
61121
61124
|
}
|
|
61122
61125
|
if (zot(ids)) {
|
|
61123
61126
|
if (!include) return target; // would be exclude all ids
|
|
@@ -72838,7 +72841,7 @@ zim.TextureActivesManager = function(stage, toggleKey, damp) {
|
|
|
72838
72841
|
}, null, mID, that);
|
|
72839
72842
|
nav.add(slider,0,true);
|
|
72840
72843
|
nav.removeFrom();
|
|
72841
|
-
zim.Ticker.remove(that.ticker, mID, that);
|
|
72844
|
+
if (that.ticker) zim.Ticker.remove(that.ticker, mID, that);
|
|
72842
72845
|
|
|
72843
72846
|
function protectOn() {
|
|
72844
72847
|
if (moveCheck) return;
|
|
@@ -72902,7 +72905,7 @@ zim.TextureActivesManager = function(stage, toggleKey, damp) {
|
|
|
72902
72905
|
frame.color = lastColor==undefined?null:lastColor==null?null:lastColor;
|
|
72903
72906
|
frame.outerColor = lastOuter==undefined?null:lastOuter==null?null:lastOuter;
|
|
72904
72907
|
that.toggled = false;
|
|
72905
|
-
zim.Ticker.remove(that.ticker, mID, that);
|
|
72908
|
+
if (that.ticker) zim.Ticker.remove(that.ticker, mID, that);
|
|
72906
72909
|
nav.removeFrom();
|
|
72907
72910
|
var doms = [];
|
|
72908
72911
|
zim.loop(objs, function(obj) {
|
|
@@ -75573,7 +75576,7 @@ dispatches a "swipestop" event when swipeup has happened and value has stopped c
|
|
|
75573
75576
|
function disable() {
|
|
75574
75577
|
if (container.canvas) offStageEvents();
|
|
75575
75578
|
else offMouseEvents();
|
|
75576
|
-
zim.Ticker.remove(that.swiperTicker, mID, that);
|
|
75579
|
+
if (that.swiperTicker) zim.Ticker.remove(that.swiperTicker, mID, that);
|
|
75577
75580
|
}
|
|
75578
75581
|
|
|
75579
75582
|
function enable() {
|
|
@@ -76779,11 +76782,11 @@ dispatches a "moving" event if target is moving and "startmoving" and "stopmovin
|
|
|
76779
76782
|
if (type == "keydown") {
|
|
76780
76783
|
frame.off("keydown", keydownEvent, null, mID);
|
|
76781
76784
|
frame.off("keyup", keyupEvent, null, mID);
|
|
76782
|
-
zim.Ticker.remove(keyTicker, mID, that);
|
|
76785
|
+
if (keyTicker) zim.Ticker.remove(keyTicker, mID, that);
|
|
76783
76786
|
} else if (type == "gamebutton") {
|
|
76784
76787
|
gamepad.off("buttondown", buttondownEvent, null, mID);
|
|
76785
76788
|
gamepad.off("buttonup", buttonupEvent, null, mID);
|
|
76786
|
-
zim.Ticker.remove(keyTicker, mID, that);
|
|
76789
|
+
if (keyTicker) zim.Ticker.remove(keyTicker, mID, that);
|
|
76787
76790
|
} else if (type == "gamestick") {
|
|
76788
76791
|
gamepad.off("data", stickEvent, null, mID);
|
|
76789
76792
|
} else if (type == "swipe") {
|
|
@@ -76801,7 +76804,7 @@ dispatches a "moving" event if target is moving and "startmoving" and "stopmovin
|
|
|
76801
76804
|
stage.off("stagemouseup", offTimeEvent, null, mID);
|
|
76802
76805
|
stage.off("stagemouseup", stageupEvent, null, mID);
|
|
76803
76806
|
}
|
|
76804
|
-
zim.Ticker.remove(mainTicker, mID, that);
|
|
76807
|
+
if (mainTicker) zim.Ticker.remove(mainTicker, mID, that);
|
|
76805
76808
|
}
|
|
76806
76809
|
this.dispose = function() {
|
|
76807
76810
|
disable();
|
|
@@ -77730,7 +77733,6 @@ b2ContactListener = Box2D.Dynamics.b2ContactListener;
|
|
|
77730
77733
|
return obj;
|
|
77731
77734
|
};
|
|
77732
77735
|
obj.noContact = function() {
|
|
77733
|
-
f.obj = obj;
|
|
77734
77736
|
zimContactBeginList.remove(obj.body);
|
|
77735
77737
|
return obj;
|
|
77736
77738
|
};
|
|
@@ -77763,7 +77765,7 @@ b2ContactListener = Box2D.Dynamics.b2ContactListener;
|
|
|
77763
77765
|
var physics = obj.physics;
|
|
77764
77766
|
physics.world.DestroyJoint(obj.puppetJoint);
|
|
77765
77767
|
obj.puppetJoint = null;
|
|
77766
|
-
zim.Ticker.remove(obj.zimPuppetTicker, mID, obj);
|
|
77768
|
+
if (obj.zimPuppetTicker) zim.Ticker.remove(obj.zimPuppetTicker, mID, obj);
|
|
77767
77769
|
return obj;
|
|
77768
77770
|
};
|
|
77769
77771
|
if (!obj.hasOwnProperty("dynamic")) {
|
|
@@ -78202,7 +78204,7 @@ var DS = style===false?group!=null?zim.getStyle(null,null,inherit,this.group):{}
|
|
|
78202
78204
|
if (themeColor != zim.purple) doColor(themeColor);
|
|
78203
78205
|
|
|
78204
78206
|
this.dispose = function(a,b,disposing) {
|
|
78205
|
-
zim.Ticker.remove(that.tickerID, mID, that);
|
|
78207
|
+
if (that.tickerID) zim.Ticker.remove(that.tickerID, mID, that);
|
|
78206
78208
|
F.off("keydown", that.keyEvent, null, mID);
|
|
78207
78209
|
if (!disposing) this.zimContainer_dispose(true);
|
|
78208
78210
|
return true;
|
|
@@ -81281,7 +81283,7 @@ paused - read-only boolean whether the parallax is paused - see pause() and star
|
|
|
81281
81283
|
this.dispose = function() {
|
|
81282
81284
|
stage.off("stagemousemove", that.stageEvent, null, mID);
|
|
81283
81285
|
myLayers = null;
|
|
81284
|
-
if (auto) zim.Ticker.remove(zimTicker, mID, that);
|
|
81286
|
+
if (auto && zimTicker) zim.Ticker.remove(zimTicker, mID, that);
|
|
81285
81287
|
return true;
|
|
81286
81288
|
};
|
|
81287
81289
|
|
|
@@ -81298,7 +81300,7 @@ paused - read-only boolean whether the parallax is paused - see pause() and star
|
|
|
81298
81300
|
|
|
81299
81301
|
if (auto) {
|
|
81300
81302
|
var zimTicker = zim.Ticker.add(animate, stage, mID, that);
|
|
81301
|
-
if (startPaused) zim.Ticker.remove(zimTicker, mID, that);
|
|
81303
|
+
if (startPaused && zimTicker) zim.Ticker.remove(zimTicker, mID, that);
|
|
81302
81304
|
}
|
|
81303
81305
|
|
|
81304
81306
|
// loop though our layers and apply the converted proportion damping
|
|
@@ -81340,7 +81342,7 @@ paused - read-only boolean whether the parallax is paused - see pause() and star
|
|
|
81340
81342
|
that.paused = state;
|
|
81341
81343
|
if (zimTicker) {
|
|
81342
81344
|
if (!state) zimTicker = zim.Ticker.add(zimTicker, null, mID, that);
|
|
81343
|
-
else zim.Ticker.remove(zimTicker, mID, that);
|
|
81345
|
+
else if (zimTicker) zim.Ticker.remove(zimTicker, mID, that);
|
|
81344
81346
|
}
|
|
81345
81347
|
}
|
|
81346
81348
|
return that;
|
|
@@ -82044,7 +82046,7 @@ added, click, dblclick, mousedown, mouseout, mouseover, pressdown (ZIM), pressmo
|
|
|
82044
82046
|
time:time,
|
|
82045
82047
|
ease:ease,
|
|
82046
82048
|
call:function () {
|
|
82047
|
-
zim.Ticker.remove(ticker, mID, that);
|
|
82049
|
+
if (ticker) zim.Ticker.remove(ticker, mID, that);
|
|
82048
82050
|
that.moving = false;
|
|
82049
82051
|
setPeel(w, h, side);
|
|
82050
82052
|
}
|
|
@@ -82075,7 +82077,7 @@ added, click, dblclick, mousedown, mouseout, mouseover, pressdown (ZIM), pressmo
|
|
|
82075
82077
|
props:{currentW:0, currentH:0},
|
|
82076
82078
|
time:time,
|
|
82077
82079
|
call:function () {
|
|
82078
|
-
zim.Ticker.remove(ticker, mID, that);
|
|
82080
|
+
if (ticker) zim.Ticker.remove(ticker, mID, that);
|
|
82079
82081
|
setPeel(0, 0, side);
|
|
82080
82082
|
that.moving = false;
|
|
82081
82083
|
onHTML();
|
|
@@ -82135,7 +82137,7 @@ added, click, dblclick, mousedown, mouseout, mouseover, pressdown (ZIM), pressmo
|
|
|
82135
82137
|
time:.3,
|
|
82136
82138
|
timeUnit:"s",
|
|
82137
82139
|
call:function () {
|
|
82138
|
-
zim.Ticker.remove(ticker, mID, that);
|
|
82140
|
+
if (ticker) zim.Ticker.remove(ticker, mID, that);
|
|
82139
82141
|
pageBack.reg(0,0);
|
|
82140
82142
|
pageNext.setMask(null);
|
|
82141
82143
|
toPage(that._currentPage+2);
|
|
@@ -82179,7 +82181,7 @@ added, click, dblclick, mousedown, mouseout, mouseover, pressdown (ZIM), pressmo
|
|
|
82179
82181
|
time:.3,
|
|
82180
82182
|
timeUnit:"s",
|
|
82181
82183
|
call:function () {
|
|
82182
|
-
zim.Ticker.remove(ticker, mID, that);
|
|
82184
|
+
if (ticker) zim.Ticker.remove(ticker, mID, that);
|
|
82183
82185
|
pageFore.reg(0,0);
|
|
82184
82186
|
pagePrev.setMask(null);
|
|
82185
82187
|
toPage(that._currentPage-2);
|
|
@@ -83829,7 +83831,7 @@ Dispatches a "pause" event when paused is complete (sometimes a delay to slow to
|
|
|
83829
83831
|
if (style!==false) zim.styleTransforms(this, DS);
|
|
83830
83832
|
|
|
83831
83833
|
this.dispose = function() {
|
|
83832
|
-
zim.Ticker.remove(zimTicker, mID, that);
|
|
83834
|
+
if (zimTicker) zim.Ticker.remove(zimTicker, mID, that);
|
|
83833
83835
|
// if (that.backing1) that.backing1.dispose(); // leaving them around...
|
|
83834
83836
|
// if (that.backing2) that.backing2.dispose();
|
|
83835
83837
|
return true;
|
|
@@ -85271,9 +85273,7 @@ zim.Emitter = function(obj, width, height, interval, num, life, fade, shrink, wa
|
|
|
85271
85273
|
this.dispose = function() {
|
|
85272
85274
|
if (cache) stage.snapToPixelEnabled = true;
|
|
85273
85275
|
if (that.zimInterval) that.zimInterval.clear();
|
|
85274
|
-
if (emitterTicker)
|
|
85275
|
-
zim.Ticker.remove(emitterTicker, mID, that);
|
|
85276
|
-
}
|
|
85276
|
+
if (emitterTicker) zim.Ticker.remove(emitterTicker, mID, that);
|
|
85277
85277
|
zim.loop(poolList, function(particle) {
|
|
85278
85278
|
if (particle) particle.dispose();
|
|
85279
85279
|
});
|
|
@@ -86481,7 +86481,7 @@ and drawpause or drawSpacebarPause parameters are true
|
|
|
86481
86481
|
}
|
|
86482
86482
|
if (that.maxCount && that.count >= that.maxCount) {
|
|
86483
86483
|
that.dispatchEvent("complete");
|
|
86484
|
-
zim.Ticker.remove(that.ticker, mID, that);
|
|
86484
|
+
if (that.ticker) zim.Ticker.remove(that.ticker, mID, that);
|
|
86485
86485
|
}
|
|
86486
86486
|
}
|
|
86487
86487
|
|
|
@@ -87738,7 +87738,7 @@ dispatches an "undo" and a "redo" whenever undo and redo happens
|
|
|
87738
87738
|
if (stage && that.stageDown) stage.off("stagemousedown", that.stageDown, null, mID);
|
|
87739
87739
|
if (stage && that.stageUp) stage.off("stagemouseup", that.stageUp, null, mID);
|
|
87740
87740
|
if (stage && that.upEvent) stage.off("stagemouseup", that.upEvent, null, mID);
|
|
87741
|
-
zim.Ticker.remove(that.ticker, mID, that);
|
|
87741
|
+
if (that.ticker) zim.Ticker.remove(that.ticker, mID, that);
|
|
87742
87742
|
that.removeAllEventListeners(null, mID);
|
|
87743
87743
|
if (nib) nib.removeFrom();
|
|
87744
87744
|
if (all) { // remove paper too
|
|
@@ -89050,7 +89050,7 @@ the result of the play() or tone() method will dispatch a "complete" event when
|
|
|
89050
89050
|
}
|
|
89051
89051
|
if (wahAmount || wahRate || !zot(wahShape) || !zot(wahThroat)) makeWah();
|
|
89052
89052
|
that2.removeWah = function() {
|
|
89053
|
-
zim.Ticker.remove(wah.ticker, mID, that2);
|
|
89053
|
+
if (wah.ticker) zim.Ticker.remove(wah.ticker, mID, that2);
|
|
89054
89054
|
wah.dispose();
|
|
89055
89055
|
wah = that2.wah = null;
|
|
89056
89056
|
that2.filter.Q.value = 0;
|
|
@@ -89421,7 +89421,7 @@ the result of the play() or tone() method will dispatch a "complete" event when
|
|
|
89421
89421
|
that2.paused = state;
|
|
89422
89422
|
};
|
|
89423
89423
|
this.dispose = function () {
|
|
89424
|
-
zim.Ticker.remove(this.ticker, mID, that2);
|
|
89424
|
+
if (this.ticker) zim.Ticker.remove(this.ticker, mID, that2);
|
|
89425
89425
|
};
|
|
89426
89426
|
};
|
|
89427
89427
|
this.oscillator = function(frequency, gain, shape, offset) {
|
|
@@ -90700,7 +90700,9 @@ makeCat(height) - returns a ZIM Cat icon - provide height rather than scaling fo
|
|
|
90700
90700
|
makeIcon(edges, box, slats, borderColor, borderWidth) |ZIM DUO| - returns a ZIM Z icon
|
|
90701
90701
|
edges defaults to zim.light and is the top and bottom line in the Z
|
|
90702
90702
|
box defaults to zim.dark and is the background box color
|
|
90703
|
-
slats defaults to the ZIM colors but can be set to any array of five colors
|
|
90703
|
+
slats defaults to the ZIM colors but can be set to any array of five colors
|
|
90704
|
+
setting true will set to zim.silver
|
|
90705
|
+
setting to a single color will make each slat that color
|
|
90704
90706
|
borderColor and borderWidth default to null - or borderWidth 1 if color set and borderColor black if borderWidth set
|
|
90705
90707
|
madeWith(color, text, edges, box, slats, borderColor, borderWidth) |ZIM DUO| - returns a ZIM Z icon with Made With message
|
|
90706
90708
|
color - (default zim.dark) change color of text (pass in clear to hide text)
|
|
@@ -91237,7 +91239,7 @@ zim.Frame = function(scaling, width, height, color, outerColor, ready, assets, p
|
|
|
91237
91239
|
that.pauseTicker = function(state) {
|
|
91238
91240
|
if (zot(state)) state = true;
|
|
91239
91241
|
if (state) {
|
|
91240
|
-
zim.Ticker.remove(that.updateID, mID, that);
|
|
91242
|
+
if (that.updateID) zim.Ticker.remove(that.updateID, mID, that);
|
|
91241
91243
|
} else {
|
|
91242
91244
|
zim.Ticker.add(that.updateID, null, mID, that);
|
|
91243
91245
|
}
|
|
@@ -91327,7 +91329,7 @@ zim.Frame = function(scaling, width, height, color, outerColor, ready, assets, p
|
|
|
91327
91329
|
});
|
|
91328
91330
|
|
|
91329
91331
|
}
|
|
91330
|
-
|
|
91332
|
+
|
|
91331
91333
|
function setMousemove() {
|
|
91332
91334
|
if (captureMouse) { // patched in 10.7.1
|
|
91333
91335
|
that.mouseX = 0;
|
|
@@ -92938,10 +92940,10 @@ zim.Frame = function(scaling, width, height, color, outerColor, ready, assets, p
|
|
|
92938
92940
|
if (that.zimDevicemotionEvent) WW.removeEventListener("devicemotion", that.zimDevicemotionEvent);
|
|
92939
92941
|
if (that.zimDeviceorientationEvent) WW.removeEventListener("deviceorientation", that.zimDeviceorientationEvent);
|
|
92940
92942
|
|
|
92941
|
-
WW.removeEventListener("
|
|
92942
|
-
WW.removeEventListener("
|
|
92943
|
-
WW.removeEventListener("
|
|
92944
|
-
|
|
92943
|
+
WW.removeEventListener("pointerdown", leftEvent, true);
|
|
92944
|
+
WW.removeEventListener("pointermove", leftEvent, true);
|
|
92945
|
+
WW.removeEventListener("pointerup", leftEvent);
|
|
92946
|
+
|
|
92945
92947
|
if (!allowDefault) document.body.style.overflow = "athatuto";
|
|
92946
92948
|
recursiveDispose(stage);
|
|
92947
92949
|
function recursiveDispose(obj) {
|
|
@@ -93019,6 +93021,7 @@ zim.Frame = function(scaling, width, height, color, outerColor, ready, assets, p
|
|
|
93019
93021
|
if (zot(edges)) edges = zim.light;
|
|
93020
93022
|
if (zot(box)) box = zim.dark;
|
|
93021
93023
|
if (slats === true) slats = [zim.silver, zim.silver, zim.silver, zim.silver, zim.silver];
|
|
93024
|
+
else if (!zot(slats) && !Array.isArray(slats)) slats = [slats, slats, slats, slats, slats, slats];
|
|
93022
93025
|
new zim.Rectangle(icon.width, icon.height, box, borderColor, borderWidth).loc(-20,-13,icon);
|
|
93023
93026
|
|
|
93024
93027
|
var data = [
|
|
@@ -98864,7 +98867,7 @@ animator - the Gifler animator
|
|
|
98864
98867
|
if (to) clearTimeout(to);
|
|
98865
98868
|
if (state && that.animator.running()) {
|
|
98866
98869
|
that.animator.stop();
|
|
98867
|
-
zim.Ticker.remove(that.ticker, mID, that);
|
|
98870
|
+
if (that.ticker) zim.Ticker.remove(that.ticker, mID, that);
|
|
98868
98871
|
} else if (!state && !that.animator.running()) {
|
|
98869
98872
|
that.animator.start();
|
|
98870
98873
|
zim.Ticker.add(that.ticker, null, mID, that);
|
|
@@ -98894,7 +98897,7 @@ animator - the Gifler animator
|
|
|
98894
98897
|
this.dispose = function() {
|
|
98895
98898
|
that.animator.stop();
|
|
98896
98899
|
if (that.parent) that.removeFrom();
|
|
98897
|
-
zim.Ticker.remove(that.ticker, mID, that);
|
|
98900
|
+
if (that.ticker) zim.Ticker.remove(that.ticker, mID, that);
|
|
98898
98901
|
zim.gD(this);
|
|
98899
98902
|
};
|
|
98900
98903
|
|
|
@@ -103159,4 +103162,4 @@ export let Ticker = zim.Ticker;
|
|
|
103159
103162
|
export let Style = zim.Style;
|
|
103160
103163
|
export let assets = zim.assets;
|
|
103161
103164
|
export let assetIDs = zim.assetIDs;
|
|
103162
|
-
export let ZIMON = zim.ZIMON;
|
|
103165
|
+
export let ZIMON = zim.ZIMON;
|