babylonjs-node-geometry-editor 7.35.2 → 7.36.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.
|
@@ -378,7 +378,7 @@ import { Nullable } from "babylonjs/types";
|
|
|
378
378
|
import { GraphNode } from "babylonjs-node-geometry-editor/nodeGraphSystem/graphNode";
|
|
379
379
|
import { INodeContainer } from "babylonjs-node-geometry-editor/nodeGraphSystem/interfaces/nodeContainer";
|
|
380
380
|
import { IPortData } from "babylonjs-node-geometry-editor/nodeGraphSystem/interfaces/portData";
|
|
381
|
-
import { PortDataDirection } from "babylonjs-node-geometry-editor/nodeGraphSystem/interfaces/portData";
|
|
381
|
+
import { PortDataDirection, PortDirectValueTypes } from "babylonjs-node-geometry-editor/nodeGraphSystem/interfaces/portData";
|
|
382
382
|
export class ConnectionPointPortData implements IPortData {
|
|
383
383
|
private _connectedPort;
|
|
384
384
|
private _nodeContainer;
|
|
@@ -392,6 +392,13 @@ export class ConnectionPointPortData implements IPortData {
|
|
|
392
392
|
get isConnected(): boolean;
|
|
393
393
|
get connectedPort(): Nullable<IPortData>;
|
|
394
394
|
set connectedPort(value: Nullable<IPortData>);
|
|
395
|
+
get directValueDefinition(): {
|
|
396
|
+
source: NodeGeometryConnectionPoint;
|
|
397
|
+
propertyName: string;
|
|
398
|
+
valueMin: any;
|
|
399
|
+
valueMax: any;
|
|
400
|
+
valueType: PortDirectValueTypes;
|
|
401
|
+
} | undefined;
|
|
395
402
|
get direction(): PortDataDirection;
|
|
396
403
|
get ownerData(): NodeGeometryBlock;
|
|
397
404
|
get needDualDirectionValidation(): boolean;
|
|
@@ -1560,6 +1567,7 @@ import { NodeLink } from "babylonjs-node-geometry-editor/nodeGraphSystem/nodeLin
|
|
|
1560
1567
|
import { FramePortData } from "babylonjs-node-geometry-editor/nodeGraphSystem/types/framePortData";
|
|
1561
1568
|
export const IsFramePortData: (variableToCheck: any) => variableToCheck is FramePortData;
|
|
1562
1569
|
export const RefreshNode: (node: GraphNode, visitedNodes?: Set<GraphNode>, visitedLinks?: Set<NodeLink>, canvas?: GraphCanvasComponent) => void;
|
|
1570
|
+
export const BuildFloatUI: (container: HTMLDivElement, document: Document, displayName: string, isInteger: boolean, source: any, propertyName: string, onChange: () => void, min?: number, max?: number, visualPropertiesRefresh?: Array<() => void>) => void;
|
|
1563
1571
|
|
|
1564
1572
|
}
|
|
1565
1573
|
declare module "babylonjs-node-geometry-editor/nodeGraphSystem/stateManager" {
|
|
@@ -1675,7 +1683,7 @@ import { StateManager } from "babylonjs-node-geometry-editor/nodeGraphSystem/sta
|
|
|
1675
1683
|
import { ISelectionChangedOptions } from "babylonjs-node-geometry-editor/nodeGraphSystem/interfaces/selectionChangedOptions";
|
|
1676
1684
|
import { FrameNodePort } from "babylonjs-node-geometry-editor/nodeGraphSystem/frameNodePort";
|
|
1677
1685
|
import { IDisplayManager } from "babylonjs-node-geometry-editor/nodeGraphSystem/interfaces/displayManager";
|
|
1678
|
-
import { IPortData } from "babylonjs-node-geometry-editor/nodeGraphSystem/interfaces/portData";
|
|
1686
|
+
import { type IPortData } from "babylonjs-node-geometry-editor/nodeGraphSystem/interfaces/portData";
|
|
1679
1687
|
export class NodePort {
|
|
1680
1688
|
portData: IPortData;
|
|
1681
1689
|
node: GraphNode;
|
|
@@ -1688,6 +1696,7 @@ export class NodePort {
|
|
|
1688
1696
|
protected _onCandidateLinkMovedObserver: Nullable<Observer<Nullable<Vector2>>>;
|
|
1689
1697
|
protected _onSelectionChangedObserver: Nullable<Observer<Nullable<ISelectionChangedOptions>>>;
|
|
1690
1698
|
protected _exposedOnFrame: boolean;
|
|
1699
|
+
protected _portUIcontainer?: HTMLDivElement;
|
|
1691
1700
|
delegatedPort: Nullable<FrameNodePort>;
|
|
1692
1701
|
get element(): HTMLDivElement;
|
|
1693
1702
|
get container(): HTMLElement;
|
|
@@ -1701,7 +1710,7 @@ export class NodePort {
|
|
|
1701
1710
|
set exposedPortPosition(value: number);
|
|
1702
1711
|
private _isConnectedToNodeOutsideOfFrame;
|
|
1703
1712
|
refresh(): void;
|
|
1704
|
-
constructor(portContainer: HTMLElement, portData: IPortData, node: GraphNode, stateManager: StateManager);
|
|
1713
|
+
constructor(portContainer: HTMLElement, portData: IPortData, node: GraphNode, stateManager: StateManager, portUIcontainer?: HTMLDivElement);
|
|
1705
1714
|
dispose(): void;
|
|
1706
1715
|
static CreatePortElement(portData: IPortData, node: GraphNode, root: HTMLElement, displayManager: Nullable<IDisplayManager>, stateManager: StateManager): NodePort;
|
|
1707
1716
|
}
|
|
@@ -1760,6 +1769,7 @@ import { NodeLink } from "babylonjs-node-geometry-editor/nodeGraphSystem/nodeLin
|
|
|
1760
1769
|
import { StateManager } from "babylonjs-node-geometry-editor/nodeGraphSystem/stateManager";
|
|
1761
1770
|
import { INodeData } from "babylonjs-node-geometry-editor/nodeGraphSystem/interfaces/nodeData";
|
|
1762
1771
|
import { IPortData } from "babylonjs-node-geometry-editor/nodeGraphSystem/interfaces/portData";
|
|
1772
|
+
import { IEditablePropertyOption } from "babylonjs/Decorators/nodeDecorator";
|
|
1763
1773
|
export class GraphNode {
|
|
1764
1774
|
content: INodeData;
|
|
1765
1775
|
private _visual;
|
|
@@ -1837,7 +1847,7 @@ export class GraphNode {
|
|
|
1837
1847
|
private _onUp;
|
|
1838
1848
|
private _onMove;
|
|
1839
1849
|
renderProperties(): Nullable<JSX.Element>;
|
|
1840
|
-
|
|
1850
|
+
_forceRebuild(source: any, propertyName: string, notifiers?: IEditablePropertyOption["notifiers"]): void;
|
|
1841
1851
|
private _isCollapsed;
|
|
1842
1852
|
/**
|
|
1843
1853
|
* Collapse the node
|
|
@@ -2228,6 +2238,32 @@ export enum PortDataDirection {
|
|
|
2228
2238
|
/** Output */
|
|
2229
2239
|
Output = 1
|
|
2230
2240
|
}
|
|
2241
|
+
export enum PortDirectValueTypes {
|
|
2242
|
+
Float = 0,
|
|
2243
|
+
Int = 1
|
|
2244
|
+
}
|
|
2245
|
+
export interface IPortDirectValueDefinition {
|
|
2246
|
+
/**
|
|
2247
|
+
* Gets the source object
|
|
2248
|
+
*/
|
|
2249
|
+
source: any;
|
|
2250
|
+
/**
|
|
2251
|
+
* Gets the property name used to store the value
|
|
2252
|
+
*/
|
|
2253
|
+
propertyName: string;
|
|
2254
|
+
/**
|
|
2255
|
+
* Gets or sets the min value accepted for this point if nothing is connected
|
|
2256
|
+
*/
|
|
2257
|
+
valueMin: Nullable<any>;
|
|
2258
|
+
/**
|
|
2259
|
+
* Gets or sets the max value accepted for this point if nothing is connected
|
|
2260
|
+
*/
|
|
2261
|
+
valueMax: Nullable<any>;
|
|
2262
|
+
/**
|
|
2263
|
+
* Gets or sets the type of the value
|
|
2264
|
+
*/
|
|
2265
|
+
valueType: PortDirectValueTypes;
|
|
2266
|
+
}
|
|
2231
2267
|
export interface IPortData {
|
|
2232
2268
|
data: any;
|
|
2233
2269
|
name: string;
|
|
@@ -2241,6 +2277,7 @@ export interface IPortData {
|
|
|
2241
2277
|
needDualDirectionValidation: boolean;
|
|
2242
2278
|
hasEndpoints: boolean;
|
|
2243
2279
|
endpoints: Nullable<IPortData[]>;
|
|
2280
|
+
directValueDefinition?: IPortDirectValueDefinition;
|
|
2244
2281
|
updateDisplayName: (newName: string) => void;
|
|
2245
2282
|
canConnectTo: (port: IPortData) => boolean;
|
|
2246
2283
|
connectTo: (port: IPortData) => void;
|
|
@@ -4605,6 +4642,13 @@ declare module BABYLON.NodeGeometryEditor {
|
|
|
4605
4642
|
get isConnected(): boolean;
|
|
4606
4643
|
get connectedPort(): BABYLON.Nullable<BABYLON.NodeGeometryEditor.SharedUIComponents.IPortData>;
|
|
4607
4644
|
set connectedPort(value: BABYLON.Nullable<BABYLON.NodeGeometryEditor.SharedUIComponents.IPortData>);
|
|
4645
|
+
get directValueDefinition(): {
|
|
4646
|
+
source: NodeGeometryConnectionPoint;
|
|
4647
|
+
propertyName: string;
|
|
4648
|
+
valueMin: any;
|
|
4649
|
+
valueMax: any;
|
|
4650
|
+
valueType: BABYLON.NodeGeometryEditor.SharedUIComponents.PortDirectValueTypes;
|
|
4651
|
+
} | undefined;
|
|
4608
4652
|
get direction(): BABYLON.NodeGeometryEditor.SharedUIComponents.PortDataDirection;
|
|
4609
4653
|
get ownerData(): BABYLON.NodeGeometryBlock;
|
|
4610
4654
|
get needDualDirectionValidation(): boolean;
|
|
@@ -5692,6 +5736,7 @@ declare module BABYLON.NodeGeometryEditor {
|
|
|
5692
5736
|
declare module BABYLON.NodeGeometryEditor.SharedUIComponents {
|
|
5693
5737
|
export const IsFramePortData: (variableToCheck: any) => variableToCheck is BABYLON.NodeGeometryEditor.SharedUIComponents.FramePortData;
|
|
5694
5738
|
export const RefreshNode: (node: BABYLON.NodeGeometryEditor.SharedUIComponents.GraphNode, visitedNodes?: Set<BABYLON.NodeGeometryEditor.SharedUIComponents.GraphNode>, visitedLinks?: Set<BABYLON.NodeGeometryEditor.SharedUIComponents.NodeLink>, canvas?: BABYLON.NodeGeometryEditor.SharedUIComponents.GraphCanvasComponent) => void;
|
|
5739
|
+
export const BuildFloatUI: (container: HTMLDivElement, document: Document, displayName: string, isInteger: boolean, source: any, propertyName: string, onChange: () => void, min?: number, max?: number, visualPropertiesRefresh?: Array<() => void>) => void;
|
|
5695
5740
|
|
|
5696
5741
|
|
|
5697
5742
|
|
|
@@ -5806,7 +5851,7 @@ declare module BABYLON.NodeGeometryEditor {
|
|
|
5806
5851
|
}
|
|
5807
5852
|
declare module BABYLON.NodeGeometryEditor.SharedUIComponents {
|
|
5808
5853
|
export class NodePort {
|
|
5809
|
-
portData:
|
|
5854
|
+
portData: IPortData;
|
|
5810
5855
|
node: BABYLON.NodeGeometryEditor.SharedUIComponents.GraphNode;
|
|
5811
5856
|
protected _element: HTMLDivElement;
|
|
5812
5857
|
protected _portContainer: HTMLElement;
|
|
@@ -5817,6 +5862,7 @@ declare module BABYLON.NodeGeometryEditor.SharedUIComponents {
|
|
|
5817
5862
|
protected _onCandidateLinkMovedObserver: BABYLON.Nullable<BABYLON.Observer<BABYLON.Nullable<BABYLON.Vector2>>>;
|
|
5818
5863
|
protected _onSelectionChangedObserver: BABYLON.Nullable<BABYLON.Observer<BABYLON.Nullable<BABYLON.NodeGeometryEditor.SharedUIComponents.ISelectionChangedOptions>>>;
|
|
5819
5864
|
protected _exposedOnFrame: boolean;
|
|
5865
|
+
protected _portUIcontainer?: HTMLDivElement;
|
|
5820
5866
|
delegatedPort: BABYLON.Nullable<BABYLON.NodeGeometryEditor.SharedUIComponents.FrameNodePort>;
|
|
5821
5867
|
get element(): HTMLDivElement;
|
|
5822
5868
|
get container(): HTMLElement;
|
|
@@ -5830,9 +5876,9 @@ declare module BABYLON.NodeGeometryEditor.SharedUIComponents {
|
|
|
5830
5876
|
set exposedPortPosition(value: number);
|
|
5831
5877
|
private _isConnectedToNodeOutsideOfFrame;
|
|
5832
5878
|
refresh(): void;
|
|
5833
|
-
constructor(portContainer: HTMLElement, portData:
|
|
5879
|
+
constructor(portContainer: HTMLElement, portData: IPortData, node: BABYLON.NodeGeometryEditor.SharedUIComponents.GraphNode, stateManager: BABYLON.NodeGeometryEditor.SharedUIComponents.StateManager, portUIcontainer?: HTMLDivElement);
|
|
5834
5880
|
dispose(): void;
|
|
5835
|
-
static CreatePortElement(portData:
|
|
5881
|
+
static CreatePortElement(portData: IPortData, node: BABYLON.NodeGeometryEditor.SharedUIComponents.GraphNode, root: HTMLElement, displayManager: BABYLON.Nullable<BABYLON.NodeGeometryEditor.SharedUIComponents.IDisplayManager>, stateManager: BABYLON.NodeGeometryEditor.SharedUIComponents.StateManager): NodePort;
|
|
5836
5882
|
}
|
|
5837
5883
|
|
|
5838
5884
|
|
|
@@ -5971,7 +6017,7 @@ declare module BABYLON.NodeGeometryEditor.SharedUIComponents {
|
|
|
5971
6017
|
private _onUp;
|
|
5972
6018
|
private _onMove;
|
|
5973
6019
|
renderProperties(): BABYLON.Nullable<JSX.Element>;
|
|
5974
|
-
|
|
6020
|
+
_forceRebuild(source: any, propertyName: string, notifiers?: BABYLON.IEditablePropertyOption["notifiers"]): void;
|
|
5975
6021
|
private _isCollapsed;
|
|
5976
6022
|
/**
|
|
5977
6023
|
* Collapse the node
|
|
@@ -6376,6 +6422,32 @@ declare module BABYLON.NodeGeometryEditor.SharedUIComponents {
|
|
|
6376
6422
|
/** Output */
|
|
6377
6423
|
Output = 1
|
|
6378
6424
|
}
|
|
6425
|
+
export enum PortDirectValueTypes {
|
|
6426
|
+
Float = 0,
|
|
6427
|
+
Int = 1
|
|
6428
|
+
}
|
|
6429
|
+
export interface IPortDirectValueDefinition {
|
|
6430
|
+
/**
|
|
6431
|
+
* Gets the source object
|
|
6432
|
+
*/
|
|
6433
|
+
source: any;
|
|
6434
|
+
/**
|
|
6435
|
+
* Gets the property name used to store the value
|
|
6436
|
+
*/
|
|
6437
|
+
propertyName: string;
|
|
6438
|
+
/**
|
|
6439
|
+
* Gets or sets the min value accepted for this point if nothing is connected
|
|
6440
|
+
*/
|
|
6441
|
+
valueMin: BABYLON.Nullable<any>;
|
|
6442
|
+
/**
|
|
6443
|
+
* Gets or sets the max value accepted for this point if nothing is connected
|
|
6444
|
+
*/
|
|
6445
|
+
valueMax: BABYLON.Nullable<any>;
|
|
6446
|
+
/**
|
|
6447
|
+
* Gets or sets the type of the value
|
|
6448
|
+
*/
|
|
6449
|
+
valueType: PortDirectValueTypes;
|
|
6450
|
+
}
|
|
6379
6451
|
export interface IPortData {
|
|
6380
6452
|
data: any;
|
|
6381
6453
|
name: string;
|
|
@@ -6389,6 +6461,7 @@ declare module BABYLON.NodeGeometryEditor.SharedUIComponents {
|
|
|
6389
6461
|
needDualDirectionValidation: boolean;
|
|
6390
6462
|
hasEndpoints: boolean;
|
|
6391
6463
|
endpoints: BABYLON.Nullable<IPortData[]>;
|
|
6464
|
+
directValueDefinition?: IPortDirectValueDefinition;
|
|
6392
6465
|
updateDisplayName: (newName: string) => void;
|
|
6393
6466
|
canConnectTo: (port: IPortData) => boolean;
|
|
6394
6467
|
connectTo: (port: IPortData) => void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "babylonjs-node-geometry-editor",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.36.0",
|
|
4
4
|
"main": "babylon.nodeGeometryEditor.js",
|
|
5
5
|
"types": "babylon.nodeGeometryEditor.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.36.0"
|
|
18
18
|
},
|
|
19
19
|
"devDependencies": {
|
|
20
20
|
"@dev/build-tools": "1.0.0",
|