babylonjs-gui 8.56.2 → 9.1.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 +1 -1
- package/babylon.gui.js +1 -1
- package/babylon.gui.min.js +1 -1
- package/babylon.gui.min.js.map +1 -1
- package/babylon.gui.module.d.ts +15 -25
- package/config.json +1 -1
- package/package.json +3 -3
- package/readme.md +17 -21
- package/src/index.ts +1 -1
- package/tsconfig.build.json +4 -3
- package/tsconfig.json +2 -2
- package/webpack.config.js +16 -17
package/babylon.gui.module.d.ts
CHANGED
|
@@ -3,6 +3,10 @@ declare module "babylonjs-gui/index" {
|
|
|
3
3
|
export * from "babylonjs-gui/2D/index";
|
|
4
4
|
export * from "babylonjs-gui/3D/index";
|
|
5
5
|
|
|
6
|
+
}
|
|
7
|
+
declare module "babylonjs-gui/legacy/legacy" {
|
|
8
|
+
export * from "babylonjs-gui/index";
|
|
9
|
+
|
|
6
10
|
}
|
|
7
11
|
declare module "babylonjs-gui/3D/vector3WithInfo" {
|
|
8
12
|
import { Vector3 } from "babylonjs/Maths/math.vector";
|
|
@@ -145,8 +149,7 @@ export { FluentMaterial } from "babylonjs-gui/3D/materials/fluent/fluentMaterial
|
|
|
145
149
|
}
|
|
146
150
|
declare module "babylonjs-gui/3D/materials/mrdl/mrdlSliderThumbMaterial" {
|
|
147
151
|
import { Nullable } from "babylonjs/types";
|
|
148
|
-
import { Matrix } from "babylonjs/Maths/math.vector";
|
|
149
|
-
import { Vector2, Vector3, Vector4 } from "babylonjs/Maths/math.vector";
|
|
152
|
+
import { Matrix, Vector2, Vector3, Vector4 } from "babylonjs/Maths/math.vector";
|
|
150
153
|
import { IAnimatable } from "babylonjs/Animations/animatable.interface";
|
|
151
154
|
import { BaseTexture } from "babylonjs/Materials/Textures/baseTexture";
|
|
152
155
|
import { Texture } from "babylonjs/Materials/Textures/texture";
|
|
@@ -485,8 +488,7 @@ export class MRDLSliderThumbMaterial extends PushMaterial {
|
|
|
485
488
|
}
|
|
486
489
|
declare module "babylonjs-gui/3D/materials/mrdl/mrdlSliderBarMaterial" {
|
|
487
490
|
import { Nullable } from "babylonjs/types";
|
|
488
|
-
import { Matrix } from "babylonjs/Maths/math.vector";
|
|
489
|
-
import { Vector2, Vector3, Vector4 } from "babylonjs/Maths/math.vector";
|
|
491
|
+
import { Matrix, Vector2, Vector3, Vector4 } from "babylonjs/Maths/math.vector";
|
|
490
492
|
import { IAnimatable } from "babylonjs/Animations/animatable.interface";
|
|
491
493
|
import { BaseTexture } from "babylonjs/Materials/Textures/baseTexture";
|
|
492
494
|
import { Texture } from "babylonjs/Materials/Textures/texture";
|
|
@@ -886,14 +888,13 @@ declare module "babylonjs-gui/3D/materials/mrdl/mrdlFrontplateMaterial" {
|
|
|
886
888
|
import { AbstractMesh } from "babylonjs/Meshes/abstractMesh";
|
|
887
889
|
import { BaseTexture } from "babylonjs/Materials/Textures/baseTexture";
|
|
888
890
|
import { IAnimatable } from "babylonjs/Animations/animatable.interface";
|
|
889
|
-
import { Matrix } from "babylonjs/Maths/math.vector";
|
|
891
|
+
import { Matrix, Vector3 } from "babylonjs/Maths/math.vector";
|
|
890
892
|
import { Mesh } from "babylonjs/Meshes/mesh";
|
|
891
893
|
import { Nullable } from "babylonjs/types";
|
|
892
894
|
import { Scene } from "babylonjs/scene";
|
|
893
895
|
import { SubMesh } from "babylonjs/Meshes/subMesh";
|
|
894
896
|
import { Color4 } from "babylonjs/Maths/math.color";
|
|
895
897
|
import { PushMaterial } from "babylonjs/Materials/pushMaterial";
|
|
896
|
-
import { Vector3 } from "babylonjs/Maths/math.vector";
|
|
897
898
|
import "babylonjs-gui/3D/materials/mrdl/shaders/mrdlFrontplate.fragment";
|
|
898
899
|
import "babylonjs-gui/3D/materials/mrdl/shaders/mrdlFrontplate.vertex";
|
|
899
900
|
export class MRDLFrontplateMaterial extends PushMaterial {
|
|
@@ -1073,8 +1074,7 @@ export class MRDLFrontplateMaterial extends PushMaterial {
|
|
|
1073
1074
|
}
|
|
1074
1075
|
declare module "babylonjs-gui/3D/materials/mrdl/mrdlBackplateMaterial" {
|
|
1075
1076
|
import { Nullable } from "babylonjs/types";
|
|
1076
|
-
import { Matrix } from "babylonjs/Maths/math.vector";
|
|
1077
|
-
import { Vector4 } from "babylonjs/Maths/math.vector";
|
|
1077
|
+
import { Matrix, Vector4 } from "babylonjs/Maths/math.vector";
|
|
1078
1078
|
import { IAnimatable } from "babylonjs/Animations/animatable.interface";
|
|
1079
1079
|
import { BaseTexture } from "babylonjs/Materials/Textures/baseTexture";
|
|
1080
1080
|
import { PushMaterial } from "babylonjs/Materials/pushMaterial";
|
|
@@ -1511,8 +1511,7 @@ export * from "babylonjs-gui/3D/materials/fluentButton/fluentButtonMaterial";
|
|
|
1511
1511
|
}
|
|
1512
1512
|
declare module "babylonjs-gui/3D/materials/fluentButton/fluentButtonMaterial" {
|
|
1513
1513
|
import { Nullable } from "babylonjs/types";
|
|
1514
|
-
import { Matrix } from "babylonjs/Maths/math.vector";
|
|
1515
|
-
import { Vector3 } from "babylonjs/Maths/math.vector";
|
|
1514
|
+
import { Matrix, Vector3 } from "babylonjs/Maths/math.vector";
|
|
1516
1515
|
import { IAnimatable } from "babylonjs/Animations/animatable.interface";
|
|
1517
1516
|
import { BaseTexture } from "babylonjs/Materials/Textures/baseTexture";
|
|
1518
1517
|
import { PushMaterial } from "babylonjs/Materials/pushMaterial";
|
|
@@ -1724,8 +1723,7 @@ export * from "babylonjs-gui/3D/materials/fluentBackplate/fluentBackplateMateria
|
|
|
1724
1723
|
}
|
|
1725
1724
|
declare module "babylonjs-gui/3D/materials/fluentBackplate/fluentBackplateMaterial" {
|
|
1726
1725
|
import { Nullable } from "babylonjs/types";
|
|
1727
|
-
import { Matrix } from "babylonjs/Maths/math.vector";
|
|
1728
|
-
import { Vector3, Vector4 } from "babylonjs/Maths/math.vector";
|
|
1726
|
+
import { Matrix, Vector3, Vector4 } from "babylonjs/Maths/math.vector";
|
|
1729
1727
|
import { IAnimatable } from "babylonjs/Animations/animatable.interface";
|
|
1730
1728
|
import { BaseTexture } from "babylonjs/Materials/Textures/baseTexture";
|
|
1731
1729
|
import { PushMaterial } from "babylonjs/Materials/pushMaterial";
|
|
@@ -1902,8 +1900,7 @@ export * from "babylonjs-gui/3D/materials/fluent/fluentMaterial";
|
|
|
1902
1900
|
}
|
|
1903
1901
|
declare module "babylonjs-gui/3D/materials/fluent/fluentMaterial" {
|
|
1904
1902
|
import { Nullable } from "babylonjs/types";
|
|
1905
|
-
import { Matrix } from "babylonjs/Maths/math.vector";
|
|
1906
|
-
import { Vector3 } from "babylonjs/Maths/math.vector";
|
|
1903
|
+
import { Matrix, Vector3 } from "babylonjs/Maths/math.vector";
|
|
1907
1904
|
import { BaseTexture } from "babylonjs/Materials/Textures/baseTexture";
|
|
1908
1905
|
import { MaterialDefines } from "babylonjs/Materials/materialDefines";
|
|
1909
1906
|
import { PushMaterial } from "babylonjs/Materials/pushMaterial";
|
|
@@ -4289,13 +4286,11 @@ export * from "babylonjs-gui/2D/xmlLoader";
|
|
|
4289
4286
|
declare module "babylonjs-gui/2D/advancedDynamicTexture" {
|
|
4290
4287
|
import { Nullable } from "babylonjs/types";
|
|
4291
4288
|
import { Observable } from "babylonjs/Misc/observable";
|
|
4292
|
-
import { Matrix } from "babylonjs/Maths/math.vector";
|
|
4293
|
-
import { Vector2, Vector3 } from "babylonjs/Maths/math.vector";
|
|
4289
|
+
import { Matrix, Vector2, Vector3 } from "babylonjs/Maths/math.vector";
|
|
4294
4290
|
import { PointerInfoPre } from "babylonjs/Events/pointerEvents";
|
|
4295
4291
|
import { ClipboardInfo } from "babylonjs/Events/clipboardEvents";
|
|
4296
4292
|
import { Camera } from "babylonjs/Cameras/camera";
|
|
4297
|
-
import { IDynamicTextureOptions } from "babylonjs/Materials/Textures/dynamicTexture";
|
|
4298
|
-
import { DynamicTexture } from "babylonjs/Materials/Textures/dynamicTexture";
|
|
4293
|
+
import { IDynamicTextureOptions, DynamicTexture } from "babylonjs/Materials/Textures/dynamicTexture";
|
|
4299
4294
|
import { AbstractMesh } from "babylonjs/Meshes/abstractMesh";
|
|
4300
4295
|
import { Layer } from "babylonjs/Layers/layer";
|
|
4301
4296
|
import { Scene } from "babylonjs/scene";
|
|
@@ -6047,8 +6042,7 @@ export class InputTextArea extends InputText {
|
|
|
6047
6042
|
}
|
|
6048
6043
|
declare module "babylonjs-gui/2D/controls/inputText" {
|
|
6049
6044
|
import { Nullable } from "babylonjs/types";
|
|
6050
|
-
import { Observer } from "babylonjs/Misc/observable";
|
|
6051
|
-
import { Observable } from "babylonjs/Misc/observable";
|
|
6045
|
+
import { Observer, Observable } from "babylonjs/Misc/observable";
|
|
6052
6046
|
import { Vector2 } from "babylonjs/Maths/math.vector";
|
|
6053
6047
|
import { ClipboardInfo } from "babylonjs/Events/clipboardEvents";
|
|
6054
6048
|
import { PointerInfo, PointerInfoBase } from "babylonjs/Events/pointerEvents";
|
|
@@ -9039,10 +9033,6 @@ export class FrameGraphGUITask extends FrameGraphTask {
|
|
|
9039
9033
|
dispose(): void;
|
|
9040
9034
|
}
|
|
9041
9035
|
|
|
9042
|
-
}
|
|
9043
|
-
declare module "babylonjs-gui/legacy/legacy" {
|
|
9044
|
-
export * from "babylonjs-gui/index";
|
|
9045
|
-
|
|
9046
9036
|
}
|
|
9047
9037
|
|
|
9048
9038
|
declare module "babylonjs-gui" {
|
|
@@ -9050,7 +9040,7 @@ declare module "babylonjs-gui" {
|
|
|
9050
9040
|
}
|
|
9051
9041
|
|
|
9052
9042
|
|
|
9053
|
-
declare
|
|
9043
|
+
declare namespace BABYLON.GUI {
|
|
9054
9044
|
|
|
9055
9045
|
|
|
9056
9046
|
/**
|
package/config.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "babylonjs-gui",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "9.1.0",
|
|
4
4
|
"main": "babylon.gui.min.js",
|
|
5
5
|
"types": "babylon.gui.module.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -15,11 +15,11 @@
|
|
|
15
15
|
"test:escheck": "es-check es6 ./babylon.gui.js"
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"babylonjs": "
|
|
18
|
+
"babylonjs": "9.1.0"
|
|
19
19
|
},
|
|
20
20
|
"devDependencies": {
|
|
21
21
|
"@dev/build-tools": "1.0.0",
|
|
22
|
-
"@
|
|
22
|
+
"@dev/gui": "1.0.0",
|
|
23
23
|
"source-map-loader": "^4.0.0",
|
|
24
24
|
"ts-loader": "^9.2.6",
|
|
25
25
|
"webpack": "^5.103.0",
|
package/readme.md
CHANGED
|
@@ -1,43 +1,39 @@
|
|
|
1
|
-
Babylon.js GUI
|
|
2
|
-
=====================
|
|
1
|
+
# Babylon.js GUI Module
|
|
3
2
|
|
|
4
|
-
|
|
3
|
+
> We recommend using the [ES6 package `@babylonjs/gui`](https://www.npmjs.com/package/@babylonjs/gui) for new projects.
|
|
5
4
|
|
|
6
|
-
|
|
5
|
+
For usage documentation please visit the [GUI documentation](https://doc.babylonjs.com/features/featuresDeepDive/gui/).
|
|
7
6
|
|
|
8
|
-
##
|
|
7
|
+
## Installation
|
|
8
|
+
|
|
9
|
+
### CDN
|
|
9
10
|
|
|
10
11
|
> ⚠️ WARNING: The CDN should not be used in production environments. The purpose of our CDN is to serve Babylon packages to users learning how to use the platform or running small experiments. Once you've built an application and are ready to share it with the world at large, you should serve all packages from your own CDN.
|
|
11
12
|
|
|
12
13
|
Compiled js files (minified and source) are offered on our public CDN here:
|
|
13
14
|
|
|
14
|
-
|
|
15
|
-
|
|
15
|
+
- https://preview.babylonjs.com/gui/babylon.gui.js
|
|
16
|
+
- https://preview.babylonjs.com/gui/babylon.gui.min.js
|
|
16
17
|
|
|
17
|
-
|
|
18
|
+
### NPM
|
|
18
19
|
|
|
19
|
-
To install using npm
|
|
20
|
+
To install using npm:
|
|
20
21
|
|
|
21
|
-
```
|
|
22
|
-
npm install
|
|
22
|
+
```bash
|
|
23
|
+
npm install babylonjs babylonjs-gui
|
|
23
24
|
```
|
|
24
25
|
|
|
25
26
|
If using TypeScript, the typing needs to be added to tsconfig.json:
|
|
26
27
|
|
|
27
|
-
```
|
|
28
|
-
....
|
|
28
|
+
```json
|
|
29
29
|
"types": [
|
|
30
30
|
"babylonjs",
|
|
31
|
-
"babylonjs-gui"
|
|
32
|
-
|
|
33
|
-
],
|
|
34
|
-
....
|
|
31
|
+
"babylonjs-gui"
|
|
32
|
+
]
|
|
35
33
|
```
|
|
36
34
|
|
|
37
35
|
Afterwards it can be imported to the project using:
|
|
38
36
|
|
|
37
|
+
```javascript
|
|
38
|
+
import * as GUI from "babylonjs-gui";
|
|
39
39
|
```
|
|
40
|
-
import * as GUI from 'babylonjs-gui';
|
|
41
|
-
```
|
|
42
|
-
|
|
43
|
-
Using webpack to package your project will use the minified js file.
|
package/src/index.ts
CHANGED
package/tsconfig.build.json
CHANGED
|
@@ -5,12 +5,13 @@
|
|
|
5
5
|
"outDir": "./dist",
|
|
6
6
|
"rootDir": "../../../",
|
|
7
7
|
"target": "ES5",
|
|
8
|
+
"ignoreDeprecations": "6.0",
|
|
8
9
|
"declaration": false,
|
|
9
10
|
"importHelpers": true,
|
|
10
11
|
"paths": {
|
|
11
|
-
"core/*": ["dev/core/dist/*"],
|
|
12
|
-
"gui/*": ["dev/gui/src/*"],
|
|
13
|
-
"@lts/gui/*": ["lts/gui/src/*"]
|
|
12
|
+
"core/*": ["../../../dev/core/dist/*"],
|
|
13
|
+
"gui/*": ["../../../dev/gui/src/*"],
|
|
14
|
+
"@lts/gui/*": ["../../../lts/gui/src/*"]
|
|
14
15
|
}
|
|
15
16
|
},
|
|
16
17
|
"include": ["./src/**/*", "../../../dev/gui/src/**/*", "../../../lts/gui/src/**/*"]
|
package/tsconfig.json
CHANGED
package/webpack.config.js
CHANGED
|
@@ -1,17 +1,16 @@
|
|
|
1
|
-
const path = require("path");
|
|
2
|
-
const commonConfigGenerator = require("@dev/build-tools").webpackTools.commonUMDWebpackConfiguration;
|
|
3
|
-
|
|
4
|
-
module.exports = (env) => {
|
|
5
|
-
const commonConfig = commonConfigGenerator({
|
|
6
|
-
mode: env.production ? "production" : "development",
|
|
7
|
-
devPackageName: "gui",
|
|
8
|
-
namespace: "BABYLON.GUI",
|
|
9
|
-
outputPath: path.resolve(__dirname),
|
|
10
|
-
alias: {
|
|
11
|
-
gui: path.resolve(__dirname, "../../../dev/gui/src"),
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
};
|
|
1
|
+
const path = require("path");
|
|
2
|
+
const commonConfigGenerator = require("@dev/build-tools").webpackTools.commonUMDWebpackConfiguration;
|
|
3
|
+
|
|
4
|
+
module.exports = (env) => {
|
|
5
|
+
const commonConfig = commonConfigGenerator({
|
|
6
|
+
mode: env.production ? "production" : "development",
|
|
7
|
+
devPackageName: "gui",
|
|
8
|
+
namespace: "BABYLON.GUI",
|
|
9
|
+
outputPath: path.resolve(__dirname),
|
|
10
|
+
alias: {
|
|
11
|
+
gui: path.resolve(__dirname, "../../../dev/gui/src"),
|
|
12
|
+
},
|
|
13
|
+
minToMax: true,
|
|
14
|
+
});
|
|
15
|
+
return commonConfig;
|
|
16
|
+
};
|