diff --git a/dist/iwmlib.pixi.js b/dist/iwmlib.pixi.js
index e4bf418..44ac09b 100644
--- a/dist/iwmlib.pixi.js
+++ b/dist/iwmlib.pixi.js
@@ -2366,8 +2366,8 @@
strokeActive: theme.strokeActive,
strokeActiveWidth: theme.strokeActiveWidth,
strokeActiveAlpha: theme.strokeActiveAlpha,
- textStyle: theme.textStyle,
- textStyleActive: theme.textStyleActive,
+ textStyle: {},
+ textStyleActive: {},
style: 'default',
radius: theme.radius,
disabled: false,
@@ -2387,6 +2387,9 @@
this.id = this.opts.id;
+ this.opts.textStyle = Object.assign({}, theme.textStyle, this.opts.textStyle);
+ this.opts.textStyleActive = Object.assign({}, theme.textStyleActive, this.opts.textStyleActive);
+
if (typeof this.opts.icon === 'undefined' && typeof this.opts.iconActive !== 'undefined') {
this.opts.icon = this.opts.iconActive;
} else if (typeof this.opts.icon !== 'undefined' && typeof this.opts.iconActive === 'undefined') {
@@ -3051,8 +3054,8 @@
strokeActive: theme.strokeActive,
strokeActiveWidth: theme.strokeActiveWidth,
strokeActiveAlpha: theme.strokeActiveAlpha,
- textStyle: theme.textStyle,
- textStyleActive: theme.textStyleActive,
+ textStyle: {},
+ textStyleActive: {},
style: 'default',
radius: theme.radius,
disabled: null,
@@ -3064,6 +3067,9 @@
},
opts
);
+
+ this.opts.textStyle = Object.assign({}, theme.textStyle, this.opts.textStyle);
+ this.opts.textStyleActive = Object.assign({}, theme.textStyleActive, this.opts.textStyleActive);
this.buttons = [];
diff --git a/doc/out/AbstractPopup.html b/doc/out/AbstractPopup.html
index 53f6f81..871e50f 100644
--- a/doc/out/AbstractPopup.html
+++ b/doc/out/AbstractPopup.html
@@ -267,10 +267,6 @@
Methods
-
_stackHorizontal
-
- _stackVertical
-
capture
hide
@@ -279,8 +275,6 @@
show
- stack
-
@@ -2924,7 +2918,7 @@ a string, a number or a PIXI.Text object.
diff --git a/doc/out/Badge.html b/doc/out/Badge.html
index 94510bb..fcce407 100644
--- a/doc/out/Badge.html
+++ b/doc/out/Badge.html
@@ -267,10 +267,6 @@
Methods
- - _stackHorizontal
-
- - _stackVertical
-
- capture
- hide
@@ -279,8 +275,6 @@
- show
- - stack
-
@@ -2380,7 +2374,7 @@ a string, a number or a PIXI.Text object.
diff --git a/doc/out/BlurFilter.html b/doc/out/BlurFilter.html
index 0539813..811992e 100644
--- a/doc/out/BlurFilter.html
+++ b/doc/out/BlurFilter.html
@@ -267,10 +267,6 @@
Methods
- - _stackHorizontal
-
- - _stackVertical
-
- capture
- hide
@@ -279,8 +275,6 @@
- show
- - stack
-
@@ -1804,7 +1798,7 @@ app.scene.filters = [blurFilter]
diff --git a/doc/out/Button.html b/doc/out/Button.html
index 31d6611..525cd7f 100644
--- a/doc/out/Button.html
+++ b/doc/out/Button.html
@@ -267,10 +267,6 @@
Methods
- - _stackHorizontal
-
- - _stackVertical
-
- capture
- hide
@@ -279,8 +275,6 @@
- show
- - stack
-
@@ -3381,7 +3375,7 @@ the tint property of the icon sprite.
@@ -3505,7 +3499,7 @@ the tint property of the icon sprite.
@@ -3610,7 +3604,7 @@ the tint property of the icon sprite.
@@ -3715,7 +3709,7 @@ the tint property of the icon sprite.
@@ -3822,7 +3816,7 @@ the tint property of the icon sprite.
diff --git a/doc/out/ButtonGroup.html b/doc/out/ButtonGroup.html
index f083136..be3653d 100644
--- a/doc/out/ButtonGroup.html
+++ b/doc/out/ButtonGroup.html
@@ -267,10 +267,6 @@
Methods
- - _stackHorizontal
-
- - _stackVertical
-
- capture
- hide
@@ -279,8 +275,6 @@
- show
- - stack
-
@@ -3127,150 +3121,6 @@ app.scene.addChild(buttonGroup)
--
-
-
-
-
- _stackHorizontal
-
- ()
-
-
-
-
-
-
-
-
-
-
-
-
-
--
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
--
-
-
-
-
- _stackVertical
-
- ()
-
-
-
-
-
-
-
-
-
-
-
-
-
--
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -3411,7 +3261,7 @@ app.scene.addChild(buttonGroup)
@@ -3516,7 +3366,7 @@ app.scene.addChild(buttonGroup)
@@ -3621,7 +3471,7 @@ app.scene.addChild(buttonGroup)
@@ -3706,78 +3556,6 @@ app.scene.addChild(buttonGroup)
-
-
-
-
-
-
-
-
-
-
- stack
-
- ()
-
-
-
-
-
-
-
-
-
-
-
-
-
- -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -3800,7 +3578,7 @@ app.scene.addChild(buttonGroup)
diff --git a/doc/out/DeepZoomImage.html b/doc/out/DeepZoomImage.html
index ebe9906..2a0a463 100644
--- a/doc/out/DeepZoomImage.html
+++ b/doc/out/DeepZoomImage.html
@@ -267,10 +267,6 @@
Methods
- - _stackHorizontal
-
- - _stackVertical
-
- capture
- hide
@@ -279,8 +275,6 @@
- show
- - stack
-
@@ -1481,7 +1475,7 @@ more detailed tiles at the larger level as fast as possible.
@@ -1934,7 +1928,7 @@ Adds a PIXI.Container if necessary.
@@ -2012,7 +2006,7 @@ rect.
@@ -2164,7 +2158,7 @@ rect.
@@ -2240,7 +2234,7 @@ rect.
@@ -2384,7 +2378,7 @@ rect.
@@ -2559,7 +2553,7 @@ rect.
@@ -2680,7 +2674,7 @@ rect.
@@ -2758,7 +2752,7 @@ the also overwritten _calculateBounds method.
@@ -2933,7 +2927,7 @@ the also overwritten _calculateBounds method.
@@ -3009,7 +3003,7 @@ the also overwritten _calculateBounds method.
@@ -3085,7 +3079,7 @@ the also overwritten _calculateBounds method.
@@ -3162,7 +3156,7 @@ visible quadTrees
@@ -3284,7 +3278,7 @@ be reused.
@@ -3360,7 +3354,7 @@ be reused.
@@ -3481,7 +3475,7 @@ be reused.
@@ -3632,7 +3626,7 @@ a new Tiles layer if necessary
@@ -3753,7 +3747,7 @@ a new Tiles layer if necessary
@@ -3874,7 +3868,7 @@ a new Tiles layer if necessary
@@ -4088,7 +4082,7 @@ a new Tiles layer if necessary
@@ -4232,7 +4226,7 @@ a new Tiles layer if necessary
@@ -4425,7 +4419,7 @@ Optional parameter:
@@ -4572,7 +4566,7 @@ layer.
@@ -4702,7 +4696,7 @@ Can be overwritten in subclasses.
@@ -4808,7 +4802,7 @@ large images.
@@ -4884,7 +4878,7 @@ large images.
@@ -5102,7 +5096,7 @@ i.e. after loading a single tile
diff --git a/doc/out/DeepZoomInfo.html b/doc/out/DeepZoomInfo.html
index f806fc5..4a6dd09 100644
--- a/doc/out/DeepZoomInfo.html
+++ b/doc/out/DeepZoomInfo.html
@@ -267,10 +267,6 @@
Methods
- - _stackHorizontal
-
- - _stackVertical
-
- capture
- hide
@@ -279,8 +275,6 @@
- show
- - stack
-
@@ -1643,7 +1637,7 @@ height and width of the overall image, overlap, and image type.
@@ -1793,7 +1787,7 @@ height and width of the overall image, overlap, and image type.
@@ -1943,7 +1937,7 @@ height and width of the overall image, overlap, and image type.
@@ -2093,7 +2087,7 @@ height and width of the overall image, overlap, and image type.
@@ -2243,7 +2237,7 @@ height and width of the overall image, overlap, and image type.
@@ -2417,7 +2411,7 @@ on completion.
@@ -2615,7 +2609,7 @@ on completion.
diff --git a/doc/out/Flippable.html b/doc/out/Flippable.html
index 0753009..468502b 100644
--- a/doc/out/Flippable.html
+++ b/doc/out/Flippable.html
@@ -267,10 +267,6 @@
Methods
- - _stackHorizontal
-
- - _stackVertical
-
- capture
- hide
@@ -279,8 +275,6 @@
- show
- - stack
-
@@ -2518,7 +2512,7 @@ front.on('click', event => flippable.toggle())
diff --git a/doc/out/FontInfo.html b/doc/out/FontInfo.html
index 7b323ed..5c11964 100644
--- a/doc/out/FontInfo.html
+++ b/doc/out/FontInfo.html
@@ -267,10 +267,6 @@
Methods
- - _stackHorizontal
-
- - _stackVertical
-
- capture
- hide
@@ -279,8 +275,6 @@
- show
- - stack
-
@@ -1565,7 +1559,7 @@
diff --git a/doc/out/Hypenate.html b/doc/out/Hypenate.html
index 51d6c52..cad289f 100644
--- a/doc/out/Hypenate.html
+++ b/doc/out/Hypenate.html
@@ -267,10 +267,6 @@
Methods
- - _stackHorizontal
-
- - _stackVertical
-
- capture
- hide
@@ -279,8 +275,6 @@
- show
- - stack
-
@@ -1767,7 +1761,7 @@
diff --git a/doc/out/InteractivePopup.html b/doc/out/InteractivePopup.html
index 3096cf2..9798e2f 100644
--- a/doc/out/InteractivePopup.html
+++ b/doc/out/InteractivePopup.html
@@ -267,10 +267,6 @@
Methods
- - _stackHorizontal
-
- - _stackVertical
-
- capture
- hide
@@ -279,8 +275,6 @@
- show
- - stack
-
@@ -2349,7 +2343,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 ae30037..c2867b0 100644
--- a/doc/out/LabeledGraphics.exports.LabeledGraphics.html
+++ b/doc/out/LabeledGraphics.exports.LabeledGraphics.html
@@ -267,10 +267,6 @@
Methods
- - _stackHorizontal
-
- - _stackVertical
-
- capture
- hide
@@ -279,8 +275,6 @@
- show
- - stack
-
@@ -1567,7 +1561,7 @@
diff --git a/doc/out/LabeledGraphics.html b/doc/out/LabeledGraphics.html
index 6c3aade..623e0ca 100644
--- a/doc/out/LabeledGraphics.html
+++ b/doc/out/LabeledGraphics.html
@@ -267,10 +267,6 @@
Methods
- - _stackHorizontal
-
- - _stackVertical
-
- capture
- hide
@@ -279,8 +275,6 @@
- show
- - stack
-
@@ -2632,7 +2626,7 @@ than wanted
diff --git a/doc/out/List.html b/doc/out/List.html
index 471c0b0..d95b4eb 100644
--- a/doc/out/List.html
+++ b/doc/out/List.html
@@ -267,10 +267,6 @@
Methods
- - _stackHorizontal
-
- - _stackVertical
-
- capture
- hide
@@ -279,8 +275,6 @@
- show
- - stack
-
@@ -2591,7 +2585,7 @@ app.scene.addChild(list)
diff --git a/doc/out/Message.html b/doc/out/Message.html
index 1c0e719..1e0b9dd 100644
--- a/doc/out/Message.html
+++ b/doc/out/Message.html
@@ -267,10 +267,6 @@
Methods
- - _stackHorizontal
-
- - _stackVertical
-
- capture
- hide
@@ -279,8 +275,6 @@
- show
- - stack
-
@@ -2447,7 +2441,7 @@ a string, a number or a PIXI.Text object.
diff --git a/doc/out/MessageInteractivePopup.html b/doc/out/MessageInteractivePopup.html
index 8689cfd..9e01c35 100644
--- a/doc/out/MessageInteractivePopup.html
+++ b/doc/out/MessageInteractivePopup.html
@@ -267,10 +267,6 @@
Methods
- - _stackHorizontal
-
- - _stackVertical
-
- capture
- hide
@@ -279,8 +275,6 @@
- show
- - stack
-
@@ -1795,7 +1789,7 @@ like Popup, Message...
diff --git a/doc/out/MessageMessageInteractivePopup.html b/doc/out/MessageMessageInteractivePopup.html
index dec2a0b..d439bd5 100644
--- a/doc/out/MessageMessageInteractivePopup.html
+++ b/doc/out/MessageMessageInteractivePopup.html
@@ -267,10 +267,6 @@
Methods
- - _stackHorizontal
-
- - _stackVertical
-
- capture
- hide
@@ -279,8 +275,6 @@
- show
- - stack
-
@@ -1795,7 +1789,7 @@ like Popup, Message...
diff --git a/doc/out/Modal.html b/doc/out/Modal.html
index 0e6181f..4159322 100644
--- a/doc/out/Modal.html
+++ b/doc/out/Modal.html
@@ -267,10 +267,6 @@
Methods
- - _stackHorizontal
-
- - _stackVertical
-
- capture
- hide
@@ -279,8 +275,6 @@
- show
- - stack
-
@@ -2348,7 +2342,7 @@ a string or a PIXI.Text object.
diff --git a/doc/out/ModalInteractivePopup.html b/doc/out/ModalInteractivePopup.html
index 9096373..43d90b6 100644
--- a/doc/out/ModalInteractivePopup.html
+++ b/doc/out/ModalInteractivePopup.html
@@ -267,10 +267,6 @@
Methods
- - _stackHorizontal
-
- - _stackVertical
-
- capture
- hide
@@ -279,8 +275,6 @@
- show
- - stack
-
@@ -1795,7 +1789,7 @@ like Popup, Message...
diff --git a/doc/out/ModalModalInteractivePopup.html b/doc/out/ModalModalInteractivePopup.html
index 468b05a..9a5a46a 100644
--- a/doc/out/ModalModalInteractivePopup.html
+++ b/doc/out/ModalModalInteractivePopup.html
@@ -267,10 +267,6 @@
Methods
- - _stackHorizontal
-
- - _stackVertical
-
- capture
- hide
@@ -279,8 +275,6 @@
- show
- - stack
-
@@ -1795,7 +1789,7 @@ like Popup, Message...
diff --git a/doc/out/PIXIApp.html b/doc/out/PIXIApp.html
index 343817c..4fa348b 100644
--- a/doc/out/PIXIApp.html
+++ b/doc/out/PIXIApp.html
@@ -267,10 +267,6 @@
Methods
- - _stackHorizontal
-
- - _stackVertical
-
- capture
- hide
@@ -279,8 +275,6 @@
- show
- - stack
-
@@ -5749,7 +5743,7 @@ rejected with an error.
diff --git a/doc/out/Popup.html b/doc/out/Popup.html
index b2bd7d1..c385698 100644
--- a/doc/out/Popup.html
+++ b/doc/out/Popup.html
@@ -267,10 +267,6 @@
Methods
- - _stackHorizontal
-
- - _stackVertical
-
- capture
- hide
@@ -279,8 +275,6 @@
- show
- - stack
-
@@ -2342,7 +2336,7 @@ a string, a number or a PIXI.Text object.
diff --git a/doc/out/PopupInteractivePopup.html b/doc/out/PopupInteractivePopup.html
index 0e42048..68fcb58 100644
--- a/doc/out/PopupInteractivePopup.html
+++ b/doc/out/PopupInteractivePopup.html
@@ -267,10 +267,6 @@
Methods
- - _stackHorizontal
-
- - _stackVertical
-
- capture
- hide
@@ -279,8 +275,6 @@
- show
- - stack
-
@@ -1795,7 +1789,7 @@ like Popup, Message...
diff --git a/doc/out/PopupMenu.html b/doc/out/PopupMenu.html
index 06e683f..38e2b50 100644
--- a/doc/out/PopupMenu.html
+++ b/doc/out/PopupMenu.html
@@ -267,10 +267,6 @@
Methods
- - _stackHorizontal
-
- - _stackVertical
-
- capture
- hide
@@ -279,8 +275,6 @@
- show
- - stack
-
@@ -2396,7 +2390,7 @@ a string, a number or a PIXI.Text object.
diff --git a/doc/out/PopupMenuPopupInteractivePopup.html b/doc/out/PopupMenuPopupInteractivePopup.html
index 31edb4f..35dfbc7 100644
--- a/doc/out/PopupMenuPopupInteractivePopup.html
+++ b/doc/out/PopupMenuPopupInteractivePopup.html
@@ -267,10 +267,6 @@
Methods
- - _stackHorizontal
-
- - _stackVertical
-
- capture
- hide
@@ -279,8 +275,6 @@
- show
- - stack
-
@@ -1795,7 +1789,7 @@ like Popup, Message...
diff --git a/doc/out/PopupMenuPopupMenuPopupInteractivePopup.html b/doc/out/PopupMenuPopupMenuPopupInteractivePopup.html
index 462a88a..462c70b 100644
--- a/doc/out/PopupMenuPopupMenuPopupInteractivePopup.html
+++ b/doc/out/PopupMenuPopupMenuPopupInteractivePopup.html
@@ -267,10 +267,6 @@
Methods
- - _stackHorizontal
-
- - _stackVertical
-
- capture
- hide
@@ -279,8 +275,6 @@
- show
- - stack
-
@@ -1795,7 +1789,7 @@ like Popup, Message...
diff --git a/doc/out/PopupMenuPopupMenuPopupPopupInteractivePopup.html b/doc/out/PopupMenuPopupMenuPopupPopupInteractivePopup.html
index ea09a09..0492b32 100644
--- a/doc/out/PopupMenuPopupMenuPopupPopupInteractivePopup.html
+++ b/doc/out/PopupMenuPopupMenuPopupPopupInteractivePopup.html
@@ -267,10 +267,6 @@
Methods
- - _stackHorizontal
-
- - _stackVertical
-
- capture
- hide
@@ -279,8 +275,6 @@
- show
- - stack
-
@@ -1795,7 +1789,7 @@ like Popup, Message...
diff --git a/doc/out/PopupMenuPopupPopupInteractivePopup.html b/doc/out/PopupMenuPopupPopupInteractivePopup.html
index c18fe02..ec7795a 100644
--- a/doc/out/PopupMenuPopupPopupInteractivePopup.html
+++ b/doc/out/PopupMenuPopupPopupInteractivePopup.html
@@ -267,10 +267,6 @@
Methods
- - _stackHorizontal
-
- - _stackVertical
-
- capture
- hide
@@ -279,8 +275,6 @@
- show
- - stack
-
@@ -1795,7 +1789,7 @@ like Popup, Message...
diff --git a/doc/out/PopupPopupInteractivePopup.html b/doc/out/PopupPopupInteractivePopup.html
index aafb5e2..429fae3 100644
--- a/doc/out/PopupPopupInteractivePopup.html
+++ b/doc/out/PopupPopupInteractivePopup.html
@@ -267,10 +267,6 @@
Methods
- - _stackHorizontal
-
- - _stackVertical
-
- capture
- hide
@@ -279,8 +275,6 @@
- show
- - stack
-
@@ -1795,7 +1789,7 @@ like Popup, Message...
diff --git a/doc/out/Progress.html b/doc/out/Progress.html
index d5675fb..03ba6b7 100644
--- a/doc/out/Progress.html
+++ b/doc/out/Progress.html
@@ -267,10 +267,6 @@
Methods
- - _stackHorizontal
-
- - _stackVertical
-
- capture
- hide
@@ -279,8 +275,6 @@
- show
- - stack
-
@@ -2881,7 +2875,7 @@ app.scene.addChild(progress)
diff --git a/doc/out/Scrollview.html b/doc/out/Scrollview.html
index f0d2941..2b7714e 100644
--- a/doc/out/Scrollview.html
+++ b/doc/out/Scrollview.html
@@ -267,10 +267,6 @@
Methods
- - _stackHorizontal
-
- - _stackVertical
-
- capture
- hide
@@ -279,8 +275,6 @@
- show
- - stack
-
@@ -1713,7 +1707,7 @@ app.loader
diff --git a/doc/out/Slider.html b/doc/out/Slider.html
index 8e248dc..d16913c 100644
--- a/doc/out/Slider.html
+++ b/doc/out/Slider.html
@@ -267,10 +267,6 @@
Methods
- - _stackHorizontal
-
- - _stackVertical
-
- capture
- hide
@@ -279,8 +275,6 @@
- show
- - stack
-
@@ -2972,7 +2966,7 @@ app.scene.addChild(slider)
diff --git a/doc/out/Switch.html b/doc/out/Switch.html
index 2b4a44f..a95069a 100644
--- a/doc/out/Switch.html
+++ b/doc/out/Switch.html
@@ -267,10 +267,6 @@
Methods
- - _stackHorizontal
-
- - _stackVertical
-
- capture
- hide
@@ -279,8 +275,6 @@
- show
- - stack
-
@@ -3402,7 +3396,7 @@ app.scene.addChild(switch1)
diff --git a/doc/out/TextLabel.TextLabel.html b/doc/out/TextLabel.TextLabel.html
index f2a0cba..88d1b74 100644
--- a/doc/out/TextLabel.TextLabel.html
+++ b/doc/out/TextLabel.TextLabel.html
@@ -267,10 +267,6 @@
Methods
- - _stackHorizontal
-
- - _stackVertical
-
- capture
- hide
@@ -279,8 +275,6 @@
- show
- - stack
-
@@ -1696,7 +1690,7 @@
diff --git a/doc/out/Theme.html b/doc/out/Theme.html
index 2727b58..93e87e1 100644
--- a/doc/out/Theme.html
+++ b/doc/out/Theme.html
@@ -267,10 +267,6 @@
Methods
- - _stackHorizontal
-
- - _stackVertical
-
- capture
- hide
@@ -279,8 +275,6 @@
- show
- - stack
-
@@ -3171,7 +3165,7 @@ const app = new PIXIApp({
diff --git a/doc/out/ThemeDark.html b/doc/out/ThemeDark.html
index 7d52464..35ce86e 100644
--- a/doc/out/ThemeDark.html
+++ b/doc/out/ThemeDark.html
@@ -267,10 +267,6 @@
Methods
- - _stackHorizontal
-
- - _stackVertical
-
- capture
- hide
@@ -279,8 +275,6 @@
- show
- - stack
-
@@ -1592,7 +1586,7 @@ const app = new PIXIApp({
diff --git a/doc/out/ThemeLight.html b/doc/out/ThemeLight.html
index 4b99e10..2789c7d 100644
--- a/doc/out/ThemeLight.html
+++ b/doc/out/ThemeLight.html
@@ -267,10 +267,6 @@
Methods
- - _stackHorizontal
-
- - _stackVertical
-
- capture
- hide
@@ -279,8 +275,6 @@
- show
- - stack
-
@@ -1604,7 +1598,7 @@ const app = new PIXIApp({
diff --git a/doc/out/ThemeRed.html b/doc/out/ThemeRed.html
index c5c751d..e3351f2 100644
--- a/doc/out/ThemeRed.html
+++ b/doc/out/ThemeRed.html
@@ -267,10 +267,6 @@
Methods
- - _stackHorizontal
-
- - _stackVertical
-
- capture
- hide
@@ -279,8 +275,6 @@
- show
- - stack
-
@@ -1604,7 +1598,7 @@ const app = new PIXIApp({
diff --git a/doc/out/TileQuadNode.html b/doc/out/TileQuadNode.html
index ecf3e3a..6e33f21 100644
--- a/doc/out/TileQuadNode.html
+++ b/doc/out/TileQuadNode.html
@@ -267,10 +267,6 @@
Methods
- - _stackHorizontal
-
- - _stackVertical
-
- capture
- hide
@@ -279,8 +275,6 @@
- show
- - stack
-
@@ -1484,7 +1478,7 @@ the memory pressure.
@@ -1688,7 +1682,7 @@ the memory pressure.
@@ -1856,7 +1850,7 @@ and west flags to address nw, ne, sw, and se.
@@ -1933,7 +1927,7 @@ an indicator of tiles to free.
@@ -2056,7 +2050,7 @@ an indicator of tiles to free.
diff --git a/doc/out/Tooltip.html b/doc/out/Tooltip.html
index 294a4be..b7ee308 100644
--- a/doc/out/Tooltip.html
+++ b/doc/out/Tooltip.html
@@ -267,10 +267,6 @@
Methods
- - _stackHorizontal
-
- - _stackVertical
-
- capture
- hide
@@ -279,8 +275,6 @@
- show
- - stack
-
@@ -2518,7 +2512,7 @@ a string, a number or a PIXI.Text object.
diff --git a/doc/out/UITest.html b/doc/out/UITest.html
index 129fa96..ead6eb8 100644
--- a/doc/out/UITest.html
+++ b/doc/out/UITest.html
@@ -267,10 +267,6 @@
Methods
- - _stackHorizontal
-
- - _stackVertical
-
- capture
- hide
@@ -279,8 +275,6 @@
- show
- - stack
-
@@ -4189,7 +4183,7 @@ test.start()
diff --git a/doc/out/Volatile.html b/doc/out/Volatile.html
index 7bc122b..c8e52dd 100644
--- a/doc/out/Volatile.html
+++ b/doc/out/Volatile.html
@@ -267,10 +267,6 @@
Methods
- - _stackHorizontal
-
- - _stackVertical
-
- capture
- hide
@@ -279,8 +275,6 @@
- show
- - stack
-
@@ -2105,7 +2099,7 @@ app.scene.addChild(button)
diff --git a/doc/out/global.html b/doc/out/global.html
index 76ab0c5..ff8f547 100644
--- a/doc/out/global.html
+++ b/doc/out/global.html
@@ -267,10 +267,6 @@
Methods
- - _stackHorizontal
-
- - _stackVertical
-
- capture
- hide
@@ -279,8 +275,6 @@
- show
- - stack
-
@@ -3326,7 +3320,7 @@
diff --git a/doc/out/index.html b/doc/out/index.html
index 0164d5c..4d9f41a 100644
--- a/doc/out/index.html
+++ b/doc/out/index.html
@@ -267,10 +267,6 @@
Methods
- - _stackHorizontal
-
- - _stackVertical
-
- capture
- hide
@@ -279,8 +275,6 @@
- show
- - stack
-
@@ -1491,7 +1485,7 @@
diff --git a/doc/out/pixi_abstractpopup.js.html b/doc/out/pixi_abstractpopup.js.html
index 997facd..e6a4305 100644
--- a/doc/out/pixi_abstractpopup.js.html
+++ b/doc/out/pixi_abstractpopup.js.html
@@ -267,10 +267,6 @@
Methods
- - _stackHorizontal
-
- - _stackVertical
-
- capture
- hide
@@ -279,8 +275,6 @@
- show
- - stack
-
@@ -1814,7 +1808,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 f6da038..8646985 100644
--- a/doc/out/pixi_app.js.html
+++ b/doc/out/pixi_app.js.html
@@ -267,10 +267,6 @@
Methods
- - _stackHorizontal
-
- - _stackVertical
-
- capture
- hide
@@ -279,8 +275,6 @@
- show
- - stack
-
@@ -2195,7 +2189,7 @@ class FpsDisplay extends PIXI.Graphics {
diff --git a/doc/out/pixi_badge.js.html b/doc/out/pixi_badge.js.html
index 99e9bea..c6153d3 100644
--- a/doc/out/pixi_badge.js.html
+++ b/doc/out/pixi_badge.js.html
@@ -267,10 +267,6 @@
Methods
- - _stackHorizontal
-
- - _stackVertical
-
- capture
- hide
@@ -279,8 +275,6 @@
- show
- - stack
-
@@ -1575,7 +1569,7 @@ export default class Badge extends AbstractPopup {
diff --git a/doc/out/pixi_blurfilter.js.html b/doc/out/pixi_blurfilter.js.html
index ff4a158..4f19944 100644
--- a/doc/out/pixi_blurfilter.js.html
+++ b/doc/out/pixi_blurfilter.js.html
@@ -267,10 +267,6 @@
Methods
- - _stackHorizontal
-
- - _stackVertical
-
- capture
- hide
@@ -279,8 +275,6 @@
- show
- - stack
-
@@ -1733,7 +1727,7 @@ class TiltShiftYFilter extends TiltShiftAxisFilter {
diff --git a/doc/out/pixi_button.js.html b/doc/out/pixi_button.js.html
index 16e0550..ab03e23 100644
--- a/doc/out/pixi_button.js.html
+++ b/doc/out/pixi_button.js.html
@@ -267,10 +267,6 @@
Methods
- - _stackHorizontal
-
- - _stackVertical
-
- capture
- hide
@@ -279,8 +275,6 @@
- show
- - stack
-
@@ -1588,8 +1582,8 @@ export default class Button extends PIXI.Container {
strokeActive: theme.strokeActive,
strokeActiveWidth: theme.strokeActiveWidth,
strokeActiveAlpha: theme.strokeActiveAlpha,
- textStyle: theme.textStyle,
- textStyleActive: theme.textStyleActive,
+ textStyle: {},
+ textStyleActive: {},
style: 'default',
radius: theme.radius,
disabled: false,
@@ -1609,6 +1603,9 @@ export default class Button extends PIXI.Container {
this.id = this.opts.id
+ this.opts.textStyle = Object.assign({}, theme.textStyle, this.opts.textStyle)
+ this.opts.textStyleActive = Object.assign({}, theme.textStyleActive, this.opts.textStyleActive)
+
if (typeof this.opts.icon === 'undefined' && typeof this.opts.iconActive !== 'undefined') {
this.opts.icon = this.opts.iconActive
} else if (typeof this.opts.icon !== 'undefined' && typeof this.opts.iconActive === 'undefined') {
@@ -2174,7 +2171,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 5e154f5..e237973 100644
--- a/doc/out/pixi_buttongroup.js.html
+++ b/doc/out/pixi_buttongroup.js.html
@@ -267,10 +267,6 @@
Methods
- - _stackHorizontal
-
- - _stackVertical
-
- capture
- hide
@@ -279,8 +275,6 @@
- show
- - stack
-
@@ -1565,8 +1559,8 @@ export default class ButtonGroup extends PIXI.Container {
strokeActive: theme.strokeActive,
strokeActiveWidth: theme.strokeActiveWidth,
strokeActiveAlpha: theme.strokeActiveAlpha,
- textStyle: theme.textStyle,
- textStyleActive: theme.textStyleActive,
+ textStyle: {},
+ textStyleActive: {},
style: 'default',
radius: theme.radius,
disabled: null,
@@ -1579,6 +1573,9 @@ export default class ButtonGroup extends PIXI.Container {
opts
)
+ this.opts.textStyle = Object.assign({}, theme.textStyle, this.opts.textStyle)
+ this.opts.textStyleActive = Object.assign({}, theme.textStyleActive, this.opts.textStyleActive)
+
this.buttons = []
this._disabled = null
@@ -1744,6 +1741,7 @@ export default class ButtonGroup extends PIXI.Container {
this.addChildAt(background, 0)
this.__initWidth = this.container.width
+ this.__initHeight = this.container.height
}
return this
@@ -1891,18 +1889,23 @@ export default class ButtonGroup extends PIXI.Container {
* @param {*} event
*/
onStart(event) {
- this.__dragging = true
+ if (
+ (this.opts.maxWidth != null && this.__initWidth > this.opts.maxWidth) ||
+ (this.opts.maxHeight != null && this.__initHeight > this.opts.maxHeight)
+ ) {
+ this.__dragging = true
- this.capture(event)
+ this.capture(event)
- this.__delta = {
- x: this.container.position.x - event.data.global.x,
- y: this.container.position.y - event.data.global.y
- }
+ this.__delta = {
+ x: this.container.position.x - event.data.global.x,
+ y: this.container.position.y - event.data.global.y
+ }
- TweenLite.killTweensOf(this.container.position, { x: true, y: true })
- if (typeof ThrowPropsPlugin != 'undefined') {
- ThrowPropsPlugin.track(this.container.position, 'x,y')
+ TweenLite.killTweensOf(this.container.position, { x: true, y: true })
+ if (typeof ThrowPropsPlugin != 'undefined') {
+ ThrowPropsPlugin.track(this.container.position, 'x,y')
+ }
}
}
@@ -1914,7 +1917,6 @@ export default class ButtonGroup extends PIXI.Container {
onMove(event) {
if (this.__dragging) {
this.capture(event)
-
if (this.opts.orientation === 'horizontal') {
this.container.position.x = event.data.global.x + this.__delta.x
} else {
@@ -1939,20 +1941,34 @@ export default class ButtonGroup extends PIXI.Container {
const throwProps = { x: { velocity: 'auto' }, y: { velocity: 'auto' } }
if (this.opts.orientation === 'horizontal') {
- const distanceToLeft = this.container.x
- const distanceToRight = this.opts.maxWidth - this.container.x - this.__initWidth
- if (distanceToLeft > 0 && distanceToLeft > distanceToRight) {
+ if (this.__initWidth > this.opts.maxWidth) {
+ // stack!
+ const distanceToLeft = this.container.x
+ const distanceToRight = this.opts.maxWidth - this.container.x - this.__initWidth
+
+ if (distanceToLeft > 0) {
+ throwProps.x.end = 0
+ } else if (distanceToRight > 0) {
+ throwProps.x.end = this.opts.maxWidth - this.__initWidth
+ }
+ } else {
+ // just magnetize
throwProps.x.end = 0
- } else if (distanceToRight > 0 && distanceToRight > distanceToLeft) {
- throwProps.x.end = this.opts.maxWidth - this.__initWidth
}
} else {
- const distanceToTop = this.container.y
- const distanceToBottom = this.opts.maxHeight - this.container.y - this.container.height
- if (distanceToTop > 0 && distanceToTop > distanceToBottom) {
+ if (this.__initHeight > this.opts.maxHeight) {
+ // stack!
+ const distanceToTop = this.container.y
+ const distanceToBottom = this.opts.maxHeight - this.container.y - this.__initHeight
+
+ if (distanceToTop > 0) {
+ throwProps.y.end = 0
+ } else if (distanceToBottom > 0) {
+ throwProps.y.end = this.opts.maxHeight - this.__initHeight
+ }
+ } else {
+ // just magnetize
throwProps.y.end = 0
- } else if (distanceToBottom > 0 && distanceToBottom > distanceToTop) {
- throwProps.y.end = this.opts.maxHeight - this.container.height
}
}
@@ -1984,25 +2000,30 @@ export default class ButtonGroup extends PIXI.Container {
* @param {*} event
*/
onScroll(event) {
- this.capture(event)
+ if (
+ (this.opts.maxWidth != null && this.__initWidth > this.opts.maxWidth) ||
+ (this.opts.maxHeight != null && this.__initHeight > this.opts.maxHeight)
+ ) {
+ this.capture(event)
- if (this.opts.orientation === 'horizontal') {
- this.container.position.x -= event.deltaX
- if (this.container.position.x > 0) {
- this.container.position.x = 0
- } else if (this.container.position.x + this.__initWidth < this.opts.maxWidth) {
- this.container.position.x = this.opts.maxWidth - this.__initWidth
- }
- } else {
- this.container.position.y -= event.deltaY
- if (this.container.position.y > 0) {
- this.container.position.y = 0
- } else if (this.container.position.y + this.container.height < this.opts.maxHeight) {
- this.container.position.y = this.opts.maxHeight - this.container.height
+ if (this.opts.orientation === 'horizontal') {
+ this.container.position.x -= event.deltaX
+ if (this.container.position.x > 0) {
+ this.container.position.x = 0
+ } else if (this.container.position.x + this.__initWidth < this.opts.maxWidth) {
+ this.container.position.x = this.opts.maxWidth - this.__initWidth
+ }
+ } else {
+ this.container.position.y -= event.deltaY
+ if (this.container.position.y > 0) {
+ this.container.position.y = 0
+ } else if (this.container.position.y + this.container.height < this.opts.maxHeight) {
+ this.container.position.y = this.opts.maxHeight - this.container.height
+ }
}
+
+ this.stack()
}
-
- this.stack()
}
/**
@@ -2016,7 +2037,7 @@ export default class ButtonGroup extends PIXI.Container {
}
/**
- *
+ * @private
*/
stack() {
if (this.opts.maxWidth) {
@@ -2027,7 +2048,7 @@ export default class ButtonGroup extends PIXI.Container {
}
/**
- *
+ * @private
*/
_stackHorizontal() {
const sorted = []
@@ -2084,7 +2105,7 @@ export default class ButtonGroup extends PIXI.Container {
}
/**
- *
+ * @private
*/
_stackVertical() {
const sorted = []
@@ -2153,7 +2174,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 2f0777b..9fbfa9b 100644
--- a/doc/out/pixi_deepzoom_image.js.html
+++ b/doc/out/pixi_deepzoom_image.js.html
@@ -267,10 +267,6 @@
Methods
- - _stackHorizontal
-
- - _stackVertical
-
- capture
- hide
@@ -279,8 +275,6 @@
- show
- - stack
-
@@ -1492,15 +1486,14 @@ export class DeepZoomInfo {
// number in the file system for the folder with tiles
this.clip = this.clip || null // e.g. { level: 12, col: 301436, row: 354060 }
this.type = this.type || 'dzi'
- this.urlTileTemplate =
- this.urlTileTemplate || '{path}/{level}/{column}_{row}.{format}'
+ this.urlTileTemplate = this.urlTileTemplate || '{path}/{level}/{column}_{row}.{format}'
this.setupDimensions()
}
/* Computes the needed number of layers from the width and height
- * of the image. Note that this includes the level 0, i.e. 0 ... 4
- * means that 5 levels exist.
- **/
+ * of the image. Note that this includes the level 0, i.e. 0 ... 4
+ * means that 5 levels exist.
+ **/
numLevels() {
let maxDimension = Math.max(this.width, this.height)
let boundary = this.type === 'dzi' ? 1 : this.tileSize
@@ -1683,15 +1676,7 @@ export class DeepZoomInfo {
test() {
//console.log("w=" + this.width + " h=" + this.height + " maxlevel=" + this.maxLevel + " base=" + this.baseLevel)
for (let i = 0; i <= this.maxLevel; i++) {
- console.log(
- ' ' +
- i +
- ' -> ' +
- this.getScale(i) +
- ' [' +
- this.dimensions(i) +
- ']'
- )
+ console.log(' ' + i + ' -> ' + this.getScale(i) + ' [' + this.dimensions(i) + ']')
}
console.log(this.urlForTile(this.baseLevel, 0, 0))
}
@@ -1731,12 +1716,7 @@ class TileQuadNode {
**/
noQuads() {
if (this.previous === null) return false
- return (
- this.nw === null &&
- this.ne === null &&
- this.sw === null &&
- this.se === null
- )
+ return this.nw === null && this.ne === null && this.sw === null && this.se === null
}
/** Unlink the given quad node
@@ -1775,7 +1755,6 @@ class TileQuadNode {
}
}
-
/**
* The main class of a deeply zoomable image that is represented by a hierarchy
* of tile layers for each zoom level. This gives the user the impression that
@@ -1793,7 +1772,7 @@ export class DeepZoomImage extends PIXI.Container {
debug = false,
shadow = false,
center = false,
- world = null, // Defines the world bounds the images lives in
+ world = null, // Defines the world bounds the images lives in
highResolution = true,
autoLoadTiles = true,
useWorker = '',
@@ -1808,9 +1787,7 @@ export class DeepZoomImage extends PIXI.Container {
this.shadow = shadow
this.world = world
this.useWorker = useWorker
- this.resolution = highResolution
- ? Math.round(window.devicePixelRatio)
- : 1
+ this.resolution = highResolution ? Math.round(window.devicePixelRatio) : 1
this.alpha = alpha
this.fastLoads = 0
this.active = true
@@ -2000,7 +1977,7 @@ export class DeepZoomImage extends PIXI.Container {
**/
get maxScale() {
let delta = this.info.maxLevel - this.info.baseLevel
- return Math.pow(2, delta) / this.resolution * 2
+ return (Math.pow(2, delta) / this.resolution) * 2
}
/** Getter for the current width.
@@ -2015,7 +1992,6 @@ export class DeepZoomImage extends PIXI.Container {
return this.pixelSize[1]
}
-
/* Overrides PIXI.Container.hitArea()
* Allows to optimize the hit testing. Container with hit areas are directly
* hit tested without consideration of children.
@@ -2085,7 +2061,7 @@ export class DeepZoomImage extends PIXI.Container {
}
worldBounds() {
- let viewBounds = this.app.scene.bounds || this.app.scene.getBounds()
+ let viewBounds = this.app.scene.bounds || this.app.scene.getBounds()
// Using getBounds extends visible scope after loading tiles and leads
// to excessive loading. So we prefer bounds over getBounds()
if (this.world != null) {
@@ -2123,11 +2099,7 @@ export class DeepZoomImage extends PIXI.Container {
let topLeft = tiles.toLocal(worldTopLeft)
let bottomRight = tiles.toLocal(worldBottomRight)
tiles._centerPoint = tilesCenter
- let bounds = new PIXI.Rectangle(
- topLeft.x,
- topLeft.y,
- bottomRight.x - topLeft.x,
- bottomRight.y - topLeft.y)
+ let bounds = new PIXI.Rectangle(topLeft.x, topLeft.y, bottomRight.x - topLeft.x, bottomRight.y - topLeft.y)
tiles._boundsRect = bounds
@@ -2172,9 +2144,6 @@ export class DeepZoomImage extends PIXI.Container {
return { centerCol, centerRow, needed }
}
-
-
-
/** Returns all changed tiles for a given level.
* @param {Tiles} tiles - the grid of tiles
* @param {number} level - The zoom level of the grid
@@ -2227,8 +2196,7 @@ export class DeepZoomImage extends PIXI.Container {
* @param {PIXI.Point} about - point of interaction
*/
populateTiles(tiles, level, { onlyone = false, about = null } = {}) {
- if (tiles.isComplete())
- return
+ if (tiles.isComplete()) return
let referenceCol = -1
let referenceRow = -1
let { centerCol, centerRow, changed } = this.changedTiles(tiles, level)
@@ -2239,8 +2207,7 @@ export class DeepZoomImage extends PIXI.Container {
let scaledTileSize = tiles.tileSize * tiles.tileScale
referenceCol = Math.floor(refPoint.x / scaledTileSize)
referenceRow = Math.floor(refPoint.y / scaledTileSize)
- }
- else {
+ } else {
referenceCol = centerCol
referenceRow = centerRow
}
@@ -2278,17 +2245,7 @@ export class DeepZoomImage extends PIXI.Container {
let [cols, rows, w, h] = this.info.dimensions(level)
let increasedLevels = level - this.info.baseLevel
let invScale = Math.pow(0.5, increasedLevels)
- let tiles = new Tiles(
- level,
- this,
- invScale,
- cols,
- rows,
- w,
- h,
- this.info.tileSize,
- this.info.overlap
- )
+ let tiles = new Tiles(level, this, invScale, cols, rows, w, h, this.info.tileSize, this.info.overlap)
this.addTiles(key, tiles)
if (this.info.clip) {
let rest = this.info.rests[level]
@@ -2391,7 +2348,6 @@ export class DeepZoomImage extends PIXI.Container {
})
}
-
/**
* Destroy tiles in all layers that are no longer needed
*
@@ -2436,8 +2392,8 @@ export class DeepZoomImage extends PIXI.Container {
}
/* Tint all tiles
- * @param {number} level - The zoom level of the grid
- */
+ * @param {number} level - The zoom level of the grid
+ */
tintTilesBelowLevel(level) {
Object.keys(this.tileLayers).forEach(key => {
let tiles = this.tileLayers[key]
@@ -2449,7 +2405,7 @@ export class DeepZoomImage extends PIXI.Container {
/**
* Ensure that the given tiles layer is the topmost one and visible.
- * @param {*} tiles
+ * @param {*} tiles
*/
bringTilesToFront(tiles) {
this.tileContainer.addChild(tiles)
@@ -2483,8 +2439,7 @@ export class DeepZoomImage extends PIXI.Container {
})
if (this.fastLoads == 3) {
this.fastLoads = 0
- }
- else {
+ } else {
return
}
}
@@ -2512,10 +2467,10 @@ export class DeepZoomImage extends PIXI.Container {
}
/**
- *Activates the textures on the DeepZoomImage.
- *
- * @memberof DeepZoomImage
- */
+ *Activates the textures on the DeepZoomImage.
+ *
+ * @memberof DeepZoomImage
+ */
activate() {
this.active = true
this.destroyTilesAboveLevel(this.currentLevel)
@@ -2524,10 +2479,10 @@ export class DeepZoomImage extends PIXI.Container {
}
/**
- *Dectivates the textures on the DeepZoomImage.
- *
- * @memberof DeepZoomImage
- */
+ *Dectivates the textures on the DeepZoomImage.
+ *
+ * @memberof DeepZoomImage
+ */
deactivate() {
this.active = false
this.destroyAllTiles()
@@ -2557,7 +2512,7 @@ export class DeepZoomImage extends PIXI.Container {
diff --git a/doc/out/pixi_flippable.js.html b/doc/out/pixi_flippable.js.html
index 3b8792f..3c24122 100644
--- a/doc/out/pixi_flippable.js.html
+++ b/doc/out/pixi_flippable.js.html
@@ -267,10 +267,6 @@
Methods
- - _stackHorizontal
-
- - _stackVertical
-
- capture
- hide
@@ -279,8 +275,6 @@
- show
- - stack
-
@@ -1912,7 +1906,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 67acfce..988fa8d 100644
--- a/doc/out/pixi_labeledgraphics.js.html
+++ b/doc/out/pixi_labeledgraphics.js.html
@@ -267,10 +267,6 @@
Methods
- - _stackHorizontal
-
- - _stackVertical
-
- capture
- hide
@@ -279,8 +275,6 @@
- show
- - stack
-
@@ -1861,7 +1855,7 @@ export class BitmapLabeledGraphics extends LabeledGraphics {
diff --git a/doc/out/pixi_list.js.html b/doc/out/pixi_list.js.html
index 724d866..a3db605 100644
--- a/doc/out/pixi_list.js.html
+++ b/doc/out/pixi_list.js.html
@@ -267,10 +267,6 @@
Methods
- - _stackHorizontal
-
- - _stackVertical
-
- capture
- hide
@@ -279,8 +275,6 @@
- show
- - stack
-
@@ -1840,7 +1834,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 1c0f50d..01f8a7a 100644
--- a/doc/out/pixi_message.js.html
+++ b/doc/out/pixi_message.js.html
@@ -267,10 +267,6 @@
Methods
- - _stackHorizontal
-
- - _stackVertical
-
- capture
- hide
@@ -279,8 +275,6 @@
- show
- - stack
-
@@ -1589,7 +1583,7 @@ export default class Message extends InteractivePopup {
diff --git a/doc/out/pixi_modal.js.html b/doc/out/pixi_modal.js.html
index 5258e05..d715c1b 100644
--- a/doc/out/pixi_modal.js.html
+++ b/doc/out/pixi_modal.js.html
@@ -267,10 +267,6 @@
Methods
- - _stackHorizontal
-
- - _stackVertical
-
- capture
- hide
@@ -279,8 +275,6 @@
- show
- - stack
-
@@ -1670,7 +1664,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 a735a45..344c2a7 100644
--- a/doc/out/pixi_popup.js.html
+++ b/doc/out/pixi_popup.js.html
@@ -267,10 +267,6 @@
Methods
- - _stackHorizontal
-
- - _stackVertical
-
- capture
- hide
@@ -279,8 +275,6 @@
- show
- - stack
-
@@ -1680,7 +1674,7 @@ export default class Popup extends InteractivePopup {
diff --git a/doc/out/pixi_popupmenu.js.html b/doc/out/pixi_popupmenu.js.html
index 1f064b6..58ecc4e 100644
--- a/doc/out/pixi_popupmenu.js.html
+++ b/doc/out/pixi_popupmenu.js.html
@@ -267,10 +267,6 @@
Methods
- - _stackHorizontal
-
- - _stackVertical
-
- capture
- hide
@@ -279,8 +275,6 @@
- show
- - stack
-
@@ -1583,7 +1577,7 @@ export default class PopupMenu extends Popup {
diff --git a/doc/out/pixi_progress.js.html b/doc/out/pixi_progress.js.html
index 18c81e2..f0da032 100644
--- a/doc/out/pixi_progress.js.html
+++ b/doc/out/pixi_progress.js.html
@@ -267,10 +267,6 @@
Methods
- - _stackHorizontal
-
- - _stackVertical
-
- capture
- hide
@@ -279,8 +275,6 @@
- show
- - stack
-
@@ -1765,7 +1759,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 4b0de8c..affaa5b 100644
--- a/doc/out/pixi_scrollview.js.html
+++ b/doc/out/pixi_scrollview.js.html
@@ -267,10 +267,6 @@
Methods
- - _stackHorizontal
-
- - _stackVertical
-
- capture
- hide
@@ -279,8 +275,6 @@
- show
- - stack
-
@@ -1524,7 +1518,7 @@ export default class Scrollview extends Scrollbox {
diff --git a/doc/out/pixi_slider.js.html b/doc/out/pixi_slider.js.html
index b29ae90..addc267 100644
--- a/doc/out/pixi_slider.js.html
+++ b/doc/out/pixi_slider.js.html
@@ -267,10 +267,6 @@
Methods
- - _stackHorizontal
-
- - _stackVertical
-
- capture
- hide
@@ -279,8 +275,6 @@
- show
- - stack
-
@@ -1929,7 +1923,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 b21356f..9b1cf54 100644
--- a/doc/out/pixi_switch.js.html
+++ b/doc/out/pixi_switch.js.html
@@ -267,10 +267,6 @@
Methods
- - _stackHorizontal
-
- - _stackVertical
-
- capture
- hide
@@ -279,8 +275,6 @@
- show
- - stack
-
@@ -1983,7 +1977,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 8bfa9b1..35a531a 100644
--- a/doc/out/pixi_theme.js.html
+++ b/doc/out/pixi_theme.js.html
@@ -267,10 +267,6 @@
Methods
- - _stackHorizontal
-
- - _stackVertical
-
- capture
- hide
@@ -279,8 +275,6 @@
- show
- - stack
-
@@ -1724,7 +1718,7 @@ export class ThemeRed extends Theme {
diff --git a/doc/out/pixi_tooltip.js.html b/doc/out/pixi_tooltip.js.html
index 886be01..a310d8c 100644
--- a/doc/out/pixi_tooltip.js.html
+++ b/doc/out/pixi_tooltip.js.html
@@ -267,10 +267,6 @@
Methods
- - _stackHorizontal
-
- - _stackVertical
-
- capture
- hide
@@ -279,8 +275,6 @@
- show
- - stack
-
@@ -1617,7 +1611,7 @@ export default class Tooltip extends AbstractPopup {
diff --git a/doc/out/pixi_volatile.js.html b/doc/out/pixi_volatile.js.html
index aa9652d..6595e4f 100644
--- a/doc/out/pixi_volatile.js.html
+++ b/doc/out/pixi_volatile.js.html
@@ -267,10 +267,6 @@
Methods
- - _stackHorizontal
-
- - _stackVertical
-
- capture
- hide
@@ -279,8 +275,6 @@
- show
- - stack
-
@@ -1621,7 +1615,7 @@ export default class Volatile {
diff --git a/doc/out/uitest.js.html b/doc/out/uitest.js.html
index 6b96098..b40d559 100644
--- a/doc/out/uitest.js.html
+++ b/doc/out/uitest.js.html
@@ -267,10 +267,6 @@
Methods
- - _stackHorizontal
-
- - _stackVertical
-
- capture
- hide
@@ -279,8 +275,6 @@
- show
- - stack
-
@@ -2472,7 +2466,7 @@ class Event {
diff --git a/lib/pixi/button.html b/lib/pixi/button.html
index 1ef9371..49d9f65 100644
--- a/lib/pixi/button.html
+++ b/lib/pixi/button.html
@@ -32,7 +32,7 @@
const app = new PIXIApp({
view: canvas,
width: 900,
- height: 520,
+ height: 600,
transparent: false
}).setup().run()
@@ -309,6 +309,17 @@ setInterval(() => {
button25.layout()
}, 1000)
+const button26 = new Button({
+ x: 10,
+ y: 520,
+ label: 'add',
+ type: 'checkbox',
+ strokeActive: 0x28a745,
+ textStyleActive: {
+ fill: 0x28a745
+ }
+})
+
app.scene.addChild(button1, button2, button3, button4, button5, button6)
app.scene.addChild(button7, button8)
app.scene.addChild(button9, button10, button11)
@@ -316,6 +327,7 @@ app.scene.addChild(button12, button13)
app.scene.addChild(button14, button15, button16, button17)
app.scene.addChild(button18, button19, button20, button21)
app.scene.addChild(button22, button23, button24, button25)
+app.scene.addChild(button26)