laymur 0.3.22 → 0.3.23
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/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist/layers/UIFullscreenLayer.d.ts +2 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -6851,7 +6851,7 @@ class UIFullscreenLayer extends UILayer {
|
|
|
6851
6851
|
/**
|
|
6852
6852
|
* Creates a fullscreen layer and sets up window event listeners.
|
|
6853
6853
|
*/
|
|
6854
|
-
constructor(resizePolicy = new UIResizePolicyNone()) {
|
|
6854
|
+
constructor(resizePolicy = new UIResizePolicyNone(), mode = UIMode.VISIBLE) {
|
|
6855
6855
|
super(window.innerWidth, window.innerHeight);
|
|
6856
6856
|
/**
|
|
6857
6857
|
* Handles window resize. Updates layer dimensions according to resize policy.
|
|
@@ -6879,6 +6879,7 @@ class UIFullscreenLayer extends UILayer {
|
|
|
6879
6879
|
};
|
|
6880
6880
|
window.addEventListener("resize", this._private_onResize);
|
|
6881
6881
|
window.addEventListener("pointerdown", this._private_onClick);
|
|
6882
|
+
this.mode = mode;
|
|
6882
6883
|
this._private_resizePolicyInternal = resizePolicy;
|
|
6883
6884
|
this._private_resizePolicyInternal.on(UIResizePolicyEvent.CHANGE, this._private_onResize);
|
|
6884
6885
|
this._private_onResize();
|