babylonjs-gui-editor 8.46.1 → 8.46.2

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.
@@ -4820,8 +4820,8 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
4820
4820
  label: string;
4821
4821
  gradients: Nullable<Array<T>>;
4822
4822
  addGradient: (step?: T) => void;
4823
- removeGradient: (step: T) => void;
4824
- onChange: (newGradient: T) => void;
4823
+ removeGradient: (step: T, index: number) => void;
4824
+ onChange: (newGradient: T, index: number) => void;
4825
4825
  };
4826
4826
  export var FactorGradientList: React.FunctionComponent<GradientListProps<FactorGradient>>;
4827
4827
  export var Color3GradientList: React.FunctionComponent<GradientListProps<Color3Gradient>>;
@@ -4310,7 +4310,7 @@ export const MaterialSelector: FunctionComponent<MaterialSelectorProps>;
4310
4310
 
4311
4311
  }
4312
4312
  declare module "babylonjs-gui-editor/fluent/primitives/list" {
4313
- import { ReactNode, ReactElement } from "react";
4313
+ import { ReactElement, ReactNode } from "react";
4314
4314
  /**
4315
4315
  * Represents an item in a list
4316
4316
  */
@@ -4835,8 +4835,8 @@ type GradientListProps<T extends FactorGradient | Color3Gradient | Color4Gradien
4835
4835
  label: string;
4836
4836
  gradients: Nullable<Array<T>>;
4837
4837
  addGradient: (step?: T) => void;
4838
- removeGradient: (step: T) => void;
4839
- onChange: (newGradient: T) => void;
4838
+ removeGradient: (step: T, index: number) => void;
4839
+ onChange: (newGradient: T, index: number) => void;
4840
4840
  };
4841
4841
  export const FactorGradientList: FunctionComponent<GradientListProps<FactorGradient>>;
4842
4842
  export const Color3GradientList: FunctionComponent<GradientListProps<Color3Gradient>>;
@@ -11210,8 +11210,8 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
11210
11210
  label: string;
11211
11211
  gradients: Nullable<Array<T>>;
11212
11212
  addGradient: (step?: T) => void;
11213
- removeGradient: (step: T) => void;
11214
- onChange: (newGradient: T) => void;
11213
+ removeGradient: (step: T, index: number) => void;
11214
+ onChange: (newGradient: T, index: number) => void;
11215
11215
  };
11216
11216
  export var FactorGradientList: React.FunctionComponent<GradientListProps<FactorGradient>>;
11217
11217
  export var Color3GradientList: React.FunctionComponent<GradientListProps<Color3Gradient>>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "babylonjs-gui-editor",
3
- "version": "8.46.1",
3
+ "version": "8.46.2",
4
4
  "main": "babylon.guiEditor.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.46.1",
18
- "babylonjs-gui": "^8.46.1"
17
+ "babylonjs": "^8.46.2",
18
+ "babylonjs-gui": "^8.46.2"
19
19
  },
20
20
  "devDependencies": {
21
21
  "@dev/build-tools": "1.0.0",