zimjs 16.2.3 → 16.2.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 +6 -8
package/package.json
CHANGED
package/src/zim.js
CHANGED
|
@@ -33840,6 +33840,7 @@ added, click, dblclick, mousedown, mouseout, mouseover, pressdown (ZIM), pressmo
|
|
|
33840
33840
|
selector = this.selector = new zim.Rectangle(targetW, targetH, zim.faint, zim.faint, borderWidth, corner, dashed, {ignoreScale:!resizeScale})
|
|
33841
33841
|
.centerReg(that);
|
|
33842
33842
|
selector.loc(tile.width/2, target.y+paddingV, that, behind?0:1);
|
|
33843
|
+
zog(tile.width/2, target.y+paddingV)
|
|
33843
33844
|
selector.visible = false;
|
|
33844
33845
|
}
|
|
33845
33846
|
if (!(selectedIndex < 0 || zot(currentItem))) {
|
|
@@ -34094,13 +34095,9 @@ added, click, dblclick, mousedown, mouseout, mouseover, pressdown (ZIM), pressmo
|
|
|
34094
34095
|
if (style!==false) zim.styleTransforms(this, DS); // global function - would have put on DisplayObject if had access to it
|
|
34095
34096
|
|
|
34096
34097
|
this.clone = function(exact) {
|
|
34097
|
-
|
|
34098
|
-
|
|
34099
|
-
|
|
34100
|
-
exactItems.push(that.tile.items[i].clone(true));
|
|
34101
|
-
}
|
|
34102
|
-
}
|
|
34103
|
-
return that.cloneProps(new zim.Selector(exact?zim.series(exactItems):(tile.clone?tile.clone():tile), borderColor, borderWidth, backgroundColor, corner, dashed, paddingH, paddingV, speed, diagonal, dim, multi, keyArrows, behind, resizeScale, selectedIndex, liveIndex, this.style, this.group));
|
|
34098
|
+
var cl = tile.clone?tile.clone(exact):tile;
|
|
34099
|
+
cl.x = cl.y = 0;
|
|
34100
|
+
return that.cloneProps(new zim.Selector(cl, borderColor, borderWidth, backgroundColor, corner, dashed, paddingH, paddingV, speed, diagonal, dim, multi, keyArrows, behind, resizeScale, selectedIndex, liveIndex, this.style, this.group));
|
|
34104
34101
|
};
|
|
34105
34102
|
this.dispose = function(a,b,disposing) {
|
|
34106
34103
|
if (that.keyEvent && that.stage) that.stage.frame.off("keydown", that.keyEvent);
|
|
@@ -61617,6 +61614,7 @@ note: the item is not the event object target - as that is the tile
|
|
|
61617
61614
|
if (style!==false) zim.styleTransforms(this, DS); // global function - would have put on DisplayObject if had access to it
|
|
61618
61615
|
|
|
61619
61616
|
this.clone = function(exact) {
|
|
61617
|
+
if (unique) exact = true; // added ZIM 016
|
|
61620
61618
|
if (exact) {
|
|
61621
61619
|
var exactItems = [];
|
|
61622
61620
|
if (backgroundColor) var exactBackgroundColors = [];
|
|
@@ -61626,7 +61624,7 @@ note: the item is not the event object target - as that is the tile
|
|
|
61626
61624
|
if (backgroundColor) exactBackgroundColors.push(backgroundColors[i]);
|
|
61627
61625
|
if (backing) exactBackings.push(backings[i].clone(true));
|
|
61628
61626
|
}
|
|
61629
|
-
}
|
|
61627
|
+
}
|
|
61630
61628
|
return that.cloneProps(new zim.Tile(exact&&exactItems?zim.series(exactItems):(obj.clone?obj.clone():obj), that.cols, that.rows, that.spacingH, that.spacingV, exact?false:unique, width, height, that.squeezeH, that.squeezeV, colSize, rowSize, align, valign, that.items.length, that.mirrorH, that.mirrorV, snapToPixel, exact?false:clone, events, exact, scaleToH, scaleToV, scaleToType, exact&&exactBackgroundColors?zim.series(exactBackgroundColors):backgroundColor, backgroundPadding, backgroundPaddingH, backgroundPaddingV, exact&&exactBackings?zim.series(exactBackings):(backing&&backing.clone)?backing.clone():backing, backdropColor, backdropPadding, backdropPaddingH, backdropPaddingV, (mat&&mat.clone)?mat.clone():mat, this.style, this.group));
|
|
61631
61629
|
};
|
|
61632
61630
|
};
|