From 03f927d1d5b34a0193b60273109ab7bc5e9f4200 Mon Sep 17 00:00:00 2001
From: Sebastian Kupke
Date: Mon, 5 Aug 2019 11:44:59 +0200
Subject: [PATCH] Set window.app as default value for button group option
"app".
---
dist/iwmlib.js | 18 ++++++------
dist/iwmlib.pixi.js | 28 +++++++++----------
doc/out/AbstractPopup.html | 2 +-
doc/out/Badge.html | 2 +-
doc/out/BlurFilter.html | 2 +-
doc/out/Button.html | 2 +-
doc/out/ButtonGroup.html | 4 ++-
doc/out/DeepZoomImage.html | 2 +-
doc/out/DeepZoomInfo.html | 2 +-
doc/out/Flippable.html | 2 +-
doc/out/FontInfo.html | 2 +-
doc/out/Hypenate.html | 2 +-
doc/out/InteractivePopup.html | 2 +-
...beledGraphics.exports.LabeledGraphics.html | 2 +-
doc/out/LabeledGraphics.html | 2 +-
doc/out/List.html | 2 +-
doc/out/Message.html | 2 +-
doc/out/MessageInteractivePopup.html | 2 +-
doc/out/MessageMessageInteractivePopup.html | 2 +-
doc/out/Modal.html | 2 +-
doc/out/ModalInteractivePopup.html | 2 +-
doc/out/ModalModalInteractivePopup.html | 2 +-
doc/out/PIXIApp.html | 2 +-
doc/out/Popup.html | 2 +-
doc/out/PopupInteractivePopup.html | 2 +-
doc/out/PopupMenu.html | 2 +-
doc/out/PopupMenuPopupInteractivePopup.html | 2 +-
...pupMenuPopupMenuPopupInteractivePopup.html | 2 +-
...nuPopupMenuPopupPopupInteractivePopup.html | 2 +-
.../PopupMenuPopupPopupInteractivePopup.html | 2 +-
doc/out/PopupPopupInteractivePopup.html | 2 +-
doc/out/Progress.html | 2 +-
doc/out/Scrollview.html | 2 +-
doc/out/Slider.html | 2 +-
doc/out/Switch.html | 2 +-
doc/out/TextLabel.TextLabel.html | 2 +-
doc/out/Theme.html | 2 +-
doc/out/ThemeDark.html | 2 +-
doc/out/ThemeLight.html | 2 +-
doc/out/ThemeRed.html | 2 +-
doc/out/TileQuadNode.html | 2 +-
doc/out/Tooltip.html | 2 +-
doc/out/UITest.html | 2 +-
doc/out/Volatile.html | 2 +-
doc/out/global.html | 2 +-
doc/out/index.html | 2 +-
doc/out/pixi_abstractpopup.js.html | 2 +-
doc/out/pixi_app.js.html | 2 +-
doc/out/pixi_badge.js.html | 2 +-
doc/out/pixi_blurfilter.js.html | 2 +-
doc/out/pixi_button.js.html | 26 ++++++++---------
doc/out/pixi_buttongroup.js.html | 6 ++--
doc/out/pixi_deepzoom_image.js.html | 2 +-
doc/out/pixi_flippable.js.html | 2 +-
doc/out/pixi_labeledgraphics.js.html | 2 +-
doc/out/pixi_list.js.html | 2 +-
doc/out/pixi_message.js.html | 2 +-
doc/out/pixi_modal.js.html | 2 +-
doc/out/pixi_popup.js.html | 2 +-
doc/out/pixi_popupmenu.js.html | 2 +-
doc/out/pixi_progress.js.html | 2 +-
doc/out/pixi_scrollview.js.html | 2 +-
doc/out/pixi_slider.js.html | 2 +-
doc/out/pixi_switch.js.html | 2 +-
doc/out/pixi_theme.js.html | 2 +-
doc/out/pixi_tooltip.js.html | 2 +-
doc/out/pixi_volatile.js.html | 2 +-
doc/out/uitest.js.html | 2 +-
lib/pixi/buttongroup.js | 4 +--
69 files changed, 106 insertions(+), 106 deletions(-)
diff --git a/dist/iwmlib.js b/dist/iwmlib.js
index 9be616d..480b8b6 100644
--- a/dist/iwmlib.js
+++ b/dist/iwmlib.js
@@ -8229,7 +8229,7 @@
}
static _calculateCenterRelativeTo(target, image) {
- console.log("_calculateCenterRelativeTo", target, image);
+ console.log('_calculateCenterRelativeTo', target, image);
let bbox = image.getBBox();
let width = bbox.width;
let height = bbox.height;
@@ -8238,10 +8238,9 @@
let r = target.getAttribute('r');
let radius = r.endsWith('%') ? (parseFloat(r) / 100) * width : parseFloat(r);
-
let x = cx.endsWith('%') ? (parseFloat(cx) / 100) * width : cx;
let y = cy.endsWith('%') ? (parseFloat(cy) / 100) * height : cx;
- console.log({x, y, width, height , radius});
+ console.log({ x, y, width, height, radius });
return { x, y }
}
@@ -8253,7 +8252,7 @@
* @returns {bool} false - Returns false to prevent default click action
* @memberof Card
*/
- static loadHighlightPopup(event, node=null) {
+ static loadHighlightPopup(event, node = null) {
if (this.debug) console.log('Card.loadHighlightPopup', event, node);
if (node == null) {
if (event.firstTarget) {
@@ -8262,7 +8261,7 @@
node = event.target;
}
}
-
+
let context = this.getContext(node);
event.stopPropagation();
@@ -8282,18 +8281,17 @@
onExpanded: () => {
// We assume it's always a circle. This may break, when other svg shapes are used.
-
let svgRoot = node.closest('svg');
let image = svgRoot.querySelector('image');
let position = Card._calculateCenterRelativeTo(node, image);
-
+
/*
As the popup is appended directly to the card. We have to
transform the location from the subcard-/svg-space to the
card space.
*/
- // let svgRoot = node.closest('svg')
+ // let svgRoot = node.closest('svg')
let svgPoint = svgRoot.createSVGPoint();
svgPoint.x = position.x;
@@ -8302,7 +8300,7 @@
let point = svgPoint.matrixTransform(matrix);
let closestDiv = node.closest('div');
- console.log("closestDiv", closestDiv, point);
+ console.log('closestDiv', closestDiv, point);
let global = Points.fromNodeToPage(closestDiv, point);
let local = Points.fromPageToNode(context, global);
@@ -8314,7 +8312,7 @@
// we could load the data while the circle is animating.
// but for simplicity it's just done here for now.
// TODO: Adjust to load while animating (Problem: Unload when cancelled).
- console.log("loadHighlightPopup", src, position, local);
+ console.log('loadHighlightPopup', src, position, local);
this._loadPopupContent(src)
.then(content => {
this._openPopup(context, src, local, content, {
diff --git a/dist/iwmlib.pixi.js b/dist/iwmlib.pixi.js
index df57b22..52dc372 100644
--- a/dist/iwmlib.pixi.js
+++ b/dist/iwmlib.pixi.js
@@ -2483,10 +2483,10 @@
});
this.button.on('pointerout', this.onEnd.bind(this));
- this.button.on('pointercancel', this.onEnd.bind(this));
- this.button.on('pointerupoutside', this.onEnd.bind(this));
- this.button.on('pointertap', this.onEnd.bind(this));
- this.button.on('scroll', this.onEnd.bind(this));
+ this.button.on('pointercancel', this.onEnd.bind(this));
+ this.button.on('pointerupoutside', this.onEnd.bind(this));
+ this.button.on('pointertap', this.onEnd.bind(this));
+ this.button.on('scroll', this.onEnd.bind(this));
// eslint-disable-next-line no-unused-vars
this.button.on('pointerdown', e => {
@@ -2919,14 +2919,14 @@
this.icon.tint = value;
}
}
-
- onEnd(event) {
- this.capture(event);
- TweenLite.to([this.button, this.content], this.theme.fast, {
- alpha: 1,
- overwrite: 'none'
- });
- }
+
+ onEnd(event) {
+ this.capture(event);
+ TweenLite.to([this.button, this.content], this.theme.fast, {
+ alpha: 1,
+ overwrite: 'none'
+ });
+ }
}
/* globals ThrowPropsPlugin, Strong */
@@ -2972,7 +2972,7 @@
* @param {number} [opts.maxWidth] - The maximum width of the button group. If the buttons are wider than the maximum width, the buttons get stacked. Note: The buttons can only be stacked if margin is not zero. Note 2: Load the Greensock ThrowPropsPlugin for smoother animations.
* @param {number} [opts.maxHeight] - The maximum height of the button group. If the buttons are higher than the maximum height, the buttons get stacked. Note: The buttons can only be stacked if margin is not zero. Note 2: Load the Greensock ThrowPropsPlugin for smoother animations.
* @param {number} [opts.stackPadding=10] - The padding for stacked buttons.
- * @param {PIXI.Application} [opts.app] - The PixiJS Application. Must be set if you want to use the mousewheel to scroll your button group. Only used when the buttons are stacked (with maxWidth or maxHeight).
+ * @param {PIXI.Application} [opts.app=window.app] - The PixiJS Application. Must be set if you want to use the mousewheel to scroll your button group. Only used when the buttons are stacked (with maxWidth or maxHeight).
* @param {number} [opts.padding=Theme.padding] - Button: The inner spacing (distance from icon and/or label) the the border.
* @param {number} [opts.margin=Theme.margin] - The outer spacing (distance from one button to the previous/next button).
* @param {string} [opts.iconPosition=left] - Button: The position of the icon in relation to the label. Can be left or right.
@@ -3024,7 +3024,7 @@
maxWidth: null,
maxHeight: null,
stackPadding: 10,
- app: null,
+ app: window.app,
padding: theme.padding,
margin: theme.margin,
iconPosition: 'left', // left, right
diff --git a/doc/out/AbstractPopup.html b/doc/out/AbstractPopup.html
index aec30eb..92e6fc2 100644
--- a/doc/out/AbstractPopup.html
+++ b/doc/out/AbstractPopup.html
@@ -2924,7 +2924,7 @@ a string, a number or a PIXI.Text object.
diff --git a/doc/out/Badge.html b/doc/out/Badge.html
index 3eaa314..9ca0a6d 100644
--- a/doc/out/Badge.html
+++ b/doc/out/Badge.html
@@ -2380,7 +2380,7 @@ a string, a number or a PIXI.Text object.
diff --git a/doc/out/BlurFilter.html b/doc/out/BlurFilter.html
index 8de2d53..e7d5fa4 100644
--- a/doc/out/BlurFilter.html
+++ b/doc/out/BlurFilter.html
@@ -1804,7 +1804,7 @@ app.scene.filters = [blurFilter]
diff --git a/doc/out/Button.html b/doc/out/Button.html
index e8a4231..c2f1b3d 100644
--- a/doc/out/Button.html
+++ b/doc/out/Button.html
@@ -3822,7 +3822,7 @@ the tint property of the icon sprite.
diff --git a/doc/out/ButtonGroup.html b/doc/out/ButtonGroup.html
index 7bd0e2e..b627c1f 100644
--- a/doc/out/ButtonGroup.html
+++ b/doc/out/ButtonGroup.html
@@ -1944,6 +1944,8 @@ or a Theme object.
+ window.app
+
|
@@ -3798,7 +3800,7 @@ app.scene.addChild(buttonGroup)
diff --git a/doc/out/DeepZoomImage.html b/doc/out/DeepZoomImage.html
index e0f0b4f..ae386ce 100644
--- a/doc/out/DeepZoomImage.html
+++ b/doc/out/DeepZoomImage.html
@@ -5102,7 +5102,7 @@ i.e. after loading a single tile
diff --git a/doc/out/DeepZoomInfo.html b/doc/out/DeepZoomInfo.html
index 11f0c10..3e0eff4 100644
--- a/doc/out/DeepZoomInfo.html
+++ b/doc/out/DeepZoomInfo.html
@@ -2615,7 +2615,7 @@ on completion.
diff --git a/doc/out/Flippable.html b/doc/out/Flippable.html
index dc76c84..c6009df 100644
--- a/doc/out/Flippable.html
+++ b/doc/out/Flippable.html
@@ -2518,7 +2518,7 @@ front.on('click', event => flippable.toggle())
diff --git a/doc/out/FontInfo.html b/doc/out/FontInfo.html
index c3fe6e4..9f41c13 100644
--- a/doc/out/FontInfo.html
+++ b/doc/out/FontInfo.html
@@ -1565,7 +1565,7 @@
diff --git a/doc/out/Hypenate.html b/doc/out/Hypenate.html
index 3b2556d..b7fdafe 100644
--- a/doc/out/Hypenate.html
+++ b/doc/out/Hypenate.html
@@ -1767,7 +1767,7 @@
diff --git a/doc/out/InteractivePopup.html b/doc/out/InteractivePopup.html
index 626c0ef..7d462ec 100644
--- a/doc/out/InteractivePopup.html
+++ b/doc/out/InteractivePopup.html
@@ -2349,7 +2349,7 @@ a string, a number or a PIXI.Text object.
diff --git a/doc/out/LabeledGraphics.exports.LabeledGraphics.html b/doc/out/LabeledGraphics.exports.LabeledGraphics.html
index 8a62c1b..adfb475 100644
--- a/doc/out/LabeledGraphics.exports.LabeledGraphics.html
+++ b/doc/out/LabeledGraphics.exports.LabeledGraphics.html
@@ -1567,7 +1567,7 @@
diff --git a/doc/out/LabeledGraphics.html b/doc/out/LabeledGraphics.html
index 21661dd..391c734 100644
--- a/doc/out/LabeledGraphics.html
+++ b/doc/out/LabeledGraphics.html
@@ -2632,7 +2632,7 @@ than wanted
diff --git a/doc/out/List.html b/doc/out/List.html
index 70b42d5..25deaa3 100644
--- a/doc/out/List.html
+++ b/doc/out/List.html
@@ -2591,7 +2591,7 @@ app.scene.addChild(list)
diff --git a/doc/out/Message.html b/doc/out/Message.html
index 5b58c3c..32ef279 100644
--- a/doc/out/Message.html
+++ b/doc/out/Message.html
@@ -2447,7 +2447,7 @@ a string, a number or a PIXI.Text object.
diff --git a/doc/out/MessageInteractivePopup.html b/doc/out/MessageInteractivePopup.html
index 1bb8e3d..d8105de 100644
--- a/doc/out/MessageInteractivePopup.html
+++ b/doc/out/MessageInteractivePopup.html
@@ -1795,7 +1795,7 @@ like Popup, Message...
diff --git a/doc/out/MessageMessageInteractivePopup.html b/doc/out/MessageMessageInteractivePopup.html
index bb40473..b18521c 100644
--- a/doc/out/MessageMessageInteractivePopup.html
+++ b/doc/out/MessageMessageInteractivePopup.html
@@ -1795,7 +1795,7 @@ like Popup, Message...
diff --git a/doc/out/Modal.html b/doc/out/Modal.html
index 44ee9e0..d7c2d93 100644
--- a/doc/out/Modal.html
+++ b/doc/out/Modal.html
@@ -2348,7 +2348,7 @@ a string or a PIXI.Text object.
diff --git a/doc/out/ModalInteractivePopup.html b/doc/out/ModalInteractivePopup.html
index 60d101a..9decd58 100644
--- a/doc/out/ModalInteractivePopup.html
+++ b/doc/out/ModalInteractivePopup.html
@@ -1795,7 +1795,7 @@ like Popup, Message...
diff --git a/doc/out/ModalModalInteractivePopup.html b/doc/out/ModalModalInteractivePopup.html
index dece6d9..9d58b6e 100644
--- a/doc/out/ModalModalInteractivePopup.html
+++ b/doc/out/ModalModalInteractivePopup.html
@@ -1795,7 +1795,7 @@ like Popup, Message...
diff --git a/doc/out/PIXIApp.html b/doc/out/PIXIApp.html
index c4f7a26..ca1a6f5 100644
--- a/doc/out/PIXIApp.html
+++ b/doc/out/PIXIApp.html
@@ -5749,7 +5749,7 @@ rejected with an error.
diff --git a/doc/out/Popup.html b/doc/out/Popup.html
index 6fe1268..95072f7 100644
--- a/doc/out/Popup.html
+++ b/doc/out/Popup.html
@@ -2342,7 +2342,7 @@ a string, a number or a PIXI.Text object.
diff --git a/doc/out/PopupInteractivePopup.html b/doc/out/PopupInteractivePopup.html
index 022f399..290058a 100644
--- a/doc/out/PopupInteractivePopup.html
+++ b/doc/out/PopupInteractivePopup.html
@@ -1795,7 +1795,7 @@ like Popup, Message...
diff --git a/doc/out/PopupMenu.html b/doc/out/PopupMenu.html
index e833914..a00f44f 100644
--- a/doc/out/PopupMenu.html
+++ b/doc/out/PopupMenu.html
@@ -2396,7 +2396,7 @@ a string, a number or a PIXI.Text object.
diff --git a/doc/out/PopupMenuPopupInteractivePopup.html b/doc/out/PopupMenuPopupInteractivePopup.html
index 32fd054..ebff136 100644
--- a/doc/out/PopupMenuPopupInteractivePopup.html
+++ b/doc/out/PopupMenuPopupInteractivePopup.html
@@ -1795,7 +1795,7 @@ like Popup, Message...
diff --git a/doc/out/PopupMenuPopupMenuPopupInteractivePopup.html b/doc/out/PopupMenuPopupMenuPopupInteractivePopup.html
index 3b67e61..5ba9e22 100644
--- a/doc/out/PopupMenuPopupMenuPopupInteractivePopup.html
+++ b/doc/out/PopupMenuPopupMenuPopupInteractivePopup.html
@@ -1795,7 +1795,7 @@ like Popup, Message...
diff --git a/doc/out/PopupMenuPopupMenuPopupPopupInteractivePopup.html b/doc/out/PopupMenuPopupMenuPopupPopupInteractivePopup.html
index b49eedb..a202c34 100644
--- a/doc/out/PopupMenuPopupMenuPopupPopupInteractivePopup.html
+++ b/doc/out/PopupMenuPopupMenuPopupPopupInteractivePopup.html
@@ -1795,7 +1795,7 @@ like Popup, Message...
diff --git a/doc/out/PopupMenuPopupPopupInteractivePopup.html b/doc/out/PopupMenuPopupPopupInteractivePopup.html
index 59469d7..0b425ae 100644
--- a/doc/out/PopupMenuPopupPopupInteractivePopup.html
+++ b/doc/out/PopupMenuPopupPopupInteractivePopup.html
@@ -1795,7 +1795,7 @@ like Popup, Message...
diff --git a/doc/out/PopupPopupInteractivePopup.html b/doc/out/PopupPopupInteractivePopup.html
index 071db90..3d795e0 100644
--- a/doc/out/PopupPopupInteractivePopup.html
+++ b/doc/out/PopupPopupInteractivePopup.html
@@ -1795,7 +1795,7 @@ like Popup, Message...
diff --git a/doc/out/Progress.html b/doc/out/Progress.html
index 5e1c291..76ffe52 100644
--- a/doc/out/Progress.html
+++ b/doc/out/Progress.html
@@ -2881,7 +2881,7 @@ app.scene.addChild(progress)
diff --git a/doc/out/Scrollview.html b/doc/out/Scrollview.html
index 6679717..917edcc 100644
--- a/doc/out/Scrollview.html
+++ b/doc/out/Scrollview.html
@@ -1713,7 +1713,7 @@ app.loader
diff --git a/doc/out/Slider.html b/doc/out/Slider.html
index 3fd405e..f7a0519 100644
--- a/doc/out/Slider.html
+++ b/doc/out/Slider.html
@@ -2972,7 +2972,7 @@ app.scene.addChild(slider)
diff --git a/doc/out/Switch.html b/doc/out/Switch.html
index 0910b55..a39418a 100644
--- a/doc/out/Switch.html
+++ b/doc/out/Switch.html
@@ -3402,7 +3402,7 @@ app.scene.addChild(switch1)
diff --git a/doc/out/TextLabel.TextLabel.html b/doc/out/TextLabel.TextLabel.html
index d66ada8..bda6c4f 100644
--- a/doc/out/TextLabel.TextLabel.html
+++ b/doc/out/TextLabel.TextLabel.html
@@ -1696,7 +1696,7 @@
diff --git a/doc/out/Theme.html b/doc/out/Theme.html
index 39113c7..b35b789 100644
--- a/doc/out/Theme.html
+++ b/doc/out/Theme.html
@@ -3171,7 +3171,7 @@ const app = new PIXIApp({
diff --git a/doc/out/ThemeDark.html b/doc/out/ThemeDark.html
index a96aa7d..34be186 100644
--- a/doc/out/ThemeDark.html
+++ b/doc/out/ThemeDark.html
@@ -1592,7 +1592,7 @@ const app = new PIXIApp({
diff --git a/doc/out/ThemeLight.html b/doc/out/ThemeLight.html
index 8e98a52..2c43d69 100644
--- a/doc/out/ThemeLight.html
+++ b/doc/out/ThemeLight.html
@@ -1604,7 +1604,7 @@ const app = new PIXIApp({
diff --git a/doc/out/ThemeRed.html b/doc/out/ThemeRed.html
index 54a825c..f256719 100644
--- a/doc/out/ThemeRed.html
+++ b/doc/out/ThemeRed.html
@@ -1604,7 +1604,7 @@ const app = new PIXIApp({
diff --git a/doc/out/TileQuadNode.html b/doc/out/TileQuadNode.html
index 9808c5a..30e6b3b 100644
--- a/doc/out/TileQuadNode.html
+++ b/doc/out/TileQuadNode.html
@@ -2056,7 +2056,7 @@ an indicator of tiles to free.
diff --git a/doc/out/Tooltip.html b/doc/out/Tooltip.html
index 0f3f8e6..a2d166a 100644
--- a/doc/out/Tooltip.html
+++ b/doc/out/Tooltip.html
@@ -2518,7 +2518,7 @@ a string, a number or a PIXI.Text object.
diff --git a/doc/out/UITest.html b/doc/out/UITest.html
index b8c9245..e8bb23c 100644
--- a/doc/out/UITest.html
+++ b/doc/out/UITest.html
@@ -4189,7 +4189,7 @@ test.start()
diff --git a/doc/out/Volatile.html b/doc/out/Volatile.html
index 807ce05..a155ce0 100644
--- a/doc/out/Volatile.html
+++ b/doc/out/Volatile.html
@@ -2105,7 +2105,7 @@ app.scene.addChild(button)
diff --git a/doc/out/global.html b/doc/out/global.html
index ca589fd..b60d478 100644
--- a/doc/out/global.html
+++ b/doc/out/global.html
@@ -3326,7 +3326,7 @@
diff --git a/doc/out/index.html b/doc/out/index.html
index 9b84215..9f15b12 100644
--- a/doc/out/index.html
+++ b/doc/out/index.html
@@ -1491,7 +1491,7 @@
diff --git a/doc/out/pixi_abstractpopup.js.html b/doc/out/pixi_abstractpopup.js.html
index d7122a6..9e6648d 100644
--- a/doc/out/pixi_abstractpopup.js.html
+++ b/doc/out/pixi_abstractpopup.js.html
@@ -1814,7 +1814,7 @@ export default class AbstractPopup extends PIXI.Graphics {
diff --git a/doc/out/pixi_app.js.html b/doc/out/pixi_app.js.html
index dc337a8..000577b 100644
--- a/doc/out/pixi_app.js.html
+++ b/doc/out/pixi_app.js.html
@@ -2195,7 +2195,7 @@ class FpsDisplay extends PIXI.Graphics {
diff --git a/doc/out/pixi_badge.js.html b/doc/out/pixi_badge.js.html
index 1bbbfe9..132b317 100644
--- a/doc/out/pixi_badge.js.html
+++ b/doc/out/pixi_badge.js.html
@@ -1575,7 +1575,7 @@ export default class Badge extends AbstractPopup {
diff --git a/doc/out/pixi_blurfilter.js.html b/doc/out/pixi_blurfilter.js.html
index f2345db..1cf9b7b 100644
--- a/doc/out/pixi_blurfilter.js.html
+++ b/doc/out/pixi_blurfilter.js.html
@@ -1733,7 +1733,7 @@ class TiltShiftYFilter extends TiltShiftAxisFilter {
diff --git a/doc/out/pixi_button.js.html b/doc/out/pixi_button.js.html
index 00093da..106286e 100644
--- a/doc/out/pixi_button.js.html
+++ b/doc/out/pixi_button.js.html
@@ -1705,10 +1705,10 @@ export default class Button extends PIXI.Container {
})
this.button.on('pointerout', this.onEnd.bind(this))
- this.button.on('pointercancel', this.onEnd.bind(this))
- this.button.on('pointerupoutside', this.onEnd.bind(this))
- this.button.on('pointertap', this.onEnd.bind(this))
- this.button.on('scroll', this.onEnd.bind(this))
+ this.button.on('pointercancel', this.onEnd.bind(this))
+ this.button.on('pointerupoutside', this.onEnd.bind(this))
+ this.button.on('pointertap', this.onEnd.bind(this))
+ this.button.on('scroll', this.onEnd.bind(this))
// eslint-disable-next-line no-unused-vars
this.button.on('pointerdown', e => {
@@ -2141,14 +2141,14 @@ export default class Button extends PIXI.Container {
this.icon.tint = value
}
}
-
- onEnd(event) {
- this.capture(event)
- TweenLite.to([this.button, this.content], this.theme.fast, {
- alpha: 1,
- overwrite: 'none'
- })
- }
+
+ onEnd(event) {
+ this.capture(event)
+ TweenLite.to([this.button, this.content], this.theme.fast, {
+ alpha: 1,
+ overwrite: 'none'
+ })
+ }
}
@@ -2163,7 +2163,7 @@ export default class Button extends PIXI.Container {
diff --git a/doc/out/pixi_buttongroup.js.html b/doc/out/pixi_buttongroup.js.html
index f4769ca..6d37fd8 100644
--- a/doc/out/pixi_buttongroup.js.html
+++ b/doc/out/pixi_buttongroup.js.html
@@ -1497,7 +1497,7 @@ export default class ButtonGroup extends PIXI.Container {
* @param {number} [opts.maxWidth] - The maximum width of the button group. If the buttons are wider than the maximum width, the buttons get stacked. Note: The buttons can only be stacked if margin is not zero. Note 2: Load the Greensock ThrowPropsPlugin for smoother animations.
* @param {number} [opts.maxHeight] - The maximum height of the button group. If the buttons are higher than the maximum height, the buttons get stacked. Note: The buttons can only be stacked if margin is not zero. Note 2: Load the Greensock ThrowPropsPlugin for smoother animations.
* @param {number} [opts.stackPadding=10] - The padding for stacked buttons.
- * @param {PIXI.Application} [opts.app] - The PixiJS Application. Must be set if you want to use the mousewheel to scroll your button group. Only used when the buttons are stacked (with maxWidth or maxHeight).
+ * @param {PIXI.Application} [opts.app=window.app] - The PixiJS Application. Must be set if you want to use the mousewheel to scroll your button group. Only used when the buttons are stacked (with maxWidth or maxHeight).
* @param {number} [opts.padding=Theme.padding] - Button: The inner spacing (distance from icon and/or label) the the border.
* @param {number} [opts.margin=Theme.margin] - The outer spacing (distance from one button to the previous/next button).
* @param {string} [opts.iconPosition=left] - Button: The position of the icon in relation to the label. Can be left or right.
@@ -1549,7 +1549,7 @@ export default class ButtonGroup extends PIXI.Container {
maxWidth: null,
maxHeight: null,
stackPadding: 10,
- app: null,
+ app: window.app,
padding: theme.padding,
margin: theme.margin,
iconPosition: 'left', // left, right
@@ -2153,7 +2153,7 @@ export default class ButtonGroup extends PIXI.Container {
diff --git a/doc/out/pixi_deepzoom_image.js.html b/doc/out/pixi_deepzoom_image.js.html
index 2d957f8..d87a3ac 100644
--- a/doc/out/pixi_deepzoom_image.js.html
+++ b/doc/out/pixi_deepzoom_image.js.html
@@ -2557,7 +2557,7 @@ export class DeepZoomImage extends PIXI.Container {
diff --git a/doc/out/pixi_flippable.js.html b/doc/out/pixi_flippable.js.html
index 773a71f..12b1507 100644
--- a/doc/out/pixi_flippable.js.html
+++ b/doc/out/pixi_flippable.js.html
@@ -1912,7 +1912,7 @@ export default class Flippable extends PIXI.projection.Camera3d {
diff --git a/doc/out/pixi_labeledgraphics.js.html b/doc/out/pixi_labeledgraphics.js.html
index e62ce64..9165ae0 100644
--- a/doc/out/pixi_labeledgraphics.js.html
+++ b/doc/out/pixi_labeledgraphics.js.html
@@ -1861,7 +1861,7 @@ export class BitmapLabeledGraphics extends LabeledGraphics {
diff --git a/doc/out/pixi_list.js.html b/doc/out/pixi_list.js.html
index e3e3e8f..6b57f8b 100644
--- a/doc/out/pixi_list.js.html
+++ b/doc/out/pixi_list.js.html
@@ -1840,7 +1840,7 @@ export default class List extends PIXI.Container {
diff --git a/doc/out/pixi_message.js.html b/doc/out/pixi_message.js.html
index f0cc2de..8571976 100644
--- a/doc/out/pixi_message.js.html
+++ b/doc/out/pixi_message.js.html
@@ -1589,7 +1589,7 @@ export default class Message extends InteractivePopup {
diff --git a/doc/out/pixi_modal.js.html b/doc/out/pixi_modal.js.html
index 30ff617..f914c79 100644
--- a/doc/out/pixi_modal.js.html
+++ b/doc/out/pixi_modal.js.html
@@ -1670,7 +1670,7 @@ export default class Modal extends PIXI.Container {
diff --git a/doc/out/pixi_popup.js.html b/doc/out/pixi_popup.js.html
index e32f2a0..3d21a7c 100644
--- a/doc/out/pixi_popup.js.html
+++ b/doc/out/pixi_popup.js.html
@@ -1680,7 +1680,7 @@ export default class Popup extends InteractivePopup {
diff --git a/doc/out/pixi_popupmenu.js.html b/doc/out/pixi_popupmenu.js.html
index 6fb8067..2af7442 100644
--- a/doc/out/pixi_popupmenu.js.html
+++ b/doc/out/pixi_popupmenu.js.html
@@ -1583,7 +1583,7 @@ export default class PopupMenu extends Popup {
diff --git a/doc/out/pixi_progress.js.html b/doc/out/pixi_progress.js.html
index 915bb30..06d0687 100644
--- a/doc/out/pixi_progress.js.html
+++ b/doc/out/pixi_progress.js.html
@@ -1765,7 +1765,7 @@ export default class Progress extends PIXI.Container {
diff --git a/doc/out/pixi_scrollview.js.html b/doc/out/pixi_scrollview.js.html
index 075bd93..704a93c 100644
--- a/doc/out/pixi_scrollview.js.html
+++ b/doc/out/pixi_scrollview.js.html
@@ -1524,7 +1524,7 @@ export default class Scrollview extends Scrollbox {
diff --git a/doc/out/pixi_slider.js.html b/doc/out/pixi_slider.js.html
index 223aaad..9bdbc46 100644
--- a/doc/out/pixi_slider.js.html
+++ b/doc/out/pixi_slider.js.html
@@ -1929,7 +1929,7 @@ export default class Slider extends PIXI.Container {
diff --git a/doc/out/pixi_switch.js.html b/doc/out/pixi_switch.js.html
index 65ef200..584883f 100644
--- a/doc/out/pixi_switch.js.html
+++ b/doc/out/pixi_switch.js.html
@@ -1983,7 +1983,7 @@ export default class Switch extends PIXI.Container {
diff --git a/doc/out/pixi_theme.js.html b/doc/out/pixi_theme.js.html
index 8b4911e..f916a8f 100644
--- a/doc/out/pixi_theme.js.html
+++ b/doc/out/pixi_theme.js.html
@@ -1724,7 +1724,7 @@ export class ThemeRed extends Theme {
diff --git a/doc/out/pixi_tooltip.js.html b/doc/out/pixi_tooltip.js.html
index 793d8ed..394d4da 100644
--- a/doc/out/pixi_tooltip.js.html
+++ b/doc/out/pixi_tooltip.js.html
@@ -1617,7 +1617,7 @@ export default class Tooltip extends AbstractPopup {
diff --git a/doc/out/pixi_volatile.js.html b/doc/out/pixi_volatile.js.html
index 0b14cff..802fd2f 100644
--- a/doc/out/pixi_volatile.js.html
+++ b/doc/out/pixi_volatile.js.html
@@ -1621,7 +1621,7 @@ export default class Volatile {
diff --git a/doc/out/uitest.js.html b/doc/out/uitest.js.html
index 2f186fd..a57fd9e 100644
--- a/doc/out/uitest.js.html
+++ b/doc/out/uitest.js.html
@@ -2472,7 +2472,7 @@ class Event {
diff --git a/lib/pixi/buttongroup.js b/lib/pixi/buttongroup.js
index feaec6c..841619a 100644
--- a/lib/pixi/buttongroup.js
+++ b/lib/pixi/buttongroup.js
@@ -45,7 +45,7 @@ export default class ButtonGroup extends PIXI.Container {
* @param {number} [opts.maxWidth] - The maximum width of the button group. If the buttons are wider than the maximum width, the buttons get stacked. Note: The buttons can only be stacked if margin is not zero. Note 2: Load the Greensock ThrowPropsPlugin for smoother animations.
* @param {number} [opts.maxHeight] - The maximum height of the button group. If the buttons are higher than the maximum height, the buttons get stacked. Note: The buttons can only be stacked if margin is not zero. Note 2: Load the Greensock ThrowPropsPlugin for smoother animations.
* @param {number} [opts.stackPadding=10] - The padding for stacked buttons.
- * @param {PIXI.Application} [opts.app] - The PixiJS Application. Must be set if you want to use the mousewheel to scroll your button group. Only used when the buttons are stacked (with maxWidth or maxHeight).
+ * @param {PIXI.Application} [opts.app=window.app] - The PixiJS Application. Must be set if you want to use the mousewheel to scroll your button group. Only used when the buttons are stacked (with maxWidth or maxHeight).
* @param {number} [opts.padding=Theme.padding] - Button: The inner spacing (distance from icon and/or label) the the border.
* @param {number} [opts.margin=Theme.margin] - The outer spacing (distance from one button to the previous/next button).
* @param {string} [opts.iconPosition=left] - Button: The position of the icon in relation to the label. Can be left or right.
@@ -97,7 +97,7 @@ export default class ButtonGroup extends PIXI.Container {
maxWidth: null,
maxHeight: null,
stackPadding: 10,
- app: null,
+ app: window.app,
padding: theme.padding,
margin: theme.margin,
iconPosition: 'left', // left, right