@babylonjs/gui-editor 7.34.3 → 7.35.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.
@@ -38612,7 +38612,7 @@ const Icons = {
38612
38612
  },
38613
38613
  size40: {
38614
38614
  on: _imgs_toggleOnIcon_40px_svg__WEBPACK_IMPORTED_MODULE_8__,
38615
- mixed: "",
38615
+ mixed: "", // unneeded
38616
38616
  off: _imgs_toggleOffIcon_40px_svg__WEBPACK_IMPORTED_MODULE_9__,
38617
38617
  },
38618
38618
  };
@@ -185,7 +185,6 @@ export class GUIEditor {
185
185
 
186
186
  }
187
187
  declare module "@babylonjs/gui-editor/globalState" {
188
- /// <reference types="react" />
189
188
  import { Nullable } from "@babylonjs/core/types";
190
189
  import { Observable } from "@babylonjs/core/Misc/observable";
191
190
  import { LogEntry } from "@babylonjs/gui-editor/components/log/logComponent";
@@ -329,7 +328,7 @@ export interface IWorkbenchComponentProps {
329
328
  }
330
329
  export enum ConstraintDirection {
331
330
  NONE = 0,
332
- X = 2,
331
+ X = 2,// Horizontal constraint
333
332
  Y = 3
334
333
  }
335
334
  export class WorkbenchComponent extends React.Component<IWorkbenchComponentProps> {
@@ -1921,7 +1920,6 @@ export {};
1921
1920
 
1922
1921
  }
1923
1922
  declare module "@babylonjs/gui-editor/split/splitter" {
1924
- /// <reference types="react" />
1925
1923
  import { ControlledSize } from "@babylonjs/gui-editor/split/splitContext";
1926
1924
  /**
1927
1925
  * Splitter component properties
@@ -1965,7 +1963,6 @@ export const Splitter: React.FC<ISplitterProps>;
1965
1963
 
1966
1964
  }
1967
1965
  declare module "@babylonjs/gui-editor/split/splitContext" {
1968
- /// <reference types="react" />
1969
1966
  export enum ControlledSize {
1970
1967
  First = 0,
1971
1968
  Second = 1
@@ -2011,7 +2008,6 @@ export const SplitContext: import("react").Context<ISplitContext>;
2011
2008
 
2012
2009
  }
2013
2010
  declare module "@babylonjs/gui-editor/split/splitContainer" {
2014
- /// <reference types="react" />
2015
2011
  import { SplitDirection } from "@babylonjs/gui-editor/split/splitContext";
2016
2012
  /**
2017
2013
  * Split container properties
@@ -2132,8 +2128,8 @@ export class StateManager {
2132
2128
  type: string;
2133
2129
  targetX: number;
2134
2130
  targetY: number;
2135
- needRepositioning?: boolean | undefined;
2136
- smartAdd?: boolean | undefined;
2131
+ needRepositioning?: boolean;
2132
+ smartAdd?: boolean;
2137
2133
  }>;
2138
2134
  onHighlightNodeObservable: Observable<{
2139
2135
  data: any;
@@ -2280,7 +2276,6 @@ export class NodeLedger {
2280
2276
 
2281
2277
  }
2282
2278
  declare module "@babylonjs/gui-editor/nodeGraphSystem/graphNode" {
2283
- /// <reference types="react" />
2284
2279
  import { Nullable } from "@babylonjs/core/types";
2285
2280
  import { GraphCanvasComponent } from "@babylonjs/gui-editor/nodeGraphSystem/graphCanvas";
2286
2281
  import { NodePort } from "@babylonjs/gui-editor/nodeGraphSystem/nodePort";
@@ -3630,7 +3625,7 @@ export class ColorPickerLine extends React.Component<IColorPickerLineProps, ICol
3630
3625
  syncPositions(): void;
3631
3626
  shouldComponentUpdate(nextProps: IColorPickerLineProps, nextState: IColorPickerComponentState): boolean;
3632
3627
  getHexString(props?: Readonly<IColorPickerLineProps> & Readonly<{
3633
- children?: React.ReactNode;
3628
+ children?: React.ReactNode | undefined;
3634
3629
  }>): string;
3635
3630
  componentDidUpdate(): void;
3636
3631
  componentDidMount(): void;
@@ -3665,7 +3660,7 @@ export class ColorLine extends React.Component<IColorLineProps, IColorLineCompon
3665
3660
  constructor(props: IColorLineProps);
3666
3661
  shouldComponentUpdate(nextProps: IColorLineProps, nextState: IColorLineComponentState): boolean;
3667
3662
  getValue(props?: Readonly<IColorLineProps> & Readonly<{
3668
- children?: React.ReactNode;
3663
+ children?: React.ReactNode | undefined;
3669
3664
  }>): Color4;
3670
3665
  setColorFromString(colorString: string): void;
3671
3666
  setColor(newColor: Color4): void;
@@ -3799,7 +3794,6 @@ export function JoinClassNames(styleObject: any, ...names: string[]): string;
3799
3794
 
3800
3795
  }
3801
3796
  declare module "@babylonjs/gui-editor/components/Toggle" {
3802
- /// <reference types="react" />
3803
3797
  export type ToggleProps = {
3804
3798
  toggled: "on" | "mixed" | "off";
3805
3799
  onToggle?: () => void;
@@ -3846,7 +3840,6 @@ export const Label: React.FC<LabelProps>;
3846
3840
 
3847
3841
  }
3848
3842
  declare module "@babylonjs/gui-editor/components/Icon" {
3849
- /// <reference types="react" />
3850
3843
  export type IconProps = {
3851
3844
  color?: "dark" | "light";
3852
3845
  icon: string;
@@ -3855,7 +3848,6 @@ export const Icon: React.FC<IconProps>;
3855
3848
 
3856
3849
  }
3857
3850
  declare module "@babylonjs/gui-editor/components/Button" {
3858
- /// <reference types="react" />
3859
3851
  export type ButtonProps = {
3860
3852
  disabled?: boolean;
3861
3853
  active?: boolean;
@@ -4043,7 +4035,6 @@ export const GraphLine: FC<IGraphLineProps>;
4043
4035
 
4044
4036
  }
4045
4037
  declare module "@babylonjs/gui-editor/components/reactGraphSystem/GraphContextManager" {
4046
- /// <reference types="react" />
4047
4038
  /**
4048
4039
  * this context is used to pass callbacks to the graph nodes and connections
4049
4040
  */
@@ -4218,7 +4209,7 @@ export class ColorPickerLineComponent extends React.Component<IColorPickerLineCo
4218
4209
  syncPositions(): void;
4219
4210
  shouldComponentUpdate(nextProps: IColorPickerLineComponentProps, nextState: IColorPickerComponentState): boolean;
4220
4211
  getHexString(props?: Readonly<IColorPickerLineComponentProps> & Readonly<{
4221
- children?: React.ReactNode;
4212
+ children?: React.ReactNode | undefined;
4222
4213
  }>): string;
4223
4214
  componentDidUpdate(): void;
4224
4215
  componentDidMount(): void;
@@ -4253,7 +4244,7 @@ export class ColorLineComponent extends React.Component<IColorLineComponentProps
4253
4244
  constructor(props: IColorLineComponentProps);
4254
4245
  shouldComponentUpdate(nextProps: IColorLineComponentProps, nextState: IColorLineComponentState): boolean;
4255
4246
  getValue(props?: Readonly<IColorLineComponentProps> & Readonly<{
4256
- children?: React.ReactNode;
4247
+ children?: React.ReactNode | undefined;
4257
4248
  }>): Color4;
4258
4249
  setColorFromString(colorString: string): void;
4259
4250
  setColor(newColor: Color4): void;
@@ -4388,7 +4379,6 @@ export enum ResizeDirections {
4388
4379
 
4389
4380
  }
4390
4381
  declare module "@babylonjs/gui-editor/components/layout/LayoutContext" {
4391
- /// <reference types="react" />
4392
4382
  import { Layout } from "@babylonjs/gui-editor/components/layout/types";
4393
4383
  export const LayoutContext: import("react").Context<{
4394
4384
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@babylonjs/gui-editor",
3
- "version": "7.34.3",
3
+ "version": "7.35.0",
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": "^7.34.3",
28
- "@babylonjs/gui": "^7.34.3",
27
+ "@babylonjs/core": "^7.35.0",
28
+ "@babylonjs/gui": "^7.35.0",
29
29
  "react": "^17.0.2",
30
30
  "react-dom": "^17.0.2"
31
31
  },