@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
  /**
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": "dist/babylon.guiEditor.max.js",
5
5
  "module": "dist/babylon.guiEditor.max.js",
6
6
  "esnext": "dist/babylon.guiEditor.max.js",
@@ -24,8 +24,8 @@
24
24
  "@types/react-dom": ">=16.0.9"
25
25
  },
26
26
  "devDependencies": {
27
- "@babylonjs/core": "^8.3.1",
28
- "@babylonjs/gui": "^8.3.1",
27
+ "@babylonjs/core": "^8.4.1",
28
+ "@babylonjs/gui": "^8.4.1",
29
29
  "react": "^18.2.0",
30
30
  "react-dom": "^18.2.0"
31
31
  },