babylonjs-gui 5.41.0 → 5.42.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.
- package/babylon.gui.d.ts +15 -0
- package/babylon.gui.js +121 -43
- 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 +30 -0
- package/package.json +2 -2
package/babylon.gui.module.d.ts
CHANGED
|
@@ -91,6 +91,7 @@ export class AdvancedDynamicTexture extends DynamicTexture {
|
|
|
91
91
|
private _canvasPointerOutObserver;
|
|
92
92
|
private _canvasBlurObserver;
|
|
93
93
|
private _controlAddedObserver;
|
|
94
|
+
private _controlRemovedObserver;
|
|
94
95
|
private _background;
|
|
95
96
|
/** @internal */
|
|
96
97
|
_rootContainer: Container;
|
|
@@ -126,6 +127,7 @@ export class AdvancedDynamicTexture extends DynamicTexture {
|
|
|
126
127
|
private _rootElement;
|
|
127
128
|
private _cursorChanged;
|
|
128
129
|
private _defaultMousePointerId;
|
|
130
|
+
private _rootChildrenHaveChanged;
|
|
129
131
|
/** @internal */
|
|
130
132
|
_capturedPointerIds: Set<number>;
|
|
131
133
|
/** @internal */
|
|
@@ -2167,6 +2169,10 @@ export class Image extends Control {
|
|
|
2167
2169
|
private _populateNinePatchSlicesFromImage;
|
|
2168
2170
|
private _detectPointerOnOpaqueOnly;
|
|
2169
2171
|
private _imageDataCache;
|
|
2172
|
+
static SourceImgCache: Map<string, {
|
|
2173
|
+
img: IImage;
|
|
2174
|
+
timesUsed: number;
|
|
2175
|
+
}>;
|
|
2170
2176
|
/**
|
|
2171
2177
|
* Observable notified when the content is loaded
|
|
2172
2178
|
*/
|
|
@@ -2273,6 +2279,11 @@ export class Image extends Control {
|
|
|
2273
2279
|
* Gets the image source url
|
|
2274
2280
|
*/
|
|
2275
2281
|
get source(): Nullable<string>;
|
|
2282
|
+
/**
|
|
2283
|
+
* Resets the internal Image Element cache. Can reduce memory usage.
|
|
2284
|
+
*/
|
|
2285
|
+
static ResetImageCache(): void;
|
|
2286
|
+
private _removeCacheUsage;
|
|
2276
2287
|
/**
|
|
2277
2288
|
* Gets or sets image source url
|
|
2278
2289
|
*/
|
|
@@ -2583,6 +2594,10 @@ export class InputText extends Control implements IFocusableControl {
|
|
|
2583
2594
|
_onPointerMove(target: Control, coordinates: Vector2, pointerId: number, pi: PointerInfoBase): void;
|
|
2584
2595
|
_onPointerUp(target: Control, coordinates: Vector2, pointerId: number, buttonIndex: number, notifyClick: boolean): void;
|
|
2585
2596
|
protected _beforeRenderText(textWrapper: TextWrapper): TextWrapper;
|
|
2597
|
+
/** @internal */
|
|
2598
|
+
private set isTextHighlightOn(value);
|
|
2599
|
+
/** @internal */
|
|
2600
|
+
private get isTextHighlightOn();
|
|
2586
2601
|
dispose(): void;
|
|
2587
2602
|
}
|
|
2588
2603
|
|
|
@@ -8540,6 +8555,7 @@ declare module BABYLON.GUI {
|
|
|
8540
8555
|
private _canvasPointerOutObserver;
|
|
8541
8556
|
private _canvasBlurObserver;
|
|
8542
8557
|
private _controlAddedObserver;
|
|
8558
|
+
private _controlRemovedObserver;
|
|
8543
8559
|
private _background;
|
|
8544
8560
|
/** @internal */
|
|
8545
8561
|
_rootContainer: Container;
|
|
@@ -8575,6 +8591,7 @@ declare module BABYLON.GUI {
|
|
|
8575
8591
|
private _rootElement;
|
|
8576
8592
|
private _cursorChanged;
|
|
8577
8593
|
private _defaultMousePointerId;
|
|
8594
|
+
private _rootChildrenHaveChanged;
|
|
8578
8595
|
/** @internal */
|
|
8579
8596
|
_capturedPointerIds: Set<number>;
|
|
8580
8597
|
/** @internal */
|
|
@@ -10531,6 +10548,10 @@ declare module BABYLON.GUI {
|
|
|
10531
10548
|
private _populateNinePatchSlicesFromImage;
|
|
10532
10549
|
private _detectPointerOnOpaqueOnly;
|
|
10533
10550
|
private _imageDataCache;
|
|
10551
|
+
static SourceImgCache: Map<string, {
|
|
10552
|
+
img: BABYLON.IImage;
|
|
10553
|
+
timesUsed: number;
|
|
10554
|
+
}>;
|
|
10534
10555
|
/**
|
|
10535
10556
|
* BABYLON.Observable notified when the content is loaded
|
|
10536
10557
|
*/
|
|
@@ -10637,6 +10658,11 @@ declare module BABYLON.GUI {
|
|
|
10637
10658
|
* Gets the image source url
|
|
10638
10659
|
*/
|
|
10639
10660
|
get source(): BABYLON.Nullable<string>;
|
|
10661
|
+
/**
|
|
10662
|
+
* Resets the internal Image Element cache. Can reduce memory usage.
|
|
10663
|
+
*/
|
|
10664
|
+
static ResetImageCache(): void;
|
|
10665
|
+
private _removeCacheUsage;
|
|
10640
10666
|
/**
|
|
10641
10667
|
* Gets or sets image source url
|
|
10642
10668
|
*/
|
|
@@ -10898,6 +10924,10 @@ declare module BABYLON.GUI {
|
|
|
10898
10924
|
_onPointerMove(target: Control, coordinates: BABYLON.Vector2, pointerId: number, pi: BABYLON.PointerInfoBase): void;
|
|
10899
10925
|
_onPointerUp(target: Control, coordinates: BABYLON.Vector2, pointerId: number, buttonIndex: number, notifyClick: boolean): void;
|
|
10900
10926
|
protected _beforeRenderText(textWrapper: TextWrapper): TextWrapper;
|
|
10927
|
+
/** @internal */
|
|
10928
|
+
private set isTextHighlightOn(value);
|
|
10929
|
+
/** @internal */
|
|
10930
|
+
private get isTextHighlightOn();
|
|
10901
10931
|
dispose(): void;
|
|
10902
10932
|
}
|
|
10903
10933
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "babylonjs-gui",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.42.1",
|
|
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.42.1"
|
|
18
18
|
},
|
|
19
19
|
"devDependencies": {
|
|
20
20
|
"@dev/build-tools": "1.0.0",
|