babylonjs-gui 5.41.0 → 5.42.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 +13 -0
- package/babylon.gui.js +88 -37
- 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 +26 -0
- package/package.json +2 -2
package/babylon.gui.module.d.ts
CHANGED
|
@@ -2167,6 +2167,10 @@ export class Image extends Control {
|
|
|
2167
2167
|
private _populateNinePatchSlicesFromImage;
|
|
2168
2168
|
private _detectPointerOnOpaqueOnly;
|
|
2169
2169
|
private _imageDataCache;
|
|
2170
|
+
static SourceImgCache: Map<string, {
|
|
2171
|
+
img: IImage;
|
|
2172
|
+
timesUsed: number;
|
|
2173
|
+
}>;
|
|
2170
2174
|
/**
|
|
2171
2175
|
* Observable notified when the content is loaded
|
|
2172
2176
|
*/
|
|
@@ -2273,6 +2277,11 @@ export class Image extends Control {
|
|
|
2273
2277
|
* Gets the image source url
|
|
2274
2278
|
*/
|
|
2275
2279
|
get source(): Nullable<string>;
|
|
2280
|
+
/**
|
|
2281
|
+
* Resets the internal Image Element cache. Can reduce memory usage.
|
|
2282
|
+
*/
|
|
2283
|
+
static ResetImageCache(): void;
|
|
2284
|
+
private _removeCacheUsage;
|
|
2276
2285
|
/**
|
|
2277
2286
|
* Gets or sets image source url
|
|
2278
2287
|
*/
|
|
@@ -2583,6 +2592,10 @@ export class InputText extends Control implements IFocusableControl {
|
|
|
2583
2592
|
_onPointerMove(target: Control, coordinates: Vector2, pointerId: number, pi: PointerInfoBase): void;
|
|
2584
2593
|
_onPointerUp(target: Control, coordinates: Vector2, pointerId: number, buttonIndex: number, notifyClick: boolean): void;
|
|
2585
2594
|
protected _beforeRenderText(textWrapper: TextWrapper): TextWrapper;
|
|
2595
|
+
/** @internal */
|
|
2596
|
+
private set isTextHighlightOn(value);
|
|
2597
|
+
/** @internal */
|
|
2598
|
+
private get isTextHighlightOn();
|
|
2586
2599
|
dispose(): void;
|
|
2587
2600
|
}
|
|
2588
2601
|
|
|
@@ -10531,6 +10544,10 @@ declare module BABYLON.GUI {
|
|
|
10531
10544
|
private _populateNinePatchSlicesFromImage;
|
|
10532
10545
|
private _detectPointerOnOpaqueOnly;
|
|
10533
10546
|
private _imageDataCache;
|
|
10547
|
+
static SourceImgCache: Map<string, {
|
|
10548
|
+
img: BABYLON.IImage;
|
|
10549
|
+
timesUsed: number;
|
|
10550
|
+
}>;
|
|
10534
10551
|
/**
|
|
10535
10552
|
* BABYLON.Observable notified when the content is loaded
|
|
10536
10553
|
*/
|
|
@@ -10637,6 +10654,11 @@ declare module BABYLON.GUI {
|
|
|
10637
10654
|
* Gets the image source url
|
|
10638
10655
|
*/
|
|
10639
10656
|
get source(): BABYLON.Nullable<string>;
|
|
10657
|
+
/**
|
|
10658
|
+
* Resets the internal Image Element cache. Can reduce memory usage.
|
|
10659
|
+
*/
|
|
10660
|
+
static ResetImageCache(): void;
|
|
10661
|
+
private _removeCacheUsage;
|
|
10640
10662
|
/**
|
|
10641
10663
|
* Gets or sets image source url
|
|
10642
10664
|
*/
|
|
@@ -10898,6 +10920,10 @@ declare module BABYLON.GUI {
|
|
|
10898
10920
|
_onPointerMove(target: Control, coordinates: BABYLON.Vector2, pointerId: number, pi: BABYLON.PointerInfoBase): void;
|
|
10899
10921
|
_onPointerUp(target: Control, coordinates: BABYLON.Vector2, pointerId: number, buttonIndex: number, notifyClick: boolean): void;
|
|
10900
10922
|
protected _beforeRenderText(textWrapper: TextWrapper): TextWrapper;
|
|
10923
|
+
/** @internal */
|
|
10924
|
+
private set isTextHighlightOn(value);
|
|
10925
|
+
/** @internal */
|
|
10926
|
+
private get isTextHighlightOn();
|
|
10901
10927
|
dispose(): void;
|
|
10902
10928
|
}
|
|
10903
10929
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "babylonjs-gui",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.42.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.42.0"
|
|
18
18
|
},
|
|
19
19
|
"devDependencies": {
|
|
20
20
|
"@dev/build-tools": "1.0.0",
|