|
@@ -1,14 +1,22 @@
|
|
|
-/// <reference path="../../dist/preview release/babylon.d.ts"/>
|
|
|
+var BABYLON = BABYLON || (typeof require !== 'undefined' && require("babylonjs"));
|
|
|
+var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
|
+var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
|
+if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
|
+else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
|
+return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
|
+};
|
|
|
var __extends = (this && this.__extends) || (function () {
|
|
|
- var extendStatics = Object.setPrototypeOf ||
|
|
|
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
|
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
|
- return function (d, b) {
|
|
|
- extendStatics(d, b);
|
|
|
- function __() { this.constructor = d; }
|
|
|
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
|
- };
|
|
|
-})();
|
|
|
+ var extendStatics = Object.setPrototypeOf ||
|
|
|
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
|
+ function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
|
+ return function (d, b) {
|
|
|
+ extendStatics(d, b);
|
|
|
+ function __() { this.constructor = d; }
|
|
|
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
|
+ };
|
|
|
+ })();
|
|
|
+ /// <reference path="../../dist/preview release/babylon.d.ts"/>
|
|
|
+
|
|
|
var BABYLON;
|
|
|
(function (BABYLON) {
|
|
|
var GUI;
|
|
@@ -125,7 +133,7 @@ var BABYLON;
|
|
|
return this._focusedControl;
|
|
|
},
|
|
|
set: function (control) {
|
|
|
- if (this._focusedControl === control) {
|
|
|
+ if (this._focusedControl == control) {
|
|
|
return;
|
|
|
}
|
|
|
if (!this._focusedControl) {
|
|
@@ -291,15 +299,7 @@ var BABYLON;
|
|
|
this._lastControlOver = null;
|
|
|
}
|
|
|
}
|
|
|
- // Focus management
|
|
|
- if (this._focusedControl) {
|
|
|
- if (this._focusedControl !== this._lastPickedControl) {
|
|
|
- if (this._lastPickedControl.isFocusInvisible) {
|
|
|
- return;
|
|
|
- }
|
|
|
- this.focusedControl = null;
|
|
|
- }
|
|
|
- }
|
|
|
+ this._manageFocus();
|
|
|
};
|
|
|
AdvancedDynamicTexture.prototype.attach = function () {
|
|
|
var _this = this;
|
|
@@ -341,6 +341,7 @@ var BABYLON;
|
|
|
_this._lastControlDown.forcePointerUp();
|
|
|
}
|
|
|
_this._lastControlDown = null;
|
|
|
+ _this.focusedControl = null;
|
|
|
}
|
|
|
else if (pi.type === BABYLON.PointerEventTypes.POINTERMOVE) {
|
|
|
if (_this._lastControlOver) {
|
|
@@ -352,6 +353,17 @@ var BABYLON;
|
|
|
mesh.enablePointerMoveEvents = supportPointerMove;
|
|
|
this._attachToOnPointerOut(scene);
|
|
|
};
|
|
|
+ AdvancedDynamicTexture.prototype._manageFocus = function () {
|
|
|
+ // Focus management
|
|
|
+ if (this._focusedControl) {
|
|
|
+ if (this._focusedControl !== this._lastPickedControl) {
|
|
|
+ if (this._lastPickedControl.isFocusInvisible) {
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ this.focusedControl = null;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ };
|
|
|
AdvancedDynamicTexture.prototype._attachToOnPointerOut = function (scene) {
|
|
|
var _this = this;
|
|
|
this._canvasPointerOutObserver = scene.getEngine().onCanvasPointerOutObservable.add(function () {
|
|
@@ -699,6 +711,7 @@ var BABYLON;
|
|
|
this._zIndex = 0;
|
|
|
this._currentMeasure = GUI.Measure.Empty();
|
|
|
this._fontFamily = "Arial";
|
|
|
+ this._fontStyle = "";
|
|
|
this._fontSize = new GUI.ValueAndUnit(18, GUI.ValueAndUnit.UNITMODE_PIXEL, false);
|
|
|
this._width = new GUI.ValueAndUnit(1, GUI.ValueAndUnit.UNITMODE_PERCENTAGE, false);
|
|
|
this._height = new GUI.ValueAndUnit(1, GUI.ValueAndUnit.UNITMODE_PERCENTAGE, false);
|
|
@@ -934,6 +947,20 @@ var BABYLON;
|
|
|
enumerable: true,
|
|
|
configurable: true
|
|
|
});
|
|
|
+ Object.defineProperty(Control.prototype, "fontStyle", {
|
|
|
+ get: function () {
|
|
|
+ return this._fontStyle;
|
|
|
+ },
|
|
|
+ set: function (value) {
|
|
|
+ if (this._fontStyle === value) {
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ this._fontStyle = value;
|
|
|
+ this._fontSet = true;
|
|
|
+ },
|
|
|
+ enumerable: true,
|
|
|
+ configurable: true
|
|
|
+ });
|
|
|
Object.defineProperty(Control.prototype, "fontSize", {
|
|
|
get: function () {
|
|
|
return this._fontSize.toString(this._host);
|
|
@@ -1484,7 +1511,7 @@ var BABYLON;
|
|
|
if (!this._font && !this._fontSet) {
|
|
|
return;
|
|
|
}
|
|
|
- this._font = this._fontSize.getValue(this._host) + "px " + this._fontFamily;
|
|
|
+ this._font = this._fontStyle + " " + this._fontSize.getValue(this._host) + "px " + this._fontFamily;
|
|
|
this._fontOffset = Control._GetFontOffset(this._font);
|
|
|
};
|
|
|
Control.prototype.dispose = function () {
|
|
@@ -1620,16 +1647,7 @@ var BABYLON;
|
|
|
//# sourceMappingURL=control.js.map
|
|
|
|
|
|
/// <reference path="../../../dist/preview release/babylon.d.ts"/>
|
|
|
-var __extends = (this && this.__extends) || (function () {
|
|
|
- var extendStatics = Object.setPrototypeOf ||
|
|
|
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
|
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
|
- return function (d, b) {
|
|
|
- extendStatics(d, b);
|
|
|
- function __() { this.constructor = d; }
|
|
|
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
|
- };
|
|
|
-})();
|
|
|
+
|
|
|
var BABYLON;
|
|
|
(function (BABYLON) {
|
|
|
var GUI;
|
|
@@ -1800,16 +1818,7 @@ var BABYLON;
|
|
|
//# sourceMappingURL=container.js.map
|
|
|
|
|
|
/// <reference path="../../../dist/preview release/babylon.d.ts"/>
|
|
|
-var __extends = (this && this.__extends) || (function () {
|
|
|
- var extendStatics = Object.setPrototypeOf ||
|
|
|
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
|
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
|
- return function (d, b) {
|
|
|
- extendStatics(d, b);
|
|
|
- function __() { this.constructor = d; }
|
|
|
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
|
- };
|
|
|
-})();
|
|
|
+
|
|
|
var BABYLON;
|
|
|
(function (BABYLON) {
|
|
|
var GUI;
|
|
@@ -1951,16 +1960,7 @@ var BABYLON;
|
|
|
//# sourceMappingURL=stackPanel.js.map
|
|
|
|
|
|
/// <reference path="../../../dist/preview release/babylon.d.ts"/>
|
|
|
-var __extends = (this && this.__extends) || (function () {
|
|
|
- var extendStatics = Object.setPrototypeOf ||
|
|
|
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
|
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
|
- return function (d, b) {
|
|
|
- extendStatics(d, b);
|
|
|
- function __() { this.constructor = d; }
|
|
|
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
|
- };
|
|
|
-})();
|
|
|
+
|
|
|
var BABYLON;
|
|
|
(function (BABYLON) {
|
|
|
var GUI;
|
|
@@ -2076,16 +2076,7 @@ var BABYLON;
|
|
|
//# sourceMappingURL=rectangle.js.map
|
|
|
|
|
|
/// <reference path="../../../dist/preview release/babylon.d.ts"/>
|
|
|
-var __extends = (this && this.__extends) || (function () {
|
|
|
- var extendStatics = Object.setPrototypeOf ||
|
|
|
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
|
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
|
- return function (d, b) {
|
|
|
- extendStatics(d, b);
|
|
|
- function __() { this.constructor = d; }
|
|
|
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
|
- };
|
|
|
-})();
|
|
|
+
|
|
|
var BABYLON;
|
|
|
(function (BABYLON) {
|
|
|
var GUI;
|
|
@@ -2151,16 +2142,7 @@ var BABYLON;
|
|
|
//# sourceMappingURL=ellipse.js.map
|
|
|
|
|
|
/// <reference path="../../../dist/preview release/babylon.d.ts"/>
|
|
|
-var __extends = (this && this.__extends) || (function () {
|
|
|
- var extendStatics = Object.setPrototypeOf ||
|
|
|
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
|
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
|
- return function (d, b) {
|
|
|
- extendStatics(d, b);
|
|
|
- function __() { this.constructor = d; }
|
|
|
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
|
- };
|
|
|
-})();
|
|
|
+
|
|
|
var BABYLON;
|
|
|
(function (BABYLON) {
|
|
|
var GUI;
|
|
@@ -2360,16 +2342,7 @@ var BABYLON;
|
|
|
//# sourceMappingURL=line.js.map
|
|
|
|
|
|
/// <reference path="../../../dist/preview release/babylon.d.ts"/>
|
|
|
-var __extends = (this && this.__extends) || (function () {
|
|
|
- var extendStatics = Object.setPrototypeOf ||
|
|
|
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
|
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
|
- return function (d, b) {
|
|
|
- extendStatics(d, b);
|
|
|
- function __() { this.constructor = d; }
|
|
|
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
|
- };
|
|
|
-})();
|
|
|
+
|
|
|
var BABYLON;
|
|
|
(function (BABYLON) {
|
|
|
var GUI;
|
|
@@ -2564,16 +2537,7 @@ var BABYLON;
|
|
|
//# sourceMappingURL=slider.js.map
|
|
|
|
|
|
/// <reference path="../../../dist/preview release/babylon.d.ts"/>
|
|
|
-var __extends = (this && this.__extends) || (function () {
|
|
|
- var extendStatics = Object.setPrototypeOf ||
|
|
|
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
|
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
|
- return function (d, b) {
|
|
|
- extendStatics(d, b);
|
|
|
- function __() { this.constructor = d; }
|
|
|
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
|
- };
|
|
|
-})();
|
|
|
+
|
|
|
var BABYLON;
|
|
|
(function (BABYLON) {
|
|
|
var GUI;
|
|
@@ -2689,16 +2653,7 @@ var BABYLON;
|
|
|
//# sourceMappingURL=checkBox.js.map
|
|
|
|
|
|
/// <reference path="../../../dist/preview release/babylon.d.ts"/>
|
|
|
-var __extends = (this && this.__extends) || (function () {
|
|
|
- var extendStatics = Object.setPrototypeOf ||
|
|
|
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
|
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
|
- return function (d, b) {
|
|
|
- extendStatics(d, b);
|
|
|
- function __() { this.constructor = d; }
|
|
|
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
|
- };
|
|
|
-})();
|
|
|
+
|
|
|
var BABYLON;
|
|
|
(function (BABYLON) {
|
|
|
var GUI;
|
|
@@ -2835,16 +2790,7 @@ var BABYLON;
|
|
|
//# sourceMappingURL=radioButton.js.map
|
|
|
|
|
|
/// <reference path="../../../dist/preview release/babylon.d.ts"/>
|
|
|
-var __extends = (this && this.__extends) || (function () {
|
|
|
- var extendStatics = Object.setPrototypeOf ||
|
|
|
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
|
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
|
- return function (d, b) {
|
|
|
- extendStatics(d, b);
|
|
|
- function __() { this.constructor = d; }
|
|
|
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
|
- };
|
|
|
-})();
|
|
|
+
|
|
|
var BABYLON;
|
|
|
(function (BABYLON) {
|
|
|
var GUI;
|
|
@@ -3021,16 +2967,7 @@ var BABYLON;
|
|
|
//# sourceMappingURL=textBlock.js.map
|
|
|
|
|
|
/// <reference path="../../../dist/preview release/babylon.d.ts"/>
|
|
|
-var __extends = (this && this.__extends) || (function () {
|
|
|
- var extendStatics = Object.setPrototypeOf ||
|
|
|
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
|
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
|
- return function (d, b) {
|
|
|
- extendStatics(d, b);
|
|
|
- function __() { this.constructor = d; }
|
|
|
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
|
- };
|
|
|
-})();
|
|
|
+
|
|
|
var DOMImage = Image;
|
|
|
var BABYLON;
|
|
|
(function (BABYLON) {
|
|
@@ -3273,16 +3210,7 @@ var BABYLON;
|
|
|
//# sourceMappingURL=image.js.map
|
|
|
|
|
|
/// <reference path="../../../dist/preview release/babylon.d.ts"/>
|
|
|
-var __extends = (this && this.__extends) || (function () {
|
|
|
- var extendStatics = Object.setPrototypeOf ||
|
|
|
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
|
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
|
- return function (d, b) {
|
|
|
- extendStatics(d, b);
|
|
|
- function __() { this.constructor = d; }
|
|
|
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
|
- };
|
|
|
-})();
|
|
|
+
|
|
|
var BABYLON;
|
|
|
(function (BABYLON) {
|
|
|
var GUI;
|
|
@@ -3398,16 +3326,7 @@ var BABYLON;
|
|
|
//# sourceMappingURL=button.js.map
|
|
|
|
|
|
/// <reference path="../../../dist/preview release/babylon.d.ts"/>
|
|
|
-var __extends = (this && this.__extends) || (function () {
|
|
|
- var extendStatics = Object.setPrototypeOf ||
|
|
|
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
|
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
|
- return function (d, b) {
|
|
|
- extendStatics(d, b);
|
|
|
- function __() { this.constructor = d; }
|
|
|
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
|
- };
|
|
|
-})();
|
|
|
+
|
|
|
var BABYLON;
|
|
|
(function (BABYLON) {
|
|
|
var GUI;
|
|
@@ -3753,16 +3672,7 @@ var BABYLON;
|
|
|
})(BABYLON || (BABYLON = {}));
|
|
|
|
|
|
/// <reference path="../../../dist/preview release/babylon.d.ts"/>
|
|
|
-var __extends = (this && this.__extends) || (function () {
|
|
|
- var extendStatics = Object.setPrototypeOf ||
|
|
|
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
|
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
|
- return function (d, b) {
|
|
|
- extendStatics(d, b);
|
|
|
- function __() { this.constructor = d; }
|
|
|
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
|
- };
|
|
|
-})();
|
|
|
+
|
|
|
var BABYLON;
|
|
|
(function (BABYLON) {
|
|
|
var GUI;
|
|
@@ -3774,8 +3684,10 @@ var BABYLON;
|
|
|
var _this = _super.call(this, name) || this;
|
|
|
_this.name = name;
|
|
|
_this._text = "";
|
|
|
+ _this._placeholderText = "";
|
|
|
_this._background = "black";
|
|
|
_this._focusedBackground = "black";
|
|
|
+ _this._placeholderColor = "gray";
|
|
|
_this._thickness = 1;
|
|
|
_this._margin = new GUI.ValueAndUnit(10, GUI.ValueAndUnit.UNITMODE_PIXEL);
|
|
|
_this._autoStretchWidth = true;
|
|
@@ -3876,6 +3788,34 @@ var BABYLON;
|
|
|
enumerable: true,
|
|
|
configurable: true
|
|
|
});
|
|
|
+ Object.defineProperty(InputText.prototype, "placeholderColor", {
|
|
|
+ get: function () {
|
|
|
+ return this._placeholderColor;
|
|
|
+ },
|
|
|
+ set: function (value) {
|
|
|
+ if (this._placeholderColor === value) {
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ this._placeholderColor = value;
|
|
|
+ this._markAsDirty();
|
|
|
+ },
|
|
|
+ enumerable: true,
|
|
|
+ configurable: true
|
|
|
+ });
|
|
|
+ Object.defineProperty(InputText.prototype, "placeholderText", {
|
|
|
+ get: function () {
|
|
|
+ return this._placeholderText;
|
|
|
+ },
|
|
|
+ set: function (value) {
|
|
|
+ if (this._placeholderText === value) {
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ this._placeholderText = value;
|
|
|
+ this._markAsDirty();
|
|
|
+ },
|
|
|
+ enumerable: true,
|
|
|
+ configurable: true
|
|
|
+ });
|
|
|
Object.defineProperty(InputText.prototype, "text", {
|
|
|
get: function () {
|
|
|
return this._text;
|
|
@@ -4012,7 +3952,14 @@ var BABYLON;
|
|
|
if (this.color) {
|
|
|
context.fillStyle = this.color;
|
|
|
}
|
|
|
- var textWidth = context.measureText(this._text).width;
|
|
|
+ var text = this._text;
|
|
|
+ if (!this._isFocused && !this._text && this._placeholderText) {
|
|
|
+ text = this._placeholderText;
|
|
|
+ if (this._placeholderColor) {
|
|
|
+ context.fillStyle = this._placeholderColor;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ var textWidth = context.measureText(text).width;
|
|
|
var marginWidth = this._margin.getValueInPixel(this._host, parentMeasure.width) * 2;
|
|
|
if (this._autoStretchWidth) {
|
|
|
this.width = Math.min(this._maxWidth.getValueInPixel(this._host, parentMeasure.width), textWidth + marginWidth) + "px";
|
|
@@ -4032,7 +3979,7 @@ var BABYLON;
|
|
|
else {
|
|
|
this._scrollLeft = clipTextLeft;
|
|
|
}
|
|
|
- context.fillText(this._text, this._scrollLeft, this._currentMeasure.top + rootY);
|
|
|
+ context.fillText(text, this._scrollLeft, this._currentMeasure.top + rootY);
|
|
|
// Cursor
|
|
|
if (this._isFocused) {
|
|
|
if (!this._blinkIsEven) {
|
|
@@ -4092,16 +4039,7 @@ var BABYLON;
|
|
|
})(BABYLON || (BABYLON = {}));
|
|
|
|
|
|
/// <reference path="../../../dist/preview release/babylon.d.ts"/>
|
|
|
-var __extends = (this && this.__extends) || (function () {
|
|
|
- var extendStatics = Object.setPrototypeOf ||
|
|
|
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
|
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
|
- return function (d, b) {
|
|
|
- extendStatics(d, b);
|
|
|
- function __() { this.constructor = d; }
|
|
|
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
|
- };
|
|
|
-})();
|
|
|
+
|
|
|
var BABYLON;
|
|
|
(function (BABYLON) {
|
|
|
var GUI;
|
|
@@ -4215,3 +4153,21 @@ var BABYLON;
|
|
|
GUI.VirtualKeyboard = VirtualKeyboard;
|
|
|
})(GUI = BABYLON.GUI || (BABYLON.GUI = {}));
|
|
|
})(BABYLON || (BABYLON = {}));
|
|
|
+
|
|
|
+
|
|
|
+(function universalModuleDefinition(root, factory) {
|
|
|
+ if (root && root["BABYLON"]) {
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ if(typeof exports === 'object' && typeof module === 'object')
|
|
|
+ module.exports = factory();
|
|
|
+ else if(typeof define === 'function' && define.amd)
|
|
|
+ define([], factory);
|
|
|
+ else if(typeof exports === 'object')
|
|
|
+ exports["GUI"] = factory();
|
|
|
+ else {
|
|
|
+ root["BABYLON"]["GUI"] = factory();
|
|
|
+ }
|
|
|
+})(this, function() {
|
|
|
+ return BABYLON.GUI;
|
|
|
+});
|