@babylonjs/node-editor 5.25.0 → 5.26.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.
|
@@ -581,6 +581,7 @@ export class BlockNodeData implements INodeData {
|
|
|
581
581
|
|
|
582
582
|
}
|
|
583
583
|
declare module "@babylonjs/node-editor/graphSystem/connectionPointPortData" {
|
|
584
|
+
import { NodeMaterialBlock } from "@babylonjs/core/Materials/Node/nodeMaterialBlock";
|
|
584
585
|
import { NodeMaterialConnectionPoint } from "@babylonjs/core/Materials/Node/nodeMaterialBlockConnectionPoint";
|
|
585
586
|
import { NodeMaterialConnectionPointCompatibilityStates } from "@babylonjs/core/Materials/Node/nodeMaterialBlockConnectionPoint";
|
|
586
587
|
import { Nullable } from "@babylonjs/core/types";
|
|
@@ -602,7 +603,7 @@ export class ConnectionPointPortData implements IPortData {
|
|
|
602
603
|
get connectedPort(): Nullable<IPortData>;
|
|
603
604
|
set connectedPort(value: Nullable<IPortData>);
|
|
604
605
|
get direction(): PortDataDirection;
|
|
605
|
-
get ownerData():
|
|
606
|
+
get ownerData(): NodeMaterialBlock;
|
|
606
607
|
get needDualDirectionValidation(): boolean;
|
|
607
608
|
get hasEndpoints(): boolean;
|
|
608
609
|
get endpoints(): IPortData[];
|
|
@@ -1368,6 +1369,65 @@ export class HexColor extends React.Component<IHexColorProps, {
|
|
|
1368
1369
|
render(): JSX.Element;
|
|
1369
1370
|
}
|
|
1370
1371
|
|
|
1372
|
+
}
|
|
1373
|
+
declare module "@babylonjs/node-editor/components/bars/CommandBarComponent" {
|
|
1374
|
+
import * as React from "react";
|
|
1375
|
+
export interface ICommandBarComponentProps {
|
|
1376
|
+
onSaveButtonClicked?: () => void;
|
|
1377
|
+
onSaveToSnippetButtonClicked?: () => void;
|
|
1378
|
+
onLoadFromSnippetButtonClicked?: () => void;
|
|
1379
|
+
onHelpButtonClicked?: () => void;
|
|
1380
|
+
onGiveFeedbackButtonClicked?: () => void;
|
|
1381
|
+
onSelectButtonClicked?: () => void;
|
|
1382
|
+
onPanButtonClicked?: () => void;
|
|
1383
|
+
onZoomButtonClicked?: () => void;
|
|
1384
|
+
onFitButtonClicked?: () => void;
|
|
1385
|
+
}
|
|
1386
|
+
export const CommandBarComponent: React.FC<ICommandBarComponentProps>;
|
|
1387
|
+
|
|
1388
|
+
}
|
|
1389
|
+
declare module "@babylonjs/node-editor/components/bars/CommandButtonComponent" {
|
|
1390
|
+
import * as React from "react";
|
|
1391
|
+
export interface ICommandButtonComponentProps {
|
|
1392
|
+
tooltip: string;
|
|
1393
|
+
shortcut?: string;
|
|
1394
|
+
icon: string;
|
|
1395
|
+
iconLabel?: string;
|
|
1396
|
+
isActive: boolean;
|
|
1397
|
+
onClick: () => void;
|
|
1398
|
+
disabled?: boolean;
|
|
1399
|
+
}
|
|
1400
|
+
export const CommandButtonComponent: React.FC<ICommandButtonComponentProps>;
|
|
1401
|
+
|
|
1402
|
+
}
|
|
1403
|
+
declare module "@babylonjs/node-editor/components/bars/CommandDropdownComponent" {
|
|
1404
|
+
import * as React from "react";
|
|
1405
|
+
interface ICommandDropdownComponentProps {
|
|
1406
|
+
icon?: string;
|
|
1407
|
+
tooltip: string;
|
|
1408
|
+
defaultValue?: string;
|
|
1409
|
+
items: {
|
|
1410
|
+
label: string;
|
|
1411
|
+
icon?: string;
|
|
1412
|
+
fileButton?: boolean;
|
|
1413
|
+
onClick?: () => void;
|
|
1414
|
+
onCheck?: (value: boolean) => void;
|
|
1415
|
+
storeKey?: string;
|
|
1416
|
+
isActive?: boolean;
|
|
1417
|
+
defaultValue?: boolean | string;
|
|
1418
|
+
subItems?: string[];
|
|
1419
|
+
}[];
|
|
1420
|
+
toRight?: boolean;
|
|
1421
|
+
}
|
|
1422
|
+
export class CommandDropdownComponent extends React.Component<ICommandDropdownComponentProps, {
|
|
1423
|
+
isExpanded: boolean;
|
|
1424
|
+
activeState: string;
|
|
1425
|
+
}> {
|
|
1426
|
+
constructor(props: ICommandDropdownComponentProps);
|
|
1427
|
+
render(): JSX.Element;
|
|
1428
|
+
}
|
|
1429
|
+
export {};
|
|
1430
|
+
|
|
1371
1431
|
}
|
|
1372
1432
|
declare module "@babylonjs/node-editor/components/Button" {
|
|
1373
1433
|
/// <reference types="react" />
|
|
@@ -1384,6 +1444,7 @@ export const Button: React.FC<ButtonProps>;
|
|
|
1384
1444
|
}
|
|
1385
1445
|
declare module "@babylonjs/node-editor/components/classNames" {
|
|
1386
1446
|
export function ClassNames(names: any, styleObject: any): string;
|
|
1447
|
+
export function JoinClassNames(styleObject: any, ...names: string[]): string;
|
|
1387
1448
|
|
|
1388
1449
|
}
|
|
1389
1450
|
declare module "@babylonjs/node-editor/components/Icon" {
|
|
@@ -1404,6 +1465,25 @@ export type LabelProps = {
|
|
|
1404
1465
|
};
|
|
1405
1466
|
export const Label: React.FC<LabelProps>;
|
|
1406
1467
|
|
|
1468
|
+
}
|
|
1469
|
+
declare module "@babylonjs/node-editor/components/lines/FileButtonLineComponent" {
|
|
1470
|
+
import * as React from "react";
|
|
1471
|
+
export interface IFileButtonLineComponentProps {
|
|
1472
|
+
label: string;
|
|
1473
|
+
onClick: (file: File) => void;
|
|
1474
|
+
accept: string;
|
|
1475
|
+
icon?: string;
|
|
1476
|
+
iconLabel?: string;
|
|
1477
|
+
}
|
|
1478
|
+
export class FileButtonLineComponent extends React.Component<IFileButtonLineComponentProps> {
|
|
1479
|
+
private static _IDGenerator;
|
|
1480
|
+
private _id;
|
|
1481
|
+
private _uploadInputRef;
|
|
1482
|
+
constructor(props: IFileButtonLineComponentProps);
|
|
1483
|
+
onChange(evt: any): void;
|
|
1484
|
+
render(): JSX.Element;
|
|
1485
|
+
}
|
|
1486
|
+
|
|
1407
1487
|
}
|
|
1408
1488
|
declare module "@babylonjs/node-editor/components/MessageDialog" {
|
|
1409
1489
|
import * as React from "react";
|
|
@@ -1986,6 +2066,7 @@ export interface IOptionsLineComponentProps {
|
|
|
1986
2066
|
defaultIfNull?: number;
|
|
1987
2067
|
fromFontDropdown?: boolean;
|
|
1988
2068
|
valueProp?: number;
|
|
2069
|
+
fallbackValue?: number;
|
|
1989
2070
|
}
|
|
1990
2071
|
export class OptionsLineComponent extends React.Component<IOptionsLineComponentProps, {
|
|
1991
2072
|
value: number | string;
|
|
@@ -3007,6 +3088,24 @@ export class PropertyChangedEvent {
|
|
|
3007
3088
|
allowNullValue?: boolean;
|
|
3008
3089
|
}
|
|
3009
3090
|
|
|
3091
|
+
}
|
|
3092
|
+
declare module "@babylonjs/node-editor/stories/bars/CommandBarComponent.stories" {
|
|
3093
|
+
/// <reference types="react" />
|
|
3094
|
+
const _default: {
|
|
3095
|
+
|
|
3096
|
+
};
|
|
3097
|
+
export default _default;
|
|
3098
|
+
export const Default: {};
|
|
3099
|
+
|
|
3100
|
+
}
|
|
3101
|
+
declare module "@babylonjs/node-editor/stories/bars/CommandButtonComponent.stories" {
|
|
3102
|
+
/// <reference types="react" />
|
|
3103
|
+
const _default: {
|
|
3104
|
+
|
|
3105
|
+
};
|
|
3106
|
+
export default _default;
|
|
3107
|
+
export const Default: {};
|
|
3108
|
+
|
|
3010
3109
|
}
|
|
3011
3110
|
declare module "@babylonjs/node-editor/stories/Button.stories" {
|
|
3012
3111
|
/// <reference types="react" />
|
|
@@ -3043,6 +3142,15 @@ const _default: {
|
|
|
3043
3142
|
export default _default;
|
|
3044
3143
|
export const Default: any;
|
|
3045
3144
|
|
|
3145
|
+
}
|
|
3146
|
+
declare module "@babylonjs/node-editor/stories/lines/FileButtonLineComponent.stories" {
|
|
3147
|
+
import { FileButtonLineComponent } from "@babylonjs/node-editor/components/lines/FileButtonLineComponent";
|
|
3148
|
+
const _default: {
|
|
3149
|
+
component: typeof FileButtonLineComponent;
|
|
3150
|
+
};
|
|
3151
|
+
export default _default;
|
|
3152
|
+
export const Default: {};
|
|
3153
|
+
|
|
3046
3154
|
}
|
|
3047
3155
|
declare module "@babylonjs/node-editor/stories/MessageDialog.stories" {
|
|
3048
3156
|
/// <reference types="react" />
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@babylonjs/node-editor",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.26.1",
|
|
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,7 +23,7 @@
|
|
|
23
23
|
"@types/react-dom": ">=16.0.9"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
"@babylonjs/core": "^5.
|
|
26
|
+
"@babylonjs/core": "^5.26.1",
|
|
27
27
|
"react": "^17.0.2",
|
|
28
28
|
"react-dom": "^17.0.2",
|
|
29
29
|
"rimraf": "^3.0.2",
|