zimjs 18.1.2 → 18.1.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 +17 -13
package/package.json
CHANGED
package/src/zim.js
CHANGED
|
@@ -27659,7 +27659,7 @@ content - (default " ") optional content to be centered in one of three formats:
|
|
|
27659
27659
|
header - a ZIM DisplayObject for the top of the content
|
|
27660
27660
|
message - text that will put into a ZIM Label - default darker - see color property
|
|
27661
27661
|
display - a ZIM DisplayObject for beneath the message
|
|
27662
|
-
|
|
27662
|
+
buttons - an array of ZIM Button objects or configuration objects {} as follows:
|
|
27663
27663
|
{label, color, rollColor, backgroundColor, rollBackgroundColor, call}
|
|
27664
27664
|
with call being a callback function for when the button is pressed
|
|
27665
27665
|
buttonScale - the scale for the buttons
|
|
@@ -28270,7 +28270,7 @@ content - (default null) optional content to be centered in one of three formats
|
|
|
28270
28270
|
header - a ZIM DisplayObject for the top of the content
|
|
28271
28271
|
message - text that will put into a ZIM Label - default color white - see color property
|
|
28272
28272
|
display - a ZIM DisplayObject for beneath the message
|
|
28273
|
-
|
|
28273
|
+
buttons - an array of ZIM Button objects or configuration objects {} as follows:
|
|
28274
28274
|
{label, color, rollColor, backgroundColor, rollBackgroundColor, call}
|
|
28275
28275
|
with call being a callback function for when the button is pressed
|
|
28276
28276
|
buttonScale - the scale for the buttons
|
|
@@ -28799,7 +28799,7 @@ content - (default null) optional content to be centered in one of three formats
|
|
|
28799
28799
|
header - a ZIM DisplayObject for the top of the content
|
|
28800
28800
|
message - text that will put into a ZIM Label - default color white - see color property
|
|
28801
28801
|
display - a ZIM DisplayObject for beneath the message
|
|
28802
|
-
|
|
28802
|
+
buttons - an array of ZIM Button objects or configuration objects {} as follows:
|
|
28803
28803
|
{label, color, rollColor, backgroundColor, rollBackgroundColor, call}
|
|
28804
28804
|
with call being a callback function for when the button is pressed
|
|
28805
28805
|
buttonScale - the scale for the buttons
|
|
@@ -89553,7 +89553,6 @@ added, click, dblclick, mousedown, mouseout, mouseover, pressdown (ZIM), pressmo
|
|
|
89553
89553
|
if (inner.type == "Bitmap") that.bitmap = inner.clone().addTo(that);
|
|
89554
89554
|
else that.bitmap = inner.getChildAt(0).clone().addTo(that);
|
|
89555
89555
|
that.id = that.bitmap.id = file;
|
|
89556
|
-
zogb(that.id)
|
|
89557
89556
|
that.image = that.bitmap.image;
|
|
89558
89557
|
that.src = that.bitmap.src;
|
|
89559
89558
|
that.item = that.bitmap.item;
|
|
@@ -92251,15 +92250,19 @@ RETURNS - a Label if a string or number is passed as content, a Container if a c
|
|
|
92251
92250
|
var buts = new zim.Container().loc(0,obj.height+(data.header||data.message||data.display?spacingV:0),obj);
|
|
92252
92251
|
for (var bb=0; bb<data.buttons.length; bb++) {
|
|
92253
92252
|
var bd = data.buttons[bb];
|
|
92254
|
-
var call = bd.call||function(){};
|
|
92255
|
-
if (
|
|
92256
|
-
|
|
92257
|
-
|
|
92258
|
-
|
|
92259
|
-
|
|
92260
|
-
|
|
92261
|
-
|
|
92262
|
-
|
|
92253
|
+
var call = bd.call||function(){};
|
|
92254
|
+
if (bd.type != "Button") {
|
|
92255
|
+
bd.button = new zim.Button({
|
|
92256
|
+
width:bd.width,
|
|
92257
|
+
label:bd.label,
|
|
92258
|
+
backgroundColor:bd.backgroundColor||bd.bgColor,
|
|
92259
|
+
color:bd.color,
|
|
92260
|
+
rollBackgroundColor:bd.rollBackgroundColor||bd.rollBgColor,
|
|
92261
|
+
rollColor:bd.rollColor
|
|
92262
|
+
});
|
|
92263
|
+
} else {
|
|
92264
|
+
bd.button = bd;
|
|
92265
|
+
}
|
|
92263
92266
|
bd.button.call = call;
|
|
92264
92267
|
bd.button.sca(data.buttonScale).loc((bb==0?0:buts.width+spacingH),0,buts).tap(function(e){e.target.call(e.target)});
|
|
92265
92268
|
}
|
|
@@ -98346,3 +98349,4 @@ export let Style = zim.Style;
|
|
|
98346
98349
|
export let assets = zim.assets;
|
|
98347
98350
|
export let assetIDs = zim.assetIDs;
|
|
98348
98351
|
export let ZIMON = zim.ZIMON;
|
|
98352
|
+
|