@babylonjs/gui-editor 8.1.0 → 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.
@@ -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/core/Debug/debugLayer";
|
|
837
840
|
import { Scene } from "@babylonjs/core/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/rea
|
|
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/core/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" {
|
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": "dist/babylon.guiEditor.max.js",
|
5
5
|
"module": "dist/babylon.guiEditor.max.js",
|
6
6
|
"esnext": "dist/babylon.guiEditor.max.js",
|
@@ -24,10 +24,10 @@
|
|
24
24
|
"@types/react-dom": ">=16.0.9"
|
25
25
|
},
|
26
26
|
"devDependencies": {
|
27
|
-
"@babylonjs/core": "^8.
|
28
|
-
"@babylonjs/gui": "^8.
|
29
|
-
"react": "^
|
30
|
-
"react-dom": "^
|
27
|
+
"@babylonjs/core": "^8.2.0",
|
28
|
+
"@babylonjs/gui": "^8.2.0",
|
29
|
+
"react": "^18.2.0",
|
30
|
+
"react-dom": "^18.2.0"
|
31
31
|
},
|
32
32
|
"keywords": [
|
33
33
|
"3D",
|