babylonjs-gui-editor 8.3.1 → 8.4.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.
@@ -7,6 +7,7 @@ import "babylonjs-gui-editor/main.scss";
7
7
  import "babylonjs-gui-editor/scss/header.scss";
8
8
  interface IGraphEditorProps {
9
9
  globalState: GlobalState;
10
+ onReady?: () => Promise<void>;
10
11
  }
11
12
  interface IGraphEditorState {
12
13
  showPreviewPopUp: boolean;
@@ -1629,6 +1630,32 @@ export function getClassNameWithNamespace(obj: any): {
1629
1630
  babylonNamespace: string;
1630
1631
  };
1631
1632
 
1633
+ }
1634
+ declare module "babylonjs-gui-editor/constToOptionsMaps" {
1635
+ /**
1636
+ * Used by both particleSystem and alphaBlendModes
1637
+ */
1638
+ export const commonBlendModes: {
1639
+ label: string;
1640
+ value: number;
1641
+ }[];
1642
+ /**
1643
+ * Used to populated the blendMode dropdown in our various tools (Node Editor, Inspector, etc.)
1644
+ * The below ParticleSystem consts were defined before new Engine alpha blend modes were added, so we have to reference
1645
+ * the ParticleSystem.FOO consts explicitly (as the underlying const values are different - they get mapped to engine consts within baseParticleSystem.ts)
1646
+ */
1647
+ export const blendModeOptions: {
1648
+ label: string;
1649
+ value: number;
1650
+ }[];
1651
+ /**
1652
+ * Used to populated the alphaMode dropdown in our various tools (Node Editor, Inspector, etc.)
1653
+ */
1654
+ export const alphaModeOptions: {
1655
+ label: string;
1656
+ value: number;
1657
+ }[];
1658
+
1632
1659
  }
1633
1660
  declare module "babylonjs-gui-editor/tabs/propertyGrids/lockObject" {
1634
1661
  /**
@@ -4979,6 +5006,7 @@ declare module "babylonjs-gui-editor" {
4979
5006
  declare module BABYLON {
4980
5007
  interface IGraphEditorProps {
4981
5008
  globalState: GlobalState;
5009
+ onReady?: () => Promise<void>;
4982
5010
  }
4983
5011
  interface IGraphEditorState {
4984
5012
  showPreviewPopUp: boolean;
@@ -6310,6 +6338,38 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
6310
6338
 
6311
6339
 
6312
6340
 
6341
+ }
6342
+ declare module BABYLON {
6343
+
6344
+
6345
+ }
6346
+ declare module BABYLON.GuiEditor.SharedUIComponents {
6347
+ /**
6348
+ * Used by both particleSystem and alphaBlendModes
6349
+ */
6350
+ export var commonBlendModes: {
6351
+ label: string;
6352
+ value: number;
6353
+ }[];
6354
+ /**
6355
+ * Used to populated the blendMode dropdown in our various tools (Node Editor, Inspector, etc.)
6356
+ * The below ParticleSystem consts were defined before new Engine alpha blend modes were added, so we have to reference
6357
+ * the ParticleSystem.FOO consts explicitly (as the underlying var values are different - they get mapped to engine consts within baseParticleSystem.ts)
6358
+ */
6359
+ export var blendModeOptions: {
6360
+ label: string;
6361
+ value: number;
6362
+ }[];
6363
+ /**
6364
+ * Used to populated the alphaMode dropdown in our various tools (Node Editor, Inspector, etc.)
6365
+ */
6366
+ export var alphaModeOptions: {
6367
+ label: string;
6368
+ value: number;
6369
+ }[];
6370
+
6371
+
6372
+
6313
6373
  }
6314
6374
  declare module BABYLON {
6315
6375
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "babylonjs-gui-editor",
3
- "version": "8.3.1",
3
+ "version": "8.4.1",
4
4
  "main": "babylon.guiEditor.max.js",
5
5
  "types": "babylon.guiEditor.module.d.ts",
6
6
  "files": [
@@ -14,8 +14,8 @@
14
14
  "clean": "rimraf dist && rimraf babylon*.* -g"
15
15
  },
16
16
  "dependencies": {
17
- "babylonjs": "^8.3.1",
18
- "babylonjs-gui": "^8.3.1"
17
+ "babylonjs": "^8.4.1",
18
+ "babylonjs-gui": "^8.4.1"
19
19
  },
20
20
  "devDependencies": {
21
21
  "@dev/build-tools": "1.0.0",