babylonjs-node-editor 7.53.2 → 7.54.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.
- package/babylon.nodeEditor.d.ts +20 -7
- package/babylon.nodeEditor.js +1 -1
- package/babylon.nodeEditor.js.map +1 -1
- package/babylon.nodeEditor.max.js +250 -109
- package/babylon.nodeEditor.module.d.ts +40 -14
- package/package.json +2 -2
|
@@ -1947,7 +1947,17 @@ import { NodeLink } from "babylonjs-node-editor/nodeGraphSystem/nodeLink";
|
|
|
1947
1947
|
import { FramePortData } from "babylonjs-node-editor/nodeGraphSystem/types/framePortData";
|
|
1948
1948
|
export const IsFramePortData: (variableToCheck: any) => variableToCheck is FramePortData;
|
|
1949
1949
|
export const RefreshNode: (node: GraphNode, visitedNodes?: Set<GraphNode>, visitedLinks?: Set<NodeLink>, canvas?: GraphCanvasComponent) => void;
|
|
1950
|
-
export const BuildFloatUI: (container: HTMLDivElement, document: Document, displayName: string, isInteger: boolean, source: any, propertyName: string, onChange: () => void, min?: number, max?: number, visualPropertiesRefresh?: Array<() => void
|
|
1950
|
+
export const BuildFloatUI: (container: HTMLDivElement, document: Document, displayName: string, isInteger: boolean, source: any, propertyName: string, onChange: () => void, min?: number, max?: number, visualPropertiesRefresh?: Array<() => void>, additionalClassName?: string) => void;
|
|
1951
|
+
export function GetListOfAcceptedTypes<T extends Record<string, string | number>>(types: T, allValue: number, autoDetectValue: number, port: {
|
|
1952
|
+
acceptedConnectionPointTypes: number[];
|
|
1953
|
+
excludedConnectionPointTypes: number[];
|
|
1954
|
+
type: number;
|
|
1955
|
+
}, skips?: number[]): string[];
|
|
1956
|
+
export function GetConnectionErrorMessage<T extends Record<string, string | number>>(sourceType: number, types: T, allValue: number, autoDetectValue: number, port: {
|
|
1957
|
+
acceptedConnectionPointTypes: number[];
|
|
1958
|
+
excludedConnectionPointTypes: number[];
|
|
1959
|
+
type: number;
|
|
1960
|
+
}, skips?: number[]): string;
|
|
1951
1961
|
|
|
1952
1962
|
}
|
|
1953
1963
|
declare module "babylonjs-node-editor/nodeGraphSystem/stateManager" {
|
|
@@ -2002,7 +2012,7 @@ export class StateManager {
|
|
|
2002
2012
|
exportData: (data: any, frame?: Nullable<GraphFrame>) => string;
|
|
2003
2013
|
isElbowConnectionAllowed: (nodeA: FrameNodePort | NodePort, nodeB: FrameNodePort | NodePort) => boolean;
|
|
2004
2014
|
isDebugConnectionAllowed: (nodeA: FrameNodePort | NodePort, nodeB: FrameNodePort | NodePort) => boolean;
|
|
2005
|
-
applyNodePortDesign: (data: IPortData, element: HTMLElement,
|
|
2015
|
+
applyNodePortDesign: (data: IPortData, element: HTMLElement, imgHost: HTMLDivElement, pip: HTMLDivElement) => boolean;
|
|
2006
2016
|
getPortColor: (portData: IPortData) => string;
|
|
2007
2017
|
storeEditorData: (serializationObject: any, frame?: Nullable<GraphFrame>) => void;
|
|
2008
2018
|
getEditorDataMap: () => {
|
|
@@ -2072,7 +2082,7 @@ export class NodePort {
|
|
|
2072
2082
|
node: GraphNode;
|
|
2073
2083
|
protected _element: HTMLDivElement;
|
|
2074
2084
|
protected _portContainer: HTMLElement;
|
|
2075
|
-
protected
|
|
2085
|
+
protected _imgHost: HTMLDivElement;
|
|
2076
2086
|
protected _pip: HTMLDivElement;
|
|
2077
2087
|
protected _stateManager: StateManager;
|
|
2078
2088
|
protected _portLabelElement: Element;
|
|
@@ -2155,6 +2165,7 @@ import { IPortData } from "babylonjs-node-editor/nodeGraphSystem/interfaces/port
|
|
|
2155
2165
|
import { IEditablePropertyOption } from "babylonjs/Decorators/nodeDecorator";
|
|
2156
2166
|
export class GraphNode {
|
|
2157
2167
|
content: INodeData;
|
|
2168
|
+
private static _IdGenerator;
|
|
2158
2169
|
private _visual;
|
|
2159
2170
|
private _headerContainer;
|
|
2160
2171
|
private _headerIcon;
|
|
@@ -2186,11 +2197,11 @@ export class GraphNode {
|
|
|
2186
2197
|
private _onUpdateRequiredObserver;
|
|
2187
2198
|
private _onHighlightNodeObserver;
|
|
2188
2199
|
private _ownerCanvas;
|
|
2189
|
-
private _isSelected;
|
|
2190
2200
|
private _displayManager;
|
|
2191
2201
|
private _isVisible;
|
|
2192
2202
|
private _enclosingFrameId;
|
|
2193
2203
|
private _visualPropertiesRefresh;
|
|
2204
|
+
private _lastClick;
|
|
2194
2205
|
addClassToVisual(className: string): void;
|
|
2195
2206
|
removeClassFromVisual(className: string): void;
|
|
2196
2207
|
get isCollapsed(): boolean;
|
|
@@ -2210,10 +2221,8 @@ export class GraphNode {
|
|
|
2210
2221
|
get height(): number;
|
|
2211
2222
|
get id(): number;
|
|
2212
2223
|
get name(): string;
|
|
2213
|
-
get isSelected(): boolean;
|
|
2214
2224
|
get enclosingFrameId(): number;
|
|
2215
2225
|
set enclosingFrameId(value: number);
|
|
2216
|
-
set isSelected(value: boolean);
|
|
2217
2226
|
setIsSelected(value: boolean, marqueeSelection: boolean): void;
|
|
2218
2227
|
get rootElement(): HTMLDivElement;
|
|
2219
2228
|
constructor(content: INodeData, stateManager: StateManager);
|
|
@@ -2225,10 +2234,11 @@ export class GraphNode {
|
|
|
2225
2234
|
private _refreshFrames;
|
|
2226
2235
|
_refreshLinks(): void;
|
|
2227
2236
|
refresh(): void;
|
|
2237
|
+
private _expand;
|
|
2238
|
+
private _searchMiddle;
|
|
2228
2239
|
private _onDown;
|
|
2229
2240
|
cleanAccumulation(useCeil?: boolean): void;
|
|
2230
2241
|
private _onUp;
|
|
2231
|
-
private _attach;
|
|
2232
2242
|
private _onMove;
|
|
2233
2243
|
renderProperties(): Nullable<JSX.Element>;
|
|
2234
2244
|
_forceRebuild(source: any, propertyName: string, notifiers?: IEditablePropertyOption["notifiers"]): void;
|
|
@@ -2452,6 +2462,8 @@ export class GraphCanvasComponent extends React.Component<IGraphCanvasComponentP
|
|
|
2452
2462
|
private _candidateLinkedHasMoved;
|
|
2453
2463
|
private _x;
|
|
2454
2464
|
private _y;
|
|
2465
|
+
private _lastx;
|
|
2466
|
+
private _lasty;
|
|
2455
2467
|
private _zoom;
|
|
2456
2468
|
private _selectedNodes;
|
|
2457
2469
|
private _selectedLink;
|
|
@@ -2465,6 +2477,7 @@ export class GraphCanvasComponent extends React.Component<IGraphCanvasComponentP
|
|
|
2465
2477
|
private _frames;
|
|
2466
2478
|
private _nodeDataContentList;
|
|
2467
2479
|
private _altKeyIsPressed;
|
|
2480
|
+
private _shiftKeyIsPressed;
|
|
2468
2481
|
private _multiKeyIsPressed;
|
|
2469
2482
|
private _oldY;
|
|
2470
2483
|
_frameIsMoving: boolean;
|
|
@@ -6396,7 +6409,17 @@ declare module BABYLON.NodeEditor {
|
|
|
6396
6409
|
declare module BABYLON.NodeEditor.SharedUIComponents {
|
|
6397
6410
|
export const IsFramePortData: (variableToCheck: any) => variableToCheck is BABYLON.NodeEditor.SharedUIComponents.FramePortData;
|
|
6398
6411
|
export const RefreshNode: (node: BABYLON.NodeEditor.SharedUIComponents.GraphNode, visitedNodes?: Set<BABYLON.NodeEditor.SharedUIComponents.GraphNode>, visitedLinks?: Set<BABYLON.NodeEditor.SharedUIComponents.NodeLink>, canvas?: BABYLON.NodeEditor.SharedUIComponents.GraphCanvasComponent) => void;
|
|
6399
|
-
export const BuildFloatUI: (container: HTMLDivElement, document: Document, displayName: string, isInteger: boolean, source: any, propertyName: string, onChange: () => void, min?: number, max?: number, visualPropertiesRefresh?: Array<() => void
|
|
6412
|
+
export const BuildFloatUI: (container: HTMLDivElement, document: Document, displayName: string, isInteger: boolean, source: any, propertyName: string, onChange: () => void, min?: number, max?: number, visualPropertiesRefresh?: Array<() => void>, additionalClassName?: string) => void;
|
|
6413
|
+
export function GetListOfAcceptedTypes<T extends Record<string, string | number>>(types: T, allValue: number, autoDetectValue: number, port: {
|
|
6414
|
+
acceptedConnectionPointTypes: number[];
|
|
6415
|
+
excludedConnectionPointTypes: number[];
|
|
6416
|
+
type: number;
|
|
6417
|
+
}, skips?: number[]): string[];
|
|
6418
|
+
export function GetConnectionErrorMessage<T extends Record<string, string | number>>(sourceType: number, types: T, allValue: number, autoDetectValue: number, port: {
|
|
6419
|
+
acceptedConnectionPointTypes: number[];
|
|
6420
|
+
excludedConnectionPointTypes: number[];
|
|
6421
|
+
type: number;
|
|
6422
|
+
}, skips?: number[]): string;
|
|
6400
6423
|
|
|
6401
6424
|
|
|
6402
6425
|
|
|
@@ -6444,7 +6467,7 @@ declare module BABYLON.NodeEditor.SharedUIComponents {
|
|
|
6444
6467
|
exportData: (data: any, frame?: BABYLON.Nullable<BABYLON.NodeEditor.SharedUIComponents.GraphFrame>) => string;
|
|
6445
6468
|
isElbowConnectionAllowed: (nodeA: BABYLON.NodeEditor.SharedUIComponents.FrameNodePort | BABYLON.NodeEditor.SharedUIComponents.NodePort, nodeB: BABYLON.NodeEditor.SharedUIComponents.FrameNodePort | BABYLON.NodeEditor.SharedUIComponents.NodePort) => boolean;
|
|
6446
6469
|
isDebugConnectionAllowed: (nodeA: BABYLON.NodeEditor.SharedUIComponents.FrameNodePort | BABYLON.NodeEditor.SharedUIComponents.NodePort, nodeB: BABYLON.NodeEditor.SharedUIComponents.FrameNodePort | BABYLON.NodeEditor.SharedUIComponents.NodePort) => boolean;
|
|
6447
|
-
applyNodePortDesign: (data: BABYLON.NodeEditor.SharedUIComponents.IPortData, element: HTMLElement,
|
|
6470
|
+
applyNodePortDesign: (data: BABYLON.NodeEditor.SharedUIComponents.IPortData, element: HTMLElement, imgHost: HTMLDivElement, pip: HTMLDivElement) => boolean;
|
|
6448
6471
|
getPortColor: (portData: BABYLON.NodeEditor.SharedUIComponents.IPortData) => string;
|
|
6449
6472
|
storeEditorData: (serializationObject: any, frame?: BABYLON.Nullable<BABYLON.NodeEditor.SharedUIComponents.GraphFrame>) => void;
|
|
6450
6473
|
getEditorDataMap: () => {
|
|
@@ -6518,7 +6541,7 @@ declare module BABYLON.NodeEditor.SharedUIComponents {
|
|
|
6518
6541
|
node: BABYLON.NodeEditor.SharedUIComponents.GraphNode;
|
|
6519
6542
|
protected _element: HTMLDivElement;
|
|
6520
6543
|
protected _portContainer: HTMLElement;
|
|
6521
|
-
protected
|
|
6544
|
+
protected _imgHost: HTMLDivElement;
|
|
6522
6545
|
protected _pip: HTMLDivElement;
|
|
6523
6546
|
protected _stateManager: BABYLON.NodeEditor.SharedUIComponents.StateManager;
|
|
6524
6547
|
protected _portLabelElement: Element;
|
|
@@ -6605,6 +6628,7 @@ declare module BABYLON.NodeEditor {
|
|
|
6605
6628
|
declare module BABYLON.NodeEditor.SharedUIComponents {
|
|
6606
6629
|
export class GraphNode {
|
|
6607
6630
|
content: BABYLON.NodeEditor.SharedUIComponents.INodeData;
|
|
6631
|
+
private static _IdGenerator;
|
|
6608
6632
|
private _visual;
|
|
6609
6633
|
private _headerContainer;
|
|
6610
6634
|
private _headerIcon;
|
|
@@ -6636,11 +6660,11 @@ declare module BABYLON.NodeEditor.SharedUIComponents {
|
|
|
6636
6660
|
private _onUpdateRequiredObserver;
|
|
6637
6661
|
private _onHighlightNodeObserver;
|
|
6638
6662
|
private _ownerCanvas;
|
|
6639
|
-
private _isSelected;
|
|
6640
6663
|
private _displayManager;
|
|
6641
6664
|
private _isVisible;
|
|
6642
6665
|
private _enclosingFrameId;
|
|
6643
6666
|
private _visualPropertiesRefresh;
|
|
6667
|
+
private _lastClick;
|
|
6644
6668
|
addClassToVisual(className: string): void;
|
|
6645
6669
|
removeClassFromVisual(className: string): void;
|
|
6646
6670
|
get isCollapsed(): boolean;
|
|
@@ -6660,10 +6684,8 @@ declare module BABYLON.NodeEditor.SharedUIComponents {
|
|
|
6660
6684
|
get height(): number;
|
|
6661
6685
|
get id(): number;
|
|
6662
6686
|
get name(): string;
|
|
6663
|
-
get isSelected(): boolean;
|
|
6664
6687
|
get enclosingFrameId(): number;
|
|
6665
6688
|
set enclosingFrameId(value: number);
|
|
6666
|
-
set isSelected(value: boolean);
|
|
6667
6689
|
setIsSelected(value: boolean, marqueeSelection: boolean): void;
|
|
6668
6690
|
get rootElement(): HTMLDivElement;
|
|
6669
6691
|
constructor(content: BABYLON.NodeEditor.SharedUIComponents.INodeData, stateManager: BABYLON.NodeEditor.SharedUIComponents.StateManager);
|
|
@@ -6675,10 +6697,11 @@ declare module BABYLON.NodeEditor.SharedUIComponents {
|
|
|
6675
6697
|
private _refreshFrames;
|
|
6676
6698
|
_refreshLinks(): void;
|
|
6677
6699
|
refresh(): void;
|
|
6700
|
+
private _expand;
|
|
6701
|
+
private _searchMiddle;
|
|
6678
6702
|
private _onDown;
|
|
6679
6703
|
cleanAccumulation(useCeil?: boolean): void;
|
|
6680
6704
|
private _onUp;
|
|
6681
|
-
private _attach;
|
|
6682
6705
|
private _onMove;
|
|
6683
6706
|
renderProperties(): BABYLON.Nullable<JSX.Element>;
|
|
6684
6707
|
_forceRebuild(source: any, propertyName: string, notifiers?: BABYLON.IEditablePropertyOption["notifiers"]): void;
|
|
@@ -6896,6 +6919,8 @@ declare module BABYLON.NodeEditor.SharedUIComponents {
|
|
|
6896
6919
|
private _candidateLinkedHasMoved;
|
|
6897
6920
|
private _x;
|
|
6898
6921
|
private _y;
|
|
6922
|
+
private _lastx;
|
|
6923
|
+
private _lasty;
|
|
6899
6924
|
private _zoom;
|
|
6900
6925
|
private _selectedNodes;
|
|
6901
6926
|
private _selectedLink;
|
|
@@ -6909,6 +6934,7 @@ declare module BABYLON.NodeEditor.SharedUIComponents {
|
|
|
6909
6934
|
private _frames;
|
|
6910
6935
|
private _nodeDataContentList;
|
|
6911
6936
|
private _altKeyIsPressed;
|
|
6937
|
+
private _shiftKeyIsPressed;
|
|
6912
6938
|
private _multiKeyIsPressed;
|
|
6913
6939
|
private _oldY;
|
|
6914
6940
|
_frameIsMoving: boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "babylonjs-node-editor",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.54.0",
|
|
4
4
|
"main": "babylon.nodeEditor.js",
|
|
5
5
|
"types": "babylon.nodeEditor.module.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"clean": "rimraf dist && rimraf babylon*.* -g"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"babylonjs": "^7.
|
|
17
|
+
"babylonjs": "^7.54.0"
|
|
18
18
|
},
|
|
19
19
|
"devDependencies": {
|
|
20
20
|
"@dev/build-tools": "1.0.0",
|