babylonjs-gui-editor 8.1.1 → 8.2.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.
- package/babylon.guiEditor.d.ts +23 -28
- package/babylon.guiEditor.js +1 -1
- package/babylon.guiEditor.js.LICENSE.txt +12 -8
- package/babylon.guiEditor.js.map +1 -1
- package/babylon.guiEditor.max.js +13516 -9615
- package/babylon.guiEditor.module.d.ts +59 -65
- package/package.json +8 -8
|
@@ -21,6 +21,7 @@ export class WorkbenchEditor extends React.Component<IGraphEditorProps, IGraphEd
|
|
|
21
21
|
private _draggedItem;
|
|
22
22
|
private _rootRef;
|
|
23
23
|
private _onErrorMessageObserver;
|
|
24
|
+
private _workbenchRef;
|
|
24
25
|
componentDidMount(): void;
|
|
25
26
|
componentWillUnmount(): void;
|
|
26
27
|
addToolControls: (evt: KeyboardEvent) => void;
|
|
@@ -63,10 +64,11 @@ export class Tools {
|
|
|
63
64
|
declare module "babylonjs-gui-editor/portal" {
|
|
64
65
|
import * as React from "react";
|
|
65
66
|
import { GlobalState } from "babylonjs-gui-editor/globalState";
|
|
67
|
+
import { PropsWithChildren } from "react";
|
|
66
68
|
interface IPortalProps {
|
|
67
69
|
globalState: GlobalState;
|
|
68
70
|
}
|
|
69
|
-
export class Portal extends React.Component<IPortalProps
|
|
71
|
+
export class Portal extends React.Component<PropsWithChildren<IPortalProps>> {
|
|
70
72
|
render(): React.ReactPortal;
|
|
71
73
|
}
|
|
72
74
|
export {};
|
|
@@ -447,7 +449,7 @@ export interface IGizmoWrapperProps {
|
|
|
447
449
|
}
|
|
448
450
|
export class GizmoWrapper extends React.Component<IGizmoWrapperProps> {
|
|
449
451
|
observer: Nullable<Observer<void>>;
|
|
450
|
-
|
|
452
|
+
componentDidMount(): void;
|
|
451
453
|
componentWillUnmount(): void;
|
|
452
454
|
|
|
453
455
|
}
|
|
@@ -750,6 +752,7 @@ export class TreeItemSelectableComponent extends React.Component<ITreeItemSelect
|
|
|
750
752
|
private _onSelectionChangedObservable;
|
|
751
753
|
private _onDraggingEndObservable;
|
|
752
754
|
private _onDraggingStartObservable;
|
|
755
|
+
private _thisRef;
|
|
753
756
|
/** flag flipped onDragEnter if dragOver is already true
|
|
754
757
|
* prevents dragLeave from immediately setting dragOver to false
|
|
755
758
|
* required to make dragging work as expected
|
|
@@ -837,6 +840,7 @@ import { IExplorerExtensibilityGroup } from "babylonjs/Debug/debugLayer";
|
|
|
837
840
|
import { Scene } from "babylonjs/scene";
|
|
838
841
|
import { GlobalState } from "babylonjs-gui-editor/globalState";
|
|
839
842
|
import "babylonjs-gui-editor/components/sceneExplorer/sceneExplorer.scss";
|
|
843
|
+
import { PropsWithChildren } from "react";
|
|
840
844
|
interface ISceneExplorerFilterComponentProps {
|
|
841
845
|
onFilter: (filter: string) => void;
|
|
842
846
|
}
|
|
@@ -856,7 +860,7 @@ interface ISceneExplorerComponentProps {
|
|
|
856
860
|
onPopup?: () => void;
|
|
857
861
|
onClose?: () => void;
|
|
858
862
|
}
|
|
859
|
-
export class SceneExplorerComponent extends React.Component<ISceneExplorerComponentProps
|
|
863
|
+
export class SceneExplorerComponent extends React.Component<PropsWithChildren<ISceneExplorerComponentProps>, {
|
|
860
864
|
filter: Nullable<string>;
|
|
861
865
|
selectedEntity: any;
|
|
862
866
|
scene: Nullable<Scene>;
|
|
@@ -1367,7 +1371,7 @@ export class CommonControlPropertyGridComponent extends React.Component<ICommonC
|
|
|
1367
1371
|
private _onFontsParsedObserver;
|
|
1368
1372
|
private _onControlVisibilityChangedObservers;
|
|
1369
1373
|
constructor(props: ICommonControlPropertyGridComponentProps);
|
|
1370
|
-
|
|
1374
|
+
componentDidMount(): void;
|
|
1371
1375
|
private _checkFontsInLayout;
|
|
1372
1376
|
private _addFont;
|
|
1373
1377
|
private _getTransformedReferenceCoordinate;
|
|
@@ -1471,6 +1475,7 @@ export class LogEntry {
|
|
|
1471
1475
|
export class LogComponent extends React.Component<ILogComponentProps, {
|
|
1472
1476
|
logs: LogEntry[];
|
|
1473
1477
|
}> {
|
|
1478
|
+
private _consoleRef;
|
|
1474
1479
|
constructor(props: ILogComponentProps);
|
|
1475
1480
|
componentDidMount(): void;
|
|
1476
1481
|
componentDidUpdate(): void;
|
|
@@ -2019,6 +2024,7 @@ export const SplitContext: import("react").Context<ISplitContext>;
|
|
|
2019
2024
|
|
|
2020
2025
|
}
|
|
2021
2026
|
declare module "babylonjs-gui-editor/split/splitContainer" {
|
|
2027
|
+
import { PropsWithChildren } from "react";
|
|
2022
2028
|
import { SplitDirection } from "babylonjs-gui-editor/split/splitContext";
|
|
2023
2029
|
/**
|
|
2024
2030
|
* Split container properties
|
|
@@ -2075,7 +2081,7 @@ export interface ISplitContainerProps {
|
|
|
2075
2081
|
* @param props defines the split container properties
|
|
2076
2082
|
* @returns the split container component
|
|
2077
2083
|
*/
|
|
2078
|
-
export const SplitContainer: React.FC<ISplitContainerProps
|
|
2084
|
+
export const SplitContainer: React.FC<PropsWithChildren<ISplitContainerProps>>;
|
|
2079
2085
|
|
|
2080
2086
|
}
|
|
2081
2087
|
declare module "babylonjs-gui-editor/nodeGraphSystem/typeLedger" {
|
|
@@ -3714,9 +3720,7 @@ export class ColorPickerLine extends React.Component<IColorPickerLineProps, ICol
|
|
|
3714
3720
|
constructor(props: IColorPickerLineProps);
|
|
3715
3721
|
syncPositions(): void;
|
|
3716
3722
|
shouldComponentUpdate(nextProps: IColorPickerLineProps, nextState: IColorPickerComponentState): boolean;
|
|
3717
|
-
getHexString(props?: Readonly<IColorPickerLineProps>
|
|
3718
|
-
children?: React.ReactNode | undefined;
|
|
3719
|
-
}>): string;
|
|
3723
|
+
getHexString(props?: Readonly<IColorPickerLineProps>): string;
|
|
3720
3724
|
componentDidUpdate(): void;
|
|
3721
3725
|
componentDidMount(): void;
|
|
3722
3726
|
|
|
@@ -3749,9 +3753,7 @@ interface IColorLineComponentState {
|
|
|
3749
3753
|
export class ColorLine extends React.Component<IColorLineProps, IColorLineComponentState> {
|
|
3750
3754
|
constructor(props: IColorLineProps);
|
|
3751
3755
|
shouldComponentUpdate(nextProps: IColorLineProps, nextState: IColorLineComponentState): boolean;
|
|
3752
|
-
getValue(props?: Readonly<IColorLineProps>
|
|
3753
|
-
children?: React.ReactNode | undefined;
|
|
3754
|
-
}>): Color4;
|
|
3756
|
+
getValue(props?: Readonly<IColorLineProps>): Color4;
|
|
3755
3757
|
setColorFromString(colorString: string): void;
|
|
3756
3758
|
setColor(newColor: Color4): void;
|
|
3757
3759
|
switchExpandState(): void;
|
|
@@ -3938,6 +3940,7 @@ export const Icon: React.FC<IconProps>;
|
|
|
3938
3940
|
|
|
3939
3941
|
}
|
|
3940
3942
|
declare module "babylonjs-gui-editor/components/Button" {
|
|
3943
|
+
import { PropsWithChildren } from "react";
|
|
3941
3944
|
export type ButtonProps = {
|
|
3942
3945
|
disabled?: boolean;
|
|
3943
3946
|
active?: boolean;
|
|
@@ -3947,7 +3950,7 @@ export type ButtonProps = {
|
|
|
3947
3950
|
title?: string;
|
|
3948
3951
|
backgroundColor?: string;
|
|
3949
3952
|
};
|
|
3950
|
-
export const Button: React.FC<ButtonProps
|
|
3953
|
+
export const Button: React.FC<PropsWithChildren<ButtonProps>>;
|
|
3951
3954
|
|
|
3952
3955
|
}
|
|
3953
3956
|
declare module "babylonjs-gui-editor/components/reactGraphSystem/useGraphContext" {
|
|
@@ -3959,7 +3962,7 @@ export const useGraphContext: () => import("babylonjs-gui-editor/components/reac
|
|
|
3959
3962
|
|
|
3960
3963
|
}
|
|
3961
3964
|
declare module "babylonjs-gui-editor/components/reactGraphSystem/NodeRenderer" {
|
|
3962
|
-
import { ComponentType } from "react";
|
|
3965
|
+
import { ComponentType, PropsWithChildren } from "react";
|
|
3963
3966
|
import { Nullable } from "babylonjs/types";
|
|
3964
3967
|
export type IVisualRecordsType = Record<string, {
|
|
3965
3968
|
x: number;
|
|
@@ -4031,7 +4034,7 @@ export interface INodeRendererProps {
|
|
|
4031
4034
|
|
|
4032
4035
|
}
|
|
4033
4036
|
declare module "babylonjs-gui-editor/components/reactGraphSystem/GraphNodesContainer" {
|
|
4034
|
-
import { FC } from "react";
|
|
4037
|
+
import { FC, PropsWithChildren } from "react";
|
|
4035
4038
|
export interface IGraphContainerProps {
|
|
4036
4039
|
onNodeMoved: (id: string, x: number, y: number) => void;
|
|
4037
4040
|
id: string;
|
|
@@ -4041,11 +4044,11 @@ export interface IGraphContainerProps {
|
|
|
4041
4044
|
* @param props properties
|
|
4042
4045
|
* @returns graph node container element
|
|
4043
4046
|
*/
|
|
4044
|
-
export const GraphNodesContainer: FC<IGraphContainerProps
|
|
4047
|
+
export const GraphNodesContainer: FC<PropsWithChildren<IGraphContainerProps>>;
|
|
4045
4048
|
|
|
4046
4049
|
}
|
|
4047
4050
|
declare module "babylonjs-gui-editor/components/reactGraphSystem/GraphNode" {
|
|
4048
|
-
import { FC } from "react";
|
|
4051
|
+
import { FC, PropsWithChildren } from "react";
|
|
4049
4052
|
export interface IGraphNodeProps {
|
|
4050
4053
|
id: string;
|
|
4051
4054
|
name: string;
|
|
@@ -4057,11 +4060,11 @@ export interface IGraphNodeProps {
|
|
|
4057
4060
|
highlighted?: boolean;
|
|
4058
4061
|
parentContainerId: string;
|
|
4059
4062
|
}
|
|
4060
|
-
export const SingleGraphNode: FC<IGraphNodeProps
|
|
4063
|
+
export const SingleGraphNode: FC<PropsWithChildren<IGraphNodeProps>>;
|
|
4061
4064
|
|
|
4062
4065
|
}
|
|
4063
4066
|
declare module "babylonjs-gui-editor/components/reactGraphSystem/GraphLinesContainer" {
|
|
4064
|
-
import { FC } from "react";
|
|
4067
|
+
import { FC, PropsWithChildren } from "react";
|
|
4065
4068
|
/**
|
|
4066
4069
|
* props for the GraphLineContainer
|
|
4067
4070
|
*/
|
|
@@ -4076,7 +4079,7 @@ export interface IGraphLinesContainerProps {
|
|
|
4076
4079
|
* @param props
|
|
4077
4080
|
* @returns
|
|
4078
4081
|
*/
|
|
4079
|
-
export const GraphLinesContainer: FC<IGraphLinesContainerProps
|
|
4082
|
+
export const GraphLinesContainer: FC<PropsWithChildren<IGraphLinesContainerProps>>;
|
|
4080
4083
|
|
|
4081
4084
|
}
|
|
4082
4085
|
declare module "babylonjs-gui-editor/components/reactGraphSystem/GraphLine" {
|
|
@@ -4137,7 +4140,7 @@ export const GraphContextManager: import("react").Context<IGraphContext>;
|
|
|
4137
4140
|
|
|
4138
4141
|
}
|
|
4139
4142
|
declare module "babylonjs-gui-editor/components/reactGraphSystem/GraphContainer" {
|
|
4140
|
-
import { FC } from "react";
|
|
4143
|
+
import { FC, PropsWithChildren } from "react";
|
|
4141
4144
|
export interface IGraphContainerProps {
|
|
4142
4145
|
}
|
|
4143
4146
|
/**
|
|
@@ -4146,11 +4149,11 @@ export interface IGraphContainerProps {
|
|
|
4146
4149
|
* @param props
|
|
4147
4150
|
* @returns
|
|
4148
4151
|
*/
|
|
4149
|
-
export const GraphContainer: FC<IGraphContainerProps
|
|
4152
|
+
export const GraphContainer: FC<PropsWithChildren<IGraphContainerProps>>;
|
|
4150
4153
|
|
|
4151
4154
|
}
|
|
4152
4155
|
declare module "babylonjs-gui-editor/components/reactGraphSystem/GraphConnectorHandle" {
|
|
4153
|
-
import { FC } from "react";
|
|
4156
|
+
import { FC, PropsWithChildren } from "react";
|
|
4154
4157
|
/**
|
|
4155
4158
|
* Props for the connector
|
|
4156
4159
|
*/
|
|
@@ -4193,7 +4196,7 @@ export interface IGraphConnectorHandlerProps {
|
|
|
4193
4196
|
* drag the handle in a node and drop it in another node to create a connection.
|
|
4194
4197
|
* @returns connector element
|
|
4195
4198
|
*/
|
|
4196
|
-
export const GraphConnectorHandler: FC<IGraphConnectorHandlerProps
|
|
4199
|
+
export const GraphConnectorHandler: FC<PropsWithChildren<IGraphConnectorHandlerProps>>;
|
|
4197
4200
|
|
|
4198
4201
|
}
|
|
4199
4202
|
declare module "babylonjs-gui-editor/components/lines/OptionsLineComponent" {
|
|
@@ -4298,9 +4301,7 @@ export class ColorPickerLineComponent extends React.Component<IColorPickerLineCo
|
|
|
4298
4301
|
constructor(props: IColorPickerLineComponentProps);
|
|
4299
4302
|
syncPositions(): void;
|
|
4300
4303
|
shouldComponentUpdate(nextProps: IColorPickerLineComponentProps, nextState: IColorPickerComponentState): boolean;
|
|
4301
|
-
getHexString(props?: Readonly<IColorPickerLineComponentProps>
|
|
4302
|
-
children?: React.ReactNode | undefined;
|
|
4303
|
-
}>): string;
|
|
4304
|
+
getHexString(props?: Readonly<IColorPickerLineComponentProps>): string;
|
|
4304
4305
|
componentDidUpdate(): void;
|
|
4305
4306
|
componentDidMount(): void;
|
|
4306
4307
|
|
|
@@ -4333,9 +4334,7 @@ interface IColorLineComponentState {
|
|
|
4333
4334
|
export class ColorLineComponent extends React.Component<IColorLineComponentProps, IColorLineComponentState> {
|
|
4334
4335
|
constructor(props: IColorLineComponentProps);
|
|
4335
4336
|
shouldComponentUpdate(nextProps: IColorLineComponentProps, nextState: IColorLineComponentState): boolean;
|
|
4336
|
-
getValue(props?: Readonly<IColorLineComponentProps>
|
|
4337
|
-
children?: React.ReactNode | undefined;
|
|
4338
|
-
}>): Color4;
|
|
4337
|
+
getValue(props?: Readonly<IColorLineComponentProps>): Color4;
|
|
4339
4338
|
setColorFromString(colorString: string): void;
|
|
4340
4339
|
setColor(newColor: Color4): void;
|
|
4341
4340
|
switchExpandState(): void;
|
|
@@ -4635,7 +4634,7 @@ export const FlexibleGridContainer: FC<IFlexibleGridContainerProps>;
|
|
|
4635
4634
|
|
|
4636
4635
|
}
|
|
4637
4636
|
declare module "babylonjs-gui-editor/components/layout/FlexibleDropZone" {
|
|
4638
|
-
import { FC } from "react";
|
|
4637
|
+
import { FC, PropsWithChildren } from "react";
|
|
4639
4638
|
/**
|
|
4640
4639
|
* Arguments for the FlexibleDropZone component.
|
|
4641
4640
|
*/
|
|
@@ -4655,11 +4654,11 @@ export interface IFlexibleDropZoneProps {
|
|
|
4655
4654
|
* @param props properties
|
|
4656
4655
|
* @returns drop zone element
|
|
4657
4656
|
*/
|
|
4658
|
-
export const FlexibleDropZone: FC<IFlexibleDropZoneProps
|
|
4657
|
+
export const FlexibleDropZone: FC<PropsWithChildren<IFlexibleDropZoneProps>>;
|
|
4659
4658
|
|
|
4660
4659
|
}
|
|
4661
4660
|
declare module "babylonjs-gui-editor/components/layout/FlexibleDragHandler" {
|
|
4662
|
-
import { FC } from "react";
|
|
4661
|
+
import { FC, PropsWithChildren } from "react";
|
|
4663
4662
|
/**
|
|
4664
4663
|
* Arguments for the DragHandler component.
|
|
4665
4664
|
*/
|
|
@@ -4678,11 +4677,11 @@ export interface IFlexibleDragHandlerProps {
|
|
|
4678
4677
|
* @param props properties
|
|
4679
4678
|
* @returns DragHandler element
|
|
4680
4679
|
*/
|
|
4681
|
-
export const FlexibleDragHandler: FC<IFlexibleDragHandlerProps
|
|
4680
|
+
export const FlexibleDragHandler: FC<PropsWithChildren<IFlexibleDragHandlerProps>>;
|
|
4682
4681
|
|
|
4683
4682
|
}
|
|
4684
4683
|
declare module "babylonjs-gui-editor/components/layout/FlexibleColumn" {
|
|
4685
|
-
import { FC } from "react";
|
|
4684
|
+
import { FC, PropsWithChildren } from "react";
|
|
4686
4685
|
/**
|
|
4687
4686
|
* Arguments for the Column component.
|
|
4688
4687
|
*/
|
|
@@ -4698,7 +4697,7 @@ export interface IFlexibleColumnProps {
|
|
|
4698
4697
|
* @param props
|
|
4699
4698
|
* @returns
|
|
4700
4699
|
*/
|
|
4701
|
-
export const FlexibleColumn: FC<IFlexibleColumnProps
|
|
4700
|
+
export const FlexibleColumn: FC<PropsWithChildren<IFlexibleColumnProps>>;
|
|
4702
4701
|
|
|
4703
4702
|
}
|
|
4704
4703
|
declare module "babylonjs-gui-editor/components/layout/DraggableIcon" {
|
|
@@ -4863,7 +4862,7 @@ export const CommandButtonComponent: React.FC<ICommandButtonComponentProps>;
|
|
|
4863
4862
|
|
|
4864
4863
|
}
|
|
4865
4864
|
declare module "babylonjs-gui-editor/components/bars/CommandBarComponent" {
|
|
4866
|
-
import { FC } from "react";
|
|
4865
|
+
import { FC, PropsWithChildren } from "react";
|
|
4867
4866
|
export interface ICommandBarComponentProps {
|
|
4868
4867
|
onSaveButtonClicked?: () => void;
|
|
4869
4868
|
onSaveToSnippetButtonClicked?: () => void;
|
|
@@ -4878,7 +4877,7 @@ export interface ICommandBarComponentProps {
|
|
|
4878
4877
|
artboardColor?: string;
|
|
4879
4878
|
artboardColorPickerColor?: string;
|
|
4880
4879
|
}
|
|
4881
|
-
export const CommandBarComponent: FC<ICommandBarComponentProps
|
|
4880
|
+
export const CommandBarComponent: FC<PropsWithChildren<ICommandBarComponentProps>>;
|
|
4882
4881
|
|
|
4883
4882
|
}
|
|
4884
4883
|
declare module "babylonjs-gui-editor/colorPicker/hexColor" {
|
|
@@ -4994,6 +4993,7 @@ declare module BABYLON {
|
|
|
4994
4993
|
private _draggedItem;
|
|
4995
4994
|
private _rootRef;
|
|
4996
4995
|
private _onErrorMessageObserver;
|
|
4996
|
+
private _workbenchRef;
|
|
4997
4997
|
componentDidMount(): void;
|
|
4998
4998
|
componentWillUnmount(): void;
|
|
4999
4999
|
addToolControls: (evt: KeyboardEvent) => void;
|
|
@@ -5031,7 +5031,7 @@ declare module BABYLON {
|
|
|
5031
5031
|
interface IPortalProps {
|
|
5032
5032
|
globalState: GlobalState;
|
|
5033
5033
|
}
|
|
5034
|
-
export class Portal extends React.Component<IPortalProps
|
|
5034
|
+
export class Portal extends React.Component<React.PropsWithChildren<IPortalProps>> {
|
|
5035
5035
|
render(): React.ReactPortal;
|
|
5036
5036
|
}
|
|
5037
5037
|
|
|
@@ -5355,7 +5355,7 @@ declare module BABYLON {
|
|
|
5355
5355
|
}
|
|
5356
5356
|
export class GizmoWrapper extends React.Component<IGizmoWrapperProps> {
|
|
5357
5357
|
observer: Nullable<Observer<void>>;
|
|
5358
|
-
|
|
5358
|
+
componentDidMount(): void;
|
|
5359
5359
|
componentWillUnmount(): void;
|
|
5360
5360
|
render(): import("react/jsx-runtime").JSX.Element;
|
|
5361
5361
|
}
|
|
@@ -5605,6 +5605,7 @@ declare module BABYLON {
|
|
|
5605
5605
|
private _onSelectionChangedObservable;
|
|
5606
5606
|
private _onDraggingEndObservable;
|
|
5607
5607
|
private _onDraggingStartObservable;
|
|
5608
|
+
private _thisRef;
|
|
5608
5609
|
/** flag flipped onDragEnter if dragOver is already true
|
|
5609
5610
|
* prevents dragLeave from immediately setting dragOver to false
|
|
5610
5611
|
* required to make dragging work as expected
|
|
@@ -5696,7 +5697,7 @@ declare module BABYLON {
|
|
|
5696
5697
|
onPopup?: () => void;
|
|
5697
5698
|
onClose?: () => void;
|
|
5698
5699
|
}
|
|
5699
|
-
export class SceneExplorerComponent extends React.Component<ISceneExplorerComponentProps
|
|
5700
|
+
export class SceneExplorerComponent extends React.Component<React.PropsWithChildren<ISceneExplorerComponentProps>, {
|
|
5700
5701
|
filter: Nullable<string>;
|
|
5701
5702
|
selectedEntity: any;
|
|
5702
5703
|
scene: Nullable<Scene>;
|
|
@@ -6054,7 +6055,7 @@ declare module BABYLON {
|
|
|
6054
6055
|
private _onFontsParsedObserver;
|
|
6055
6056
|
private _onControlVisibilityChangedObservers;
|
|
6056
6057
|
constructor(props: ICommonControlPropertyGridComponentProps);
|
|
6057
|
-
|
|
6058
|
+
componentDidMount(): void;
|
|
6058
6059
|
private _checkFontsInLayout;
|
|
6059
6060
|
private _addFont;
|
|
6060
6061
|
private _getTransformedReferenceCoordinate;
|
|
@@ -6129,6 +6130,7 @@ declare module BABYLON {
|
|
|
6129
6130
|
export class LogComponent extends React.Component<ILogComponentProps, {
|
|
6130
6131
|
logs: LogEntry[];
|
|
6131
6132
|
}> {
|
|
6133
|
+
private _consoleRef;
|
|
6132
6134
|
constructor(props: ILogComponentProps);
|
|
6133
6135
|
componentDidMount(): void;
|
|
6134
6136
|
componentDidUpdate(): void;
|
|
@@ -6779,7 +6781,7 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
|
|
|
6779
6781
|
* @param props defines the split container properties
|
|
6780
6782
|
* @returns the split container component
|
|
6781
6783
|
*/
|
|
6782
|
-
export var SplitContainer: React.FC<ISplitContainerProps
|
|
6784
|
+
export var SplitContainer: React.FC<React.PropsWithChildren<ISplitContainerProps>>;
|
|
6783
6785
|
|
|
6784
6786
|
|
|
6785
6787
|
|
|
@@ -8541,9 +8543,7 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
|
|
|
8541
8543
|
constructor(props: IColorPickerLineProps);
|
|
8542
8544
|
syncPositions(): void;
|
|
8543
8545
|
shouldComponentUpdate(nextProps: IColorPickerLineProps, nextState: IColorPickerComponentState): boolean;
|
|
8544
|
-
getHexString(props?: Readonly<IColorPickerLineProps>
|
|
8545
|
-
children?: React.ReactNode | undefined;
|
|
8546
|
-
}>): string;
|
|
8546
|
+
getHexString(props?: Readonly<IColorPickerLineProps>): string;
|
|
8547
8547
|
componentDidUpdate(): void;
|
|
8548
8548
|
componentDidMount(): void;
|
|
8549
8549
|
render(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -8576,9 +8576,7 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
|
|
|
8576
8576
|
export class ColorLine extends React.Component<IColorLineProps, IColorLineComponentState> {
|
|
8577
8577
|
constructor(props: IColorLineProps);
|
|
8578
8578
|
shouldComponentUpdate(nextProps: IColorLineProps, nextState: IColorLineComponentState): boolean;
|
|
8579
|
-
getValue(props?: Readonly<IColorLineProps>
|
|
8580
|
-
children?: React.ReactNode | undefined;
|
|
8581
|
-
}>): Color4;
|
|
8579
|
+
getValue(props?: Readonly<IColorLineProps>): Color4;
|
|
8582
8580
|
setColorFromString(colorString: string): void;
|
|
8583
8581
|
setColor(newColor: Color4): void;
|
|
8584
8582
|
switchExpandState(): void;
|
|
@@ -8829,7 +8827,7 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
|
|
|
8829
8827
|
title?: string;
|
|
8830
8828
|
backgroundColor?: string;
|
|
8831
8829
|
};
|
|
8832
|
-
export var Button: React.FC<ButtonProps
|
|
8830
|
+
export var Button: React.FC<React.PropsWithChildren<ButtonProps>>;
|
|
8833
8831
|
|
|
8834
8832
|
|
|
8835
8833
|
|
|
@@ -8919,7 +8917,7 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
|
|
|
8919
8917
|
* @param props
|
|
8920
8918
|
* @returns
|
|
8921
8919
|
*/
|
|
8922
|
-
export const NodeRenderer: (props: INodeRendererProps) => import("react/jsx-runtime").JSX.Element;
|
|
8920
|
+
export const NodeRenderer: (props: React.PropsWithChildren<INodeRendererProps>) => import("react/jsx-runtime").JSX.Element;
|
|
8923
8921
|
|
|
8924
8922
|
|
|
8925
8923
|
|
|
@@ -8938,7 +8936,7 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
|
|
|
8938
8936
|
* @param props properties
|
|
8939
8937
|
* @returns graph node container element
|
|
8940
8938
|
*/
|
|
8941
|
-
export var GraphNodesContainer: React.FC<IGraphContainerProps
|
|
8939
|
+
export var GraphNodesContainer: React.FC<React.PropsWithChildren<IGraphContainerProps>>;
|
|
8942
8940
|
|
|
8943
8941
|
|
|
8944
8942
|
|
|
@@ -8959,7 +8957,7 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
|
|
|
8959
8957
|
highlighted?: boolean;
|
|
8960
8958
|
parentContainerId: string;
|
|
8961
8959
|
}
|
|
8962
|
-
export var SingleGraphNode: React.FC<IGraphNodeProps
|
|
8960
|
+
export var SingleGraphNode: React.FC<React.PropsWithChildren<IGraphNodeProps>>;
|
|
8963
8961
|
|
|
8964
8962
|
|
|
8965
8963
|
|
|
@@ -8983,7 +8981,7 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
|
|
|
8983
8981
|
* @param props
|
|
8984
8982
|
* @returns
|
|
8985
8983
|
*/
|
|
8986
|
-
export var GraphLinesContainer: React.FC<IGraphLinesContainerProps
|
|
8984
|
+
export var GraphLinesContainer: React.FC<React.PropsWithChildren<IGraphLinesContainerProps>>;
|
|
8987
8985
|
|
|
8988
8986
|
|
|
8989
8987
|
|
|
@@ -9069,7 +9067,7 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
|
|
|
9069
9067
|
* @param props
|
|
9070
9068
|
* @returns
|
|
9071
9069
|
*/
|
|
9072
|
-
export var GraphContainer: React.FC<IGraphContainerProps
|
|
9070
|
+
export var GraphContainer: React.FC<React.PropsWithChildren<IGraphContainerProps>>;
|
|
9073
9071
|
|
|
9074
9072
|
|
|
9075
9073
|
|
|
@@ -9121,7 +9119,7 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
|
|
|
9121
9119
|
* drag the handle in a node and drop it in another node to create a connection.
|
|
9122
9120
|
* @returns connector element
|
|
9123
9121
|
*/
|
|
9124
|
-
export var GraphConnectorHandler: React.FC<IGraphConnectorHandlerProps
|
|
9122
|
+
export var GraphConnectorHandler: React.FC<React.PropsWithChildren<IGraphConnectorHandlerProps>>;
|
|
9125
9123
|
|
|
9126
9124
|
|
|
9127
9125
|
|
|
@@ -9243,9 +9241,7 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
|
|
|
9243
9241
|
constructor(props: IColorPickerLineComponentProps);
|
|
9244
9242
|
syncPositions(): void;
|
|
9245
9243
|
shouldComponentUpdate(nextProps: IColorPickerLineComponentProps, nextState: IColorPickerComponentState): boolean;
|
|
9246
|
-
getHexString(props?: Readonly<IColorPickerLineComponentProps>
|
|
9247
|
-
children?: React.ReactNode | undefined;
|
|
9248
|
-
}>): string;
|
|
9244
|
+
getHexString(props?: Readonly<IColorPickerLineComponentProps>): string;
|
|
9249
9245
|
componentDidUpdate(): void;
|
|
9250
9246
|
componentDidMount(): void;
|
|
9251
9247
|
render(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -9278,9 +9274,7 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
|
|
|
9278
9274
|
export class ColorLineComponent extends React.Component<IColorLineComponentProps, IColorLineComponentState> {
|
|
9279
9275
|
constructor(props: IColorLineComponentProps);
|
|
9280
9276
|
shouldComponentUpdate(nextProps: IColorLineComponentProps, nextState: IColorLineComponentState): boolean;
|
|
9281
|
-
getValue(props?: Readonly<IColorLineComponentProps>
|
|
9282
|
-
children?: React.ReactNode | undefined;
|
|
9283
|
-
}>): Color4;
|
|
9277
|
+
getValue(props?: Readonly<IColorLineComponentProps>): Color4;
|
|
9284
9278
|
setColorFromString(colorString: string): void;
|
|
9285
9279
|
setColor(newColor: Color4): void;
|
|
9286
9280
|
switchExpandState(): void;
|
|
@@ -9640,7 +9634,7 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
|
|
|
9640
9634
|
* @param props properties
|
|
9641
9635
|
* @returns drop zone element
|
|
9642
9636
|
*/
|
|
9643
|
-
export var FlexibleDropZone: React.FC<IFlexibleDropZoneProps
|
|
9637
|
+
export var FlexibleDropZone: React.FC<React.PropsWithChildren<IFlexibleDropZoneProps>>;
|
|
9644
9638
|
|
|
9645
9639
|
|
|
9646
9640
|
|
|
@@ -9668,7 +9662,7 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
|
|
|
9668
9662
|
* @param props properties
|
|
9669
9663
|
* @returns DragHandler element
|
|
9670
9664
|
*/
|
|
9671
|
-
export var FlexibleDragHandler: React.FC<IFlexibleDragHandlerProps
|
|
9665
|
+
export var FlexibleDragHandler: React.FC<React.PropsWithChildren<IFlexibleDragHandlerProps>>;
|
|
9672
9666
|
|
|
9673
9667
|
|
|
9674
9668
|
|
|
@@ -9693,7 +9687,7 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
|
|
|
9693
9687
|
* @param props
|
|
9694
9688
|
* @returns
|
|
9695
9689
|
*/
|
|
9696
|
-
export var FlexibleColumn: React.FC<IFlexibleColumnProps
|
|
9690
|
+
export var FlexibleColumn: React.FC<React.PropsWithChildren<IFlexibleColumnProps>>;
|
|
9697
9691
|
|
|
9698
9692
|
|
|
9699
9693
|
|
|
@@ -9902,7 +9896,7 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
|
|
|
9902
9896
|
artboardColor?: string;
|
|
9903
9897
|
artboardColorPickerColor?: string;
|
|
9904
9898
|
}
|
|
9905
|
-
export var CommandBarComponent: React.FC<ICommandBarComponentProps
|
|
9899
|
+
export var CommandBarComponent: React.FC<React.PropsWithChildren<ICommandBarComponentProps>>;
|
|
9906
9900
|
|
|
9907
9901
|
|
|
9908
9902
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "babylonjs-gui-editor",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.2.0",
|
|
4
4
|
"main": "babylon.guiEditor.max.js",
|
|
5
5
|
"types": "babylon.guiEditor.module.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -14,23 +14,23 @@
|
|
|
14
14
|
"clean": "rimraf dist && rimraf babylon*.* -g"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"babylonjs": "^8.
|
|
18
|
-
"babylonjs-gui": "^8.
|
|
17
|
+
"babylonjs": "^8.2.0",
|
|
18
|
+
"babylonjs-gui": "^8.2.0"
|
|
19
19
|
},
|
|
20
20
|
"devDependencies": {
|
|
21
21
|
"@dev/build-tools": "1.0.0",
|
|
22
22
|
"@dev/shared-ui-components": "1.0.0",
|
|
23
23
|
"@tools/gui-editor": "1.0.0",
|
|
24
|
-
"@types/react": "^
|
|
25
|
-
"@types/react-dom": "^
|
|
24
|
+
"@types/react": "^18.0.0",
|
|
25
|
+
"@types/react-dom": "^18.0.0",
|
|
26
26
|
"css-loader": "^7.1.0",
|
|
27
|
-
"react": "^
|
|
27
|
+
"react": "^18.2.0",
|
|
28
28
|
"react-contextmenu": "RaananW/react-contextmenu",
|
|
29
|
-
"react-dom": "^
|
|
29
|
+
"react-dom": "^18.2.0",
|
|
30
30
|
"sass-loader": "^16.0.0",
|
|
31
31
|
"source-map-loader": "^4.0.0",
|
|
32
32
|
"ts-loader": "^9.2.6",
|
|
33
|
-
"webpack": "^5.
|
|
33
|
+
"webpack": "^5.98.0",
|
|
34
34
|
"webpack-cli": "^5.1.0",
|
|
35
35
|
"webpack-merge": "^5.8.0"
|
|
36
36
|
},
|