zimjs 18.2.1 → 18.2.2
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 +8 -7
package/package.json
CHANGED
package/src/zim.js
CHANGED
|
@@ -56990,7 +56990,6 @@ props - the object literal holding properties and values to animate
|
|
|
56990
56990
|
DOT PROPERTIES: you can animate properties on properties using quotes:
|
|
56991
56991
|
Here is animate used as a function to animate a threejs mesh
|
|
56992
56992
|
animate(mesh, {"rotation.y":360*RAD}, 5000);
|
|
56993
|
-
note that the from parameter is not currently supported with dot properties (difficult bug)
|
|
56994
56993
|
CSS PROPERTIES: animate can animate CSS properties
|
|
56995
56994
|
ZIM's CreateJS 1.3.2 has the CreateJS CSS Pluging installed
|
|
56996
56995
|
Set the css parameter to true and see the CSS parameter for more details
|
|
@@ -57253,10 +57252,11 @@ RETURNS the target for chaining (or null if no target is provided and run on zim
|
|
|
57253
57252
|
if (target && (target.props || target.obj)) {
|
|
57254
57253
|
var duo; if (duo = zob(zim.animate, arguments, sig)) return duo;
|
|
57255
57254
|
}
|
|
57256
|
-
|
|
57255
|
+
|
|
57256
|
+
if (target && target.type && target.type=="AC" && WW.zdf) {WW.zdf.ac("animate", arguments); return target;}
|
|
57257
57257
|
if (!zim.animateCheck) {z_d("45"); zim.animateCheck=true;}
|
|
57258
57258
|
|
|
57259
|
-
if (!target)
|
|
57259
|
+
if (!target) target = {}; // ZIM 018 replacing: return; from 10.9.0
|
|
57260
57260
|
var AN = zim.ANIMATE;
|
|
57261
57261
|
if (WW.ANIMATE != null) AN = WW.ANIMATE;
|
|
57262
57262
|
if (!AN) {
|
|
@@ -58395,15 +58395,16 @@ RETURNS the target for chaining (or null if no target is provided and run on zim
|
|
|
58395
58395
|
if (set && !zot(set[i])) {
|
|
58396
58396
|
newObj[i] = set[i];
|
|
58397
58397
|
} else {
|
|
58398
|
-
if (i.match(/\./)) { // handle dot props like threejs - patched ZIM 018
|
|
58399
|
-
var bunch = i.split(/\./g);
|
|
58400
|
-
|
|
58398
|
+
if (i.match(/\./)) { // handle dot props like threejs - patched ZIM 018
|
|
58399
|
+
var bunch = i.split(/\./g);
|
|
58400
|
+
if (bunch[0]=="") bunch.shift(); // sometimes has dot on front and sometimes not
|
|
58401
|
+
newObj[i] = target[bunch[0]][bunch[1]];
|
|
58401
58402
|
} else {
|
|
58402
58403
|
newObj[i] = target[i];
|
|
58403
58404
|
}
|
|
58404
58405
|
}
|
|
58405
58406
|
if (update) {
|
|
58406
|
-
if (i.match(/\./)) target[bunch[
|
|
58407
|
+
if (i.match(/\./)) target[bunch[0]][bunch[1]] = obj[i];
|
|
58407
58408
|
else target[i] = obj[i];
|
|
58408
58409
|
}
|
|
58409
58410
|
}
|