@babylonjs/node-geometry-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.
- package/dist/babylon.nodeGeometryEditor.js +1 -1
- package/dist/babylon.nodeGeometryEditor.js.LICENSE.txt +12 -14
- package/dist/babylon.nodeGeometryEditor.js.map +1 -1
- package/dist/babylon.nodeGeometryEditor.max.js +13458 -9572
- package/dist/babylon.nodeGeometryEditor.module.d.ts +29 -34
- package/package.json +4 -4
|
@@ -15,10 +15,11 @@ export class SerializationTools {
|
|
|
15
15
|
declare module "@babylonjs/node-geometry-editor/portal" {
|
|
16
16
|
import * as React from "react";
|
|
17
17
|
import { GlobalState } from "@babylonjs/node-geometry-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 {};
|
|
@@ -1522,6 +1523,7 @@ export const SplitContext: import("react").Context<ISplitContext>;
|
|
|
1522
1523
|
|
|
1523
1524
|
}
|
|
1524
1525
|
declare module "@babylonjs/node-geometry-editor/split/splitContainer" {
|
|
1526
|
+
import { PropsWithChildren } from "react";
|
|
1525
1527
|
import { SplitDirection } from "@babylonjs/node-geometry-editor/split/splitContext";
|
|
1526
1528
|
/**
|
|
1527
1529
|
* Split container properties
|
|
@@ -1578,7 +1580,7 @@ export interface ISplitContainerProps {
|
|
|
1578
1580
|
* @param props defines the split container properties
|
|
1579
1581
|
* @returns the split container component
|
|
1580
1582
|
*/
|
|
1581
|
-
export const SplitContainer: React.FC<ISplitContainerProps
|
|
1583
|
+
export const SplitContainer: React.FC<PropsWithChildren<ISplitContainerProps>>;
|
|
1582
1584
|
|
|
1583
1585
|
}
|
|
1584
1586
|
declare module "@babylonjs/node-geometry-editor/nodeGraphSystem/typeLedger" {
|
|
@@ -3217,9 +3219,7 @@ export class ColorPickerLine extends React.Component<IColorPickerLineProps, ICol
|
|
|
3217
3219
|
constructor(props: IColorPickerLineProps);
|
|
3218
3220
|
syncPositions(): void;
|
|
3219
3221
|
shouldComponentUpdate(nextProps: IColorPickerLineProps, nextState: IColorPickerComponentState): boolean;
|
|
3220
|
-
getHexString(props?: Readonly<IColorPickerLineProps>
|
|
3221
|
-
children?: React.ReactNode | undefined;
|
|
3222
|
-
}>): string;
|
|
3222
|
+
getHexString(props?: Readonly<IColorPickerLineProps>): string;
|
|
3223
3223
|
componentDidUpdate(): void;
|
|
3224
3224
|
componentDidMount(): void;
|
|
3225
3225
|
|
|
@@ -3252,9 +3252,7 @@ interface IColorLineComponentState {
|
|
|
3252
3252
|
export class ColorLine extends React.Component<IColorLineProps, IColorLineComponentState> {
|
|
3253
3253
|
constructor(props: IColorLineProps);
|
|
3254
3254
|
shouldComponentUpdate(nextProps: IColorLineProps, nextState: IColorLineComponentState): boolean;
|
|
3255
|
-
getValue(props?: Readonly<IColorLineProps>
|
|
3256
|
-
children?: React.ReactNode | undefined;
|
|
3257
|
-
}>): Color4;
|
|
3255
|
+
getValue(props?: Readonly<IColorLineProps>): Color4;
|
|
3258
3256
|
setColorFromString(colorString: string): void;
|
|
3259
3257
|
setColor(newColor: Color4): void;
|
|
3260
3258
|
switchExpandState(): void;
|
|
@@ -3441,6 +3439,7 @@ export const Icon: React.FC<IconProps>;
|
|
|
3441
3439
|
|
|
3442
3440
|
}
|
|
3443
3441
|
declare module "@babylonjs/node-geometry-editor/components/Button" {
|
|
3442
|
+
import { PropsWithChildren } from "react";
|
|
3444
3443
|
export type ButtonProps = {
|
|
3445
3444
|
disabled?: boolean;
|
|
3446
3445
|
active?: boolean;
|
|
@@ -3450,7 +3449,7 @@ export type ButtonProps = {
|
|
|
3450
3449
|
title?: string;
|
|
3451
3450
|
backgroundColor?: string;
|
|
3452
3451
|
};
|
|
3453
|
-
export const Button: React.FC<ButtonProps
|
|
3452
|
+
export const Button: React.FC<PropsWithChildren<ButtonProps>>;
|
|
3454
3453
|
|
|
3455
3454
|
}
|
|
3456
3455
|
declare module "@babylonjs/node-geometry-editor/components/reactGraphSystem/useGraphContext" {
|
|
@@ -3462,7 +3461,7 @@ export const useGraphContext: () => import("@babylonjs/node-geometry-editor/comp
|
|
|
3462
3461
|
|
|
3463
3462
|
}
|
|
3464
3463
|
declare module "@babylonjs/node-geometry-editor/components/reactGraphSystem/NodeRenderer" {
|
|
3465
|
-
import { ComponentType } from "react";
|
|
3464
|
+
import { ComponentType, PropsWithChildren } from "react";
|
|
3466
3465
|
import { Nullable } from "@babylonjs/core/types";
|
|
3467
3466
|
export type IVisualRecordsType = Record<string, {
|
|
3468
3467
|
x: number;
|
|
@@ -3534,7 +3533,7 @@ export interface INodeRendererProps {
|
|
|
3534
3533
|
|
|
3535
3534
|
}
|
|
3536
3535
|
declare module "@babylonjs/node-geometry-editor/components/reactGraphSystem/GraphNodesContainer" {
|
|
3537
|
-
import { FC } from "react";
|
|
3536
|
+
import { FC, PropsWithChildren } from "react";
|
|
3538
3537
|
export interface IGraphContainerProps {
|
|
3539
3538
|
onNodeMoved: (id: string, x: number, y: number) => void;
|
|
3540
3539
|
id: string;
|
|
@@ -3544,11 +3543,11 @@ export interface IGraphContainerProps {
|
|
|
3544
3543
|
* @param props properties
|
|
3545
3544
|
* @returns graph node container element
|
|
3546
3545
|
*/
|
|
3547
|
-
export const GraphNodesContainer: FC<IGraphContainerProps
|
|
3546
|
+
export const GraphNodesContainer: FC<PropsWithChildren<IGraphContainerProps>>;
|
|
3548
3547
|
|
|
3549
3548
|
}
|
|
3550
3549
|
declare module "@babylonjs/node-geometry-editor/components/reactGraphSystem/GraphNode" {
|
|
3551
|
-
import { FC } from "react";
|
|
3550
|
+
import { FC, PropsWithChildren } from "react";
|
|
3552
3551
|
export interface IGraphNodeProps {
|
|
3553
3552
|
id: string;
|
|
3554
3553
|
name: string;
|
|
@@ -3560,11 +3559,11 @@ export interface IGraphNodeProps {
|
|
|
3560
3559
|
highlighted?: boolean;
|
|
3561
3560
|
parentContainerId: string;
|
|
3562
3561
|
}
|
|
3563
|
-
export const SingleGraphNode: FC<IGraphNodeProps
|
|
3562
|
+
export const SingleGraphNode: FC<PropsWithChildren<IGraphNodeProps>>;
|
|
3564
3563
|
|
|
3565
3564
|
}
|
|
3566
3565
|
declare module "@babylonjs/node-geometry-editor/components/reactGraphSystem/GraphLinesContainer" {
|
|
3567
|
-
import { FC } from "react";
|
|
3566
|
+
import { FC, PropsWithChildren } from "react";
|
|
3568
3567
|
/**
|
|
3569
3568
|
* props for the GraphLineContainer
|
|
3570
3569
|
*/
|
|
@@ -3579,7 +3578,7 @@ export interface IGraphLinesContainerProps {
|
|
|
3579
3578
|
* @param props
|
|
3580
3579
|
* @returns
|
|
3581
3580
|
*/
|
|
3582
|
-
export const GraphLinesContainer: FC<IGraphLinesContainerProps
|
|
3581
|
+
export const GraphLinesContainer: FC<PropsWithChildren<IGraphLinesContainerProps>>;
|
|
3583
3582
|
|
|
3584
3583
|
}
|
|
3585
3584
|
declare module "@babylonjs/node-geometry-editor/components/reactGraphSystem/GraphLine" {
|
|
@@ -3640,7 +3639,7 @@ export const GraphContextManager: import("react").Context<IGraphContext>;
|
|
|
3640
3639
|
|
|
3641
3640
|
}
|
|
3642
3641
|
declare module "@babylonjs/node-geometry-editor/components/reactGraphSystem/GraphContainer" {
|
|
3643
|
-
import { FC } from "react";
|
|
3642
|
+
import { FC, PropsWithChildren } from "react";
|
|
3644
3643
|
export interface IGraphContainerProps {
|
|
3645
3644
|
}
|
|
3646
3645
|
/**
|
|
@@ -3649,11 +3648,11 @@ export interface IGraphContainerProps {
|
|
|
3649
3648
|
* @param props
|
|
3650
3649
|
* @returns
|
|
3651
3650
|
*/
|
|
3652
|
-
export const GraphContainer: FC<IGraphContainerProps
|
|
3651
|
+
export const GraphContainer: FC<PropsWithChildren<IGraphContainerProps>>;
|
|
3653
3652
|
|
|
3654
3653
|
}
|
|
3655
3654
|
declare module "@babylonjs/node-geometry-editor/components/reactGraphSystem/GraphConnectorHandle" {
|
|
3656
|
-
import { FC } from "react";
|
|
3655
|
+
import { FC, PropsWithChildren } from "react";
|
|
3657
3656
|
/**
|
|
3658
3657
|
* Props for the connector
|
|
3659
3658
|
*/
|
|
@@ -3696,7 +3695,7 @@ export interface IGraphConnectorHandlerProps {
|
|
|
3696
3695
|
* drag the handle in a node and drop it in another node to create a connection.
|
|
3697
3696
|
* @returns connector element
|
|
3698
3697
|
*/
|
|
3699
|
-
export const GraphConnectorHandler: FC<IGraphConnectorHandlerProps
|
|
3698
|
+
export const GraphConnectorHandler: FC<PropsWithChildren<IGraphConnectorHandlerProps>>;
|
|
3700
3699
|
|
|
3701
3700
|
}
|
|
3702
3701
|
declare module "@babylonjs/node-geometry-editor/components/lines/OptionsLineComponent" {
|
|
@@ -3801,9 +3800,7 @@ export class ColorPickerLineComponent extends React.Component<IColorPickerLineCo
|
|
|
3801
3800
|
constructor(props: IColorPickerLineComponentProps);
|
|
3802
3801
|
syncPositions(): void;
|
|
3803
3802
|
shouldComponentUpdate(nextProps: IColorPickerLineComponentProps, nextState: IColorPickerComponentState): boolean;
|
|
3804
|
-
getHexString(props?: Readonly<IColorPickerLineComponentProps>
|
|
3805
|
-
children?: React.ReactNode | undefined;
|
|
3806
|
-
}>): string;
|
|
3803
|
+
getHexString(props?: Readonly<IColorPickerLineComponentProps>): string;
|
|
3807
3804
|
componentDidUpdate(): void;
|
|
3808
3805
|
componentDidMount(): void;
|
|
3809
3806
|
|
|
@@ -3836,9 +3833,7 @@ interface IColorLineComponentState {
|
|
|
3836
3833
|
export class ColorLineComponent extends React.Component<IColorLineComponentProps, IColorLineComponentState> {
|
|
3837
3834
|
constructor(props: IColorLineComponentProps);
|
|
3838
3835
|
shouldComponentUpdate(nextProps: IColorLineComponentProps, nextState: IColorLineComponentState): boolean;
|
|
3839
|
-
getValue(props?: Readonly<IColorLineComponentProps>
|
|
3840
|
-
children?: React.ReactNode | undefined;
|
|
3841
|
-
}>): Color4;
|
|
3836
|
+
getValue(props?: Readonly<IColorLineComponentProps>): Color4;
|
|
3842
3837
|
setColorFromString(colorString: string): void;
|
|
3843
3838
|
setColor(newColor: Color4): void;
|
|
3844
3839
|
switchExpandState(): void;
|
|
@@ -4138,7 +4133,7 @@ export const FlexibleGridContainer: FC<IFlexibleGridContainerProps>;
|
|
|
4138
4133
|
|
|
4139
4134
|
}
|
|
4140
4135
|
declare module "@babylonjs/node-geometry-editor/components/layout/FlexibleDropZone" {
|
|
4141
|
-
import { FC } from "react";
|
|
4136
|
+
import { FC, PropsWithChildren } from "react";
|
|
4142
4137
|
/**
|
|
4143
4138
|
* Arguments for the FlexibleDropZone component.
|
|
4144
4139
|
*/
|
|
@@ -4158,11 +4153,11 @@ export interface IFlexibleDropZoneProps {
|
|
|
4158
4153
|
* @param props properties
|
|
4159
4154
|
* @returns drop zone element
|
|
4160
4155
|
*/
|
|
4161
|
-
export const FlexibleDropZone: FC<IFlexibleDropZoneProps
|
|
4156
|
+
export const FlexibleDropZone: FC<PropsWithChildren<IFlexibleDropZoneProps>>;
|
|
4162
4157
|
|
|
4163
4158
|
}
|
|
4164
4159
|
declare module "@babylonjs/node-geometry-editor/components/layout/FlexibleDragHandler" {
|
|
4165
|
-
import { FC } from "react";
|
|
4160
|
+
import { FC, PropsWithChildren } from "react";
|
|
4166
4161
|
/**
|
|
4167
4162
|
* Arguments for the DragHandler component.
|
|
4168
4163
|
*/
|
|
@@ -4181,11 +4176,11 @@ export interface IFlexibleDragHandlerProps {
|
|
|
4181
4176
|
* @param props properties
|
|
4182
4177
|
* @returns DragHandler element
|
|
4183
4178
|
*/
|
|
4184
|
-
export const FlexibleDragHandler: FC<IFlexibleDragHandlerProps
|
|
4179
|
+
export const FlexibleDragHandler: FC<PropsWithChildren<IFlexibleDragHandlerProps>>;
|
|
4185
4180
|
|
|
4186
4181
|
}
|
|
4187
4182
|
declare module "@babylonjs/node-geometry-editor/components/layout/FlexibleColumn" {
|
|
4188
|
-
import { FC } from "react";
|
|
4183
|
+
import { FC, PropsWithChildren } from "react";
|
|
4189
4184
|
/**
|
|
4190
4185
|
* Arguments for the Column component.
|
|
4191
4186
|
*/
|
|
@@ -4201,7 +4196,7 @@ export interface IFlexibleColumnProps {
|
|
|
4201
4196
|
* @param props
|
|
4202
4197
|
* @returns
|
|
4203
4198
|
*/
|
|
4204
|
-
export const FlexibleColumn: FC<IFlexibleColumnProps
|
|
4199
|
+
export const FlexibleColumn: FC<PropsWithChildren<IFlexibleColumnProps>>;
|
|
4205
4200
|
|
|
4206
4201
|
}
|
|
4207
4202
|
declare module "@babylonjs/node-geometry-editor/components/layout/DraggableIcon" {
|
|
@@ -4366,7 +4361,7 @@ export const CommandButtonComponent: React.FC<ICommandButtonComponentProps>;
|
|
|
4366
4361
|
|
|
4367
4362
|
}
|
|
4368
4363
|
declare module "@babylonjs/node-geometry-editor/components/bars/CommandBarComponent" {
|
|
4369
|
-
import { FC } from "react";
|
|
4364
|
+
import { FC, PropsWithChildren } from "react";
|
|
4370
4365
|
export interface ICommandBarComponentProps {
|
|
4371
4366
|
onSaveButtonClicked?: () => void;
|
|
4372
4367
|
onSaveToSnippetButtonClicked?: () => void;
|
|
@@ -4381,7 +4376,7 @@ export interface ICommandBarComponentProps {
|
|
|
4381
4376
|
artboardColor?: string;
|
|
4382
4377
|
artboardColorPickerColor?: string;
|
|
4383
4378
|
}
|
|
4384
|
-
export const CommandBarComponent: FC<ICommandBarComponentProps
|
|
4379
|
+
export const CommandBarComponent: FC<PropsWithChildren<ICommandBarComponentProps>>;
|
|
4385
4380
|
|
|
4386
4381
|
}
|
|
4387
4382
|
declare module "@babylonjs/node-geometry-editor/colorPicker/hexColor" {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@babylonjs/node-geometry-editor",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.2.1",
|
|
4
4
|
"main": "dist/babylon.nodeGeometryEditor.max.js",
|
|
5
5
|
"module": "dist/babylon.nodeGeometryEditor.max.js",
|
|
6
6
|
"esnext": "dist/babylon.nodeGeometryEditor.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.1",
|
|
27
|
+
"react": "^18.2.0",
|
|
28
|
+
"react-dom": "^18.2.0"
|
|
29
29
|
},
|
|
30
30
|
"keywords": [
|
|
31
31
|
"3D",
|