@babylonjs/node-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.
@@ -15,10 +15,11 @@ export class SerializationTools {
|
|
15
15
|
declare module "@babylonjs/node-editor/portal" {
|
16
16
|
import * as React from "react";
|
17
17
|
import { GlobalState } from "@babylonjs/node-editor/globalState";
|
18
|
+
import { PropsWithChildren } from "react";
|
18
19
|
interface IPortalProps {
|
19
20
|
globalState: GlobalState;
|
20
21
|
}
|
21
|
-
export class Portal extends React.Component<IPortalProps
|
22
|
+
export class Portal extends React.Component<PropsWithChildren<IPortalProps>> {
|
22
23
|
render(): React.ReactPortal;
|
23
24
|
}
|
24
25
|
export {};
|
@@ -1871,6 +1872,7 @@ export const SplitContext: import("react").Context<ISplitContext>;
|
|
1871
1872
|
|
1872
1873
|
}
|
1873
1874
|
declare module "@babylonjs/node-editor/split/splitContainer" {
|
1875
|
+
import { PropsWithChildren } from "react";
|
1874
1876
|
import { SplitDirection } from "@babylonjs/node-editor/split/splitContext";
|
1875
1877
|
/**
|
1876
1878
|
* Split container properties
|
@@ -1927,7 +1929,7 @@ export interface ISplitContainerProps {
|
|
1927
1929
|
* @param props defines the split container properties
|
1928
1930
|
* @returns the split container component
|
1929
1931
|
*/
|
1930
|
-
export const SplitContainer: React.FC<ISplitContainerProps
|
1932
|
+
export const SplitContainer: React.FC<PropsWithChildren<ISplitContainerProps>>;
|
1931
1933
|
|
1932
1934
|
}
|
1933
1935
|
declare module "@babylonjs/node-editor/nodeGraphSystem/typeLedger" {
|
@@ -3566,9 +3568,7 @@ export class ColorPickerLine extends React.Component<IColorPickerLineProps, ICol
|
|
3566
3568
|
constructor(props: IColorPickerLineProps);
|
3567
3569
|
syncPositions(): void;
|
3568
3570
|
shouldComponentUpdate(nextProps: IColorPickerLineProps, nextState: IColorPickerComponentState): boolean;
|
3569
|
-
getHexString(props?: Readonly<IColorPickerLineProps>
|
3570
|
-
children?: React.ReactNode | undefined;
|
3571
|
-
}>): string;
|
3571
|
+
getHexString(props?: Readonly<IColorPickerLineProps>): string;
|
3572
3572
|
componentDidUpdate(): void;
|
3573
3573
|
componentDidMount(): void;
|
3574
3574
|
|
@@ -3601,9 +3601,7 @@ interface IColorLineComponentState {
|
|
3601
3601
|
export class ColorLine extends React.Component<IColorLineProps, IColorLineComponentState> {
|
3602
3602
|
constructor(props: IColorLineProps);
|
3603
3603
|
shouldComponentUpdate(nextProps: IColorLineProps, nextState: IColorLineComponentState): boolean;
|
3604
|
-
getValue(props?: Readonly<IColorLineProps>
|
3605
|
-
children?: React.ReactNode | undefined;
|
3606
|
-
}>): Color4;
|
3604
|
+
getValue(props?: Readonly<IColorLineProps>): Color4;
|
3607
3605
|
setColorFromString(colorString: string): void;
|
3608
3606
|
setColor(newColor: Color4): void;
|
3609
3607
|
switchExpandState(): void;
|
@@ -3790,6 +3788,7 @@ export const Icon: React.FC<IconProps>;
|
|
3790
3788
|
|
3791
3789
|
}
|
3792
3790
|
declare module "@babylonjs/node-editor/components/Button" {
|
3791
|
+
import { PropsWithChildren } from "react";
|
3793
3792
|
export type ButtonProps = {
|
3794
3793
|
disabled?: boolean;
|
3795
3794
|
active?: boolean;
|
@@ -3799,7 +3798,7 @@ export type ButtonProps = {
|
|
3799
3798
|
title?: string;
|
3800
3799
|
backgroundColor?: string;
|
3801
3800
|
};
|
3802
|
-
export const Button: React.FC<ButtonProps
|
3801
|
+
export const Button: React.FC<PropsWithChildren<ButtonProps>>;
|
3803
3802
|
|
3804
3803
|
}
|
3805
3804
|
declare module "@babylonjs/node-editor/components/reactGraphSystem/useGraphContext" {
|
@@ -3811,7 +3810,7 @@ export const useGraphContext: () => import("@babylonjs/node-editor/components/re
|
|
3811
3810
|
|
3812
3811
|
}
|
3813
3812
|
declare module "@babylonjs/node-editor/components/reactGraphSystem/NodeRenderer" {
|
3814
|
-
import { ComponentType } from "react";
|
3813
|
+
import { ComponentType, PropsWithChildren } from "react";
|
3815
3814
|
import { Nullable } from "@babylonjs/core/types";
|
3816
3815
|
export type IVisualRecordsType = Record<string, {
|
3817
3816
|
x: number;
|
@@ -3883,7 +3882,7 @@ export interface INodeRendererProps {
|
|
3883
3882
|
|
3884
3883
|
}
|
3885
3884
|
declare module "@babylonjs/node-editor/components/reactGraphSystem/GraphNodesContainer" {
|
3886
|
-
import { FC } from "react";
|
3885
|
+
import { FC, PropsWithChildren } from "react";
|
3887
3886
|
export interface IGraphContainerProps {
|
3888
3887
|
onNodeMoved: (id: string, x: number, y: number) => void;
|
3889
3888
|
id: string;
|
@@ -3893,11 +3892,11 @@ export interface IGraphContainerProps {
|
|
3893
3892
|
* @param props properties
|
3894
3893
|
* @returns graph node container element
|
3895
3894
|
*/
|
3896
|
-
export const GraphNodesContainer: FC<IGraphContainerProps
|
3895
|
+
export const GraphNodesContainer: FC<PropsWithChildren<IGraphContainerProps>>;
|
3897
3896
|
|
3898
3897
|
}
|
3899
3898
|
declare module "@babylonjs/node-editor/components/reactGraphSystem/GraphNode" {
|
3900
|
-
import { FC } from "react";
|
3899
|
+
import { FC, PropsWithChildren } from "react";
|
3901
3900
|
export interface IGraphNodeProps {
|
3902
3901
|
id: string;
|
3903
3902
|
name: string;
|
@@ -3909,11 +3908,11 @@ export interface IGraphNodeProps {
|
|
3909
3908
|
highlighted?: boolean;
|
3910
3909
|
parentContainerId: string;
|
3911
3910
|
}
|
3912
|
-
export const SingleGraphNode: FC<IGraphNodeProps
|
3911
|
+
export const SingleGraphNode: FC<PropsWithChildren<IGraphNodeProps>>;
|
3913
3912
|
|
3914
3913
|
}
|
3915
3914
|
declare module "@babylonjs/node-editor/components/reactGraphSystem/GraphLinesContainer" {
|
3916
|
-
import { FC } from "react";
|
3915
|
+
import { FC, PropsWithChildren } from "react";
|
3917
3916
|
/**
|
3918
3917
|
* props for the GraphLineContainer
|
3919
3918
|
*/
|
@@ -3928,7 +3927,7 @@ export interface IGraphLinesContainerProps {
|
|
3928
3927
|
* @param props
|
3929
3928
|
* @returns
|
3930
3929
|
*/
|
3931
|
-
export const GraphLinesContainer: FC<IGraphLinesContainerProps
|
3930
|
+
export const GraphLinesContainer: FC<PropsWithChildren<IGraphLinesContainerProps>>;
|
3932
3931
|
|
3933
3932
|
}
|
3934
3933
|
declare module "@babylonjs/node-editor/components/reactGraphSystem/GraphLine" {
|
@@ -3989,7 +3988,7 @@ export const GraphContextManager: import("react").Context<IGraphContext>;
|
|
3989
3988
|
|
3990
3989
|
}
|
3991
3990
|
declare module "@babylonjs/node-editor/components/reactGraphSystem/GraphContainer" {
|
3992
|
-
import { FC } from "react";
|
3991
|
+
import { FC, PropsWithChildren } from "react";
|
3993
3992
|
export interface IGraphContainerProps {
|
3994
3993
|
}
|
3995
3994
|
/**
|
@@ -3998,11 +3997,11 @@ export interface IGraphContainerProps {
|
|
3998
3997
|
* @param props
|
3999
3998
|
* @returns
|
4000
3999
|
*/
|
4001
|
-
export const GraphContainer: FC<IGraphContainerProps
|
4000
|
+
export const GraphContainer: FC<PropsWithChildren<IGraphContainerProps>>;
|
4002
4001
|
|
4003
4002
|
}
|
4004
4003
|
declare module "@babylonjs/node-editor/components/reactGraphSystem/GraphConnectorHandle" {
|
4005
|
-
import { FC } from "react";
|
4004
|
+
import { FC, PropsWithChildren } from "react";
|
4006
4005
|
/**
|
4007
4006
|
* Props for the connector
|
4008
4007
|
*/
|
@@ -4045,7 +4044,7 @@ export interface IGraphConnectorHandlerProps {
|
|
4045
4044
|
* drag the handle in a node and drop it in another node to create a connection.
|
4046
4045
|
* @returns connector element
|
4047
4046
|
*/
|
4048
|
-
export const GraphConnectorHandler: FC<IGraphConnectorHandlerProps
|
4047
|
+
export const GraphConnectorHandler: FC<PropsWithChildren<IGraphConnectorHandlerProps>>;
|
4049
4048
|
|
4050
4049
|
}
|
4051
4050
|
declare module "@babylonjs/node-editor/components/lines/OptionsLineComponent" {
|
@@ -4150,9 +4149,7 @@ export class ColorPickerLineComponent extends React.Component<IColorPickerLineCo
|
|
4150
4149
|
constructor(props: IColorPickerLineComponentProps);
|
4151
4150
|
syncPositions(): void;
|
4152
4151
|
shouldComponentUpdate(nextProps: IColorPickerLineComponentProps, nextState: IColorPickerComponentState): boolean;
|
4153
|
-
getHexString(props?: Readonly<IColorPickerLineComponentProps>
|
4154
|
-
children?: React.ReactNode | undefined;
|
4155
|
-
}>): string;
|
4152
|
+
getHexString(props?: Readonly<IColorPickerLineComponentProps>): string;
|
4156
4153
|
componentDidUpdate(): void;
|
4157
4154
|
componentDidMount(): void;
|
4158
4155
|
|
@@ -4185,9 +4182,7 @@ interface IColorLineComponentState {
|
|
4185
4182
|
export class ColorLineComponent extends React.Component<IColorLineComponentProps, IColorLineComponentState> {
|
4186
4183
|
constructor(props: IColorLineComponentProps);
|
4187
4184
|
shouldComponentUpdate(nextProps: IColorLineComponentProps, nextState: IColorLineComponentState): boolean;
|
4188
|
-
getValue(props?: Readonly<IColorLineComponentProps>
|
4189
|
-
children?: React.ReactNode | undefined;
|
4190
|
-
}>): Color4;
|
4185
|
+
getValue(props?: Readonly<IColorLineComponentProps>): Color4;
|
4191
4186
|
setColorFromString(colorString: string): void;
|
4192
4187
|
setColor(newColor: Color4): void;
|
4193
4188
|
switchExpandState(): void;
|
@@ -4487,7 +4482,7 @@ export const FlexibleGridContainer: FC<IFlexibleGridContainerProps>;
|
|
4487
4482
|
|
4488
4483
|
}
|
4489
4484
|
declare module "@babylonjs/node-editor/components/layout/FlexibleDropZone" {
|
4490
|
-
import { FC } from "react";
|
4485
|
+
import { FC, PropsWithChildren } from "react";
|
4491
4486
|
/**
|
4492
4487
|
* Arguments for the FlexibleDropZone component.
|
4493
4488
|
*/
|
@@ -4507,11 +4502,11 @@ export interface IFlexibleDropZoneProps {
|
|
4507
4502
|
* @param props properties
|
4508
4503
|
* @returns drop zone element
|
4509
4504
|
*/
|
4510
|
-
export const FlexibleDropZone: FC<IFlexibleDropZoneProps
|
4505
|
+
export const FlexibleDropZone: FC<PropsWithChildren<IFlexibleDropZoneProps>>;
|
4511
4506
|
|
4512
4507
|
}
|
4513
4508
|
declare module "@babylonjs/node-editor/components/layout/FlexibleDragHandler" {
|
4514
|
-
import { FC } from "react";
|
4509
|
+
import { FC, PropsWithChildren } from "react";
|
4515
4510
|
/**
|
4516
4511
|
* Arguments for the DragHandler component.
|
4517
4512
|
*/
|
@@ -4530,11 +4525,11 @@ export interface IFlexibleDragHandlerProps {
|
|
4530
4525
|
* @param props properties
|
4531
4526
|
* @returns DragHandler element
|
4532
4527
|
*/
|
4533
|
-
export const FlexibleDragHandler: FC<IFlexibleDragHandlerProps
|
4528
|
+
export const FlexibleDragHandler: FC<PropsWithChildren<IFlexibleDragHandlerProps>>;
|
4534
4529
|
|
4535
4530
|
}
|
4536
4531
|
declare module "@babylonjs/node-editor/components/layout/FlexibleColumn" {
|
4537
|
-
import { FC } from "react";
|
4532
|
+
import { FC, PropsWithChildren } from "react";
|
4538
4533
|
/**
|
4539
4534
|
* Arguments for the Column component.
|
4540
4535
|
*/
|
@@ -4550,7 +4545,7 @@ export interface IFlexibleColumnProps {
|
|
4550
4545
|
* @param props
|
4551
4546
|
* @returns
|
4552
4547
|
*/
|
4553
|
-
export const FlexibleColumn: FC<IFlexibleColumnProps
|
4548
|
+
export const FlexibleColumn: FC<PropsWithChildren<IFlexibleColumnProps>>;
|
4554
4549
|
|
4555
4550
|
}
|
4556
4551
|
declare module "@babylonjs/node-editor/components/layout/DraggableIcon" {
|
@@ -4715,7 +4710,7 @@ export const CommandButtonComponent: React.FC<ICommandButtonComponentProps>;
|
|
4715
4710
|
|
4716
4711
|
}
|
4717
4712
|
declare module "@babylonjs/node-editor/components/bars/CommandBarComponent" {
|
4718
|
-
import { FC } from "react";
|
4713
|
+
import { FC, PropsWithChildren } from "react";
|
4719
4714
|
export interface ICommandBarComponentProps {
|
4720
4715
|
onSaveButtonClicked?: () => void;
|
4721
4716
|
onSaveToSnippetButtonClicked?: () => void;
|
@@ -4730,7 +4725,7 @@ export interface ICommandBarComponentProps {
|
|
4730
4725
|
artboardColor?: string;
|
4731
4726
|
artboardColorPickerColor?: string;
|
4732
4727
|
}
|
4733
|
-
export const CommandBarComponent: FC<ICommandBarComponentProps
|
4728
|
+
export const CommandBarComponent: FC<PropsWithChildren<ICommandBarComponentProps>>;
|
4734
4729
|
|
4735
4730
|
}
|
4736
4731
|
declare module "@babylonjs/node-editor/colorPicker/hexColor" {
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@babylonjs/node-editor",
|
3
|
-
"version": "8.
|
3
|
+
"version": "8.2.0",
|
4
4
|
"main": "dist/babylon.nodeEditor.max.js",
|
5
5
|
"module": "dist/babylon.nodeEditor.max.js",
|
6
6
|
"esnext": "dist/babylon.nodeEditor.max.js",
|
@@ -23,9 +23,9 @@
|
|
23
23
|
"@types/react-dom": ">=16.0.9"
|
24
24
|
},
|
25
25
|
"devDependencies": {
|
26
|
-
"@babylonjs/core": "^8.
|
27
|
-
"react": "^
|
28
|
-
"react-dom": "^
|
26
|
+
"@babylonjs/core": "^8.2.0",
|
27
|
+
"react": "^18.2.0",
|
28
|
+
"react-dom": "^18.2.0"
|
29
29
|
},
|
30
30
|
"keywords": [
|
31
31
|
"3D",
|