babylonjs-gui 6.7.0 → 6.8.1

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.
@@ -1330,14 +1330,22 @@ export class Control implements IAnimatable {
1330
1330
  */
1331
1331
  get verticalAlignment(): number;
1332
1332
  set verticalAlignment(value: number);
1333
+ private _fixedRatio;
1334
+ set fixedRatio(value: number);
1333
1335
  /**
1334
1336
  * Gets or sets a fixed ratio for this control.
1335
1337
  * When different from 0, the ratio is used to compute the "second" dimension.
1336
1338
  * The first dimension used in the computation is the last one set (by setting width / widthInPixels or height / heightInPixels), and the
1337
1339
  * second dimension is computed as first dimension * fixedRatio
1338
1340
  */
1339
- fixedRatio: number;
1340
- protected _fixedRatioMasterIsWidth: boolean;
1341
+ get fixedRatio(): number;
1342
+ private _fixedRatioMasterIsWidth;
1343
+ set fixedRatioMasterIsWidth(value: boolean);
1344
+ /**
1345
+ * Gets or sets a boolean indicating that the fixed ratio is set on the width instead of the height. True by default.
1346
+ * When the height of a control is set, this property is changed to false.
1347
+ */
1348
+ get fixedRatioMasterIsWidth(): boolean;
1341
1349
  /**
1342
1350
  * Gets or sets control width
1343
1351
  * @see https://doc.babylonjs.com/features/featuresDeepDive/gui/gui#position-and-size
@@ -10031,14 +10039,22 @@ declare module BABYLON.GUI {
10031
10039
  */
10032
10040
  get verticalAlignment(): number;
10033
10041
  set verticalAlignment(value: number);
10042
+ private _fixedRatio;
10043
+ set fixedRatio(value: number);
10034
10044
  /**
10035
10045
  * Gets or sets a fixed ratio for this control.
10036
10046
  * When different from 0, the ratio is used to compute the "second" dimension.
10037
10047
  * The first dimension used in the computation is the last one set (by setting width / widthInPixels or height / heightInPixels), and the
10038
10048
  * second dimension is computed as first dimension * fixedRatio
10039
10049
  */
10040
- fixedRatio: number;
10041
- protected _fixedRatioMasterIsWidth: boolean;
10050
+ get fixedRatio(): number;
10051
+ private _fixedRatioMasterIsWidth;
10052
+ set fixedRatioMasterIsWidth(value: boolean);
10053
+ /**
10054
+ * Gets or sets a boolean indicating that the fixed ratio is set on the width instead of the height. True by default.
10055
+ * When the height of a control is set, this property is changed to false.
10056
+ */
10057
+ get fixedRatioMasterIsWidth(): boolean;
10042
10058
  /**
10043
10059
  * Gets or sets control width
10044
10060
  * @see https://doc.babylonjs.com/features/featuresDeepDive/gui/gui#position-and-size
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "babylonjs-gui",
3
- "version": "6.7.0",
3
+ "version": "6.8.1",
4
4
  "main": "babylon.gui.js",
5
5
  "types": "babylon.gui.module.d.ts",
6
6
  "files": [
@@ -14,15 +14,13 @@
14
14
  "clean": "rimraf dist && rimraf babylon*.*"
15
15
  },
16
16
  "dependencies": {
17
- "babylonjs": "^6.7.0"
17
+ "babylonjs": "^6.8.1"
18
18
  },
19
19
  "devDependencies": {
20
20
  "@dev/build-tools": "1.0.0",
21
21
  "@lts/gui": "1.0.0",
22
- "rimraf": "^3.0.2",
23
22
  "source-map-loader": "^4.0.0",
24
23
  "ts-loader": "^9.2.6",
25
- "typescript": "^4.4.4",
26
24
  "webpack": "^5.73.0",
27
25
  "webpack-cli": "^5.1.0",
28
26
  "webpack-merge": "^5.8.0"