zimjs 18.0.0 → 18.0.1
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 +23 -14
package/package.json
CHANGED
package/src/zim.js
CHANGED
|
@@ -47502,7 +47502,7 @@ added, click, dblclick, mousedown, mouseout, mouseover, pressdown (ZIM), pressmo
|
|
|
47502
47502
|
//-67.45
|
|
47503
47503
|
|
|
47504
47504
|
/*--
|
|
47505
|
-
zim.Carousel3D = function(width, height, items, widthFactor, heightFactor, curve, interactive, continuous, fade, fadeColor, vertical, sensitivity, damp, factor, index, style, group, inherit)
|
|
47505
|
+
zim.Carousel3D = function(width, height, items, widthFactor, heightFactor, curve, interactive, continuous, fade, fadeColor, vertical, sensitivity, damp, factor, index, selectedIndex, style, group, inherit)
|
|
47506
47506
|
|
|
47507
47507
|
Carousel3D
|
|
47508
47508
|
zim class - extends a zim.Container which extends a createjs.Container
|
|
@@ -47669,8 +47669,8 @@ ALSO: see the CreateJS Easel Docs for Container events such as:
|
|
|
47669
47669
|
added, click, dblclick, mousedown, mouseout, mouseover, pressdown (ZIM), pressmove, pressup, removed, rollout, rollover
|
|
47670
47670
|
--*///+67.47
|
|
47671
47671
|
|
|
47672
|
-
zim.Carousel3D = function(width, height, items, widthFactor, heightFactor, curve, interactive, continuous, fade, fadeColor, vertical, sensitivity, damp, factor, index, style, group, inherit) {
|
|
47673
|
-
var sig = "width, height, items, widthFactor, heightFactor, curve, interactive, continuous, fade, fadeColor, vertical, sensitivity, damp, factor, index, style, group, inherit";
|
|
47672
|
+
zim.Carousel3D = function(width, height, items, widthFactor, heightFactor, curve, interactive, continuous, fade, fadeColor, vertical, sensitivity, damp, factor, index, selectedIndex, style, group, inherit) {
|
|
47673
|
+
var sig = "width, height, items, widthFactor, heightFactor, curve, interactive, continuous, fade, fadeColor, vertical, sensitivity, damp, factor, index, selectedIndex, style, group, inherit";
|
|
47674
47674
|
var duo; if (duo = zob(zim.Carousel3D, arguments, sig, this)) return duo;
|
|
47675
47675
|
z_d("67.47");
|
|
47676
47676
|
|
|
@@ -47977,7 +47977,7 @@ zim.Carousel3D = function(width, height, items, widthFactor, heightFactor, curve
|
|
|
47977
47977
|
else if (newItem.clone) newItems.push(newItem.clone());
|
|
47978
47978
|
else newItems.push(zim.copy(that.items[i]));
|
|
47979
47979
|
}
|
|
47980
|
-
return that.cloneProps(new zim.Carousel3D(width, height, newItems, widthFactor, heightFactor, that.curve, interactive, continuous, fade, fadeColor, vertical, sensitivity, damp, factor, index, style, this.group));
|
|
47980
|
+
return that.cloneProps(new zim.Carousel3D(width, height, newItems, widthFactor, heightFactor, that.curve, interactive, continuous, fade, fadeColor, vertical, sensitivity, damp, factor, index, selectedIndex, style, this.group));
|
|
47981
47981
|
};
|
|
47982
47982
|
}
|
|
47983
47983
|
zim.extend(zim.Carousel3D, zim.Container, ["clone", "dispose"], "zimContainer", false);
|
|
@@ -87720,14 +87720,19 @@ zim.Frame = function(scaling, width, height, color, outerColor, ready, assets, p
|
|
|
87720
87720
|
var imagesNoCORS = [];
|
|
87721
87721
|
var mainCount = 0;
|
|
87722
87722
|
var firstSoundCheck = true;
|
|
87723
|
-
|
|
87723
|
+
|
|
87724
|
+
// 018 TRYING TO FIX CREATEJS ERROR IF SOUND LOADED AGAIN - BUT BREAKS LAZY LOAD
|
|
87725
|
+
// var emptyAssets = false;
|
|
87724
87726
|
|
|
87725
87727
|
for (i=0; i<assets.length; i++) {
|
|
87726
87728
|
a = assets[i];
|
|
87727
|
-
if (zim.assets[a]) {
|
|
87728
|
-
|
|
87729
|
-
|
|
87730
|
-
|
|
87729
|
+
// if (zim.assets[a]) {
|
|
87730
|
+
// // 018 TRYING TO FIX CREATEJS ERROR IF SOUND LOADED AGAIN - BUT BREAKS LAZY LOAD
|
|
87731
|
+
// // if (assets.length==1) {
|
|
87732
|
+
// // emptyAssets = true;
|
|
87733
|
+
// // continue;
|
|
87734
|
+
// // }
|
|
87735
|
+
// }
|
|
87731
87736
|
if (a.replace) a = a.replace(/gf_/i, "https://fonts.googleapis.com/css?family=");
|
|
87732
87737
|
// split multi into individual ZIM asset objects and make the first of these
|
|
87733
87738
|
if (a.assets) {
|
|
@@ -88125,10 +88130,11 @@ zim.Frame = function(scaling, width, height, color, outerColor, ready, assets, p
|
|
|
88125
88130
|
|
|
88126
88131
|
} // end non font/noCORSonImage
|
|
88127
88132
|
|
|
88128
|
-
//
|
|
88129
|
-
if
|
|
88130
|
-
|
|
88131
|
-
|
|
88133
|
+
// 018 TRYING TO FIX CREATEJS ERROR IF SOUND LOADED AGAIN - BUT BREAKS LAZY LOAD
|
|
88134
|
+
// // if calling an already preloaded asset
|
|
88135
|
+
// if (emptyAssets && queue.loadAssetsCount == 0) {
|
|
88136
|
+
// endAssetLoad();
|
|
88137
|
+
// }
|
|
88132
88138
|
|
|
88133
88139
|
function endAssetLoad() {
|
|
88134
88140
|
// setting a time will force the preload to wait at least this amount of time
|
|
@@ -90236,6 +90242,7 @@ zim.Dat = function(file) {
|
|
|
90236
90242
|
if (asset && asset.type != "AC") {
|
|
90237
90243
|
if (asset.documentElement) asset = asset.documentElement;
|
|
90238
90244
|
that.data = asset;
|
|
90245
|
+
that.file = file;
|
|
90239
90246
|
setTimeout(function() {
|
|
90240
90247
|
that.dispatchEvent("ready");
|
|
90241
90248
|
that.dispatchEvent("complete");
|
|
@@ -90251,6 +90258,7 @@ zim.Dat = function(file) {
|
|
|
90251
90258
|
var asset = zim.asset(file);
|
|
90252
90259
|
if (asset.documentElement) asset = asset.documentElement;
|
|
90253
90260
|
that.data = asset;
|
|
90261
|
+
that.file = file;
|
|
90254
90262
|
that.dispatchEvent("ready");
|
|
90255
90263
|
that.dispatchEvent("complete");
|
|
90256
90264
|
});
|
|
@@ -91504,7 +91512,7 @@ The globals NEVER require the zim namespace and are global in the JavaScript win
|
|
|
91504
91512
|
|
|
91505
91513
|
ZIM has a method called zimplify() that can make all ZIM classes, functions and properties global.
|
|
91506
91514
|
zimplify() loops through all properties on the zim namespace and adds them to the JavaScript window.
|
|
91507
|
-
Examples are Frame(), Button(), center(), STYLE, Emitter(), etc.
|
|
91515
|
+
Examples are Frame(), Button(), center(), STYLE, GLOBALSTYLE, Emitter(), etc.
|
|
91508
91516
|
zimplify() is automatically run when using the CDN ES module or script tags
|
|
91509
91517
|
unless the global variable zns is set to true before importing ZIM.
|
|
91510
91518
|
If zns is set to true, then the zim namespace is required: zim.Frame(), etc.
|
|
@@ -98071,3 +98079,4 @@ export let Style = zim.Style;
|
|
|
98071
98079
|
export let assets = zim.assets;
|
|
98072
98080
|
export let assetIDs = zim.assetIDs;
|
|
98073
98081
|
export let ZIMON = zim.ZIMON;
|
|
98082
|
+
|