zimjs 18.0.7 → 18.0.9

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zimjs",
3
- "version": "18.0.7",
3
+ "version": "18.0.9",
4
4
  "type": "module",
5
5
  "main": "./src/zim.js",
6
6
  "types": "./ts-src/typings/zim",
package/src/zim.js CHANGED
@@ -15968,7 +15968,7 @@ zim.Triangle = function(a, b, c, color, borderColor, borderWidth, corner, center
15968
15968
  if (zot(c)) c = DS.c!=null?DS.c:a;
15969
15969
  if (b==-1) b = Math.sqrt(Math.pow(a,2)+Math.pow(c,2));
15970
15970
  if (c==-1) c = Math.sqrt(Math.pow(a,2)+Math.pow(b,2));
15971
- if (zot(corner)) corner = DS.corner!=null?DS.corner:0;
15971
+ if (zot(corner)) corner = DS.corner!=null?DS.corner:0;
15972
15972
  if (zot(center)) center = DS.center!=null?DS.center:true;
15973
15973
  if (zot(adjust)) adjust = DS.adjust!=null?DS.adjust:0;
15974
15974
  if (zot(borderColor)) borderColor = DS.borderColor!=null?DS.borderColor:null;
@@ -15981,7 +15981,7 @@ zim.Triangle = function(a, b, c, color, borderColor, borderWidth, corner, center
15981
15981
 
15982
15982
  // PICK
15983
15983
  var oa = remember(a, b, c, color, borderColor, borderWidth);
15984
- this.veeObj = {a:oa[0], b:oa[1], c:oa[2], color:oa[3], borderColor:oa[4], borderWidth:oa[5]};
15984
+ this.veeObj = {a:oa[0], b:oa[1], c:oa[2], color:oa[3], borderColor:oa[4], borderWidth:oa[5]};
15985
15985
  function remember() {return arguments;} // for cloning PICK
15986
15986
  a = zim.Pick.choose(a);
15987
15987
  b = zim.Pick.choose(b);
@@ -15999,7 +15999,7 @@ zim.Triangle = function(a, b, c, color, borderColor, borderWidth, corner, center
15999
15999
  that._borderWidth = borderWidth;
16000
16000
  that._dashed = dashed;
16001
16001
  if (that._dashed && !Array.isArray(that._dashed)) that._dashed = [10, 10];
16002
- that._corner = corner;
16002
+ that._corner = corner;
16003
16003
 
16004
16004
 
16005
16005
  var lines = [a,b,c];
@@ -16020,12 +16020,12 @@ zim.Triangle = function(a, b, c, color, borderColor, borderWidth, corner, center
16020
16020
 
16021
16021
  var g = tri.graphics;
16022
16022
  that.drawShape = function() {
16023
- var corners = [];
16024
- if (Array.isArray(that._corner)) corners = that._corner;
16025
- else corners.push(that._corner, that._corner, that._corner);
16026
- for(var i=0; i<3; i++) {
16027
- if (corners[i] < 0 || typeof corners[i] != "number") corners[i] = 0;
16028
- }
16023
+ var corners = [];
16024
+ if (Array.isArray(that._corner)) corners = that._corner;
16025
+ else corners.push(that._corner, that._corner, that._corner);
16026
+ for(var i=0; i<3; i++) {
16027
+ if (corners[i] < 0 || typeof corners[i] != "number") corners[i] = 0;
16028
+ }
16029
16029
 
16030
16030
  g.c();
16031
16031
  that.colorCommand = g.f(that._color).command;
@@ -16040,11 +16040,7 @@ zim.Triangle = function(a, b, c, color, borderColor, borderWidth, corner, center
16040
16040
  if (that._dashed) that.borderDashedCommand = g.sd(Array.isArray(that._dashed)?that._dashed:[10, 10], that._dashedOffset).command;
16041
16041
  }
16042
16042
  }
16043
-
16044
- // g.mt(5,100)
16045
- // g.at(100,100, 0,0, 15).at(0,0, 0,100, 5).at(0,100,100,100, 5)
16046
-
16047
-
16043
+
16048
16044
  that.one={x:0,y:0};
16049
16045
  that.two={x:a,y:0};
16050
16046
 
@@ -16074,13 +16070,13 @@ zim.Triangle = function(a, b, c, color, borderColor, borderWidth, corner, center
16074
16070
 
16075
16071
  that.three={x:a-backX,y:0-upY};
16076
16072
 
16077
- var sX = a*corners[0]/((corners[0]+corners[1])||1);
16078
- g
16079
- .mt(sX,0)
16080
- .at(a,0, a-backX,0-upY, corners[1])
16081
- .at(a-backX,0-upY, 0,0, corners[2])
16082
- .at(0,0, a,0, corners[0])
16083
- .lt(sX,0);
16073
+ var sX = a*corners[0]/((corners[0]+corners[1])||1);
16074
+ g
16075
+ .mt(sX,0)
16076
+ .at(a,0, a-backX,0-upY, corners[1])
16077
+ .at(a-backX,0-upY, 0,0, corners[2])
16078
+ .at(0,0, a,0, corners[0])
16079
+ .lt(sX,0);
16084
16080
 
16085
16081
  g.cp();
16086
16082
 
@@ -25400,7 +25396,7 @@ wait - (default null) - String word for button to show when button is pressed an
25400
25396
  LOADING: this can be used as a loading message - so change the button to "LOADING"
25401
25397
  When the asset has loaded, use the clearWait() method to return to the normal button or toggled button state
25402
25398
  CONFIRMING: this can also be used to confirm user action rather than a full new confirm panel
25403
- Set wait:"CONFIRM", set the waitBackgroundColor and rollWaitBackground parameters to red and the waitTime parameter to 4
25399
+ Set wait:"CONFIRM", set the waitBackgroundColor and rollWaitBackgroundColor parameters to red and the waitTime parameter to 4
25404
25400
  In a button mousedown (must use mousedown - not click or tap if ACTIONEVENT is mousedown - the default),
25405
25401
  check if the waiting property is true to test for confirmation
25406
25402
  The waiting property will not be true for the first button press but will be true during the wait period
@@ -48196,7 +48192,7 @@ rollIcon - references the rollIcon (if set)
48196
48192
  toggleObj - references the toggle object (string or display object if set)
48197
48193
  rollToggle - references the rollToggle (if set)
48198
48194
  toggled - true if button is in toggled state, false if button is in original state
48199
- enabled - default is true - set to false to disable
48195
+ enabled - default is true - set to false to disable (the HTML aspect of the Loader will remail - so use loader.removeFrom() or loader.dispose() if you do not need it gain)
48200
48196
  rollPersist - default is false - set to true to keep rollover state when button is pressed even if rolling off
48201
48197
  focus - get or set the focus property of the Button used for tabOrder
48202
48198
 
@@ -56595,7 +56591,7 @@ RETURNS an index Number (or undefined) | col | row | an Array of [index, col, ro
56595
56591
  // SUBSECTION ANIMATE, WIGGLE, LOOP
56596
56592
 
56597
56593
  /*--
56598
- obj.animate = function(props, time, ease, call, params, wait, waitedCall, waitedParams, loop, loopCount, loopWait, loopCall, loopParams, loopWaitCall, loopWaitParams, loopPick, rewind, rewindWait, rewindCall, rewindParams, rewindWaitCall, rewindWaitParams, rewindTime, rewindEase, startCall, startParams, animateCall, animateParams, sequence, sequenceCall, sequenceParams, sequenceReverse, sequenceRatio, ticker, cjsProps, css, protect, override, from, set, id, events, sequenceTarget, dynamic, drag, clamp, startPaused, clean, obj, seriesWait, sequenceWait, rate, pauseOnBlur, easeAmount, easeFrequency, timeUnit, timeCheck, noAnimateCall, pathDamp)
56594
+ obj.animate = function(props, time, ease, call, params, wait, waitedCall, waitedParams, loop, loopCount, loopWait, loopCall, loopParams, loopWaitCall, loopWaitParams, loopPick, rewind, rewindWait, rewindCall, rewindParams, rewindWaitCall, rewindWaitParams, rewindTime, rewindEase, startCall, startParams, animateCall, animateParams, sequence, sequenceCall, sequenceParams, sequenceReverse, sequenceRatio, ticker, cjsProps, css, protect, override, from, set, id, events, sequenceTarget, dynamic, drag, clamp, startPaused, clean, obj, seriesWait, sequenceWait, rate, pauseOnBlur, easeAmount, easeFrequency, timeUnit, timeCheck, noAnimateCall, pathDamp, rewindPick)
56599
56595
 
56600
56596
  animate
56601
56597
  zim DisplayObject method
@@ -56811,6 +56807,18 @@ const line = new Squiggle().center();
56811
56807
  new Circle(10, red).addTo().animate({path:line}, 1);
56812
56808
  END EXAMPLE
56813
56809
 
56810
+ EXAMPLE
56811
+ // animate across colors
56812
+ const colors = series("#f0f","#0f0","#00f","#f00","#ff0").mix();
56813
+ new Rectangle(W,H,colors)
56814
+ .addTo()
56815
+ .animate({
56816
+ props:{color:colors},
56817
+ loopPick:true,
56818
+ rewindPick:true
56819
+ });
56820
+ END EXAMPLE
56821
+
56814
56822
  PARAMETERS
56815
56823
  ** supports DUO - parameters or single object with properties below
56816
56824
  ** supports VEE - parameters marked with ZIM VEE mean a zim Pick() object or Pick Literal can be passed
@@ -56958,6 +56966,7 @@ call - (default null) the function to call when the animation is done
56958
56966
  params - (default target) a single parameter for the call function (eg. use object literal or array)
56959
56967
  wait - |ZIM VEE| (default 0) seconds to wait before doing animation
56960
56968
  can be negative for series to start animation before previous animation ends
56969
+ also see the waiting property
56961
56970
  waitedCall - (default null) calls function after wait is done if there is a wait
56962
56971
  waitedParams - (default target) parameters to send waitedCall function
56963
56972
  loop - (default false) set to true to loop animation
@@ -56980,7 +56989,6 @@ rewindEase - (default null) overwrite the ease for the rewind direction
56980
56989
  so setting rewindEase:"bounceOut" will bounce back at the start of the animation
56981
56990
  note - setting ease:"bounceOut" will bounce at the end of the animation
56982
56991
  this allows for a normal start with a bounce and then a normal start at rewind and a bounce
56983
-
56984
56992
  startCall - (default null) calls function at the start of actual animation and after any wait (and waitedCall)
56985
56993
  this is basically the same as the waitedCall but will also be called at the start of animation when there is no waitedCall
56986
56994
  startParams - (default target) parameters to send startCall function
@@ -57102,6 +57110,12 @@ timeUnit - (default TIME) override the TIME setting to "seconds" / "s" or "milli
57102
57110
  timeCheck - (default true) set to false to not have animate() warn of potentially wrong time units - see also TIMECHECK
57103
57111
  noAnimateCall - (default true) set to false to not call the callback function if ANIMATE is set to false
57104
57112
  pathDamp - (default .15) damping for drag along path
57113
+ rewindPick - (default false) set to true to pick from props as it rewinds
57114
+ this will be moved to the other rewind parameters in ZIM 019
57115
+ also see loopPick - using both loopPick and rewindPick will act like a series
57116
+ where if the property has a series it will animate one after the other
57117
+ do not use if the property is just a regular value as it will appear to stop the animation.
57118
+ Can use a series, results of a function, min max or array for random picks
57105
57119
 
57106
57120
  PROPERTIES - zim.animate() adds the following properties to any object it animates:
57107
57121
  animating - read-only - true when animating (including when waiting)
@@ -57172,8 +57186,8 @@ EVENTS - zim animate() will add an "animation" event to the target IF the events
57172
57186
 
57173
57187
  RETURNS the target for chaining (or null if no target is provided and run on zim with series)
57174
57188
  --*///+45
57175
- zim.animate = function(target, props, time, ease, call, params, wait, waitedCall, waitedParams, loop, loopCount, loopWait, loopCall, loopParams, loopWaitCall, loopWaitParams, loopPick, rewind, rewindWait, rewindCall, rewindParams, rewindWaitCall, rewindWaitParams, rewindTime, rewindEase, startCall, startParams, animateCall, animateParams, sequence, sequenceCall, sequenceParams, sequenceReverse, sequenceRatio, ticker, cjsProps, css, protect, override, from, set, id, events, sequenceTarget, dynamic, drag, clamp, startPaused, clean, obj, seriesWait, sequenceWait, rate, pauseOnBlur, easeAmount, easeFrequency, timeUnit, timeCheck, noAnimateCall, pathDamp) {
57176
- var sig = "target, props, time, ease, call, params, wait, waitedCall, waitedParams, loop, loopCount, loopWait, loopCall, loopParams, loopWaitCall, loopWaitParams, loopPick, rewind, rewindWait, rewindCall, rewindParams, rewindWaitCall, rewindWaitParams, rewindTime, rewindEase, startCall, startParams, animateCall, animateParams, sequence, sequenceCall, sequenceParams, sequenceReverse, sequenceRatio, ticker, cjsProps, css, protect, override, from, set, id, events, sequenceTarget, dynamic, drag, clamp, startPaused, clean, obj, seriesWait, sequenceWait, rate, pauseOnBlur, easeAmount, easeFrequency, timeUnit, timeCheck, noAnimateCall, pathDamp";
57189
+ zim.animate = function(target, props, time, ease, call, params, wait, waitedCall, waitedParams, loop, loopCount, loopWait, loopCall, loopParams, loopWaitCall, loopWaitParams, loopPick, rewind, rewindWait, rewindCall, rewindParams, rewindWaitCall, rewindWaitParams, rewindTime, rewindEase, startCall, startParams, animateCall, animateParams, sequence, sequenceCall, sequenceParams, sequenceReverse, sequenceRatio, ticker, cjsProps, css, protect, override, from, set, id, events, sequenceTarget, dynamic, drag, clamp, startPaused, clean, obj, seriesWait, sequenceWait, rate, pauseOnBlur, easeAmount, easeFrequency, timeUnit, timeCheck, noAnimateCall, pathDamp, rewindPick) {
57190
+ var sig = "target, props, time, ease, call, params, wait, waitedCall, waitedParams, loop, loopCount, loopWait, loopCall, loopParams, loopWaitCall, loopWaitParams, loopPick, rewind, rewindWait, rewindCall, rewindParams, rewindWaitCall, rewindWaitParams, rewindTime, rewindEase, startCall, startParams, animateCall, animateParams, sequence, sequenceCall, sequenceParams, sequenceReverse, sequenceRatio, ticker, cjsProps, css, protect, override, from, set, id, events, sequenceTarget, dynamic, drag, clamp, startPaused, clean, obj, seriesWait, sequenceWait, rate, pauseOnBlur, easeAmount, easeFrequency, timeUnit, timeCheck, noAnimateCall, pathDamp, rewindPick";
57177
57191
 
57178
57192
  if (target && (target.props || target.obj)) {
57179
57193
  var duo; if (duo = zob(zim.animate, arguments, sig)) return duo;
@@ -57194,8 +57208,8 @@ RETURNS the target for chaining (or null if no target is provided and run on zim
57194
57208
  // last param is noWarning - sent internal as false by wiggle for instance
57195
57209
  var timeType = getTIME(null, timeUnit, null, null, zot(timeCheck)?false:!timeCheck);
57196
57210
 
57197
- if (loopCount || loopCall || loopWait) loop = true;
57198
- if (rewindTime || rewindCall || rewindTime || rewindEase || rewindWait) rewind = true;
57211
+ if (loopCall || loopWait || loopPick || loopCount) loop = true;
57212
+ if (rewindCall || rewindWait || rewindPick || rewindTime || rewindEase) rewind = true;
57199
57213
 
57200
57214
  var i, prop, currentCount;
57201
57215
  var startArguments = arguments;
@@ -57345,7 +57359,6 @@ RETURNS the target for chaining (or null if no target is provided and run on zim
57345
57359
  sequenceTarget.animating = true;
57346
57360
  }
57347
57361
  function sequenceDone() {
57348
- sequenceTarget.animating = false;
57349
57362
  if (call) call(params||sequenceTarget);
57350
57363
  }
57351
57364
 
@@ -57393,7 +57406,7 @@ RETURNS the target for chaining (or null if no target is provided and run on zim
57393
57406
  if (i==0 && sequence!=0) seqTime = timeType=="s"?.02:20; // patched in 10.7.0 and 10.7.1
57394
57407
 
57395
57408
  // zim.animate(tar, tar.zimObj, time, ease, (i==target.length-1?call:null), (i==target.length-1?params:null)
57396
- zim.animate(tar, tar.zimObj, time, ease, (i==target.length-1?sequenceDone:null), null, wait, waitedCall, waitedParams, null, null, null, null, null, null, null, loopPick, null, null, null, null, null, null, rewindTime, rewindEase, startCall, startParams, animateCall, animateParams, null, sequenceCall, sequenceParams, null, null, ticker, zim.copy(cjsProps), css, protect, override, null, set, id, events, sequenceTarget, dynamic, drag, clamp, startPaused, clean, obj, seriesWait, seqTime, rrr, pauseOnBlur, easeAmount, easeFrequency, timeUnit, timeCheck, noAnimateCall, pathDamp); // do not send from!
57409
+ zim.animate(tar, tar.zimObj, time, ease, (i==target.length-1?sequenceDone:null), null, wait, waitedCall, waitedParams, null, null, null, null, null, null, null, loopPick, null, null, null, null, null, null, rewindTime, rewindEase, startCall, startParams, animateCall, animateParams, null, sequenceCall, sequenceParams, null, null, ticker, zim.copy(cjsProps), css, protect, override, null, set, id, events, sequenceTarget, dynamic, drag, clamp, startPaused, clean, obj, seriesWait, seqTime, rrr, pauseOnBlur, easeAmount, easeFrequency, timeUnit, timeCheck, noAnimateCall, pathDamp, rewindPick); // do not send from!
57397
57410
 
57398
57411
  }
57399
57412
  return sequenceTarget;
@@ -57741,7 +57754,7 @@ RETURNS the target for chaining (or null if no target is provided and run on zim
57741
57754
  }
57742
57755
  }
57743
57756
 
57744
- props, time, ease, call, params, wait, waitedCall, waitedParams, loop, loopCount, loopWait, loopCall, loopParams, loopWaitCall, loopWaitParams, loopPick, rewind, rewindWait, rewindCall, rewindParams, rewindWaitCall, rewindWaitParams, rewindTime, rewindEase, startCall, startParams, animateCall, animateParams, sequence, sequenceCall, sequenceParams, sequenceReverse, sequenceRatio, ticker, cjsProps, css, protect, override, from, set, id, events, sequenceTarget, dynamic, drag, clamp, startPaused, clean, obj, seriesWait, sequenceWait, rate, pauseOnBlur, easeAmount, easeFrequency, timeUnit, timeCheck, noAnimateCall, pathDamp
57757
+ // props, time, ease, call, params, wait, waitedCall, waitedParams, loop, loopCount, loopWait, loopCall, loopParams, loopWaitCall, loopWaitParams, loopPick, rewind, rewindWait, rewindCall, rewindParams, rewindWaitCall, rewindWaitParams, rewindTime, rewindEase, startCall, startParams, animateCall, animateParams, sequence, sequenceCall, sequenceParams, sequenceReverse, sequenceRatio, ticker, cjsProps, css, protect, override, from, set, id, events, sequenceTarget, dynamic, drag, clamp, startPaused, clean, obj, seriesWait, sequenceWait, rate, pauseOnBlur, easeAmount, easeFrequency, timeUnit, timeCheck, noAnimateCall, pathDamp, rewindPick
57745
57758
 
57746
57759
 
57747
57760
  // -----------------------------
@@ -57751,7 +57764,6 @@ RETURNS the target for chaining (or null if no target is provided and run on zim
57751
57764
  if (!target.tweenStates) target.tweenStates = {all:true};
57752
57765
 
57753
57766
  var fromCheck = false;
57754
-
57755
57767
 
57756
57768
  // Handle notes
57757
57769
  if (obj.note) {
@@ -58695,7 +58707,7 @@ RETURNS the target for chaining (or null if no target is provided and run on zim
58695
58707
  sequenceWait:sequenceWait
58696
58708
  }
58697
58709
 
58698
- function doLoopCall() {
58710
+ function doLoopCall() {
58699
58711
  if (wait3>0) target.waiting = false;
58700
58712
  if (!cjsProps.loop) return; // added Cat 03 - was being called even if not looping
58701
58713
  if (sequenceCall && typeof sequenceCall == 'function') {
@@ -58722,12 +58734,24 @@ RETURNS the target for chaining (or null if no target is provided and run on zim
58722
58734
  adjustedScale = zim.Pick.choose(savedPicks.scale, null, target);
58723
58735
  }
58724
58736
 
58737
+
58738
+
58725
58739
  if (!from) {
58740
+
58726
58741
  if (tween.step && tween.step.prev && tween.step.prev.props) {
58727
58742
  for (var i in tween.step.prev.props) {
58728
58743
  if (extraTypes.indexOf(i) >= 0) continue; // skip for extras
58729
58744
  var p = zim.Pick.choose(savedPicks[i], null, target);
58730
58745
 
58746
+ // handle color at loop - ZIM 018
58747
+ if (i=="colorRange") i = "color"
58748
+ var p = zim.Pick.choose(savedPicks[i], null, target);
58749
+ if (i=="color") i = "colorRange";
58750
+ if (target.setColorRange && i=="colorRange") {
58751
+ target.setColorRange(target.color, p);
58752
+ continue;
58753
+ }
58754
+
58731
58755
  // also handle relative
58732
58756
  if (typeof p == "string" && i != "transform") {
58733
58757
  if (p.substr(0,1) != "+" && p.substr(0,1) != "-") {
@@ -58742,7 +58766,7 @@ RETURNS the target for chaining (or null if no target is provided and run on zim
58742
58766
 
58743
58767
  // ZIM ZIM 02 patch to make non-rewind work with loopPick
58744
58768
  // the difference seems to be using tween.step.prev for rewind and tween.step for non-rewind
58745
- // we had tween.step.prev for both since the beggining - we must not have tested on a non-rewind
58769
+ // we had tween.step.prev for both since the begining - we must not have tested on a non-rewind
58746
58770
  if (rewind) {
58747
58771
  if (!zot(savedPicks[i])) tween.step.prev.props[i] = p;
58748
58772
  if (i=="scaleX" && !zot(adjustedScale)) tween.step.prev.props.scaleX = adjustedScale;
@@ -58797,7 +58821,7 @@ RETURNS the target for chaining (or null if no target is provided and run on zim
58797
58821
  params6 = cjsProps.startParams;
58798
58822
  delete cjsProps.startParams;
58799
58823
  }
58800
- function doStartCall(tween) {
58824
+ function doStartCall(tween) {
58801
58825
  if (tween.startCalled) return;
58802
58826
  tween.startCalled = true;
58803
58827
  if (call6 && typeof call6 == 'function') {(call6)(params6||target);}
@@ -58939,11 +58963,65 @@ RETURNS the target for chaining (or null if no target is provided and run on zim
58939
58963
 
58940
58964
  // REWIND TWEENS
58941
58965
 
58942
- function doRewindCall() {
58966
+ function doRewindCall() {
58967
+ // ADDED in ZIM 018
58968
+
58969
+ if (!from && rewindPick) {
58970
+
58971
+ var adjustedScale;
58972
+ if (!zot(savedPicks.scale)) {
58973
+ adjustedScale = zim.Pick.choose(savedPicks.scale, null, target);
58974
+ }
58975
+
58976
+ if (tween.step && tween.step.props) {
58977
+ for (var i in tween.step.props) {
58978
+ if (extraTypes.indexOf(i) >= 0) continue; // skip for extras
58979
+
58980
+ // handle color at rewind - ZIM 018
58981
+ if (i=="colorRange") i = "color"
58982
+ var p = zim.Pick.choose(savedPicks[i], null, target);
58983
+ if (i=="color") i = "colorRange";
58984
+ if (target.setColorRange && i=="colorRange") {
58985
+ target.setColorRange(p, target.color);
58986
+ continue;
58987
+ }
58988
+
58989
+ // also handle relative
58990
+ if (typeof p == "string" && i != "transform") {
58991
+ if (p.substr(0,1) != "+" && p.substr(0,1) != "-") {
58992
+ var newStart;
58993
+ if (target.zimLastObj && !zot(target.zimLastObj[i])) newStart = target.zimLastObj[i];
58994
+ else newStart = target[i];
58995
+ p = newStart + Number(p.replace(/\s/g,""));
58996
+ }
58997
+ }
58998
+ // end handle relative
58999
+
59000
+ // target.zimLastObj[i] = rewind?target.zimTweenOriginals[i]:p;
59001
+ target.zimLastObj[i] = p;
59002
+
59003
+ if (!zot(savedPicks[i])) {
59004
+ tween.step.props[i] = p; // sets the rewind property
59005
+ tween._stepHead.props[i] = p; // sets the start of a loop to end of rewind
59006
+ }
59007
+ if (i=="scaleX" && !zot(adjustedScale)) {
59008
+ tween.step.props.scaleX = adjustedScale;
59009
+ tween._stepHead.props.scaleX = adjustedScale;
59010
+ }
59011
+ if (i=="scaleY" && !zot(adjustedScale)) {
59012
+ tween.step.props.scaleY = adjustedScale;
59013
+ tween._stepHead.props.scaleY = adjustedScale;
59014
+ }
59015
+
59016
+ }
59017
+ }
59018
+ }
59019
+ // END ADDED in ZIM 018
59020
+
58943
59021
  if (wait2>0) target.waiting = false;
58944
59022
  if (call2 && typeof call2 == 'function') {(call2)(params2);}
58945
59023
  }
58946
- function doRewindWaitCall() {
59024
+ function doRewindWaitCall() {
58947
59025
  if (wait2>0) target.waiting = true;
58948
59026
  if (call5 && typeof call5 == 'function') {(call5)(params5);}
58949
59027
  }
@@ -58967,23 +59045,28 @@ RETURNS the target for chaining (or null if no target is provided and run on zim
58967
59045
  }
58968
59046
 
58969
59047
  var startTest = false;
58970
- var obj2;
59048
+ var obj2;
59049
+
58971
59050
  function tween1(lastTween) {
58972
59051
  if (!startTest) {
58973
- obj2 = getStart();
58974
- startTest = true;
58975
- }
58976
- if (target.set && !from) target.set(set);
59052
+ obj2 = getStart();
59053
+ startTest = true;
59054
+ }
59055
+
59056
+ if (target.set && !from) target.set(set);
58977
59057
  tween = target.zimTweens[id] = target.zimTween = createjs.Tween.get(target, cjsProps)
58978
- .call(doStartCall)
59058
+ .call(doStartCall)
58979
59059
  .to(obj, t, finalEase)
58980
59060
  .call(doRewindWaitCall)
58981
59061
  .wait(wait2, true)
58982
59062
  .call(doRewindCall)
58983
- .to(obj2, t2, finalEase2)
59063
+ // this is hard coded... need to inject a different obj2 into createjs tween
59064
+ // and activate the code in doStartCall that makes loop start at end of new rewind
59065
+ .to(obj2, t2, finalEase2)
58984
59066
  .call(doneAnimating)
58985
59067
  .wait(wait3, true)
58986
59068
  .call(doLoopCall);
59069
+
58987
59070
  tween.timeScale = target.futureRate;
58988
59071
  if (lastTween) transferIds(lastTween, tween);
58989
59072
  setZimTweenProps();
@@ -59420,20 +59503,20 @@ RETURNS the target for chaining (or null if no target is provided and run on zim
59420
59503
  return;
59421
59504
  }
59422
59505
  if (cjsProps.loop) {
59423
- if (count > 0) {
59506
+ if (count > 0) {
59424
59507
  if (currentCount < count) {
59425
59508
  if (wait3>0) target.waiting = true;
59426
59509
  doLoopWaitCall();
59427
59510
  currentCount++;
59428
59511
  return;
59429
59512
  } else {
59430
- if (rewind) {
59513
+ if (rewind) {
59431
59514
  if (target.set) target.set(startObj);
59432
59515
  } else {
59433
59516
  if (target.set) target.set(obj);
59434
59517
  }
59435
59518
  }
59436
- } else {
59519
+ } else {
59437
59520
  if (wait3>0) target.waiting = true;
59438
59521
  doLoopWaitCall();
59439
59522
  return;
@@ -62394,7 +62477,7 @@ zim global variable
62394
62477
 
62395
62478
  DESCRIPTION
62396
62479
 
62397
- WARNING - currently, this does not work - see seedRandom() in CODE module.
62480
+ WARNING - currently, this does not work - instead, see seedRandom() in CODE module.
62398
62481
 
62399
62482
  If set, the ZIM rand() function will be seeded with its value.
62400
62483
  This means that rand() will repeat in order its random results.
@@ -62442,7 +62525,7 @@ zim global variable
62442
62525
 
62443
62526
  DESCRIPTION
62444
62527
 
62445
- WARNING - currently, this does not work - see seedRandom() in CODE module.
62528
+ WARNING - currently, this does not work - instead, see seedRandom() in CODE module.
62446
62529
  but there is no equivilant to SEEDRANDOMCOUNT yet - we are working on it.
62447
62530
 
62448
62531
  The current order number used for rand() if SEEDRAND is set or the rand() seedRand parameter is set
@@ -63264,7 +63347,8 @@ arrowDisableColor - (default grey) the disabled backgroundColor of the ZIM Arrow
63264
63347
  continuous - (default false) when default swiping is on, set to true to make pages continuous
63265
63348
  so last page goes forward to first page and first page goes backwards to last page
63266
63349
 
63267
- METHODS
63350
+ METHODS
63351
+ ** these return the Pages object for chaining unless another value is specified
63268
63352
  addPage(page, swipeArray) - lets you alternatively add pages after you create the object
63269
63353
  removePage(page) - lets you remove a page (if on this page, call a go() first and remove on the page event)
63270
63354
  setSwipeArray(page, swipeArray) - lets you set the swipe array for a page
@@ -63280,7 +63364,7 @@ settle() - removes all pages except the currentPage
63280
63364
  setArrows(index) - disables or enables Arrow buttons held in arrows property - called automatically by Arrow buttons
63281
63365
  disable() - stops swipe from activating and sets active = false
63282
63366
  enable() - enables swipe action and sets active = true
63283
- dispose() - clears listeners and pages
63367
+ dispose() - clears listeners and pages - returns true if successful
63284
63368
 
63285
63369
  PROPERTIES
63286
63370
  type - holds the class name as a String
@@ -63500,6 +63584,7 @@ you can define multiple pages objects add and remove pages objects as needed
63500
63584
  } else {
63501
63585
  if (page.parent) page.parent.removeChild(page);
63502
63586
  }
63587
+ return that;
63503
63588
  };
63504
63589
 
63505
63590
  this.removePage = function(page) {
@@ -63513,19 +63598,23 @@ you can define multiple pages objects add and remove pages objects as needed
63513
63598
  if (p.page == page || p == page) that.pages.splice(i, 1);
63514
63599
  }, true);
63515
63600
  page.zimSwipeArray = null;
63601
+ return that;
63516
63602
  };
63517
63603
 
63518
63604
  this.setSwipeArray = function(page, swipeArray) {
63519
63605
  if (zot(swipeArray)) swipeArray = [];
63520
63606
  var data = {page:page, swipe:swipeArray};
63521
63607
  data.page.zimSwipeArray = (data.swipe) ? data.swipe : [];
63608
+ return that;
63522
63609
  };
63523
63610
 
63524
63611
  this.pause = function() {
63525
63612
  paused = true;
63613
+ return that;
63526
63614
  };
63527
63615
  this.unpause = function() {
63528
63616
  if (paused) that.go(pauseInfo[0], pauseInfo[1], pauseInfo[2], pauseInfo[3], pauseInfo[4]);
63617
+ return that;
63529
63618
  };
63530
63619
 
63531
63620
  var goCheck = true;
@@ -63836,6 +63925,7 @@ you can define multiple pages objects add and remove pages objects as needed
63836
63925
  that.setArrows(pages.index);
63837
63926
  if (holder.stage) holder.stage.update();
63838
63927
  }
63928
+ return that;
63839
63929
  };
63840
63930
 
63841
63931
  if (holder && holder.shape) {
@@ -63848,6 +63938,7 @@ you can define multiple pages objects add and remove pages objects as needed
63848
63938
  hW = holder.getBounds().width;
63849
63939
  hH = holder.getBounds().height;
63850
63940
  if (transition!="none" || transitionTable!=[]) makeTransitionAssets();
63941
+ return that;
63851
63942
  };
63852
63943
 
63853
63944
  this.puff = function(time) {
@@ -63862,20 +63953,24 @@ you can define multiple pages objects add and remove pages objects as needed
63862
63953
  that.settle();
63863
63954
  }, time*(timeType=="s"?1000:1));
63864
63955
  }
63956
+ return that;
63865
63957
  };
63866
63958
 
63867
63959
  this.settle = function() {
63868
63960
  that.removeAllChildren();
63869
63961
  that.addChild(currentPage);
63870
63962
  that.dispatchEvent("puffed");
63963
+ return that;
63871
63964
  };
63872
63965
 
63873
63966
  this.disable = function() {
63874
63967
  that.active = false;
63968
+ return that;
63875
63969
  };
63876
63970
 
63877
63971
  this.enable = function() {
63878
63972
  that.active = true;
63973
+ return that;
63879
63974
  };
63880
63975
 
63881
63976
  this.arrows = {};
@@ -63901,6 +63996,7 @@ you can define multiple pages objects add and remove pages objects as needed
63901
63996
  }
63902
63997
  });
63903
63998
  if (that.stage) that.stage.update();
63999
+ return that;
63904
64000
  }
63905
64001
  // function arrowsOn(b) {
63906
64002
  // b.enabled = true;
@@ -66311,8 +66407,10 @@ setSpacing(h,v) - set arrays of horizontal and vertical spacing
66311
66407
  ZIM Tile() makes spacing arrays for horizontal and vertical spacing based on ZIM VEE calculations from the spacingH and spacingV parameters
66312
66408
  to change spacing afterwards, new arrays can be provided to setSpacing()
66313
66409
  the arrays must have col-1 and row-1 items - although h or v can be left null or undefined to keep existing spacing
66314
- remake(items) - pass in an array of items to tile - see items property for editing current list - returns tile for chaining
66410
+ remake(items, newSpacingH, newSpacingV, newCount) - pass in an array of items to tile - see items property for editing current list - returns tile for chaining
66315
66411
  can also change rows and cols and remake()
66412
+ optionally pass in new spacing parameters and/or a newCount
66413
+ Note: if the items length is different than the previous items length then the count will be automatically made cols*rows - unless newCount is provided
66316
66414
  resize(width, height) - resize the tile with new width and/or height if the width and/or height parameters were set - returns tile for chaining
66317
66415
  hasProp(property as String) - returns true if property exists on object else returns false
66318
66416
  clone(exact) - makes a copy with properties such as x, y, etc. also copied
@@ -66542,6 +66640,8 @@ note: the item is not the event object target - as that is the tile
66542
66640
  // remember any set widths and heights in case
66543
66641
  // zik is used for colSize and rowSize
66544
66642
  var widthHeights;
66643
+ var widthO;
66644
+ var heightO;
66545
66645
 
66546
66646
  function makeTile() {
66547
66647
 
@@ -66633,11 +66733,11 @@ note: the item is not the event object target - as that is the tile
66633
66733
  heightUncompressedMax+=val;
66634
66734
  }
66635
66735
  }
66636
-
66736
+ widthO = widthUncompressedMax;
66737
+ heightO = heightUncompressedMax;
66637
66738
  }
66638
66739
  makeTile();
66639
- var widthO = widthUncompressedMax;
66640
- var heightO = heightUncompressedMax;
66740
+
66641
66741
 
66642
66742
  var overallWidth;
66643
66743
  var overallHeight;
@@ -66727,11 +66827,13 @@ note: the item is not the event object target - as that is the tile
66727
66827
  rowTops[i] = 0;
66728
66828
  }
66729
66829
  }
66830
+
66730
66831
 
66731
66832
  if (i==0) {
66732
66833
 
66733
66834
  // ~~~~~~~~~~~~~~~~~~~ HORIZONTAL ALIGN ~~~~~~~~~~~~~~~
66734
66835
 
66836
+
66735
66837
  if (!zot(width)) {
66736
66838
  if (that.squeezeH=="full") {
66737
66839
  spreadXspacing = rowObjects.length>1?((width - widthTotals[j]) / (rowObjects.length-1)):0;
@@ -66769,16 +66871,16 @@ note: the item is not the event object target - as that is the tile
66769
66871
  } else {
66770
66872
  // tile.x = colTotal + (tile.regX-b.x);
66771
66873
  }
66772
- tile.pos(colTotal, null);
66874
+ tile.pos(colTotal, null);
66773
66875
 
66774
- if (!that.squeezeH && VEEAlign) {
66876
+ if (!that.squeezeH && VEEAlign) {
66775
66877
  if (zot(width) && (align=="center" || align=="middle")) {
66776
66878
  tile.x += (widthMax[i]-tile.fW)/2;
66777
66879
  } else if (zot(width) && align=="right") {
66778
66880
  tile.x += widthMax[i]-tile.fW;
66779
66881
  }
66780
- } else if (!that.squeezeH) { // this allows for dynamic setting of align (for non-VEE, non squeezeH)
66781
- if (zot(width) && (that.align=="center" || that.align=="middle")) {
66882
+ } else if (!that.squeezeH) { // this allows for dynamic setting of align (for non-VEE, non squeezeH)
66883
+ if (zot(width) && (that.align=="center" || that.align=="middle")) {
66782
66884
  tile.x += (widthMax[i]-tile.fW)/2;
66783
66885
  } else if (zot(width) && that.align=="right") {
66784
66886
  tile.x += widthMax[i]-tile.fW;
@@ -66822,7 +66924,7 @@ note: the item is not the event object target - as that is the tile
66822
66924
  } else {
66823
66925
  colTotal += widthMax[i]+(!zot(width)?spreadXspacing:spacingHList[i]);
66824
66926
  }
66825
-
66927
+
66826
66928
  tile.x += left;
66827
66929
  tile.y += rowTops[i];
66828
66930
 
@@ -66881,9 +66983,41 @@ note: the item is not the event object target - as that is the tile
66881
66983
  return that.items2D[ro][co];
66882
66984
  };
66883
66985
 
66884
- this.remake = function(items) {
66986
+ this.remake = function(items, newSpacingH, newSpacingV, newCount) {
66987
+
66988
+ // a little complicated so we just remake the spacings if provided or items length has gotten bigger
66989
+ // if items length is different we create a new count - can override with newCount
66990
+ if (zot(newCount) && items.length != that.items.length) count = that.cols*that.rows;
66991
+ if (!zot(newSpacingH) || !zot(newSpacingV) || items.length > that.items.length) {
66992
+ if (!zot(newSpacingH)) spacingH = sH;
66993
+ if (!zot(newSpacingV)) spacingV = sV;
66994
+ spacingHList = [];
66995
+ spacingVList = [];
66996
+ spacingHTotal = 0;
66997
+ spacingVTotal = 0;
66998
+ mCols = (count && count<that.cols)?count-1:that.cols-1;
66999
+ for (i=0; i<mCols; i++) {
67000
+ var s = zik(spacingH);
67001
+ spacingHList.push(s);
67002
+ spacingHTotal += s;
67003
+ }
67004
+ mRows = (count && Math.ceil(count/that.cols)<that.rows)?Math.ceil(count/that.cols)-1:that.rows-1;
67005
+ for (i=0; i<mRows; i++) {
67006
+ var s = zik(spacingV);
67007
+ spacingVList.push(s);
67008
+ spacingVTotal += s;
67009
+ }
67010
+ spacingHOList = zim.copy(spacingHList);
67011
+ spacingVOList = zim.copy(spacingVList);;
67012
+ spacingHOTotal = spacingHTotal;
67013
+ spacingVOTotal = spacingVTotal;
67014
+ spacingHAve = that.cols-1>0?spacingHTotal/(that.cols-1):0
67015
+ spacingVAve = that.rows-1>0?spacingVTotal/(that.rows-1):0
67016
+ }
67017
+
66885
67018
  if (!zot(items)) that.items = items;
66886
67019
  makeTile();
67020
+
66887
67021
  resize(width, height);
66888
67022
  makeAdditions(true);
66889
67023
  return that;
@@ -70280,7 +70414,7 @@ This has world-wide wonderful applications!
70280
70414
  TextureActives applies the interactivity to TextureActive objects
70281
70415
  and has an addMesh() method to register three.js meshes with their TextureActive
70282
70416
  A TextureActives object must be made after the TextureActive objects are made
70283
- and after a three.js renderer, scene, camera and constrols are made.
70417
+ and after a three.js renderer, scene, camera and controls are made.
70284
70418
  But it can be made before the meshes that use the TextureActive objects are made.
70285
70419
  Then either a Three.makePanel() or a textureActives.addMesh() method can be used to add TextureActive objects.
70286
70420
 
@@ -70304,6 +70438,10 @@ https://zimjs.com/015/textureactive5.html - Physics
70304
70438
  https://zimjs.com/015/textureactive_hud.html - HUD affecting three object
70305
70439
  https://zimjs.com/015/textureactive_hud_raw.html - same but without ZIM Three
70306
70440
 
70441
+ SEE:
70442
+ TextureActive Studio
70443
+ https://zimjs.com/studio
70444
+
70307
70445
  XR
70308
70446
  TextureActive will detect if XR (AR/VR) is being used and will use the suitable Raycaster
70309
70447
  Additional classes are provided with the ZIM Three helper library for controllers, movement and teleport
@@ -74376,7 +74514,6 @@ dispatches a "moving" event if target is moving and "startmoving" and "stopmovin
74376
74514
  if (target.type == "Pen") target.write = false;
74377
74515
  mouseEvent = stage.on("stagemousedown", function(e) {
74378
74516
  var pp;
74379
- if (target.type == "Pen" && target.draggingCheck) zogb();
74380
74517
  var con;
74381
74518
  if (!mouseOutside && that.boundary && !that.boundary.type=="Blob") con = that.boundary;
74382
74519
  else if (!mouseOutside && container && container.boundsToGlobal) con = container.boundsToGlobal();
@@ -74385,9 +74522,11 @@ dispatches a "moving" event if target is moving and "startmoving" and "stopmovin
74385
74522
  if (
74386
74523
  pp.x < con.x || pp.x > con.x+con.width ||
74387
74524
  pp.y < con.y || pp.y > con.y+con.height
74388
- ) return;
74525
+ ) {
74526
+ moveCheck = false;
74527
+ return;
74528
+ }
74389
74529
  }
74390
- // }
74391
74530
  if (that.boundary && that.boundary.type=="Blob" && (type=="pressmove" || type=="pressdrag")) {
74392
74531
  pp = {x:e.stageX/zim.scaX, y:e.stageY/zim.scaY};
74393
74532
  if (!that.boundary.shape.hitTestPoint(pp.x,pp.y)) return;
@@ -80694,7 +80833,7 @@ layers - (default TOP) where to place the current particle being emitted - value
80694
80833
  animation - |ZIM VEE| (default null) a zim animate config object to apply to the particle
80695
80834
  This is the whole zim DUO object to pass to animate - including a props parameter that holds the animation object
80696
80835
  To pass in two or more animations on the same particle then use {noPick:[{animation1}, {animation2}, {etc.}]}
80697
- random - (default null) an object holding properties to animate, each property holding a ZIM VEE Value object for Pick.choose() to pick from per particle
80836
+ random - (default null) an object holding properties to set, each property holding a ZIM VEE Value object for Pick.choose() to pick from per particle
80698
80837
  eg: {color:[red, white, green], scale:{min:1, max:2}} // scale is a convienence property for both scaleX and scaleY
80699
80838
  horizontal - (default false) start the particles across the emitter's width at the top of the emitter (unless vertical is set to true)
80700
80839
  vertical - (default false) start the particles across the emitter's height at the left of the emitter (unless horizontal is set to true)
@@ -83182,7 +83321,6 @@ dispatches an "undo" and a "redo" whenever undo and redo happens
83182
83321
  that.stop = function() {that.stopCheck(true);};
83183
83322
  that.infinite = false;
83184
83323
  that.stopCheck = function(override) {
83185
-
83186
83324
  if (!override) {
83187
83325
  if (that.infinite) return;
83188
83326
  if (that.zimDragCheck) return;
@@ -91399,6 +91537,7 @@ new Circle(100, blue.darken(.5)).center();
91399
91537
  new Circle(100, blue.toColor(red, .2)).center();
91400
91538
  END EXAMPLE
91401
91539
  --*///+83.55
91540
+ // note - first 9 or 10 colors are used in THEME
91402
91541
  zim.colorsHex = ["#fb4758","#fa8072","#f58e25","#ebcb35","#acd241","#50c4b7","#993399","#e472c4","#d1a170","#112233","#000000","#111111","#222222","#333333","#444444","#555555","#555555","#666666","#777777","#888888","#999999","#aaaaaa","#bbbbbb","#cccccc","#dddddd","#eeeeee","#ffffff","rgba(0,0,0,.01)","rgba(0,0,0,0)"];
91403
91542
  zim.colors = ["red","salmon","orange","yellow","green","blue","purple","pink","brown","interstellar","black","darker","licorice","dark","charcoal","grey","gray","granite","tin","pewter","silver","fog","mist","light","moon","lighter","white","faint","clear"];
91404
91543
  for (z_i=0; z_i<zim.colors.length; z_i++) {
@@ -92297,7 +92436,7 @@ function zimify(obj, a, b, c, d, list) {
92297
92436
  hitTestGrid:function(width, height, cols, rows, x, y, offsetX, offsetY, spacingX, spacingY, local, type) {
92298
92437
  return zim.hitTestGrid(this, width, height, cols, rows, x, y, offsetX, offsetY, spacingX, spacingY, local, type);
92299
92438
  },
92300
- animate:function(props, time, ease, call, params, wait, waitedCall, waitedParams, loop, loopCount, loopWait, loopCall, loopParams, loopWaitCall, loopWaitParams, loopPick, rewind, rewindWait, rewindCall, rewindParams, rewindWaitCall, rewindWaitParams, rewindTime, rewindEase, startCall, startParams, animateCall, animateParams, sequence, sequenceCall, sequenceParams, sequenceReverse, sequenceRatio, ticker, cjsProps, css, protect, override, from, set, id, events, sequenceTarget, dynamic, drag, clamp, startPaused, clean, obj, seriesWait, sequenceWait, rate, pauseOnBlur, easeAmount, easeFrequency, timeUnit, timeCheck, noAnimateCall, pathDamp) {
92439
+ animate:function(props, time, ease, call, params, wait, waitedCall, waitedParams, loop, loopCount, loopWait, loopCall, loopParams, loopWaitCall, loopWaitParams, loopPick, rewind, rewindWait, rewindCall, rewindParams, rewindWaitCall, rewindWaitParams, rewindTime, rewindEase, startCall, startParams, animateCall, animateParams, sequence, sequenceCall, sequenceParams, sequenceReverse, sequenceRatio, ticker, cjsProps, css, protect, override, from, set, id, events, sequenceTarget, dynamic, drag, clamp, startPaused, clean, obj, seriesWait, sequenceWait, rate, pauseOnBlur, easeAmount, easeFrequency, timeUnit, timeCheck, noAnimateCall, pathDamp, rewindPick) {
92301
92440
  if (props && (props.props || props.obj) && isDUO(arguments)) {
92302
92441
  // run this if duo but only if props object has a props or obj object
92303
92442
  // can you believe that sentence makes sense
@@ -92306,7 +92445,7 @@ function zimify(obj, a, b, c, d, list) {
92306
92445
  // it can only be a configuration object if there is a props or obj property
92307
92446
  arguments[0].target = this; return zim.animate(arguments[0]);
92308
92447
  }
92309
- else {return zim.animate(this, props, time, ease, call, params, wait, waitedCall, waitedParams, loop, loopCount, loopWait, loopCall, loopParams, loopWaitCall, loopWaitParams, loopPick, rewind, rewindWait, rewindCall, rewindParams, rewindWaitCall, rewindWaitParams, rewindTime, rewindEase, startCall, startParams, animateCall, animateParams, sequence, sequenceCall, sequenceParams, sequenceReverse, sequenceRatio, ticker, cjsProps, css, protect, override, from, set, id, events, sequenceTarget, dynamic, drag, clamp, startPaused, clean, obj, seriesWait, sequenceWait, rate, pauseOnBlur, easeAmount, easeFrequency, timeUnit, timeCheck, noAnimateCall, pathDamp);}
92448
+ else {return zim.animate(this, props, time, ease, call, params, wait, waitedCall, waitedParams, loop, loopCount, loopWait, loopCall, loopParams, loopWaitCall, loopWaitParams, loopPick, rewind, rewindWait, rewindCall, rewindParams, rewindWaitCall, rewindWaitParams, rewindTime, rewindEase, startCall, startParams, animateCall, animateParams, sequence, sequenceCall, sequenceParams, sequenceReverse, sequenceRatio, ticker, cjsProps, css, protect, override, from, set, id, events, sequenceTarget, dynamic, drag, clamp, startPaused, clean, obj, seriesWait, sequenceWait, rate, pauseOnBlur, easeAmount, easeFrequency, timeUnit, timeCheck, noAnimateCall, pathDamp, rewindPick);}
92310
92449
  },
92311
92450
  pauseAnimate:function(){return this;},
92312
92451
  stopAnimate:function(){return this;},
@@ -92690,39 +92829,63 @@ EXAMPLE
92690
92829
  const data = {size:10, season:"summer"};
92691
92830
  // addWires returns the object data - which will now have the wired method
92692
92831
  // now, when the slider or tabs change the data object will be updated
92693
- // note: we want the slider to be set to the object's start value so set the setSource to "target"
92832
+ // note: we want the slider to be set to the object's start value so set the setSource to true
92694
92833
  // note: we want the text of the tabs not the default index so need to provide input property
92695
- addWires(data).wired(slider, "size", null, "target").wired({source:tabs, prop:"season", input:"text"});
92834
+ addWires(data).wired(slider, "size", null, true).wired({source:tabs, prop:"season", input:"text"});
92835
+ S.on("stagemouseup", ()=>{zog(data);});
92696
92836
  END EXAMPLE
92697
92837
 
92698
92838
  PARAMETERS
92699
92839
  obj - the object to receive the wire and wired methods
92700
92840
 
92701
- RETURNS - obj for chainging
92841
+ RETURNS - obj for chaining
92702
92842
  --*///+83.365
92703
92843
  zim.addWires = function(obj) {
92704
- if (isDUO(arguments)) {arguments[0].obj = this; return zim.addWires(arguments[0]);}
92844
+ // if (isDUO(arguments)) {arguments[0].obj = this; return zim.addWires(arguments[0]);}
92705
92845
  z_d("83.365");
92706
92846
  obj.wire = function() {
92847
+ if (isDUO(arguments)) {arguments[0].obj = this; return zim.wire(arguments[0]);}
92707
92848
  Array.prototype.unshift.call(arguments, obj);
92708
92849
  zim.wire.apply(null, arguments);
92709
92850
  return obj;
92710
92851
  };
92711
92852
  obj.noWire = function() {
92853
+ if (isDUO(arguments)) {arguments[0].obj = this; return zim.noWire(arguments[0]);}
92712
92854
  Array.prototype.unshift.call(arguments, obj);
92713
92855
  zim.noWire.apply(null, arguments);
92714
92856
  return obj;
92715
92857
  };
92716
92858
  obj.wired = function() {
92859
+ if (isDUO(arguments)) {arguments[0].obj = this; return zim.wired(arguments[0]);}
92717
92860
  Array.prototype.unshift.call(arguments, obj);
92718
92861
  zim.wired.apply(null, arguments);
92719
92862
  return obj;
92720
92863
  };
92721
92864
  obj.noWired = function() {
92865
+ if (isDUO(arguments)) {arguments[0].obj = this; return zim.noWired(arguments[0]);}
92722
92866
  Array.prototype.unshift.call(arguments, obj);
92723
92867
  zim.noWired.apply(null, arguments);
92724
92868
  return obj;
92725
92869
  };
92870
+
92871
+
92872
+ // wire:function(target, prop, twoWay, setSource, filter, call, input) {
92873
+ // if (isDUO(arguments)) {arguments[0].obj = this; return zim.wire(arguments[0]);}
92874
+ // else {return zim.wire(this, target, prop, twoWay, setSource, filter, call, input);}
92875
+ // },
92876
+ // noWire:function(target, prop, input) {
92877
+ // if (isDUO(arguments)) {arguments[0].obj = this; return zim.noWire(arguments[0]);}
92878
+ // else {return zim.noWire(this, target, prop, input);}
92879
+ // },
92880
+ // wired:function(source, prop, twoWay, setSource, filter, call, input) {
92881
+ // if (isDUO(arguments)) {arguments[0].obj = this; return zim.wired(arguments[0]);}
92882
+ // else {return zim.wired(this, source, prop, twoWay, setSource, filter, call, input);}
92883
+ // },
92884
+ // noWired:function(source, prop, input) {
92885
+ // if (isDUO(arguments)) {arguments[0].obj = this; return zim.noWired(arguments[0]);}
92886
+ // else {return zim.noWired(this, source, prop, input);}
92887
+ // },
92888
+
92726
92889
  return obj;
92727
92890
  };//-83.365
92728
92891
 
@@ -94532,9 +94695,9 @@ THEME - a Theme object literal with name, lightnessRatio, tint, tintRatio and ex
94532
94695
  zim.THEME = window.THEME = {name:theme, lightenRatio:lightenRatio, tint:tint, tintRatio:tintRatio, exclude:exclude};
94533
94696
  var colors = {};
94534
94697
  var c;
94535
- var cn = zim.colors.slice(0,8);
94536
- // ["red", "orange", "yellow", "green", "blue", "purple", "pink", "brown", "interstellar"];
94537
- var gn = zim.colors.slice(8,25);
94698
+ var cn = zim.colors.slice(0,9);
94699
+ // ["red", "salmon", "orange", "yellow", "green", "blue", "purple", "pink", "brown", "interstellar"];
94700
+ var gn = zim.colors.slice(9,26);
94538
94701
  // ["black","licorice","darker","dark","charcoal","grey","gray","granite","tin","pewter","silver","fog","mist","light","moon","lighter","white"];
94539
94702
  if (theme == "zim") {
94540
94703
  zim.loop(zim.colors, function(color, i) {
@@ -94549,12 +94712,12 @@ THEME - a Theme object literal with name, lightnessRatio, tint, tintRatio and ex
94549
94712
  colors[color] = zim.colorsHex[i+8];
94550
94713
  });
94551
94714
  } else if (theme == "future") {
94552
- c = ["f25019","fd8918","ffc955","1dcfae","00a5ab","007175","00969b","d6b361"];
94715
+ c = ["f25019","f88e82","fd8918","ffc955","1dcfae","00a5ab","007175","00969b","d6b361"];
94553
94716
  zim.loop(cn, function(color, i) {
94554
94717
  colors[color] = "#"+c[i];
94555
94718
  });
94556
94719
  zim.loop(gn, function(color, i) {
94557
- colors[color] = zim.colorsHex[i+8].toColor("#1dcfae",.4-i*.025);
94720
+ colors[color] = zim.colorsHex[i+9].toColor("#1dcfae",.4-i*.025);
94558
94721
  });
94559
94722
  } else if (theme == "invert") {
94560
94723
  colors = {};
@@ -94568,34 +94731,34 @@ THEME - a Theme object literal with name, lightnessRatio, tint, tintRatio and ex
94568
94731
  colors[color] = "#"+c[i];
94569
94732
  });
94570
94733
  } else if (theme == "neon") {
94571
- c = ["FF3624","ff6f00","e2f705","a3f307","05f9e2","ED0AF5","ff33c9","e16d00"];
94734
+ c = ["FF3624","fd6f6f","ff6f00","e2f705","a3f307","05f9e2","ED0AF5","ff33c9","e16d00"];
94572
94735
  zim.loop(cn, function(color, i) {
94573
94736
  colors[color] = "#"+c[i];
94574
94737
  });
94575
94738
  zim.loop(gn, function(color, i) {
94576
- colors[color] = zim.colorsHex[i+8].toColor("#000",.9);
94739
+ colors[color] = zim.colorsHex[i+9].toColor("#000",.9);
94577
94740
  });
94578
94741
  colors["light"] = zim.lighter;
94579
94742
  colors["moon"] = zim.lighter;
94580
94743
  colors["lighter"] = zim.white;
94581
94744
  colors["white"] = zim.white;
94582
94745
  } else if (theme == "seventies") {
94583
- c = ["e5771e","f4a127","ffecb4","6F8212","75c8ae","5a3d2b","956e4e","4c3607"];
94746
+ c = ["e5771e","d66a5e","f4a127","ffecb4","6F8212","75c8ae","5a3d2b","956e4e","4c3607"];
94584
94747
  zim.loop(cn, function(color, i) {
94585
94748
  colors[color] = "#"+c[i];
94586
94749
  });
94587
94750
  zim.loop(gn, function(color, i) {
94588
94751
  // colors[color] = zim.colorsHex[i+8].toColor("#568203",1-i*.06);
94589
- colors[color] = zim.colorsHex[i+8].toColor(i<8?"#344f00":"#f4a127",.8-i*.04);
94752
+ colors[color] = zim.colorsHex[i+9].toColor(i<8?"#344f00":"#f4a127",.8-i*.04);
94590
94753
  });
94591
94754
  } else if (theme == "warm") {
94592
- c = ["965746","c07768","ffecb4","8da279","6da0b1","745c58","9a7e79","be8858"];
94755
+ c = ["965746","dd5c4d","c07768","ffecb4","8da279","6da0b1","745c58","9a7e79","be8858"];
94593
94756
  zim.loop(cn, function(color, i) {
94594
94757
  colors[color] = "#"+c[i];
94595
94758
  });
94596
94759
  zim.loop(gn, function(color, i) {
94597
94760
  // colors[color] = zim.colorsHex[i+8].toColor("#965746",.1);
94598
- colors[color] = zim.colorsHex[i+8].toColor(i<8?"#4e352e":"#745c58",.8-i*.05);
94761
+ colors[color] = zim.colorsHex[i+9].toColor(i<8?"#4e352e":"#745c58",.8-i*.05);
94599
94762
  });
94600
94763
  } else if (theme.constructor == {}.constructor) {
94601
94764
  colors = theme;
@@ -94606,12 +94769,12 @@ THEME - a Theme object literal with name, lightnessRatio, tint, tintRatio and ex
94606
94769
  zim.loop(exclude, function(item) {
94607
94770
  if (item.toLowerCase()=="colors") {
94608
94771
  zim.loop(zim.colors, function(color, i) {
94609
- if (i >= 8) return 1;
94772
+ if (i >= 9) return 1;
94610
94773
  exclude.push(color);
94611
94774
  });
94612
94775
  } else if (item.toLowerCase()=="greys" || item.toLowerCase()=="grays") {
94613
94776
  zim.loop(zim.colors, function(color, i) {
94614
- if (i < 8) return;
94777
+ if (i < 9) return;
94615
94778
  exclude.push(color);
94616
94779
  });
94617
94780
  }
@@ -98093,4 +98256,3 @@ export let Style = zim.Style;
98093
98256
  export let assets = zim.assets;
98094
98257
  export let assetIDs = zim.assetIDs;
98095
98258
  export let ZIMON = zim.ZIMON;
98096
-
@@ -3138,17 +3138,17 @@ declare namespace zim {
3138
3138
  export class Pages extends Container {
3139
3139
  constructor(config_or_pages?: DisplayObject[] | { page: DisplayObject, swipe?: DisplayObject[] }[], transition?: string, speed?: number, transitionTable?: any[][], holder?: Stage | Container, arrowDisableColor?: color, style?: boolean, group?: string, inherit?: {})
3140
3140
  constructor(config: { pages?: DisplayObject[] | { page: DisplayObject, swipe?: DisplayObject[] }[], transition?: string, speed?: number, transitionTable?: any[][], holder?: Stage | Container, arrowDisableColor?: color, style?: boolean, group?: string, inherit?: {} })
3141
- addPage(page: DisplayObject, swipeArray?: string[]): void
3142
- removePage(page: DisplayObject): void
3143
- setSwipeArray(page: DisplayObject, swipeArray?: string[]): void
3144
- go(newPage: DisplayObject | number, direction: string, trans?: string, ms?: number): void
3145
- resize(): void
3146
- pause(): void
3147
- unpause(): void
3148
- puff(time: number): void
3149
- settle(): void
3150
- disable(): void
3151
- enable(): void
3141
+ addPage(page: DisplayObject, swipeArray?: string[]): this
3142
+ removePage(page: DisplayObject): this
3143
+ setSwipeArray(page: DisplayObject, swipeArray?: string[]): this
3144
+ go(newPage: DisplayObject | number, direction: string, trans?: string, ms?: number): this
3145
+ resize(): this
3146
+ pause(): this
3147
+ unpause(): this
3148
+ puff(time: number): this
3149
+ settle(): this
3150
+ disable(): this
3151
+ enable(): this
3152
3152
  dispose(): boolean
3153
3153
  readonly type: string
3154
3154
  speed: number