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.
|
@@ -241,6 +241,13 @@ declare module BABYLON.NodeGeometryEditor {
|
|
|
241
241
|
get isConnected(): boolean;
|
|
242
242
|
get connectedPort(): BABYLON.Nullable<BABYLON.NodeGeometryEditor.SharedUIComponents.IPortData>;
|
|
243
243
|
set connectedPort(value: BABYLON.Nullable<BABYLON.NodeGeometryEditor.SharedUIComponents.IPortData>);
|
|
244
|
+
get directValueDefinition(): {
|
|
245
|
+
source: NodeGeometryConnectionPoint;
|
|
246
|
+
propertyName: string;
|
|
247
|
+
valueMin: any;
|
|
248
|
+
valueMax: any;
|
|
249
|
+
valueType: BABYLON.NodeGeometryEditor.SharedUIComponents.PortDirectValueTypes;
|
|
250
|
+
} | undefined;
|
|
244
251
|
get direction(): BABYLON.NodeGeometryEditor.SharedUIComponents.PortDataDirection;
|
|
245
252
|
get ownerData(): BABYLON.NodeGeometryBlock;
|
|
246
253
|
get needDualDirectionValidation(): boolean;
|
|
@@ -1328,6 +1335,7 @@ declare module BABYLON.NodeGeometryEditor {
|
|
|
1328
1335
|
declare module BABYLON.NodeGeometryEditor.SharedUIComponents {
|
|
1329
1336
|
export const IsFramePortData: (variableToCheck: any) => variableToCheck is BABYLON.NodeGeometryEditor.SharedUIComponents.FramePortData;
|
|
1330
1337
|
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;
|
|
1338
|
+
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;
|
|
1331
1339
|
|
|
1332
1340
|
|
|
1333
1341
|
|
|
@@ -1442,7 +1450,7 @@ declare module BABYLON.NodeGeometryEditor {
|
|
|
1442
1450
|
}
|
|
1443
1451
|
declare module BABYLON.NodeGeometryEditor.SharedUIComponents {
|
|
1444
1452
|
export class NodePort {
|
|
1445
|
-
portData:
|
|
1453
|
+
portData: IPortData;
|
|
1446
1454
|
node: BABYLON.NodeGeometryEditor.SharedUIComponents.GraphNode;
|
|
1447
1455
|
protected _element: HTMLDivElement;
|
|
1448
1456
|
protected _portContainer: HTMLElement;
|
|
@@ -1453,6 +1461,7 @@ declare module BABYLON.NodeGeometryEditor.SharedUIComponents {
|
|
|
1453
1461
|
protected _onCandidateLinkMovedObserver: BABYLON.Nullable<BABYLON.Observer<BABYLON.Nullable<BABYLON.Vector2>>>;
|
|
1454
1462
|
protected _onSelectionChangedObserver: BABYLON.Nullable<BABYLON.Observer<BABYLON.Nullable<BABYLON.NodeGeometryEditor.SharedUIComponents.ISelectionChangedOptions>>>;
|
|
1455
1463
|
protected _exposedOnFrame: boolean;
|
|
1464
|
+
protected _portUIcontainer?: HTMLDivElement;
|
|
1456
1465
|
delegatedPort: BABYLON.Nullable<BABYLON.NodeGeometryEditor.SharedUIComponents.FrameNodePort>;
|
|
1457
1466
|
get element(): HTMLDivElement;
|
|
1458
1467
|
get container(): HTMLElement;
|
|
@@ -1466,9 +1475,9 @@ declare module BABYLON.NodeGeometryEditor.SharedUIComponents {
|
|
|
1466
1475
|
set exposedPortPosition(value: number);
|
|
1467
1476
|
private _isConnectedToNodeOutsideOfFrame;
|
|
1468
1477
|
refresh(): void;
|
|
1469
|
-
constructor(portContainer: HTMLElement, portData:
|
|
1478
|
+
constructor(portContainer: HTMLElement, portData: IPortData, node: BABYLON.NodeGeometryEditor.SharedUIComponents.GraphNode, stateManager: BABYLON.NodeGeometryEditor.SharedUIComponents.StateManager, portUIcontainer?: HTMLDivElement);
|
|
1470
1479
|
dispose(): void;
|
|
1471
|
-
static CreatePortElement(portData:
|
|
1480
|
+
static CreatePortElement(portData: IPortData, node: BABYLON.NodeGeometryEditor.SharedUIComponents.GraphNode, root: HTMLElement, displayManager: BABYLON.Nullable<BABYLON.NodeGeometryEditor.SharedUIComponents.IDisplayManager>, stateManager: BABYLON.NodeGeometryEditor.SharedUIComponents.StateManager): NodePort;
|
|
1472
1481
|
}
|
|
1473
1482
|
|
|
1474
1483
|
|
|
@@ -1607,7 +1616,7 @@ declare module BABYLON.NodeGeometryEditor.SharedUIComponents {
|
|
|
1607
1616
|
private _onUp;
|
|
1608
1617
|
private _onMove;
|
|
1609
1618
|
renderProperties(): BABYLON.Nullable<JSX.Element>;
|
|
1610
|
-
|
|
1619
|
+
_forceRebuild(source: any, propertyName: string, notifiers?: BABYLON.IEditablePropertyOption["notifiers"]): void;
|
|
1611
1620
|
private _isCollapsed;
|
|
1612
1621
|
/**
|
|
1613
1622
|
* Collapse the node
|
|
@@ -2012,6 +2021,32 @@ declare module BABYLON.NodeGeometryEditor.SharedUIComponents {
|
|
|
2012
2021
|
/** Output */
|
|
2013
2022
|
Output = 1
|
|
2014
2023
|
}
|
|
2024
|
+
export enum PortDirectValueTypes {
|
|
2025
|
+
Float = 0,
|
|
2026
|
+
Int = 1
|
|
2027
|
+
}
|
|
2028
|
+
export interface IPortDirectValueDefinition {
|
|
2029
|
+
/**
|
|
2030
|
+
* Gets the source object
|
|
2031
|
+
*/
|
|
2032
|
+
source: any;
|
|
2033
|
+
/**
|
|
2034
|
+
* Gets the property name used to store the value
|
|
2035
|
+
*/
|
|
2036
|
+
propertyName: string;
|
|
2037
|
+
/**
|
|
2038
|
+
* Gets or sets the min value accepted for this point if nothing is connected
|
|
2039
|
+
*/
|
|
2040
|
+
valueMin: BABYLON.Nullable<any>;
|
|
2041
|
+
/**
|
|
2042
|
+
* Gets or sets the max value accepted for this point if nothing is connected
|
|
2043
|
+
*/
|
|
2044
|
+
valueMax: BABYLON.Nullable<any>;
|
|
2045
|
+
/**
|
|
2046
|
+
* Gets or sets the type of the value
|
|
2047
|
+
*/
|
|
2048
|
+
valueType: PortDirectValueTypes;
|
|
2049
|
+
}
|
|
2015
2050
|
export interface IPortData {
|
|
2016
2051
|
data: any;
|
|
2017
2052
|
name: string;
|
|
@@ -2025,6 +2060,7 @@ declare module BABYLON.NodeGeometryEditor.SharedUIComponents {
|
|
|
2025
2060
|
needDualDirectionValidation: boolean;
|
|
2026
2061
|
hasEndpoints: boolean;
|
|
2027
2062
|
endpoints: BABYLON.Nullable<IPortData[]>;
|
|
2063
|
+
directValueDefinition?: IPortDirectValueDefinition;
|
|
2028
2064
|
updateDisplayName: (newName: string) => void;
|
|
2029
2065
|
canConnectTo: (port: IPortData) => boolean;
|
|
2030
2066
|
connectTo: (port: IPortData) => void;
|