zimjs 19.0.8 → 19.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 +1 -1
- package/src/zim.js +10 -3
package/package.json
CHANGED
package/src/zim.js
CHANGED
|
@@ -58989,6 +58989,8 @@ RETURNS the target for chaining (or null if no target is provided and run on zim
|
|
|
58989
58989
|
|
|
58990
58990
|
if (zot(o.props) && !zot(o.obj)) o.props = o.obj;
|
|
58991
58991
|
o.obj = o.props;
|
|
58992
|
+
if (o.loopCall || o.loopWait || o.loopPick || o.loopCount) o.loop = true;
|
|
58993
|
+
if (o.rewindCall || o.rewindWait || o.rewindPick || o.rewindTime || o.rewindEase) o.rewind = true;
|
|
58992
58994
|
if (o.loop && (zot(o.loopCount) || o.loopCount <= 0)) {
|
|
58993
58995
|
o.loopCount = 0;
|
|
58994
58996
|
// this object is looping forever so no point in keeping any next objects
|
|
@@ -63727,8 +63729,11 @@ PATH
|
|
|
63727
63729
|
zim global variable
|
|
63728
63730
|
|
|
63729
63731
|
DESCRIPTION
|
|
63730
|
-
PATH
|
|
63731
|
-
This
|
|
63732
|
+
PATH can be used to set the URL path to assets for Pic(), Aud(), etc.
|
|
63733
|
+
This only works with lazy-loaded assets so assets not using the Frame() or loadAssets() assets and path parameter.
|
|
63734
|
+
PATH is set by default to the latest path parameter in Frame or in loadAssets().
|
|
63735
|
+
|
|
63736
|
+
NOTE: this is NOT paths for ZIM Blobs and Squiggles https://zimjs.com/paths - that is something else.
|
|
63732
63737
|
|
|
63733
63738
|
NOTE: if an lazy-loaded asset has a path in it (as in a /) then the PATH will be ignored.
|
|
63734
63739
|
|
|
@@ -63739,7 +63744,7 @@ EXAMPLE
|
|
|
63739
63744
|
new Pic("image.png").center(); // will look in local directory
|
|
63740
63745
|
new Pic("images/image.png").center(); // will look in images/ directory
|
|
63741
63746
|
|
|
63742
|
-
PATH = "assets/";
|
|
63747
|
+
PATH = "assets/"; // or could be an absolute URL like "https://zimjs.org/assets/"
|
|
63743
63748
|
new Pic("image.png").center(); // will look in assets/ directory
|
|
63744
63749
|
new Pic("sound.mp3").play(); // will look in assets/ directory
|
|
63745
63750
|
new Pic("test/image.png").center(); // will look in test/ directory
|
|
@@ -102808,6 +102813,7 @@ for (z_i = 0; z_i < globalFunctions.length; z_i++) {
|
|
|
102808
102813
|
["END", zim.END],
|
|
102809
102814
|
["TOP", zim.TOP],
|
|
102810
102815
|
["BOTTOM", zim.BOTTOM],
|
|
102816
|
+
["BOT", zim.BOT],
|
|
102811
102817
|
["OVER", zim.OVER],
|
|
102812
102818
|
["UNDER", zim.UNDER],
|
|
102813
102819
|
["HORIZONTAL", zim.HORIZONTAL],
|
|
@@ -103190,3 +103196,4 @@ export let Style = zim.Style;
|
|
|
103190
103196
|
export let assets = zim.assets;
|
|
103191
103197
|
export let assetIDs = zim.assetIDs;
|
|
103192
103198
|
export let ZIMON = zim.ZIMON;
|
|
103199
|
+
|