babylonjs-gui 9.10.1 → 9.12.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 +93 -0
- package/babylon.gui.js +1 -1
- 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 +194 -0
- package/package.json +2 -2
package/babylon.gui.module.d.ts
CHANGED
|
@@ -1488,6 +1488,22 @@ export class HandleMaterial extends ShaderMaterial {
|
|
|
1488
1488
|
dispose(): void;
|
|
1489
1489
|
}
|
|
1490
1490
|
|
|
1491
|
+
}
|
|
1492
|
+
declare module "babylonjs-gui/3D/materials/handle/wgsl/handle.vertex" {
|
|
1493
|
+
/** @internal */
|
|
1494
|
+
export const handleVertexShaderWGSL: {
|
|
1495
|
+
name: string;
|
|
1496
|
+
shader: string;
|
|
1497
|
+
};
|
|
1498
|
+
|
|
1499
|
+
}
|
|
1500
|
+
declare module "babylonjs-gui/3D/materials/handle/wgsl/handle.fragment" {
|
|
1501
|
+
/** @internal */
|
|
1502
|
+
export const handlePixelShaderWGSL: {
|
|
1503
|
+
name: string;
|
|
1504
|
+
shader: string;
|
|
1505
|
+
};
|
|
1506
|
+
|
|
1491
1507
|
}
|
|
1492
1508
|
declare module "babylonjs-gui/3D/materials/handle/shaders/handle.vertex" {
|
|
1493
1509
|
/** @internal */
|
|
@@ -1527,6 +1543,7 @@ import "babylonjs-gui/3D/materials/fluentButton/shaders/fluentButton.vertex";
|
|
|
1527
1543
|
* @since 5.0.0
|
|
1528
1544
|
*/
|
|
1529
1545
|
export class FluentButtonMaterial extends PushMaterial {
|
|
1546
|
+
private _shadersLoaded;
|
|
1530
1547
|
/**
|
|
1531
1548
|
* URL pointing to the texture used to define the coloring for the fluent blob effect.
|
|
1532
1549
|
*/
|
|
@@ -1682,6 +1699,7 @@ export class FluentButtonMaterial extends PushMaterial {
|
|
|
1682
1699
|
*/
|
|
1683
1700
|
globalRightIndexTipPosition: Vector3;
|
|
1684
1701
|
private _blobTexture;
|
|
1702
|
+
private _blobTextureUrl;
|
|
1685
1703
|
constructor(name: string, scene?: Scene);
|
|
1686
1704
|
needAlphaBlending(): boolean;
|
|
1687
1705
|
needAlphaTesting(): boolean;
|
|
@@ -1693,13 +1711,40 @@ export class FluentButtonMaterial extends PushMaterial {
|
|
|
1693
1711
|
* @returns the list of animatables object used in the material
|
|
1694
1712
|
*/
|
|
1695
1713
|
getAnimatables(): IAnimatable[];
|
|
1714
|
+
/**
|
|
1715
|
+
* Disposes the material.
|
|
1716
|
+
* @param forceDisposeEffect specifies if effects should be forcefully disposed
|
|
1717
|
+
*/
|
|
1696
1718
|
dispose(forceDisposeEffect?: boolean): void;
|
|
1697
1719
|
clone(name: string): FluentButtonMaterial;
|
|
1698
1720
|
serialize(): any;
|
|
1699
1721
|
getClassName(): string;
|
|
1722
|
+
/**
|
|
1723
|
+
* Creates a fluent button material from parsed material data.
|
|
1724
|
+
* @param source defines the JSON representation of the material
|
|
1725
|
+
* @param scene defines the hosting scene
|
|
1726
|
+
* @param rootUrl defines the root URL to use to load textures and relative dependencies
|
|
1727
|
+
* @returns a new fluent button material
|
|
1728
|
+
*/
|
|
1700
1729
|
static Parse(source: any, scene: Scene, rootUrl: string): FluentButtonMaterial;
|
|
1701
1730
|
}
|
|
1702
1731
|
|
|
1732
|
+
}
|
|
1733
|
+
declare module "babylonjs-gui/3D/materials/fluentButton/wgsl/fluentButton.vertex" {
|
|
1734
|
+
/** @internal */
|
|
1735
|
+
export const fluentButtonVertexShaderWGSL: {
|
|
1736
|
+
name: string;
|
|
1737
|
+
shader: string;
|
|
1738
|
+
};
|
|
1739
|
+
|
|
1740
|
+
}
|
|
1741
|
+
declare module "babylonjs-gui/3D/materials/fluentButton/wgsl/fluentButton.fragment" {
|
|
1742
|
+
/** @internal */
|
|
1743
|
+
export const fluentButtonPixelShaderWGSL: {
|
|
1744
|
+
name: string;
|
|
1745
|
+
shader: string;
|
|
1746
|
+
};
|
|
1747
|
+
|
|
1703
1748
|
}
|
|
1704
1749
|
declare module "babylonjs-gui/3D/materials/fluentButton/shaders/fluentButton.vertex" {
|
|
1705
1750
|
/** @internal */
|
|
@@ -1738,6 +1783,7 @@ import "babylonjs-gui/3D/materials/fluentBackplate/shaders/fluentBackplate.verte
|
|
|
1738
1783
|
* Class used to render square buttons with fluent design
|
|
1739
1784
|
*/
|
|
1740
1785
|
export class FluentBackplateMaterial extends PushMaterial {
|
|
1786
|
+
private _shadersLoaded;
|
|
1741
1787
|
/**
|
|
1742
1788
|
* URL pointing to the texture used to define the coloring for the fluent blob effect.
|
|
1743
1789
|
*/
|
|
@@ -1870,13 +1916,40 @@ export class FluentBackplateMaterial extends PushMaterial {
|
|
|
1870
1916
|
* @returns the list of animatables object used in the material
|
|
1871
1917
|
*/
|
|
1872
1918
|
getAnimatables(): IAnimatable[];
|
|
1919
|
+
/**
|
|
1920
|
+
* Disposes the material.
|
|
1921
|
+
* @param forceDisposeEffect specifies if effects should be forcefully disposed
|
|
1922
|
+
*/
|
|
1873
1923
|
dispose(forceDisposeEffect?: boolean): void;
|
|
1874
1924
|
clone(name: string): FluentBackplateMaterial;
|
|
1875
1925
|
serialize(): any;
|
|
1876
1926
|
getClassName(): string;
|
|
1927
|
+
/**
|
|
1928
|
+
* Creates a fluent backplate material from parsed material data.
|
|
1929
|
+
* @param source defines the JSON representation of the material
|
|
1930
|
+
* @param scene defines the hosting scene
|
|
1931
|
+
* @param rootUrl defines the root URL to use to load textures and relative dependencies
|
|
1932
|
+
* @returns a new fluent backplate material
|
|
1933
|
+
*/
|
|
1877
1934
|
static Parse(source: any, scene: Scene, rootUrl: string): FluentBackplateMaterial;
|
|
1878
1935
|
}
|
|
1879
1936
|
|
|
1937
|
+
}
|
|
1938
|
+
declare module "babylonjs-gui/3D/materials/fluentBackplate/wgsl/fluentBackplate.vertex" {
|
|
1939
|
+
/** @internal */
|
|
1940
|
+
export const fluentBackplateVertexShaderWGSL: {
|
|
1941
|
+
name: string;
|
|
1942
|
+
shader: string;
|
|
1943
|
+
};
|
|
1944
|
+
|
|
1945
|
+
}
|
|
1946
|
+
declare module "babylonjs-gui/3D/materials/fluentBackplate/wgsl/fluentBackplate.fragment" {
|
|
1947
|
+
/** @internal */
|
|
1948
|
+
export const fluentBackplatePixelShaderWGSL: {
|
|
1949
|
+
name: string;
|
|
1950
|
+
shader: string;
|
|
1951
|
+
};
|
|
1952
|
+
|
|
1880
1953
|
}
|
|
1881
1954
|
declare module "babylonjs-gui/3D/materials/fluentBackplate/shaders/fluentBackplate.vertex" {
|
|
1882
1955
|
/** @internal */
|
|
@@ -1923,6 +1996,7 @@ export class FluentMaterialDefines extends MaterialDefines {
|
|
|
1923
1996
|
* Class used to render controls with fluent design
|
|
1924
1997
|
*/
|
|
1925
1998
|
export class FluentMaterial extends PushMaterial {
|
|
1999
|
+
private _shadersLoaded;
|
|
1926
2000
|
/**
|
|
1927
2001
|
* Gets or sets inner glow intensity. A value of 0 means no glow (default is 0.5)
|
|
1928
2002
|
*/
|
|
@@ -1983,13 +2057,40 @@ export class FluentMaterial extends PushMaterial {
|
|
|
1983
2057
|
bindForSubMesh(world: Matrix, mesh: Mesh, subMesh: SubMesh): void;
|
|
1984
2058
|
getActiveTextures(): BaseTexture[];
|
|
1985
2059
|
hasTexture(texture: BaseTexture): boolean;
|
|
2060
|
+
/**
|
|
2061
|
+
* Disposes the material.
|
|
2062
|
+
* @param forceDisposeEffect specifies if effects should be forcefully disposed
|
|
2063
|
+
*/
|
|
1986
2064
|
dispose(forceDisposeEffect?: boolean): void;
|
|
1987
2065
|
clone(name: string): FluentMaterial;
|
|
1988
2066
|
serialize(): any;
|
|
1989
2067
|
getClassName(): string;
|
|
2068
|
+
/**
|
|
2069
|
+
* Creates a fluent material from parsed material data.
|
|
2070
|
+
* @param source defines the JSON representation of the material
|
|
2071
|
+
* @param scene defines the hosting scene
|
|
2072
|
+
* @param rootUrl defines the root URL to use to load textures and relative dependencies
|
|
2073
|
+
* @returns a new fluent material
|
|
2074
|
+
*/
|
|
1990
2075
|
static Parse(source: any, scene: Scene, rootUrl: string): FluentMaterial;
|
|
1991
2076
|
}
|
|
1992
2077
|
|
|
2078
|
+
}
|
|
2079
|
+
declare module "babylonjs-gui/3D/materials/fluent/wgsl/fluent.vertex" {
|
|
2080
|
+
/** @internal */
|
|
2081
|
+
export const fluentVertexShaderWGSL: {
|
|
2082
|
+
name: string;
|
|
2083
|
+
shader: string;
|
|
2084
|
+
};
|
|
2085
|
+
|
|
2086
|
+
}
|
|
2087
|
+
declare module "babylonjs-gui/3D/materials/fluent/wgsl/fluent.fragment" {
|
|
2088
|
+
/** @internal */
|
|
2089
|
+
export const fluentPixelShaderWGSL: {
|
|
2090
|
+
name: string;
|
|
2091
|
+
shader: string;
|
|
2092
|
+
};
|
|
2093
|
+
|
|
1993
2094
|
}
|
|
1994
2095
|
declare module "babylonjs-gui/3D/materials/fluent/shaders/fluent.vertex" {
|
|
1995
2096
|
/** @internal */
|
|
@@ -10393,6 +10494,20 @@ declare namespace BABYLON.GUI {
|
|
|
10393
10494
|
}
|
|
10394
10495
|
|
|
10395
10496
|
|
|
10497
|
+
/** @internal */
|
|
10498
|
+
export var handleVertexShaderWGSL: {
|
|
10499
|
+
name: string;
|
|
10500
|
+
shader: string;
|
|
10501
|
+
};
|
|
10502
|
+
|
|
10503
|
+
|
|
10504
|
+
/** @internal */
|
|
10505
|
+
export var handlePixelShaderWGSL: {
|
|
10506
|
+
name: string;
|
|
10507
|
+
shader: string;
|
|
10508
|
+
};
|
|
10509
|
+
|
|
10510
|
+
|
|
10396
10511
|
/** @internal */
|
|
10397
10512
|
export var handleVertexShader: {
|
|
10398
10513
|
name: string;
|
|
@@ -10414,6 +10529,7 @@ declare namespace BABYLON.GUI {
|
|
|
10414
10529
|
* @since 5.0.0
|
|
10415
10530
|
*/
|
|
10416
10531
|
export class FluentButtonMaterial extends BABYLON.PushMaterial {
|
|
10532
|
+
private _shadersLoaded;
|
|
10417
10533
|
/**
|
|
10418
10534
|
* URL pointing to the texture used to define the coloring for the fluent blob effect.
|
|
10419
10535
|
*/
|
|
@@ -10569,6 +10685,7 @@ declare namespace BABYLON.GUI {
|
|
|
10569
10685
|
*/
|
|
10570
10686
|
globalRightIndexTipPosition: BABYLON.Vector3;
|
|
10571
10687
|
private _blobTexture;
|
|
10688
|
+
private _blobTextureUrl;
|
|
10572
10689
|
constructor(name: string, scene?: BABYLON.Scene);
|
|
10573
10690
|
needAlphaBlending(): boolean;
|
|
10574
10691
|
needAlphaTesting(): boolean;
|
|
@@ -10580,14 +10697,39 @@ declare namespace BABYLON.GUI {
|
|
|
10580
10697
|
* @returns the list of animatables object used in the material
|
|
10581
10698
|
*/
|
|
10582
10699
|
getAnimatables(): BABYLON.IAnimatable[];
|
|
10700
|
+
/**
|
|
10701
|
+
* Disposes the material.
|
|
10702
|
+
* @param forceDisposeEffect specifies if effects should be forcefully disposed
|
|
10703
|
+
*/
|
|
10583
10704
|
dispose(forceDisposeEffect?: boolean): void;
|
|
10584
10705
|
clone(name: string): FluentButtonMaterial;
|
|
10585
10706
|
serialize(): any;
|
|
10586
10707
|
getClassName(): string;
|
|
10708
|
+
/**
|
|
10709
|
+
* Creates a fluent button material from parsed material data.
|
|
10710
|
+
* @param source defines the JSON representation of the material
|
|
10711
|
+
* @param scene defines the hosting scene
|
|
10712
|
+
* @param rootUrl defines the root URL to use to load textures and relative dependencies
|
|
10713
|
+
* @returns a new fluent button material
|
|
10714
|
+
*/
|
|
10587
10715
|
static Parse(source: any, scene: BABYLON.Scene, rootUrl: string): FluentButtonMaterial;
|
|
10588
10716
|
}
|
|
10589
10717
|
|
|
10590
10718
|
|
|
10719
|
+
/** @internal */
|
|
10720
|
+
export var fluentButtonVertexShaderWGSL: {
|
|
10721
|
+
name: string;
|
|
10722
|
+
shader: string;
|
|
10723
|
+
};
|
|
10724
|
+
|
|
10725
|
+
|
|
10726
|
+
/** @internal */
|
|
10727
|
+
export var fluentButtonPixelShaderWGSL: {
|
|
10728
|
+
name: string;
|
|
10729
|
+
shader: string;
|
|
10730
|
+
};
|
|
10731
|
+
|
|
10732
|
+
|
|
10591
10733
|
/** @internal */
|
|
10592
10734
|
export var fluentButtonVertexShader: {
|
|
10593
10735
|
name: string;
|
|
@@ -10608,6 +10750,7 @@ declare namespace BABYLON.GUI {
|
|
|
10608
10750
|
* Class used to render square buttons with fluent design
|
|
10609
10751
|
*/
|
|
10610
10752
|
export class FluentBackplateMaterial extends BABYLON.PushMaterial {
|
|
10753
|
+
private _shadersLoaded;
|
|
10611
10754
|
/**
|
|
10612
10755
|
* URL pointing to the texture used to define the coloring for the fluent blob effect.
|
|
10613
10756
|
*/
|
|
@@ -10740,14 +10883,39 @@ declare namespace BABYLON.GUI {
|
|
|
10740
10883
|
* @returns the list of animatables object used in the material
|
|
10741
10884
|
*/
|
|
10742
10885
|
getAnimatables(): BABYLON.IAnimatable[];
|
|
10886
|
+
/**
|
|
10887
|
+
* Disposes the material.
|
|
10888
|
+
* @param forceDisposeEffect specifies if effects should be forcefully disposed
|
|
10889
|
+
*/
|
|
10743
10890
|
dispose(forceDisposeEffect?: boolean): void;
|
|
10744
10891
|
clone(name: string): FluentBackplateMaterial;
|
|
10745
10892
|
serialize(): any;
|
|
10746
10893
|
getClassName(): string;
|
|
10894
|
+
/**
|
|
10895
|
+
* Creates a fluent backplate material from parsed material data.
|
|
10896
|
+
* @param source defines the JSON representation of the material
|
|
10897
|
+
* @param scene defines the hosting scene
|
|
10898
|
+
* @param rootUrl defines the root URL to use to load textures and relative dependencies
|
|
10899
|
+
* @returns a new fluent backplate material
|
|
10900
|
+
*/
|
|
10747
10901
|
static Parse(source: any, scene: BABYLON.Scene, rootUrl: string): FluentBackplateMaterial;
|
|
10748
10902
|
}
|
|
10749
10903
|
|
|
10750
10904
|
|
|
10905
|
+
/** @internal */
|
|
10906
|
+
export var fluentBackplateVertexShaderWGSL: {
|
|
10907
|
+
name: string;
|
|
10908
|
+
shader: string;
|
|
10909
|
+
};
|
|
10910
|
+
|
|
10911
|
+
|
|
10912
|
+
/** @internal */
|
|
10913
|
+
export var fluentBackplatePixelShaderWGSL: {
|
|
10914
|
+
name: string;
|
|
10915
|
+
shader: string;
|
|
10916
|
+
};
|
|
10917
|
+
|
|
10918
|
+
|
|
10751
10919
|
/** @internal */
|
|
10752
10920
|
export var fluentBackplateVertexShader: {
|
|
10753
10921
|
name: string;
|
|
@@ -10776,6 +10944,7 @@ declare namespace BABYLON.GUI {
|
|
|
10776
10944
|
* Class used to render controls with fluent design
|
|
10777
10945
|
*/
|
|
10778
10946
|
export class FluentMaterial extends BABYLON.PushMaterial {
|
|
10947
|
+
private _shadersLoaded;
|
|
10779
10948
|
/**
|
|
10780
10949
|
* Gets or sets inner glow intensity. A value of 0 means no glow (default is 0.5)
|
|
10781
10950
|
*/
|
|
@@ -10836,14 +11005,39 @@ declare namespace BABYLON.GUI {
|
|
|
10836
11005
|
bindForSubMesh(world: BABYLON.Matrix, mesh: BABYLON.Mesh, subMesh: BABYLON.SubMesh): void;
|
|
10837
11006
|
getActiveTextures(): BABYLON.BaseTexture[];
|
|
10838
11007
|
hasTexture(texture: BABYLON.BaseTexture): boolean;
|
|
11008
|
+
/**
|
|
11009
|
+
* Disposes the material.
|
|
11010
|
+
* @param forceDisposeEffect specifies if effects should be forcefully disposed
|
|
11011
|
+
*/
|
|
10839
11012
|
dispose(forceDisposeEffect?: boolean): void;
|
|
10840
11013
|
clone(name: string): FluentMaterial;
|
|
10841
11014
|
serialize(): any;
|
|
10842
11015
|
getClassName(): string;
|
|
11016
|
+
/**
|
|
11017
|
+
* Creates a fluent material from parsed material data.
|
|
11018
|
+
* @param source defines the JSON representation of the material
|
|
11019
|
+
* @param scene defines the hosting scene
|
|
11020
|
+
* @param rootUrl defines the root URL to use to load textures and relative dependencies
|
|
11021
|
+
* @returns a new fluent material
|
|
11022
|
+
*/
|
|
10843
11023
|
static Parse(source: any, scene: BABYLON.Scene, rootUrl: string): FluentMaterial;
|
|
10844
11024
|
}
|
|
10845
11025
|
|
|
10846
11026
|
|
|
11027
|
+
/** @internal */
|
|
11028
|
+
export var fluentVertexShaderWGSL: {
|
|
11029
|
+
name: string;
|
|
11030
|
+
shader: string;
|
|
11031
|
+
};
|
|
11032
|
+
|
|
11033
|
+
|
|
11034
|
+
/** @internal */
|
|
11035
|
+
export var fluentPixelShaderWGSL: {
|
|
11036
|
+
name: string;
|
|
11037
|
+
shader: string;
|
|
11038
|
+
};
|
|
11039
|
+
|
|
11040
|
+
|
|
10847
11041
|
/** @internal */
|
|
10848
11042
|
export var fluentVertexShader: {
|
|
10849
11043
|
name: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "babylonjs-gui",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.12.0",
|
|
4
4
|
"main": "babylon.gui.min.js",
|
|
5
5
|
"types": "babylon.gui.module.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"test:escheck": "es-check es6 ./babylon.gui.js"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"babylonjs": "9.
|
|
19
|
+
"babylonjs": "9.12.0"
|
|
20
20
|
},
|
|
21
21
|
"devDependencies": {
|
|
22
22
|
"@dev/build-tools": "1.0.0",
|