babylonjs-gui 5.0.0-alpha.55 → 5.0.0-alpha.59
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 +29 -21
- package/babylon.gui.js.map +1 -1
- package/babylon.gui.min.js +1 -1
- package/babylon.gui.module.d.ts +24 -0
- package/package.json +2 -2
package/babylon.gui.js
CHANGED
|
@@ -97,9 +97,9 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
97
97
|
/******/ ({
|
|
98
98
|
|
|
99
99
|
/***/ "../../node_modules/tslib/tslib.es6.js":
|
|
100
|
-
|
|
101
|
-
!*** C:/
|
|
102
|
-
|
|
100
|
+
/*!************************************************************************************!*\
|
|
101
|
+
!*** C:/Users/raweber/Documents/GitHub/Babylon.js/node_modules/tslib/tslib.es6.js ***!
|
|
102
|
+
\************************************************************************************/
|
|
103
103
|
/*! exports provided: __extends, __assign, __rest, __decorate, __param, __metadata, __awaiter, __generator, __createBinding, __exportStar, __values, __read, __spread, __spreadArrays, __spreadArray, __await, __asyncGenerator, __asyncDelegator, __asyncValues, __makeTemplateObject, __importStar, __importDefault, __classPrivateFieldGet, __classPrivateFieldSet */
|
|
104
104
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
105
105
|
|
|
@@ -908,6 +908,14 @@ var AdvancedDynamicTexture = /** @class */ (function (_super) {
|
|
|
908
908
|
return this._rootContainer.getDescendants(directDescendantsOnly, predicate);
|
|
909
909
|
};
|
|
910
910
|
/**
|
|
911
|
+
* Will return all controls with the given type name
|
|
912
|
+
* @param typeName defines the type name to search for
|
|
913
|
+
* @returns an array of all controls found
|
|
914
|
+
*/
|
|
915
|
+
AdvancedDynamicTexture.prototype.getControlsByType = function (typeName) {
|
|
916
|
+
return this._rootContainer.getDescendants(false, function (control) { return control.typeName === typeName; });
|
|
917
|
+
};
|
|
918
|
+
/**
|
|
911
919
|
* Will return the first control with the given name
|
|
912
920
|
* @param name defines the name to search for
|
|
913
921
|
* @return the first control found or null
|
|
@@ -21332,11 +21340,11 @@ var FluentMaterial = /** @class */ (function (_super) {
|
|
|
21332
21340
|
return true;
|
|
21333
21341
|
}
|
|
21334
21342
|
}
|
|
21335
|
-
if (!subMesh.
|
|
21343
|
+
if (!subMesh.materialDefines) {
|
|
21336
21344
|
subMesh.materialDefines = new FluentMaterialDefines();
|
|
21337
21345
|
}
|
|
21338
21346
|
var scene = this.getScene();
|
|
21339
|
-
var defines = subMesh.
|
|
21347
|
+
var defines = subMesh.materialDefines;
|
|
21340
21348
|
if (!this.checkReadyOnEveryCall && subMesh.effect) {
|
|
21341
21349
|
if (defines._renderId === scene.getRenderId()) {
|
|
21342
21350
|
return true;
|
|
@@ -21402,7 +21410,7 @@ var FluentMaterial = /** @class */ (function (_super) {
|
|
|
21402
21410
|
};
|
|
21403
21411
|
FluentMaterial.prototype.bindForSubMesh = function (world, mesh, subMesh) {
|
|
21404
21412
|
var scene = this.getScene();
|
|
21405
|
-
var defines = subMesh.
|
|
21413
|
+
var defines = subMesh.materialDefines;
|
|
21406
21414
|
if (!defines) {
|
|
21407
21415
|
return;
|
|
21408
21416
|
}
|
|
@@ -21764,10 +21772,10 @@ var FluentBackplateMaterial = /** @class */ (function (_super) {
|
|
|
21764
21772
|
return true;
|
|
21765
21773
|
}
|
|
21766
21774
|
}
|
|
21767
|
-
if (!subMesh.
|
|
21775
|
+
if (!subMesh.materialDefines) {
|
|
21768
21776
|
subMesh.materialDefines = new FluentBackplateMaterialDefines();
|
|
21769
21777
|
}
|
|
21770
|
-
var defines = subMesh.
|
|
21778
|
+
var defines = subMesh.materialDefines;
|
|
21771
21779
|
var scene = this.getScene();
|
|
21772
21780
|
if (this._isReadyForSubMesh(subMesh)) {
|
|
21773
21781
|
return true;
|
|
@@ -21848,7 +21856,7 @@ var FluentBackplateMaterial = /** @class */ (function (_super) {
|
|
|
21848
21856
|
};
|
|
21849
21857
|
FluentBackplateMaterial.prototype.bindForSubMesh = function (world, mesh, subMesh) {
|
|
21850
21858
|
var _a, _b;
|
|
21851
|
-
var defines = subMesh.
|
|
21859
|
+
var defines = subMesh.materialDefines;
|
|
21852
21860
|
if (!defines) {
|
|
21853
21861
|
return;
|
|
21854
21862
|
}
|
|
@@ -22318,10 +22326,10 @@ var FluentButtonMaterial = /** @class */ (function (_super) {
|
|
|
22318
22326
|
return true;
|
|
22319
22327
|
}
|
|
22320
22328
|
}
|
|
22321
|
-
if (!subMesh.
|
|
22329
|
+
if (!subMesh.materialDefines) {
|
|
22322
22330
|
subMesh.materialDefines = new FluentButtonMaterialDefines();
|
|
22323
22331
|
}
|
|
22324
|
-
var defines = subMesh.
|
|
22332
|
+
var defines = subMesh.materialDefines;
|
|
22325
22333
|
var scene = this.getScene();
|
|
22326
22334
|
if (this._isReadyForSubMesh(subMesh)) {
|
|
22327
22335
|
return true;
|
|
@@ -22440,7 +22448,7 @@ var FluentButtonMaterial = /** @class */ (function (_super) {
|
|
|
22440
22448
|
};
|
|
22441
22449
|
FluentButtonMaterial.prototype.bindForSubMesh = function (world, mesh, subMesh) {
|
|
22442
22450
|
var scene = this.getScene();
|
|
22443
|
-
var defines = subMesh.
|
|
22451
|
+
var defines = subMesh.materialDefines;
|
|
22444
22452
|
if (!defines) {
|
|
22445
22453
|
return;
|
|
22446
22454
|
}
|
|
@@ -23164,10 +23172,10 @@ var MRDLBackplateMaterial = /** @class */ (function (_super) {
|
|
|
23164
23172
|
return true;
|
|
23165
23173
|
}
|
|
23166
23174
|
}
|
|
23167
|
-
if (!subMesh.
|
|
23175
|
+
if (!subMesh.materialDefines) {
|
|
23168
23176
|
subMesh.materialDefines = new MRDLBackplateMaterialDefines();
|
|
23169
23177
|
}
|
|
23170
|
-
var defines = subMesh.
|
|
23178
|
+
var defines = subMesh.materialDefines;
|
|
23171
23179
|
var scene = this.getScene();
|
|
23172
23180
|
if (this._isReadyForSubMesh(subMesh)) {
|
|
23173
23181
|
return true;
|
|
@@ -23246,7 +23254,7 @@ var MRDLBackplateMaterial = /** @class */ (function (_super) {
|
|
|
23246
23254
|
return true;
|
|
23247
23255
|
};
|
|
23248
23256
|
MRDLBackplateMaterial.prototype.bindForSubMesh = function (world, mesh, subMesh) {
|
|
23249
|
-
var defines = subMesh.
|
|
23257
|
+
var defines = subMesh.materialDefines;
|
|
23250
23258
|
if (!defines) {
|
|
23251
23259
|
return;
|
|
23252
23260
|
}
|
|
@@ -23779,10 +23787,10 @@ var MRDLSliderBarMaterial = /** @class */ (function (_super) {
|
|
|
23779
23787
|
return true;
|
|
23780
23788
|
}
|
|
23781
23789
|
}
|
|
23782
|
-
if (!subMesh.
|
|
23790
|
+
if (!subMesh.materialDefines) {
|
|
23783
23791
|
subMesh.materialDefines = new MRDLSliderBarMaterialDefines();
|
|
23784
23792
|
}
|
|
23785
|
-
var defines = subMesh.
|
|
23793
|
+
var defines = subMesh.materialDefines;
|
|
23786
23794
|
var scene = this.getScene();
|
|
23787
23795
|
if (this._isReadyForSubMesh(subMesh)) {
|
|
23788
23796
|
return true;
|
|
@@ -23869,7 +23877,7 @@ var MRDLSliderBarMaterial = /** @class */ (function (_super) {
|
|
|
23869
23877
|
return true;
|
|
23870
23878
|
};
|
|
23871
23879
|
MRDLSliderBarMaterial.prototype.bindForSubMesh = function (world, mesh, subMesh) {
|
|
23872
|
-
var defines = subMesh.
|
|
23880
|
+
var defines = subMesh.materialDefines;
|
|
23873
23881
|
if (!defines) {
|
|
23874
23882
|
return;
|
|
23875
23883
|
}
|
|
@@ -24584,10 +24592,10 @@ var MRDLSliderThumbMaterial = /** @class */ (function (_super) {
|
|
|
24584
24592
|
return true;
|
|
24585
24593
|
}
|
|
24586
24594
|
}
|
|
24587
|
-
if (!subMesh.
|
|
24595
|
+
if (!subMesh.materialDefines) {
|
|
24588
24596
|
subMesh.materialDefines = new MRDLSliderThumbMaterialDefines();
|
|
24589
24597
|
}
|
|
24590
|
-
var defines = subMesh.
|
|
24598
|
+
var defines = subMesh.materialDefines;
|
|
24591
24599
|
var scene = this.getScene();
|
|
24592
24600
|
if (this._isReadyForSubMesh(subMesh)) {
|
|
24593
24601
|
return true;
|
|
@@ -24674,7 +24682,7 @@ var MRDLSliderThumbMaterial = /** @class */ (function (_super) {
|
|
|
24674
24682
|
return true;
|
|
24675
24683
|
};
|
|
24676
24684
|
MRDLSliderThumbMaterial.prototype.bindForSubMesh = function (world, mesh, subMesh) {
|
|
24677
|
-
var defines = subMesh.
|
|
24685
|
+
var defines = subMesh.materialDefines;
|
|
24678
24686
|
if (!defines) {
|
|
24679
24687
|
return;
|
|
24680
24688
|
}
|