babylonjs-gui 5.0.0-beta.7 → 5.0.0-beta.8
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/babylon.gui.js +24 -0
- package/babylon.gui.js.map +1 -1
- package/babylon.gui.min.js +1 -1
- package/babylon.gui.module.d.ts +22 -0
- package/package.json +2 -2
package/babylon.gui.js
CHANGED
|
@@ -1777,6 +1777,23 @@ var AdvancedDynamicTexture = /** @class */ (function (_super) {
|
|
|
1777
1777
|
result.attach();
|
|
1778
1778
|
return result;
|
|
1779
1779
|
};
|
|
1780
|
+
/**
|
|
1781
|
+
* Scales the texture
|
|
1782
|
+
* @param ratio the scale factor to apply to both width and height
|
|
1783
|
+
*/
|
|
1784
|
+
AdvancedDynamicTexture.prototype.scale = function (ratio) {
|
|
1785
|
+
_super.prototype.scale.call(this, ratio);
|
|
1786
|
+
this.markAsDirty();
|
|
1787
|
+
};
|
|
1788
|
+
/**
|
|
1789
|
+
* Resizes the texture
|
|
1790
|
+
* @param width the new width
|
|
1791
|
+
* @param height the new height
|
|
1792
|
+
*/
|
|
1793
|
+
AdvancedDynamicTexture.prototype.scaleTo = function (width, height) {
|
|
1794
|
+
_super.prototype.scaleTo.call(this, width, height);
|
|
1795
|
+
this.markAsDirty();
|
|
1796
|
+
};
|
|
1780
1797
|
/** Define the Uurl to load snippets */
|
|
1781
1798
|
AdvancedDynamicTexture.SnippetUrl = "https://snippet.babylonjs.com";
|
|
1782
1799
|
/** Indicates if some optimizations can be performed in GUI GPU management (the downside is additional memory/GPU texture memory used) */
|
|
@@ -5361,6 +5378,9 @@ var Control = /** @class */ (function () {
|
|
|
5361
5378
|
this._markAsDirty();
|
|
5362
5379
|
// if this control or any of it's descendants are under a pointer, we need to fire a pointerOut event
|
|
5363
5380
|
var recursivelyFirePointerOut = function (control) {
|
|
5381
|
+
if (!control.host) {
|
|
5382
|
+
return;
|
|
5383
|
+
}
|
|
5364
5384
|
for (var pointer in control.host._lastControlOver) {
|
|
5365
5385
|
if (control === _this.host._lastControlOver[pointer]) {
|
|
5366
5386
|
control._onPointerOut(control, null, true);
|
|
@@ -18346,6 +18366,10 @@ var HolographicSlate = /** @class */ (function (_super) {
|
|
|
18346
18366
|
*/
|
|
18347
18367
|
HolographicSlate.prototype._applyFacade = function (facadeTexture) {
|
|
18348
18368
|
this._contentMaterial.albedoTexture = facadeTexture;
|
|
18369
|
+
// We should have a content plate by this point, but check for safety
|
|
18370
|
+
if (this._contentPlate) {
|
|
18371
|
+
facadeTexture.attachToMesh(this._contentPlate, true);
|
|
18372
|
+
}
|
|
18349
18373
|
};
|
|
18350
18374
|
HolographicSlate.prototype._rebuildContent = function () {
|
|
18351
18375
|
this._disposeFacadeTexture();
|