zimjs 16.4.2 → 16.4.3
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 +15 -6
package/package.json
CHANGED
package/src/zim.js
CHANGED
|
@@ -30540,6 +30540,8 @@ zim.TextInput.LabelInput = function(text, size, maxLength, password, selectionCo
|
|
|
30540
30540
|
this.hiddenInput.style.width = "1px";
|
|
30541
30541
|
this.hiddenInput.style.height = "1px";
|
|
30542
30542
|
this.hiddenInput.style.fontSize = "1px";
|
|
30543
|
+
|
|
30544
|
+
// this.hiddenInput.style.direction = rtl?"rtl":"ltr";
|
|
30543
30545
|
|
|
30544
30546
|
this.onFocus = function() {
|
|
30545
30547
|
if (this.stage) frame = this.stage.frame;
|
|
@@ -53262,6 +53264,7 @@ RETURNS the target for chaining (or null if no target is provided and run on zim
|
|
|
53262
53264
|
if (target.handlePath) target.handlePath();
|
|
53263
53265
|
}
|
|
53264
53266
|
|
|
53267
|
+
|
|
53265
53268
|
// PATH ANIMATION SETUP
|
|
53266
53269
|
var pathObject,newPoint,locPoint,segments;
|
|
53267
53270
|
if (!zot(obj.path) && obj.path.segmentPoints) {
|
|
@@ -53270,8 +53273,10 @@ RETURNS the target for chaining (or null if no target is provided and run on zim
|
|
|
53270
53273
|
if (target.type == "Pen") target.infinite = true;
|
|
53271
53274
|
target.zimOnPath = true;
|
|
53272
53275
|
if (zot(target.pathRatio)) target.pathRatio = 0;
|
|
53273
|
-
if (obj.orient) {
|
|
53276
|
+
if (obj.orient===true) {
|
|
53274
53277
|
obj.orient = obj.path;
|
|
53278
|
+
}
|
|
53279
|
+
if (obj.orient) {
|
|
53275
53280
|
obj.startOrient = obj.rotation; // ?
|
|
53276
53281
|
}
|
|
53277
53282
|
pathObject = obj.path;
|
|
@@ -67828,7 +67833,7 @@ fromIDs - an object of from() properties in the form {prop1:[id1, id2], prop2:[i
|
|
|
67828
67833
|
if (objs.length>0) {
|
|
67829
67834
|
zim.loop(objs, function (obj) {
|
|
67830
67835
|
ids = that.objIDs.at(obj);
|
|
67831
|
-
if (ids.length>0) {
|
|
67836
|
+
if (ids && ids.length>0) {
|
|
67832
67837
|
zim.loop(ids, function (id) {
|
|
67833
67838
|
clearID(id, false);
|
|
67834
67839
|
});
|
|
@@ -68212,7 +68217,7 @@ fromIDs - an object of from() properties in the form {prop1:[id1, id2], prop2:[i
|
|
|
68212
68217
|
};
|
|
68213
68218
|
|
|
68214
68219
|
this.clear = function() {
|
|
68215
|
-
if (that.bindType == zim.LOCALSTORAGE) localStorage
|
|
68220
|
+
if (that.bindType == zim.LOCALSTORAGE) localStorage.removeItem(that.connection);
|
|
68216
68221
|
return that;
|
|
68217
68222
|
};
|
|
68218
68223
|
|
|
@@ -72931,7 +72936,7 @@ EXAMPLE
|
|
|
72931
72936
|
STYLE = {borderColor:dark, borderWidth:2};
|
|
72932
72937
|
const front = F.makeIcon().sca(2.5);
|
|
72933
72938
|
const back = new Page(front.width, front.height, blue, green, 1);
|
|
72934
|
-
const Label("ZIM Flipper").center(back);
|
|
72939
|
+
const label = new Label("ZIM Flipper").center(back);
|
|
72935
72940
|
const card = new Flipper(front, back).center();
|
|
72936
72941
|
END EXAMPLE
|
|
72937
72942
|
|
|
@@ -73024,6 +73029,10 @@ ALSO: see the CreateJS Easel Docs for Container properties, such as:
|
|
|
73024
73029
|
x, y, rotation, scaleX, scaleY, regX, regY, skewX, skewY,
|
|
73025
73030
|
alpha, cursor, shadow, name, mouseChildren, mouseEnabled, parent, numChildren, etc.
|
|
73026
73031
|
|
|
73032
|
+
ACTIONEVENT
|
|
73033
|
+
This component is affected by the general ACTIONEVENT setting
|
|
73034
|
+
The default is "mousedown" - if set to something else the component will act on click (press)
|
|
73035
|
+
|
|
73027
73036
|
EVENTS
|
|
73028
73037
|
dispatches a "flip" event when the fipper starts the flip
|
|
73029
73038
|
dispatches a "flipped" event when the fipper ends the flip
|
|
@@ -73073,12 +73082,12 @@ added, click, dblclick, mousedown, mouseout, mouseover, pressdown (ZIM), pressmo
|
|
|
73073
73082
|
var obj;
|
|
73074
73083
|
if ((frontPress && !flipped) || (backPress && flipped)) {
|
|
73075
73084
|
obj = (interactive && front.backing)?front.backing:front;
|
|
73076
|
-
obj.on("mousedown", function() {spin(front,back);});
|
|
73085
|
+
obj.on((!zns?WW.ACTIONEVENT=="mousedown":zim.ACTIONEVENT=="mousedown")?"mousedown":"click", function() {spin(front,back);});
|
|
73077
73086
|
obj.cur();
|
|
73078
73087
|
}
|
|
73079
73088
|
if ((backPress && !flipped) || (frontPress && flipped)) {
|
|
73080
73089
|
obj = (interactive && back.backing)?back.backing:back;
|
|
73081
|
-
obj.on("mousedown", function() {spin(back,front,-1);});
|
|
73090
|
+
obj.on((!zns?WW.ACTIONEVENT=="mousedown":zim.ACTIONEVENT=="mousedown")?"mousedown":"click", function() {spin(back,front,-1);});
|
|
73082
73091
|
obj.cur();
|
|
73083
73092
|
}
|
|
73084
73093
|
front.oScale = front.scale;
|