|
@@ -941,6 +941,13 @@ var BABYLON;
|
|
|
enumerable: true,
|
|
|
configurable: true
|
|
|
});
|
|
|
+ Object.defineProperty(Control.prototype, "widthInPixels", {
|
|
|
+ get: function () {
|
|
|
+ return this._width.getValueInPixel(this._host, this._cachedParentMeasure.width);
|
|
|
+ },
|
|
|
+ enumerable: true,
|
|
|
+ configurable: true
|
|
|
+ });
|
|
|
Object.defineProperty(Control.prototype, "height", {
|
|
|
get: function () {
|
|
|
return this._height.toString(this._host);
|
|
@@ -956,6 +963,13 @@ var BABYLON;
|
|
|
enumerable: true,
|
|
|
configurable: true
|
|
|
});
|
|
|
+ Object.defineProperty(Control.prototype, "heightInPixels", {
|
|
|
+ get: function () {
|
|
|
+ return this._height.getValueInPixel(this._host, this._cachedParentMeasure.height);
|
|
|
+ },
|
|
|
+ enumerable: true,
|
|
|
+ configurable: true
|
|
|
+ });
|
|
|
Object.defineProperty(Control.prototype, "fontFamily", {
|
|
|
get: function () {
|
|
|
return this._fontFamily;
|
|
@@ -984,6 +998,13 @@ var BABYLON;
|
|
|
enumerable: true,
|
|
|
configurable: true
|
|
|
});
|
|
|
+ Object.defineProperty(Control.prototype, "fontSizeInPixels", {
|
|
|
+ get: function () {
|
|
|
+ return this._fontSize.getValueInPixel(this._host, 100);
|
|
|
+ },
|
|
|
+ enumerable: true,
|
|
|
+ configurable: true
|
|
|
+ });
|
|
|
Object.defineProperty(Control.prototype, "fontSize", {
|
|
|
get: function () {
|
|
|
return this._fontSize.toString(this._host);
|
|
@@ -1077,6 +1098,13 @@ var BABYLON;
|
|
|
enumerable: true,
|
|
|
configurable: true
|
|
|
});
|
|
|
+ Object.defineProperty(Control.prototype, "paddingLeftInPixels", {
|
|
|
+ get: function () {
|
|
|
+ return this._paddingLeft.getValueInPixel(this._host, this._cachedParentMeasure.width);
|
|
|
+ },
|
|
|
+ enumerable: true,
|
|
|
+ configurable: true
|
|
|
+ });
|
|
|
Object.defineProperty(Control.prototype, "paddingRight", {
|
|
|
get: function () {
|
|
|
return this._paddingRight.toString(this._host);
|
|
@@ -1089,6 +1117,13 @@ var BABYLON;
|
|
|
enumerable: true,
|
|
|
configurable: true
|
|
|
});
|
|
|
+ Object.defineProperty(Control.prototype, "paddingRightInPixels", {
|
|
|
+ get: function () {
|
|
|
+ return this._paddingRight.getValueInPixel(this._host, this._cachedParentMeasure.width);
|
|
|
+ },
|
|
|
+ enumerable: true,
|
|
|
+ configurable: true
|
|
|
+ });
|
|
|
Object.defineProperty(Control.prototype, "paddingTop", {
|
|
|
get: function () {
|
|
|
return this._paddingTop.toString(this._host);
|
|
@@ -1101,6 +1136,13 @@ var BABYLON;
|
|
|
enumerable: true,
|
|
|
configurable: true
|
|
|
});
|
|
|
+ Object.defineProperty(Control.prototype, "paddingTopInPixels", {
|
|
|
+ get: function () {
|
|
|
+ return this._paddingTop.getValueInPixel(this._host, this._cachedParentMeasure.height);
|
|
|
+ },
|
|
|
+ enumerable: true,
|
|
|
+ configurable: true
|
|
|
+ });
|
|
|
Object.defineProperty(Control.prototype, "paddingBottom", {
|
|
|
get: function () {
|
|
|
return this._paddingBottom.toString(this._host);
|
|
@@ -1113,6 +1155,13 @@ var BABYLON;
|
|
|
enumerable: true,
|
|
|
configurable: true
|
|
|
});
|
|
|
+ Object.defineProperty(Control.prototype, "paddingBottomInPixels", {
|
|
|
+ get: function () {
|
|
|
+ return this._paddingBottom.getValueInPixel(this._host, this._cachedParentMeasure.height);
|
|
|
+ },
|
|
|
+ enumerable: true,
|
|
|
+ configurable: true
|
|
|
+ });
|
|
|
Object.defineProperty(Control.prototype, "left", {
|
|
|
get: function () {
|
|
|
return this._left.toString(this._host);
|
|
@@ -1125,6 +1174,13 @@ var BABYLON;
|
|
|
enumerable: true,
|
|
|
configurable: true
|
|
|
});
|
|
|
+ Object.defineProperty(Control.prototype, "leftInPixels", {
|
|
|
+ get: function () {
|
|
|
+ return this._left.getValueInPixel(this._host, this._cachedParentMeasure.width);
|
|
|
+ },
|
|
|
+ enumerable: true,
|
|
|
+ configurable: true
|
|
|
+ });
|
|
|
Object.defineProperty(Control.prototype, "top", {
|
|
|
get: function () {
|
|
|
return this._top.toString(this._host);
|
|
@@ -1137,6 +1193,13 @@ var BABYLON;
|
|
|
enumerable: true,
|
|
|
configurable: true
|
|
|
});
|
|
|
+ Object.defineProperty(Control.prototype, "topInPixels", {
|
|
|
+ get: function () {
|
|
|
+ return this._top.getValueInPixel(this._host, this._cachedParentMeasure.height);
|
|
|
+ },
|
|
|
+ enumerable: true,
|
|
|
+ configurable: true
|
|
|
+ });
|
|
|
Object.defineProperty(Control.prototype, "linkOffsetX", {
|
|
|
get: function () {
|
|
|
return this._linkOffsetX.toString(this._host);
|
|
@@ -1149,6 +1212,13 @@ var BABYLON;
|
|
|
enumerable: true,
|
|
|
configurable: true
|
|
|
});
|
|
|
+ Object.defineProperty(Control.prototype, "linkOffsetXInPixels", {
|
|
|
+ get: function () {
|
|
|
+ return this._linkOffsetX.getValueInPixel(this._host, this._cachedParentMeasure.width);
|
|
|
+ },
|
|
|
+ enumerable: true,
|
|
|
+ configurable: true
|
|
|
+ });
|
|
|
Object.defineProperty(Control.prototype, "linkOffsetY", {
|
|
|
get: function () {
|
|
|
return this._linkOffsetY.toString(this._host);
|
|
@@ -1161,6 +1231,13 @@ var BABYLON;
|
|
|
enumerable: true,
|
|
|
configurable: true
|
|
|
});
|
|
|
+ Object.defineProperty(Control.prototype, "linkOffsetYInPixels", {
|
|
|
+ get: function () {
|
|
|
+ return this._linkOffsetY.getValueInPixel(this._host, this._cachedParentMeasure.height);
|
|
|
+ },
|
|
|
+ enumerable: true,
|
|
|
+ configurable: true
|
|
|
+ });
|
|
|
Object.defineProperty(Control.prototype, "centerX", {
|
|
|
get: function () {
|
|
|
return this._currentMeasure.left + this._currentMeasure.width / 2;
|