babylonjs-gui 5.40.1 → 5.41.0
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.d.ts +16 -11
- package/babylon.gui.js +21 -11
- package/babylon.gui.js.map +1 -1
- package/babylon.gui.min.js +1 -1
- package/babylon.gui.min.js.map +1 -1
- package/babylon.gui.module.d.ts +33 -22
- package/package.json +2 -2
package/babylon.gui.module.d.ts
CHANGED
|
@@ -1050,7 +1050,7 @@ export class Control implements IAnimatable {
|
|
|
1050
1050
|
/** @internal */
|
|
1051
1051
|
_prevCurrentMeasureTransformedIntoGlobalSpace: Measure;
|
|
1052
1052
|
/** @internal */
|
|
1053
|
-
|
|
1053
|
+
_cachedParentMeasure: Measure;
|
|
1054
1054
|
private _descendantsOnlyPadding;
|
|
1055
1055
|
private _paddingLeft;
|
|
1056
1056
|
private _paddingRight;
|
|
@@ -1634,7 +1634,7 @@ export class Control implements IAnimatable {
|
|
|
1634
1634
|
/** @internal */
|
|
1635
1635
|
protected _computeAdditionnalOffsetY(): number;
|
|
1636
1636
|
/** @internal */
|
|
1637
|
-
|
|
1637
|
+
invalidateRect(): void;
|
|
1638
1638
|
/**
|
|
1639
1639
|
* @internal
|
|
1640
1640
|
*/
|
|
@@ -2691,14 +2691,13 @@ export class InputTextArea extends InputText {
|
|
|
2691
2691
|
* @internal
|
|
2692
2692
|
*/
|
|
2693
2693
|
protected _preMeasure(parentMeasure: Measure, context: ICanvasRenderingContext): void;
|
|
2694
|
+
private _computeScroll;
|
|
2694
2695
|
/**
|
|
2695
2696
|
* Processing of child after the parent measurement update
|
|
2696
2697
|
*
|
|
2697
|
-
* @param parentMeasure The parent measure
|
|
2698
|
-
* @param context The rendering canvas
|
|
2699
2698
|
* @internal
|
|
2700
2699
|
*/
|
|
2701
|
-
protected _additionalProcessing(
|
|
2700
|
+
protected _additionalProcessing(): void;
|
|
2702
2701
|
private _drawText;
|
|
2703
2702
|
/**
|
|
2704
2703
|
* Copy the text in the clipboard
|
|
@@ -2754,16 +2753,21 @@ declare module "babylonjs-gui/2D/controls/line" {
|
|
|
2754
2753
|
import { Vector3 } from "babylonjs/Maths/math.vector";
|
|
2755
2754
|
import { Scene } from "babylonjs/scene";
|
|
2756
2755
|
import { Control } from "babylonjs-gui/2D/controls/control";
|
|
2756
|
+
import { ValueAndUnit } from "babylonjs-gui/2D/valueAndUnit";
|
|
2757
2757
|
import { Measure } from "babylonjs-gui/2D/measure";
|
|
2758
2758
|
import { ICanvasRenderingContext } from "babylonjs/Engines/ICanvas";
|
|
2759
2759
|
/** Class used to render 2D lines */
|
|
2760
2760
|
export class Line extends Control {
|
|
2761
2761
|
name?: string | undefined;
|
|
2762
2762
|
private _lineWidth;
|
|
2763
|
-
|
|
2764
|
-
|
|
2765
|
-
|
|
2766
|
-
|
|
2763
|
+
/** @internal */
|
|
2764
|
+
_x1: ValueAndUnit;
|
|
2765
|
+
/** @internal */
|
|
2766
|
+
_y1: ValueAndUnit;
|
|
2767
|
+
/** @internal */
|
|
2768
|
+
_x2: ValueAndUnit;
|
|
2769
|
+
/** @internal */
|
|
2770
|
+
_y2: ValueAndUnit;
|
|
2767
2771
|
private _dash;
|
|
2768
2772
|
private _connectedControl;
|
|
2769
2773
|
private _connectedControlDirtyObserver;
|
|
@@ -2792,8 +2796,10 @@ export class Line extends Control {
|
|
|
2792
2796
|
set horizontalAlignment(value: number);
|
|
2793
2797
|
/** Gets or sets vertical alignment */
|
|
2794
2798
|
set verticalAlignment(value: number);
|
|
2795
|
-
|
|
2796
|
-
|
|
2799
|
+
/** @internal */
|
|
2800
|
+
get _effectiveX2(): number;
|
|
2801
|
+
/** @internal */
|
|
2802
|
+
get _effectiveY2(): number;
|
|
2797
2803
|
/**
|
|
2798
2804
|
* Creates a new Line
|
|
2799
2805
|
* @param name defines the control name
|
|
@@ -9442,7 +9448,7 @@ declare module BABYLON.GUI {
|
|
|
9442
9448
|
/** @internal */
|
|
9443
9449
|
_prevCurrentMeasureTransformedIntoGlobalSpace: Measure;
|
|
9444
9450
|
/** @internal */
|
|
9445
|
-
|
|
9451
|
+
_cachedParentMeasure: Measure;
|
|
9446
9452
|
private _descendantsOnlyPadding;
|
|
9447
9453
|
private _paddingLeft;
|
|
9448
9454
|
private _paddingRight;
|
|
@@ -10026,7 +10032,7 @@ declare module BABYLON.GUI {
|
|
|
10026
10032
|
/** @internal */
|
|
10027
10033
|
protected _computeAdditionnalOffsetY(): number;
|
|
10028
10034
|
/** @internal */
|
|
10029
|
-
|
|
10035
|
+
invalidateRect(): void;
|
|
10030
10036
|
/**
|
|
10031
10037
|
* @internal
|
|
10032
10038
|
*/
|
|
@@ -10989,14 +10995,13 @@ declare module BABYLON.GUI {
|
|
|
10989
10995
|
* @internal
|
|
10990
10996
|
*/
|
|
10991
10997
|
protected _preMeasure(parentMeasure: Measure, context: BABYLON.ICanvasRenderingContext): void;
|
|
10998
|
+
private _computeScroll;
|
|
10992
10999
|
/**
|
|
10993
11000
|
* Processing of child after the parent measurement update
|
|
10994
11001
|
*
|
|
10995
|
-
* @param parentMeasure The parent measure
|
|
10996
|
-
* @param context The rendering canvas
|
|
10997
11002
|
* @internal
|
|
10998
11003
|
*/
|
|
10999
|
-
protected _additionalProcessing(
|
|
11004
|
+
protected _additionalProcessing(): void;
|
|
11000
11005
|
private _drawText;
|
|
11001
11006
|
/**
|
|
11002
11007
|
* Copy the text in the clipboard
|
|
@@ -11052,10 +11057,14 @@ declare module BABYLON.GUI {
|
|
|
11052
11057
|
export class Line extends Control {
|
|
11053
11058
|
name?: string | undefined;
|
|
11054
11059
|
private _lineWidth;
|
|
11055
|
-
|
|
11056
|
-
|
|
11057
|
-
|
|
11058
|
-
|
|
11060
|
+
/** @internal */
|
|
11061
|
+
_x1: ValueAndUnit;
|
|
11062
|
+
/** @internal */
|
|
11063
|
+
_y1: ValueAndUnit;
|
|
11064
|
+
/** @internal */
|
|
11065
|
+
_x2: ValueAndUnit;
|
|
11066
|
+
/** @internal */
|
|
11067
|
+
_y2: ValueAndUnit;
|
|
11059
11068
|
private _dash;
|
|
11060
11069
|
private _connectedControl;
|
|
11061
11070
|
private _connectedControlDirtyObserver;
|
|
@@ -11084,8 +11093,10 @@ declare module BABYLON.GUI {
|
|
|
11084
11093
|
set horizontalAlignment(value: number);
|
|
11085
11094
|
/** Gets or sets vertical alignment */
|
|
11086
11095
|
set verticalAlignment(value: number);
|
|
11087
|
-
|
|
11088
|
-
|
|
11096
|
+
/** @internal */
|
|
11097
|
+
get _effectiveX2(): number;
|
|
11098
|
+
/** @internal */
|
|
11099
|
+
get _effectiveY2(): number;
|
|
11089
11100
|
/**
|
|
11090
11101
|
* Creates a new Line
|
|
11091
11102
|
* @param name defines the control name
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "babylonjs-gui",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.41.0",
|
|
4
4
|
"main": "babylon.gui.js",
|
|
5
5
|
"types": "babylon.gui.module.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"clean": "rimraf dist && rimraf babylon*.*"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"babylonjs": "^5.
|
|
17
|
+
"babylonjs": "^5.41.0"
|
|
18
18
|
},
|
|
19
19
|
"devDependencies": {
|
|
20
20
|
"@dev/build-tools": "1.0.0",
|