babylonjs-gui 5.0.0-alpha.65 → 5.0.0-beta.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.js +72 -17
- package/babylon.gui.js.map +1 -1
- package/babylon.gui.min.js +2 -2
- package/babylon.gui.module.d.ts +31 -4
- package/package.json +2 -2
package/babylon.gui.module.d.ts
CHANGED
|
@@ -1694,7 +1694,11 @@ declare module "babylonjs-gui/2D/controls/textBlock" {
|
|
|
1694
1694
|
/**
|
|
1695
1695
|
* Ellipsize the text, i.e. shrink with trailing … when text is larger than Control.width.
|
|
1696
1696
|
*/
|
|
1697
|
-
Ellipsis = 2
|
|
1697
|
+
Ellipsis = 2,
|
|
1698
|
+
/**
|
|
1699
|
+
* Wrap the text word-wise and clip the text when the text's height is larger than the Control.height, and shrink the last line with trailing … .
|
|
1700
|
+
*/
|
|
1701
|
+
WordWrapEllipsis = 3
|
|
1698
1702
|
}
|
|
1699
1703
|
/**
|
|
1700
1704
|
* Class used to create text block control
|
|
@@ -1827,11 +1831,13 @@ declare module "babylonjs-gui/2D/controls/textBlock" {
|
|
|
1827
1831
|
/** @hidden */
|
|
1828
1832
|
_draw(context: ICanvasRenderingContext, invalidatedRectangle?: Nullable<Measure>): void;
|
|
1829
1833
|
protected _applyStates(context: ICanvasRenderingContext): void;
|
|
1830
|
-
protected _breakLines(refWidth: number, context: ICanvasRenderingContext): object[];
|
|
1834
|
+
protected _breakLines(refWidth: number, refHeight: number, context: ICanvasRenderingContext): object[];
|
|
1831
1835
|
protected _parseLine(line: string | undefined, context: ICanvasRenderingContext): object;
|
|
1832
1836
|
protected _parseLineEllipsis(line: string | undefined, width: number, context: ICanvasRenderingContext): object;
|
|
1833
1837
|
protected _parseLineWordWrap(line: string | undefined, width: number, context: ICanvasRenderingContext): object[];
|
|
1838
|
+
protected _parseLineWordWrapEllipsis(line: string | undefined, width: number, height: number, context: ICanvasRenderingContext): object[];
|
|
1834
1839
|
protected _renderLines(context: ICanvasRenderingContext): void;
|
|
1840
|
+
private _computeHeightForLinesOf;
|
|
1835
1841
|
/**
|
|
1836
1842
|
* Given a width constraint applied on the text block, find the expected height
|
|
1837
1843
|
* @returns expected height
|
|
@@ -2047,6 +2053,7 @@ declare module "babylonjs-gui/2D/controls/button" {
|
|
|
2047
2053
|
import { TextBlock } from "babylonjs-gui/2D/controls/textBlock";
|
|
2048
2054
|
import { Image } from "babylonjs-gui/2D/controls/image";
|
|
2049
2055
|
import { PointerInfoBase } from 'babylonjs/Events/pointerEvents';
|
|
2056
|
+
import { AdvancedDynamicTexture } from "babylonjs-gui/2D/advancedDynamicTexture";
|
|
2050
2057
|
/**
|
|
2051
2058
|
* Class used to create 2D buttons
|
|
2052
2059
|
*/
|
|
@@ -2098,6 +2105,13 @@ declare module "babylonjs-gui/2D/controls/button" {
|
|
|
2098
2105
|
_onPointerDown(target: Control, coordinates: Vector2, pointerId: number, buttonIndex: number, pi: PointerInfoBase): boolean;
|
|
2099
2106
|
/** @hidden */
|
|
2100
2107
|
_onPointerUp(target: Control, coordinates: Vector2, pointerId: number, buttonIndex: number, notifyClick: boolean, pi: PointerInfoBase): void;
|
|
2108
|
+
/**
|
|
2109
|
+
* Serializes the current button
|
|
2110
|
+
* @param serializationObject defines the JSON serialized object
|
|
2111
|
+
*/
|
|
2112
|
+
serialize(serializationObject: any): void;
|
|
2113
|
+
/** @hidden */
|
|
2114
|
+
_parseFromContent(serializedObject: any, host: AdvancedDynamicTexture): void;
|
|
2101
2115
|
/**
|
|
2102
2116
|
* Creates a new button made with an image and a text
|
|
2103
2117
|
* @param name defines the name of the button
|
|
@@ -8790,7 +8804,11 @@ declare module BABYLON.GUI {
|
|
|
8790
8804
|
/**
|
|
8791
8805
|
* Ellipsize the text, i.e. shrink with trailing … when text is larger than Control.width.
|
|
8792
8806
|
*/
|
|
8793
|
-
Ellipsis = 2
|
|
8807
|
+
Ellipsis = 2,
|
|
8808
|
+
/**
|
|
8809
|
+
* Wrap the text word-wise and clip the text when the text's height is larger than the Control.height, and shrink the last line with trailing … .
|
|
8810
|
+
*/
|
|
8811
|
+
WordWrapEllipsis = 3
|
|
8794
8812
|
}
|
|
8795
8813
|
/**
|
|
8796
8814
|
* Class used to create text block control
|
|
@@ -8923,11 +8941,13 @@ declare module BABYLON.GUI {
|
|
|
8923
8941
|
/** @hidden */
|
|
8924
8942
|
_draw(context: BABYLON.ICanvasRenderingContext, invalidatedRectangle?: BABYLON.Nullable<Measure>): void;
|
|
8925
8943
|
protected _applyStates(context: BABYLON.ICanvasRenderingContext): void;
|
|
8926
|
-
protected _breakLines(refWidth: number, context: BABYLON.ICanvasRenderingContext): object[];
|
|
8944
|
+
protected _breakLines(refWidth: number, refHeight: number, context: BABYLON.ICanvasRenderingContext): object[];
|
|
8927
8945
|
protected _parseLine(line: string | undefined, context: BABYLON.ICanvasRenderingContext): object;
|
|
8928
8946
|
protected _parseLineEllipsis(line: string | undefined, width: number, context: BABYLON.ICanvasRenderingContext): object;
|
|
8929
8947
|
protected _parseLineWordWrap(line: string | undefined, width: number, context: BABYLON.ICanvasRenderingContext): object[];
|
|
8948
|
+
protected _parseLineWordWrapEllipsis(line: string | undefined, width: number, height: number, context: BABYLON.ICanvasRenderingContext): object[];
|
|
8930
8949
|
protected _renderLines(context: BABYLON.ICanvasRenderingContext): void;
|
|
8950
|
+
private _computeHeightForLinesOf;
|
|
8931
8951
|
/**
|
|
8932
8952
|
* Given a width constraint applied on the text block, find the expected height
|
|
8933
8953
|
* @returns expected height
|
|
@@ -9182,6 +9202,13 @@ declare module BABYLON.GUI {
|
|
|
9182
9202
|
_onPointerDown(target: Control, coordinates: BABYLON.Vector2, pointerId: number, buttonIndex: number, pi: BABYLON.PointerInfoBase): boolean;
|
|
9183
9203
|
/** @hidden */
|
|
9184
9204
|
_onPointerUp(target: Control, coordinates: BABYLON.Vector2, pointerId: number, buttonIndex: number, notifyClick: boolean, pi: BABYLON.PointerInfoBase): void;
|
|
9205
|
+
/**
|
|
9206
|
+
* Serializes the current button
|
|
9207
|
+
* @param serializationObject defines the JSON serialized object
|
|
9208
|
+
*/
|
|
9209
|
+
serialize(serializationObject: any): void;
|
|
9210
|
+
/** @hidden */
|
|
9211
|
+
_parseFromContent(serializedObject: any, host: AdvancedDynamicTexture): void;
|
|
9185
9212
|
/**
|
|
9186
9213
|
* Creates a new button made with an image and a text
|
|
9187
9214
|
* @param name defines the name of the button
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
},
|
|
5
5
|
"name": "babylonjs-gui",
|
|
6
6
|
"description": "The Babylon.js GUI library is an extension you can use to generate interactive user interface. It is build on top of the DynamicTexture.",
|
|
7
|
-
"version": "5.0.0-
|
|
7
|
+
"version": "5.0.0-beta.1",
|
|
8
8
|
"repository": {
|
|
9
9
|
"type": "git",
|
|
10
10
|
"url": "https://github.com/BabylonJS/Babylon.js.git"
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
],
|
|
29
29
|
"license": "Apache-2.0",
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"babylonjs": "5.0.0-
|
|
31
|
+
"babylonjs": "5.0.0-beta.1"
|
|
32
32
|
},
|
|
33
33
|
"engines": {
|
|
34
34
|
"node": "*"
|