babylonjs-node-editor 5.14.0 → 5.15.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/babylon.nodeEditor.d.ts +16 -54
- package/babylon.nodeEditor.js +1 -1
- package/babylon.nodeEditor.js.map +1 -1
- package/babylon.nodeEditor.max.js +184 -174
- package/babylon.nodeEditor.max.js.map +1 -1
- package/babylon.nodeEditor.module.d.ts +32 -117
- package/package.json +2 -2
package/babylon.nodeEditor.d.ts
CHANGED
|
@@ -61,6 +61,8 @@ declare module BABYLON.NodeEditor {
|
|
|
61
61
|
componentWillUnmount(): void;
|
|
62
62
|
changeBackFaceCulling(value: boolean): void;
|
|
63
63
|
changeDepthPrePass(value: boolean): void;
|
|
64
|
+
_onPointerOverCanvas: () => void;
|
|
65
|
+
_onPointerOutCanvas: () => void;
|
|
64
66
|
changeParticleSystemBlendMode(newOne: number): void;
|
|
65
67
|
render(): JSX.Element;
|
|
66
68
|
}
|
|
@@ -284,6 +286,7 @@ declare module BABYLON.NodeEditor {
|
|
|
284
286
|
directionalLight1: boolean;
|
|
285
287
|
controlCamera: boolean;
|
|
286
288
|
_mode: BABYLON.NodeMaterialModes;
|
|
289
|
+
pointerOverCanvas: boolean;
|
|
287
290
|
/** Gets the mode */
|
|
288
291
|
get mode(): BABYLON.NodeMaterialModes;
|
|
289
292
|
/** Sets the mode */
|
|
@@ -339,7 +342,7 @@ declare module BABYLON.NodeEditor {
|
|
|
339
342
|
reOrganize(editorData?: BABYLON.Nullable<BABYLON.NodeEditor.SharedUIComponents.IEditorData>, isImportingAFrame?: boolean): void;
|
|
340
343
|
onPointerDown(evt: React.PointerEvent<HTMLDivElement>): void;
|
|
341
344
|
onPointerUp(evt: React.PointerEvent<HTMLDivElement>): void;
|
|
342
|
-
onWheel
|
|
345
|
+
onWheel: (evt: WheelEvent) => void;
|
|
343
346
|
resizeColumns(evt: React.PointerEvent<HTMLDivElement>, forLeft?: boolean): void;
|
|
344
347
|
buildColumnLayout(): string;
|
|
345
348
|
emitNewBlock(blockType: string, targetX: number, targetY: number): void;
|
|
@@ -370,7 +373,7 @@ declare module BABYLON.NodeEditor {
|
|
|
370
373
|
set comments(value: string);
|
|
371
374
|
getPortByName(name: string): BABYLON.NodeEditor.SharedUIComponents.IPortData | null;
|
|
372
375
|
dispose(): void;
|
|
373
|
-
|
|
376
|
+
prepareHeaderIcon(iconDiv: HTMLDivElement, img: HTMLImageElement): void;
|
|
374
377
|
constructor(data: BABYLON.NodeMaterialBlock, nodeContainer: BABYLON.NodeEditor.SharedUIComponents.INodeContainer);
|
|
375
378
|
}
|
|
376
379
|
|
|
@@ -396,6 +399,7 @@ declare module BABYLON.NodeEditor {
|
|
|
396
399
|
constructor(connectionPoint: BABYLON.NodeMaterialConnectionPoint, nodeContainer: BABYLON.NodeEditor.SharedUIComponents.INodeContainer);
|
|
397
400
|
updateDisplayName(newName: string): void;
|
|
398
401
|
connectTo(port: BABYLON.NodeEditor.SharedUIComponents.IPortData): void;
|
|
402
|
+
canConnectTo(port: BABYLON.NodeEditor.SharedUIComponents.IPortData): boolean;
|
|
399
403
|
disconnectFrom(port: BABYLON.NodeEditor.SharedUIComponents.IPortData): void;
|
|
400
404
|
checkCompatibilityState(port: BABYLON.NodeEditor.SharedUIComponents.IPortData): 0 | BABYLON.NodeMaterialConnectionPointCompatibilityStates.TypeIncompatible | BABYLON.NodeMaterialConnectionPointCompatibilityStates.TargetIncompatible | BABYLON.NodeMaterialConnectionPointCompatibilityStates.HierarchyIssue;
|
|
401
405
|
getCompatibilityIssueMessage(issue: number, targetNode: BABYLON.NodeEditor.SharedUIComponents.GraphNode, targetPort: BABYLON.NodeEditor.SharedUIComponents.IPortData): "" | "Cannot connect two different connection types" | "Source block can only work in fragment shader whereas destination block is currently aimed for the vertex shader" | "Source block cannot be connected with one of its ancestors";
|
|
@@ -805,29 +809,6 @@ declare module BABYLON.NodeEditor {
|
|
|
805
809
|
}
|
|
806
810
|
|
|
807
811
|
|
|
808
|
-
export interface IColorPickerComponentProps {
|
|
809
|
-
value: BABYLON.Color4 | BABYLON.Color3;
|
|
810
|
-
onColorChanged: (newOne: string) => void;
|
|
811
|
-
globalState: GlobalState;
|
|
812
|
-
}
|
|
813
|
-
interface IColorPickerComponentState {
|
|
814
|
-
pickerEnabled: boolean;
|
|
815
|
-
color: BABYLON.Color3 | BABYLON.Color4;
|
|
816
|
-
hex: string;
|
|
817
|
-
}
|
|
818
|
-
export class ColorPickerLineComponent extends React.Component<IColorPickerComponentProps, IColorPickerComponentState> {
|
|
819
|
-
private _floatRef;
|
|
820
|
-
private _floatHostRef;
|
|
821
|
-
constructor(props: IColorPickerComponentProps);
|
|
822
|
-
syncPositions(): void;
|
|
823
|
-
shouldComponentUpdate(nextProps: IColorPickerComponentProps, nextState: IColorPickerComponentState): boolean;
|
|
824
|
-
componentDidUpdate(): void;
|
|
825
|
-
componentDidMount(): void;
|
|
826
|
-
setPickerState(enabled: boolean): void;
|
|
827
|
-
render(): JSX.Element;
|
|
828
|
-
}
|
|
829
|
-
|
|
830
|
-
|
|
831
812
|
export interface IButtonLineComponentProps {
|
|
832
813
|
data: string;
|
|
833
814
|
tooltip: string;
|
|
@@ -913,29 +894,6 @@ declare module BABYLON.NodeEditor {
|
|
|
913
894
|
}
|
|
914
895
|
|
|
915
896
|
|
|
916
|
-
interface INumericInputComponentProps {
|
|
917
|
-
label: string;
|
|
918
|
-
value: number;
|
|
919
|
-
step?: number;
|
|
920
|
-
onChange: (value: number) => void;
|
|
921
|
-
globalState: GlobalState;
|
|
922
|
-
}
|
|
923
|
-
export class NumericInputComponent extends React.Component<INumericInputComponentProps, {
|
|
924
|
-
value: string;
|
|
925
|
-
}> {
|
|
926
|
-
static defaultProps: {
|
|
927
|
-
step: number;
|
|
928
|
-
};
|
|
929
|
-
private _localChange;
|
|
930
|
-
constructor(props: INumericInputComponentProps);
|
|
931
|
-
shouldComponentUpdate(nextProps: INumericInputComponentProps, nextState: {
|
|
932
|
-
value: string;
|
|
933
|
-
}): boolean;
|
|
934
|
-
updateValue(evt: any): void;
|
|
935
|
-
render(): JSX.Element;
|
|
936
|
-
}
|
|
937
|
-
|
|
938
|
-
|
|
939
897
|
export class Popup {
|
|
940
898
|
static CreatePopup(title: string, windowVariableName: string, width?: number, height?: number): HTMLDivElement | null;
|
|
941
899
|
static _CopyStyles(sourceDoc: HTMLDocument, targetDoc: HTMLDocument): void;
|
|
@@ -1403,7 +1361,7 @@ declare module BABYLON.NodeEditor.SharedUIComponents {
|
|
|
1403
1361
|
label: string;
|
|
1404
1362
|
target: any;
|
|
1405
1363
|
propertyName: string;
|
|
1406
|
-
lockObject
|
|
1364
|
+
lockObject: BABYLON.NodeEditor.SharedUIComponents.LockObject;
|
|
1407
1365
|
onChange?: (newValue: number) => void;
|
|
1408
1366
|
isInteger?: boolean;
|
|
1409
1367
|
onPropertyChangedObservable?: BABYLON.Observable<BABYLON.NodeEditor.SharedUIComponents.PropertyChangedEvent>;
|
|
@@ -1809,7 +1767,7 @@ declare module BABYLON.NodeEditor.SharedUIComponents {
|
|
|
1809
1767
|
margin?: boolean;
|
|
1810
1768
|
icon?: string;
|
|
1811
1769
|
iconLabel?: string;
|
|
1812
|
-
lockObject
|
|
1770
|
+
lockObject: BABYLON.NodeEditor.SharedUIComponents.LockObject;
|
|
1813
1771
|
unit?: React.ReactNode;
|
|
1814
1772
|
}
|
|
1815
1773
|
export class SliderLineComponent extends React.Component<ISliderLineComponentProps, {
|
|
@@ -1888,7 +1846,7 @@ declare module BABYLON.NodeEditor.SharedUIComponents {
|
|
|
1888
1846
|
}): boolean;
|
|
1889
1847
|
raiseOnPropertyChanged(newValue: string, previousValue: string): void;
|
|
1890
1848
|
getCurrentNumericValue(value: string): number;
|
|
1891
|
-
updateValue(value: string): void;
|
|
1849
|
+
updateValue(value: string, valueToValidate?: string): void;
|
|
1892
1850
|
incrementValue(amount: number): void;
|
|
1893
1851
|
onKeyDown(event: React.KeyboardEvent): void;
|
|
1894
1852
|
render(): JSX.Element;
|
|
@@ -2194,6 +2152,8 @@ declare module BABYLON.NodeEditor.SharedUIComponents {
|
|
|
2194
2152
|
get frameContainer(): HTMLDivElement;
|
|
2195
2153
|
private _selectedFrameAndNodesConflict;
|
|
2196
2154
|
constructor(props: IGraphCanvasComponentProps);
|
|
2155
|
+
populateConnectedEntriesBeforeRemoval(item: BABYLON.NodeEditor.SharedUIComponents.GraphNode, items: BABYLON.NodeEditor.SharedUIComponents.GraphNode[], inputs: BABYLON.Nullable<BABYLON.NodeEditor.SharedUIComponents.IPortData>[], outputs: BABYLON.Nullable<BABYLON.NodeEditor.SharedUIComponents.IPortData>[]): void;
|
|
2156
|
+
automaticRewire(inputs: BABYLON.Nullable<BABYLON.NodeEditor.SharedUIComponents.IPortData>[], outputs: BABYLON.Nullable<BABYLON.NodeEditor.SharedUIComponents.IPortData>[]): void;
|
|
2197
2157
|
handleKeyDown(evt: KeyboardEvent, onRemove: (nodeData: BABYLON.NodeEditor.SharedUIComponents.INodeData) => void, mouseLocationX: number, mouseLocationY: number, dataGenerator: (nodeData: BABYLON.NodeEditor.SharedUIComponents.INodeData) => any, rootElement: HTMLDivElement): void;
|
|
2198
2158
|
pasteSelection(copiedNodes: BABYLON.NodeEditor.SharedUIComponents.GraphNode[], currentX: number, currentY: number, dataGenerator: (nodeData: BABYLON.NodeEditor.SharedUIComponents.INodeData) => any, selectNew?: boolean): BABYLON.NodeEditor.SharedUIComponents.GraphNode[];
|
|
2199
2159
|
reconnectNewNodes(nodeIndex: number, newNodes: BABYLON.NodeEditor.SharedUIComponents.GraphNode[], sourceNodes: BABYLON.NodeEditor.SharedUIComponents.GraphNode[], done: boolean[]): void;
|
|
@@ -2391,7 +2351,8 @@ declare module BABYLON.NodeEditor.SharedUIComponents {
|
|
|
2391
2351
|
content: BABYLON.NodeEditor.SharedUIComponents.INodeData;
|
|
2392
2352
|
private _visual;
|
|
2393
2353
|
private _headerContainer;
|
|
2394
|
-
private
|
|
2354
|
+
private _headerIcon;
|
|
2355
|
+
private _headerIconImg;
|
|
2395
2356
|
private _header;
|
|
2396
2357
|
private _connections;
|
|
2397
2358
|
private _inputsContainer;
|
|
@@ -2496,7 +2457,7 @@ declare module BABYLON.NodeEditor.SharedUIComponents {
|
|
|
2496
2457
|
uniqueId: number;
|
|
2497
2458
|
isInput: boolean;
|
|
2498
2459
|
comments: string;
|
|
2499
|
-
|
|
2460
|
+
prepareHeaderIcon: (iconDiv: HTMLDivElement, img: HTMLImageElement) => void;
|
|
2500
2461
|
getClassName: () => string;
|
|
2501
2462
|
dispose: () => void;
|
|
2502
2463
|
getPortByName: (name: string) => BABYLON.Nullable<BABYLON.NodeEditor.SharedUIComponents.IPortData>;
|
|
@@ -2565,6 +2526,7 @@ declare module BABYLON.NodeEditor.SharedUIComponents {
|
|
|
2565
2526
|
hasEndpoints: boolean;
|
|
2566
2527
|
endpoints: BABYLON.Nullable<IPortData[]>;
|
|
2567
2528
|
updateDisplayName: (newName: string) => void;
|
|
2529
|
+
canConnectTo: (port: IPortData) => boolean;
|
|
2568
2530
|
connectTo: (port: IPortData) => void;
|
|
2569
2531
|
disconnectFrom: (port: IPortData) => void;
|
|
2570
2532
|
checkCompatibilityState(port: IPortData): number;
|
|
@@ -2703,7 +2665,7 @@ declare module BABYLON.NodeEditor.SharedUIComponents {
|
|
|
2703
2665
|
targetY: number;
|
|
2704
2666
|
needRepositioning?: boolean | undefined;
|
|
2705
2667
|
}>;
|
|
2706
|
-
exportData: (data: any) => string;
|
|
2668
|
+
exportData: (data: any, frame?: BABYLON.Nullable<BABYLON.NodeEditor.SharedUIComponents.GraphFrame>) => string;
|
|
2707
2669
|
isElbowConnectionAllowed: (nodeA: BABYLON.NodeEditor.SharedUIComponents.FrameNodePort | BABYLON.NodeEditor.SharedUIComponents.NodePort, nodeB: BABYLON.NodeEditor.SharedUIComponents.FrameNodePort | BABYLON.NodeEditor.SharedUIComponents.NodePort) => boolean;
|
|
2708
2670
|
applyNodePortDesign: (data: BABYLON.NodeEditor.SharedUIComponents.IPortData, element: HTMLElement, img: HTMLImageElement) => void;
|
|
2709
2671
|
storeEditorData: (serializationObject: any, frame?: BABYLON.Nullable<BABYLON.NodeEditor.SharedUIComponents.GraphFrame>) => void;
|