babylonjs-gui 5.0.0-rc.0 → 5.0.0-rc.3
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 +26 -15
- package/babylon.gui.js.map +1 -1
- package/babylon.gui.min.js +2 -2
- package/babylon.gui.module.d.ts +8 -2
- package/package.json +2 -2
package/babylon.gui.module.d.ts
CHANGED
|
@@ -755,9 +755,11 @@ declare module "babylonjs-gui/2D/advancedDynamicTexture" {
|
|
|
755
755
|
* @param supportPointerMove defines a boolean indicating if the texture must capture move events (true by default)
|
|
756
756
|
* @param onlyAlphaTesting defines a boolean indicating that alpha blending will not be used (only alpha testing) (false by default)
|
|
757
757
|
* @param invertY defines if the texture needs to be inverted on the y axis during loading (true by default)
|
|
758
|
+
* @param materialSetupCallback defines a custom way of creating and seting up the material on the mesh
|
|
758
759
|
* @returns a new AdvancedDynamicTexture
|
|
759
760
|
*/
|
|
760
|
-
static CreateForMesh(mesh: AbstractMesh, width?: number, height?: number, supportPointerMove?: boolean, onlyAlphaTesting?: boolean, invertY?: boolean): AdvancedDynamicTexture;
|
|
761
|
+
static CreateForMesh(mesh: AbstractMesh, width?: number, height?: number, supportPointerMove?: boolean, onlyAlphaTesting?: boolean, invertY?: boolean, materialSetupCallback?: (mesh: AbstractMesh, uniqueId: string, texture: AdvancedDynamicTexture, onlyAlphaTesting: boolean) => void): AdvancedDynamicTexture;
|
|
762
|
+
private static _CreateMaterial;
|
|
761
763
|
/**
|
|
762
764
|
* Creates a new AdvancedDynamicTexture in projected mode (ie. attached to a mesh) BUT do not create a new material for the mesh. You will be responsible for connecting the texture
|
|
763
765
|
* @param mesh defines the mesh which will receive the texture
|
|
@@ -6965,6 +6967,7 @@ declare module "babylonjs-gui/3D/controls/slider3D" {
|
|
|
6965
6967
|
private _maximum;
|
|
6966
6968
|
private _value;
|
|
6967
6969
|
private _step;
|
|
6970
|
+
private _draggedPosition;
|
|
6968
6971
|
/** Observable raised when the sldier value changes */
|
|
6969
6972
|
onValueChangedObservable: Observable<number>;
|
|
6970
6973
|
/**
|
|
@@ -7937,9 +7940,11 @@ declare module BABYLON.GUI {
|
|
|
7937
7940
|
* @param supportPointerMove defines a boolean indicating if the texture must capture move events (true by default)
|
|
7938
7941
|
* @param onlyAlphaTesting defines a boolean indicating that alpha blending will not be used (only alpha testing) (false by default)
|
|
7939
7942
|
* @param invertY defines if the texture needs to be inverted on the y axis during loading (true by default)
|
|
7943
|
+
* @param materialSetupCallback defines a custom way of creating and seting up the material on the mesh
|
|
7940
7944
|
* @returns a new AdvancedDynamicTexture
|
|
7941
7945
|
*/
|
|
7942
|
-
static CreateForMesh(mesh: BABYLON.AbstractMesh, width?: number, height?: number, supportPointerMove?: boolean, onlyAlphaTesting?: boolean, invertY?: boolean): AdvancedDynamicTexture;
|
|
7946
|
+
static CreateForMesh(mesh: BABYLON.AbstractMesh, width?: number, height?: number, supportPointerMove?: boolean, onlyAlphaTesting?: boolean, invertY?: boolean, materialSetupCallback?: (mesh: BABYLON.AbstractMesh, uniqueId: string, texture: AdvancedDynamicTexture, onlyAlphaTesting: boolean) => void): AdvancedDynamicTexture;
|
|
7947
|
+
private static _CreateMaterial;
|
|
7943
7948
|
/**
|
|
7944
7949
|
* Creates a new AdvancedDynamicTexture in projected mode (ie. attached to a mesh) BUT do not create a new material for the mesh. You will be responsible for connecting the texture
|
|
7945
7950
|
* @param mesh defines the mesh which will receive the texture
|
|
@@ -13713,6 +13718,7 @@ declare module BABYLON.GUI {
|
|
|
13713
13718
|
private _maximum;
|
|
13714
13719
|
private _value;
|
|
13715
13720
|
private _step;
|
|
13721
|
+
private _draggedPosition;
|
|
13716
13722
|
/** BABYLON.Observable raised when the sldier value changes */
|
|
13717
13723
|
onValueChangedObservable: BABYLON.Observable<number>;
|
|
13718
13724
|
/**
|
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-rc.
|
|
7
|
+
"version": "5.0.0-rc.3",
|
|
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-rc.
|
|
31
|
+
"babylonjs": "5.0.0-rc.3"
|
|
32
32
|
},
|
|
33
33
|
"engines": {
|
|
34
34
|
"node": "*"
|