|
@@ -3887,14 +3887,14 @@ var BABYLON;
|
|
var RowDefinition = (function (_super) {
|
|
var RowDefinition = (function (_super) {
|
|
__extends(RowDefinition, _super);
|
|
__extends(RowDefinition, _super);
|
|
function RowDefinition() {
|
|
function RowDefinition() {
|
|
- return _super !== null && _super.apply(this, arguments) || this;
|
|
|
|
|
|
+ return _super.apply(this, arguments) || this;
|
|
}
|
|
}
|
|
return RowDefinition;
|
|
return RowDefinition;
|
|
}(GridDimensionDefinition));
|
|
}(GridDimensionDefinition));
|
|
var ColumnDefinition = (function (_super) {
|
|
var ColumnDefinition = (function (_super) {
|
|
__extends(ColumnDefinition, _super);
|
|
__extends(ColumnDefinition, _super);
|
|
function ColumnDefinition() {
|
|
function ColumnDefinition() {
|
|
- return _super !== null && _super.apply(this, arguments) || this;
|
|
|
|
|
|
+ return _super.apply(this, arguments) || this;
|
|
}
|
|
}
|
|
return ColumnDefinition;
|
|
return ColumnDefinition;
|
|
}(GridDimensionDefinition));
|
|
}(GridDimensionDefinition));
|
|
@@ -7009,7 +7009,7 @@ var BABYLON;
|
|
var Prim2DBase = Prim2DBase_1 = (function (_super) {
|
|
var Prim2DBase = Prim2DBase_1 = (function (_super) {
|
|
__extends(Prim2DBase, _super);
|
|
__extends(Prim2DBase, _super);
|
|
function Prim2DBase(settings) {
|
|
function Prim2DBase(settings) {
|
|
- var _this = this;
|
|
|
|
|
|
+ var _this;
|
|
// Avoid checking every time if the object exists
|
|
// Avoid checking every time if the object exists
|
|
if (settings == null) {
|
|
if (settings == null) {
|
|
settings = {};
|
|
settings = {};
|
|
@@ -11305,7 +11305,7 @@ var BABYLON;
|
|
var Shape2DInstanceData = (function (_super) {
|
|
var Shape2DInstanceData = (function (_super) {
|
|
__extends(Shape2DInstanceData, _super);
|
|
__extends(Shape2DInstanceData, _super);
|
|
function Shape2DInstanceData() {
|
|
function Shape2DInstanceData() {
|
|
- return _super !== null && _super.apply(this, arguments) || this;
|
|
|
|
|
|
+ return _super.apply(this, arguments) || this;
|
|
}
|
|
}
|
|
Object.defineProperty(Shape2DInstanceData.prototype, "fillSolidColor", {
|
|
Object.defineProperty(Shape2DInstanceData.prototype, "fillSolidColor", {
|
|
// FILL ATTRIBUTES
|
|
// FILL ATTRIBUTES
|
|
@@ -11480,7 +11480,7 @@ var BABYLON;
|
|
* - padding: top, left, right and bottom padding formatted as a single string (see PrimitiveThickness.fromString)
|
|
* - padding: top, left, right and bottom padding formatted as a single string (see PrimitiveThickness.fromString)
|
|
*/
|
|
*/
|
|
function Group2D(settings) {
|
|
function Group2D(settings) {
|
|
- var _this = this;
|
|
|
|
|
|
+ var _this;
|
|
if (settings == null) {
|
|
if (settings == null) {
|
|
settings = {};
|
|
settings = {};
|
|
}
|
|
}
|
|
@@ -12443,7 +12443,7 @@ var BABYLON;
|
|
var WireFrame2DRenderCache = (function (_super) {
|
|
var WireFrame2DRenderCache = (function (_super) {
|
|
__extends(WireFrame2DRenderCache, _super);
|
|
__extends(WireFrame2DRenderCache, _super);
|
|
function WireFrame2DRenderCache() {
|
|
function WireFrame2DRenderCache() {
|
|
- var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
|
|
|
|
+ var _this = _super.apply(this, arguments) || this;
|
|
_this.effectsReady = false;
|
|
_this.effectsReady = false;
|
|
_this.vb = null;
|
|
_this.vb = null;
|
|
_this.vtxCount = 0;
|
|
_this.vtxCount = 0;
|
|
@@ -12669,7 +12669,7 @@ var BABYLON;
|
|
* - padding: top, left, right and bottom padding formatted as a single string (see PrimitiveThickness.fromString)
|
|
* - padding: top, left, right and bottom padding formatted as a single string (see PrimitiveThickness.fromString)
|
|
*/
|
|
*/
|
|
function WireFrame2D(wireFrameGroups, settings) {
|
|
function WireFrame2D(wireFrameGroups, settings) {
|
|
- var _this = this;
|
|
|
|
|
|
+ var _this;
|
|
if (!settings) {
|
|
if (!settings) {
|
|
settings = {};
|
|
settings = {};
|
|
}
|
|
}
|
|
@@ -13031,7 +13031,7 @@ var BABYLON;
|
|
* - padding: top, left, right and bottom padding formatted as a single string (see PrimitiveThickness.fromString)
|
|
* - padding: top, left, right and bottom padding formatted as a single string (see PrimitiveThickness.fromString)
|
|
*/
|
|
*/
|
|
function Rectangle2D(settings) {
|
|
function Rectangle2D(settings) {
|
|
- var _this = this;
|
|
|
|
|
|
+ var _this;
|
|
// Avoid checking every time if the object exists
|
|
// Avoid checking every time if the object exists
|
|
if (settings == null) {
|
|
if (settings == null) {
|
|
settings = {};
|
|
settings = {};
|
|
@@ -13548,7 +13548,7 @@ var BABYLON;
|
|
* - padding: top, left, right and bottom padding formatted as a single string (see PrimitiveThickness.fromString)
|
|
* - padding: top, left, right and bottom padding formatted as a single string (see PrimitiveThickness.fromString)
|
|
*/
|
|
*/
|
|
function Ellipse2D(settings) {
|
|
function Ellipse2D(settings) {
|
|
- var _this = this;
|
|
|
|
|
|
+ var _this;
|
|
// Avoid checking every time if the object exists
|
|
// Avoid checking every time if the object exists
|
|
if (settings == null) {
|
|
if (settings == null) {
|
|
settings = {};
|
|
settings = {};
|
|
@@ -13733,7 +13733,7 @@ var BABYLON;
|
|
var Sprite2DRenderCache = (function (_super) {
|
|
var Sprite2DRenderCache = (function (_super) {
|
|
__extends(Sprite2DRenderCache, _super);
|
|
__extends(Sprite2DRenderCache, _super);
|
|
function Sprite2DRenderCache() {
|
|
function Sprite2DRenderCache() {
|
|
- var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
|
|
|
|
+ var _this = _super.apply(this, arguments) || this;
|
|
_this.effectsReady = false;
|
|
_this.effectsReady = false;
|
|
_this.vb = null;
|
|
_this.vb = null;
|
|
_this.ib = null;
|
|
_this.ib = null;
|
|
@@ -13852,7 +13852,7 @@ var BABYLON;
|
|
* - padding: top, left, right and bottom padding formatted as a single string (see PrimitiveThickness.fromString)
|
|
* - padding: top, left, right and bottom padding formatted as a single string (see PrimitiveThickness.fromString)
|
|
*/
|
|
*/
|
|
function Sprite2D(texture, settings) {
|
|
function Sprite2D(texture, settings) {
|
|
- var _this = this;
|
|
|
|
|
|
+ var _this;
|
|
if (!settings) {
|
|
if (!settings) {
|
|
settings = {};
|
|
settings = {};
|
|
}
|
|
}
|
|
@@ -14478,7 +14478,7 @@ var BABYLON;
|
|
var Text2DRenderCache = (function (_super) {
|
|
var Text2DRenderCache = (function (_super) {
|
|
__extends(Text2DRenderCache, _super);
|
|
__extends(Text2DRenderCache, _super);
|
|
function Text2DRenderCache() {
|
|
function Text2DRenderCache() {
|
|
- var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
|
|
|
|
+ var _this = _super.apply(this, arguments) || this;
|
|
_this.effectsReady = false;
|
|
_this.effectsReady = false;
|
|
_this.vb = null;
|
|
_this.vb = null;
|
|
_this.ib = null;
|
|
_this.ib = null;
|
|
@@ -14677,7 +14677,7 @@ var BABYLON;
|
|
* - wordWrap: if true the text will wrap inside content area
|
|
* - wordWrap: if true the text will wrap inside content area
|
|
*/
|
|
*/
|
|
function Text2D(text, settings) {
|
|
function Text2D(text, settings) {
|
|
- var _this = this;
|
|
|
|
|
|
+ var _this;
|
|
if (!settings) {
|
|
if (!settings) {
|
|
settings = {};
|
|
settings = {};
|
|
}
|
|
}
|
|
@@ -15538,7 +15538,7 @@ var BABYLON;
|
|
* - padding: top, left, right and bottom padding formatted as a single string (see PrimitiveThickness.fromString)
|
|
* - padding: top, left, right and bottom padding formatted as a single string (see PrimitiveThickness.fromString)
|
|
*/
|
|
*/
|
|
function Lines2D(points, settings) {
|
|
function Lines2D(points, settings) {
|
|
- var _this = this;
|
|
|
|
|
|
+ var _this;
|
|
if (!settings) {
|
|
if (!settings) {
|
|
settings = {};
|
|
settings = {};
|
|
}
|
|
}
|
|
@@ -18236,7 +18236,7 @@ var BABYLON;
|
|
* - padding: top, left, right and bottom padding formatted as a single string (see PrimitiveThickness.fromString)
|
|
* - padding: top, left, right and bottom padding formatted as a single string (see PrimitiveThickness.fromString)
|
|
*/
|
|
*/
|
|
function WorldSpaceCanvas2D(scene, size, settings) {
|
|
function WorldSpaceCanvas2D(scene, size, settings) {
|
|
- var _this = this;
|
|
|
|
|
|
+ var _this;
|
|
BABYLON.Prim2DBase._isCanvasInit = true;
|
|
BABYLON.Prim2DBase._isCanvasInit = true;
|
|
var s = settings;
|
|
var s = settings;
|
|
s.isScreenSpace = false;
|
|
s.isScreenSpace = false;
|
|
@@ -18398,7 +18398,7 @@ var BABYLON;
|
|
* - padding: top, left, right and bottom padding formatted as a single string (see BABYLON.PrimitiveThickness.fromString)
|
|
* - padding: top, left, right and bottom padding formatted as a single string (see BABYLON.PrimitiveThickness.fromString)
|
|
*/
|
|
*/
|
|
function ScreenSpaceCanvas2D(scene, settings) {
|
|
function ScreenSpaceCanvas2D(scene, settings) {
|
|
- var _this = this;
|
|
|
|
|
|
+ var _this;
|
|
BABYLON.Prim2DBase._isCanvasInit = true;
|
|
BABYLON.Prim2DBase._isCanvasInit = true;
|
|
_this = _super.call(this, scene, settings) || this;
|
|
_this = _super.call(this, scene, settings) || this;
|
|
return _this;
|
|
return _this;
|
|
@@ -19382,7 +19382,7 @@ var BABYLON;
|
|
var StackPanel = StackPanel_1 = (function (_super) {
|
|
var StackPanel = StackPanel_1 = (function (_super) {
|
|
__extends(StackPanel, _super);
|
|
__extends(StackPanel, _super);
|
|
function StackPanel(settings) {
|
|
function StackPanel(settings) {
|
|
- var _this = this;
|
|
|
|
|
|
+ var _this;
|
|
if (!settings) {
|
|
if (!settings) {
|
|
settings = {};
|
|
settings = {};
|
|
}
|
|
}
|
|
@@ -19445,7 +19445,7 @@ var BABYLON;
|
|
var DefaultStackPanelRenderingTemplate = DefaultStackPanelRenderingTemplate_1 = (function (_super) {
|
|
var DefaultStackPanelRenderingTemplate = DefaultStackPanelRenderingTemplate_1 = (function (_super) {
|
|
__extends(DefaultStackPanelRenderingTemplate, _super);
|
|
__extends(DefaultStackPanelRenderingTemplate, _super);
|
|
function DefaultStackPanelRenderingTemplate() {
|
|
function DefaultStackPanelRenderingTemplate() {
|
|
- return _super !== null && _super.apply(this, arguments) || this;
|
|
|
|
|
|
+ return _super.apply(this, arguments) || this;
|
|
}
|
|
}
|
|
DefaultStackPanelRenderingTemplate.prototype.createVisualTree = function (owner, visualPlaceholder) {
|
|
DefaultStackPanelRenderingTemplate.prototype.createVisualTree = function (owner, visualPlaceholder) {
|
|
return { root: visualPlaceholder, contentPlaceholder: visualPlaceholder };
|
|
return { root: visualPlaceholder, contentPlaceholder: visualPlaceholder };
|
|
@@ -19574,7 +19574,7 @@ var BABYLON;
|
|
var ContentControl = ContentControl_1 = (function (_super) {
|
|
var ContentControl = ContentControl_1 = (function (_super) {
|
|
__extends(ContentControl, _super);
|
|
__extends(ContentControl, _super);
|
|
function ContentControl(settings) {
|
|
function ContentControl(settings) {
|
|
- var _this = this;
|
|
|
|
|
|
+ var _this;
|
|
if (!settings) {
|
|
if (!settings) {
|
|
settings = {};
|
|
settings = {};
|
|
}
|
|
}
|
|
@@ -19729,7 +19729,7 @@ var BABYLON;
|
|
var Window = Window_1 = (function (_super) {
|
|
var Window = Window_1 = (function (_super) {
|
|
__extends(Window, _super);
|
|
__extends(Window, _super);
|
|
function Window(scene, settings) {
|
|
function Window(scene, settings) {
|
|
- var _this = this;
|
|
|
|
|
|
+ var _this;
|
|
if (!settings) {
|
|
if (!settings) {
|
|
settings = {};
|
|
settings = {};
|
|
}
|
|
}
|
|
@@ -19914,7 +19914,7 @@ var BABYLON;
|
|
var DefaultWindowRenderingTemplate = DefaultWindowRenderingTemplate_1 = (function (_super) {
|
|
var DefaultWindowRenderingTemplate = DefaultWindowRenderingTemplate_1 = (function (_super) {
|
|
__extends(DefaultWindowRenderingTemplate, _super);
|
|
__extends(DefaultWindowRenderingTemplate, _super);
|
|
function DefaultWindowRenderingTemplate() {
|
|
function DefaultWindowRenderingTemplate() {
|
|
- return _super !== null && _super.apply(this, arguments) || this;
|
|
|
|
|
|
+ return _super.apply(this, arguments) || this;
|
|
}
|
|
}
|
|
DefaultWindowRenderingTemplate.prototype.createVisualTree = function (owner, visualPlaceholder) {
|
|
DefaultWindowRenderingTemplate.prototype.createVisualTree = function (owner, visualPlaceholder) {
|
|
var r = new BABYLON.Rectangle2D({ parent: visualPlaceholder, fill: "#808080FF" });
|
|
var r = new BABYLON.Rectangle2D({ parent: visualPlaceholder, fill: "#808080FF" });
|
|
@@ -19945,7 +19945,7 @@ var BABYLON;
|
|
var Label = Label_1 = (function (_super) {
|
|
var Label = Label_1 = (function (_super) {
|
|
__extends(Label, _super);
|
|
__extends(Label, _super);
|
|
function Label(settings) {
|
|
function Label(settings) {
|
|
- var _this = this;
|
|
|
|
|
|
+ var _this;
|
|
if (!settings) {
|
|
if (!settings) {
|
|
settings = {};
|
|
settings = {};
|
|
}
|
|
}
|
|
@@ -19992,7 +19992,7 @@ var BABYLON;
|
|
var DefaultLabelRenderingTemplate = DefaultLabelRenderingTemplate_1 = (function (_super) {
|
|
var DefaultLabelRenderingTemplate = DefaultLabelRenderingTemplate_1 = (function (_super) {
|
|
__extends(DefaultLabelRenderingTemplate, _super);
|
|
__extends(DefaultLabelRenderingTemplate, _super);
|
|
function DefaultLabelRenderingTemplate() {
|
|
function DefaultLabelRenderingTemplate() {
|
|
- return _super !== null && _super.apply(this, arguments) || this;
|
|
|
|
|
|
+ return _super.apply(this, arguments) || this;
|
|
}
|
|
}
|
|
DefaultLabelRenderingTemplate.prototype.createVisualTree = function (owner, visualPlaceholder) {
|
|
DefaultLabelRenderingTemplate.prototype.createVisualTree = function (owner, visualPlaceholder) {
|
|
var r = new BABYLON.Text2D("", { parent: visualPlaceholder });
|
|
var r = new BABYLON.Text2D("", { parent: visualPlaceholder });
|
|
@@ -20025,7 +20025,7 @@ var BABYLON;
|
|
var Button = Button_1 = (function (_super) {
|
|
var Button = Button_1 = (function (_super) {
|
|
__extends(Button, _super);
|
|
__extends(Button, _super);
|
|
function Button(settings) {
|
|
function Button(settings) {
|
|
- var _this = this;
|
|
|
|
|
|
+ var _this;
|
|
if (!settings) {
|
|
if (!settings) {
|
|
settings = {};
|
|
settings = {};
|
|
}
|
|
}
|
|
@@ -20179,7 +20179,7 @@ var BABYLON;
|
|
var DefaultButtonRenderingTemplate = DefaultButtonRenderingTemplate_1 = (function (_super) {
|
|
var DefaultButtonRenderingTemplate = DefaultButtonRenderingTemplate_1 = (function (_super) {
|
|
__extends(DefaultButtonRenderingTemplate, _super);
|
|
__extends(DefaultButtonRenderingTemplate, _super);
|
|
function DefaultButtonRenderingTemplate() {
|
|
function DefaultButtonRenderingTemplate() {
|
|
- return _super !== null && _super.apply(this, arguments) || this;
|
|
|
|
|
|
+ return _super.apply(this, arguments) || this;
|
|
}
|
|
}
|
|
DefaultButtonRenderingTemplate.prototype.createVisualTree = function (owner, visualPlaceholder) {
|
|
DefaultButtonRenderingTemplate.prototype.createVisualTree = function (owner, visualPlaceholder) {
|
|
this._rect = new BABYLON.Rectangle2D({ parent: visualPlaceholder, fill: "#FF8080FF", border: "#FF8080FF", roundRadius: 10, borderThickness: 2 });
|
|
this._rect = new BABYLON.Rectangle2D({ parent: visualPlaceholder, fill: "#FF8080FF", border: "#FF8080FF", roundRadius: 10, borderThickness: 2 });
|