zimjs 18.0.3 → 18.0.4
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 +13 -21
package/package.json
CHANGED
package/src/zim.js
CHANGED
|
@@ -65349,7 +65349,7 @@ addChild(), removeChild(), addChildAt(), getChildAt(), contains(), removeAllChil
|
|
|
65349
65349
|
PROPERTIES
|
|
65350
65350
|
type - holds the class name as a String
|
|
65351
65351
|
items - an array of the wrapper items
|
|
65352
|
-
items2D - read only array of rows each containing an array of
|
|
65352
|
+
items2D - read only array of rows each containing an array of columns of items
|
|
65353
65353
|
** see the parameter for descriptions of the following
|
|
65354
65354
|
** setting each will resize the wrapper at the current width and height
|
|
65355
65355
|
** all these properties accept ZIM VEE (except spacingH) for instance: flip:series(false,true)
|
|
@@ -66322,12 +66322,12 @@ addChild(), removeChild(), addChildAt(), getChildAt(), contains(), removeAllChil
|
|
|
66322
66322
|
PROPERTIES
|
|
66323
66323
|
type - holds the class name as a String
|
|
66324
66324
|
items - read only array of the original tile items - or use tile.getChildAt() or tile.loop(function (item) {})
|
|
66325
|
-
items2D - read only array of rows each containing an array of
|
|
66325
|
+
items2D - read only array of rows each containing an array of columns of items
|
|
66326
66326
|
items2DCols - read only array of columns each containing array of rows of items
|
|
66327
66327
|
** the current properties work for equal column size and equal row size
|
|
66328
66328
|
** although the row and column size can be different
|
|
66329
66329
|
current ** - a read only array of the current order of tile items - if items have been scrambled
|
|
66330
|
-
current2D ** - read only array the current order of rows each containing an array of
|
|
66330
|
+
current2D ** - read only array the current order of rows each containing an array of columns of items
|
|
66331
66331
|
current2DCols ** - read only array the current order of columns each containing array of rows of items
|
|
66332
66332
|
tileNum - this property is added to each object in the tile to give its number in the tile
|
|
66333
66333
|
tileCol - this property is added to each object in the tile to give its column number in the tile
|
|
@@ -66392,24 +66392,6 @@ note: the item is not the event object target - as that is the tile
|
|
|
66392
66392
|
|
|
66393
66393
|
if (zot(spacingH)) spacingH = DS.spacingH!=null?DS.spacingH:null;
|
|
66394
66394
|
if (zot(spacingV)) spacingV = DS.spacingV!=null?DS.spacingV:null;
|
|
66395
|
-
|
|
66396
|
-
// Added ZIM 018
|
|
66397
|
-
var spacingHOList = [];
|
|
66398
|
-
var spacingVOList = [];
|
|
66399
|
-
var spacingHOTotal = 0;
|
|
66400
|
-
var spacingVOTotal = 0;
|
|
66401
|
-
for (i=0; i<cols-1; i++) {
|
|
66402
|
-
var s = zik(spacingH);
|
|
66403
|
-
spacingHOList.push(s);
|
|
66404
|
-
spacingHOTotal += s;
|
|
66405
|
-
}
|
|
66406
|
-
for (i=0; i<rows-1; i++) {
|
|
66407
|
-
var s = zik(spacingV);
|
|
66408
|
-
spacingVOList.push(s);
|
|
66409
|
-
spacingVOTotal += s;
|
|
66410
|
-
}
|
|
66411
|
-
var spacingHAve = cols-1>0?spacingHTotal/(cols-1):0
|
|
66412
|
-
var spacingVAve = rows-1>0?spacingVTotal/(rows-1):0
|
|
66413
66395
|
|
|
66414
66396
|
if (zot(spacingH) || !zot(colSize) || !zot(width)) spacingH = 0; // sizes override spacing
|
|
66415
66397
|
if (zot(spacingV) || !zot(rowSize) || !zot(height)) spacingV = 0;
|
|
@@ -66421,6 +66403,7 @@ note: the item is not the event object target - as that is the tile
|
|
|
66421
66403
|
if (count === 0) {count = null; if (zon) {zogy("ZIM Tile() - count parameter of 0 is ignored - see docs");}}
|
|
66422
66404
|
|
|
66423
66405
|
// Added ZIM 018
|
|
66406
|
+
|
|
66424
66407
|
var spacingHList = [];
|
|
66425
66408
|
var spacingVList = [];
|
|
66426
66409
|
var spacingHTotal = 0;
|
|
@@ -66438,6 +66421,15 @@ note: the item is not the event object target - as that is the tile
|
|
|
66438
66421
|
spacingVTotal += s;
|
|
66439
66422
|
}
|
|
66440
66423
|
|
|
66424
|
+
var spacingHOList = zim.copy(spacingHList);
|
|
66425
|
+
var spacingVOList = zim.copy(spacingVList);;
|
|
66426
|
+
var spacingHOTotal = spacingHTotal;
|
|
66427
|
+
var spacingVOTotal = spacingVTotal;
|
|
66428
|
+
var spacingHAve = cols-1>0?spacingHTotal/(cols-1):0
|
|
66429
|
+
var spacingVAve = rows-1>0?spacingVTotal/(rows-1):0
|
|
66430
|
+
|
|
66431
|
+
// end add 018
|
|
66432
|
+
|
|
66441
66433
|
if (zot(mirrorH)) mirrorH = DS.mirrorH!=null?DS.mirrorH:false;
|
|
66442
66434
|
if (zot(mirrorV)) mirrorV = DS.mirrorV!=null?DS.mirrorV:false;
|
|
66443
66435
|
if (zot(snapToPixel)) snapToPixel = DS.snapToPixel!=null?DS.snapToPixel:true;
|