babylonjs-gui-editor 8.1.1 → 8.2.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.
@@ -16,6 +16,7 @@ declare module BABYLON {
16
16
  private _draggedItem;
17
17
  private _rootRef;
18
18
  private _onErrorMessageObserver;
19
+ private _workbenchRef;
19
20
  componentDidMount(): void;
20
21
  componentWillUnmount(): void;
21
22
  addToolControls: (evt: KeyboardEvent) => void;
@@ -53,7 +54,7 @@ declare module BABYLON {
53
54
  interface IPortalProps {
54
55
  globalState: GlobalState;
55
56
  }
56
- export class Portal extends React.Component<IPortalProps> {
57
+ export class Portal extends React.Component<React.PropsWithChildren<IPortalProps>> {
57
58
  render(): React.ReactPortal;
58
59
  }
59
60
 
@@ -377,7 +378,7 @@ declare module BABYLON {
377
378
  }
378
379
  export class GizmoWrapper extends React.Component<IGizmoWrapperProps> {
379
380
  observer: Nullable<Observer<void>>;
380
- componentWillMount(): void;
381
+ componentDidMount(): void;
381
382
  componentWillUnmount(): void;
382
383
  render(): import("react/jsx-runtime").JSX.Element;
383
384
  }
@@ -627,6 +628,7 @@ declare module BABYLON {
627
628
  private _onSelectionChangedObservable;
628
629
  private _onDraggingEndObservable;
629
630
  private _onDraggingStartObservable;
631
+ private _thisRef;
630
632
  /** flag flipped onDragEnter if dragOver is already true
631
633
  * prevents dragLeave from immediately setting dragOver to false
632
634
  * required to make dragging work as expected
@@ -718,7 +720,7 @@ declare module BABYLON {
718
720
  onPopup?: () => void;
719
721
  onClose?: () => void;
720
722
  }
721
- export class SceneExplorerComponent extends React.Component<ISceneExplorerComponentProps, {
723
+ export class SceneExplorerComponent extends React.Component<React.PropsWithChildren<ISceneExplorerComponentProps>, {
722
724
  filter: Nullable<string>;
723
725
  selectedEntity: any;
724
726
  scene: Nullable<Scene>;
@@ -1076,7 +1078,7 @@ declare module BABYLON {
1076
1078
  private _onFontsParsedObserver;
1077
1079
  private _onControlVisibilityChangedObservers;
1078
1080
  constructor(props: ICommonControlPropertyGridComponentProps);
1079
- componentWillMount(): void;
1081
+ componentDidMount(): void;
1080
1082
  private _checkFontsInLayout;
1081
1083
  private _addFont;
1082
1084
  private _getTransformedReferenceCoordinate;
@@ -1151,6 +1153,7 @@ declare module BABYLON {
1151
1153
  export class LogComponent extends React.Component<ILogComponentProps, {
1152
1154
  logs: LogEntry[];
1153
1155
  }> {
1156
+ private _consoleRef;
1154
1157
  constructor(props: ILogComponentProps);
1155
1158
  componentDidMount(): void;
1156
1159
  componentDidUpdate(): void;
@@ -1801,7 +1804,7 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
1801
1804
  * @param props defines the split container properties
1802
1805
  * @returns the split container component
1803
1806
  */
1804
- export var SplitContainer: React.FC<ISplitContainerProps>;
1807
+ export var SplitContainer: React.FC<React.PropsWithChildren<ISplitContainerProps>>;
1805
1808
 
1806
1809
 
1807
1810
 
@@ -3563,9 +3566,7 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
3563
3566
  constructor(props: IColorPickerLineProps);
3564
3567
  syncPositions(): void;
3565
3568
  shouldComponentUpdate(nextProps: IColorPickerLineProps, nextState: IColorPickerComponentState): boolean;
3566
- getHexString(props?: Readonly<IColorPickerLineProps> & Readonly<{
3567
- children?: React.ReactNode | undefined;
3568
- }>): string;
3569
+ getHexString(props?: Readonly<IColorPickerLineProps>): string;
3569
3570
  componentDidUpdate(): void;
3570
3571
  componentDidMount(): void;
3571
3572
  render(): import("react/jsx-runtime").JSX.Element;
@@ -3598,9 +3599,7 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
3598
3599
  export class ColorLine extends React.Component<IColorLineProps, IColorLineComponentState> {
3599
3600
  constructor(props: IColorLineProps);
3600
3601
  shouldComponentUpdate(nextProps: IColorLineProps, nextState: IColorLineComponentState): boolean;
3601
- getValue(props?: Readonly<IColorLineProps> & Readonly<{
3602
- children?: React.ReactNode | undefined;
3603
- }>): Color4;
3602
+ getValue(props?: Readonly<IColorLineProps>): Color4;
3604
3603
  setColorFromString(colorString: string): void;
3605
3604
  setColor(newColor: Color4): void;
3606
3605
  switchExpandState(): void;
@@ -3851,7 +3850,7 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
3851
3850
  title?: string;
3852
3851
  backgroundColor?: string;
3853
3852
  };
3854
- export var Button: React.FC<ButtonProps>;
3853
+ export var Button: React.FC<React.PropsWithChildren<ButtonProps>>;
3855
3854
 
3856
3855
 
3857
3856
 
@@ -3941,7 +3940,7 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
3941
3940
  * @param props
3942
3941
  * @returns
3943
3942
  */
3944
- export const NodeRenderer: (props: INodeRendererProps) => import("react/jsx-runtime").JSX.Element;
3943
+ export const NodeRenderer: (props: React.PropsWithChildren<INodeRendererProps>) => import("react/jsx-runtime").JSX.Element;
3945
3944
 
3946
3945
 
3947
3946
 
@@ -3960,7 +3959,7 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
3960
3959
  * @param props properties
3961
3960
  * @returns graph node container element
3962
3961
  */
3963
- export var GraphNodesContainer: React.FC<IGraphContainerProps>;
3962
+ export var GraphNodesContainer: React.FC<React.PropsWithChildren<IGraphContainerProps>>;
3964
3963
 
3965
3964
 
3966
3965
 
@@ -3981,7 +3980,7 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
3981
3980
  highlighted?: boolean;
3982
3981
  parentContainerId: string;
3983
3982
  }
3984
- export var SingleGraphNode: React.FC<IGraphNodeProps>;
3983
+ export var SingleGraphNode: React.FC<React.PropsWithChildren<IGraphNodeProps>>;
3985
3984
 
3986
3985
 
3987
3986
 
@@ -4005,7 +4004,7 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
4005
4004
  * @param props
4006
4005
  * @returns
4007
4006
  */
4008
- export var GraphLinesContainer: React.FC<IGraphLinesContainerProps>;
4007
+ export var GraphLinesContainer: React.FC<React.PropsWithChildren<IGraphLinesContainerProps>>;
4009
4008
 
4010
4009
 
4011
4010
 
@@ -4091,7 +4090,7 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
4091
4090
  * @param props
4092
4091
  * @returns
4093
4092
  */
4094
- export var GraphContainer: React.FC<IGraphContainerProps>;
4093
+ export var GraphContainer: React.FC<React.PropsWithChildren<IGraphContainerProps>>;
4095
4094
 
4096
4095
 
4097
4096
 
@@ -4143,7 +4142,7 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
4143
4142
  * drag the handle in a node and drop it in another node to create a connection.
4144
4143
  * @returns connector element
4145
4144
  */
4146
- export var GraphConnectorHandler: React.FC<IGraphConnectorHandlerProps>;
4145
+ export var GraphConnectorHandler: React.FC<React.PropsWithChildren<IGraphConnectorHandlerProps>>;
4147
4146
 
4148
4147
 
4149
4148
 
@@ -4265,9 +4264,7 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
4265
4264
  constructor(props: IColorPickerLineComponentProps);
4266
4265
  syncPositions(): void;
4267
4266
  shouldComponentUpdate(nextProps: IColorPickerLineComponentProps, nextState: IColorPickerComponentState): boolean;
4268
- getHexString(props?: Readonly<IColorPickerLineComponentProps> & Readonly<{
4269
- children?: React.ReactNode | undefined;
4270
- }>): string;
4267
+ getHexString(props?: Readonly<IColorPickerLineComponentProps>): string;
4271
4268
  componentDidUpdate(): void;
4272
4269
  componentDidMount(): void;
4273
4270
  render(): import("react/jsx-runtime").JSX.Element;
@@ -4300,9 +4297,7 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
4300
4297
  export class ColorLineComponent extends React.Component<IColorLineComponentProps, IColorLineComponentState> {
4301
4298
  constructor(props: IColorLineComponentProps);
4302
4299
  shouldComponentUpdate(nextProps: IColorLineComponentProps, nextState: IColorLineComponentState): boolean;
4303
- getValue(props?: Readonly<IColorLineComponentProps> & Readonly<{
4304
- children?: React.ReactNode | undefined;
4305
- }>): Color4;
4300
+ getValue(props?: Readonly<IColorLineComponentProps>): Color4;
4306
4301
  setColorFromString(colorString: string): void;
4307
4302
  setColor(newColor: Color4): void;
4308
4303
  switchExpandState(): void;
@@ -4662,7 +4657,7 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
4662
4657
  * @param props properties
4663
4658
  * @returns drop zone element
4664
4659
  */
4665
- export var FlexibleDropZone: React.FC<IFlexibleDropZoneProps>;
4660
+ export var FlexibleDropZone: React.FC<React.PropsWithChildren<IFlexibleDropZoneProps>>;
4666
4661
 
4667
4662
 
4668
4663
 
@@ -4690,7 +4685,7 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
4690
4685
  * @param props properties
4691
4686
  * @returns DragHandler element
4692
4687
  */
4693
- export var FlexibleDragHandler: React.FC<IFlexibleDragHandlerProps>;
4688
+ export var FlexibleDragHandler: React.FC<React.PropsWithChildren<IFlexibleDragHandlerProps>>;
4694
4689
 
4695
4690
 
4696
4691
 
@@ -4715,7 +4710,7 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
4715
4710
  * @param props
4716
4711
  * @returns
4717
4712
  */
4718
- export var FlexibleColumn: React.FC<IFlexibleColumnProps>;
4713
+ export var FlexibleColumn: React.FC<React.PropsWithChildren<IFlexibleColumnProps>>;
4719
4714
 
4720
4715
 
4721
4716
 
@@ -4924,7 +4919,7 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
4924
4919
  artboardColor?: string;
4925
4920
  artboardColorPickerColor?: string;
4926
4921
  }
4927
- export var CommandBarComponent: React.FC<ICommandBarComponentProps>;
4922
+ export var CommandBarComponent: React.FC<React.PropsWithChildren<ICommandBarComponentProps>>;
4928
4923
 
4929
4924
 
4930
4925