babylonjs-node-render-graph-editor 7.24.1 → 7.25.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.
|
@@ -1327,6 +1327,7 @@ declare module BABYLON.NodeRenderGraphEditor {
|
|
|
1327
1327
|
declare module BABYLON.NodeRenderGraphEditor.SharedUIComponents {
|
|
1328
1328
|
export const IsFramePortData: (variableToCheck: any) => variableToCheck is BABYLON.NodeRenderGraphEditor.SharedUIComponents.FramePortData;
|
|
1329
1329
|
export const RefreshNode: (node: BABYLON.NodeRenderGraphEditor.SharedUIComponents.GraphNode, visitedNodes?: Set<BABYLON.NodeRenderGraphEditor.SharedUIComponents.GraphNode>, visitedLinks?: Set<BABYLON.NodeRenderGraphEditor.SharedUIComponents.NodeLink>, canvas?: BABYLON.NodeRenderGraphEditor.SharedUIComponents.GraphCanvasComponent) => void;
|
|
1330
|
+
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;
|
|
1330
1331
|
|
|
1331
1332
|
|
|
1332
1333
|
|
|
@@ -1441,7 +1442,7 @@ declare module BABYLON.NodeRenderGraphEditor {
|
|
|
1441
1442
|
}
|
|
1442
1443
|
declare module BABYLON.NodeRenderGraphEditor.SharedUIComponents {
|
|
1443
1444
|
export class NodePort {
|
|
1444
|
-
portData:
|
|
1445
|
+
portData: IPortData;
|
|
1445
1446
|
node: BABYLON.NodeRenderGraphEditor.SharedUIComponents.GraphNode;
|
|
1446
1447
|
protected _element: HTMLDivElement;
|
|
1447
1448
|
protected _portContainer: HTMLElement;
|
|
@@ -1452,6 +1453,7 @@ declare module BABYLON.NodeRenderGraphEditor.SharedUIComponents {
|
|
|
1452
1453
|
protected _onCandidateLinkMovedObserver: BABYLON.Nullable<BABYLON.Observer<BABYLON.Nullable<BABYLON.Vector2>>>;
|
|
1453
1454
|
protected _onSelectionChangedObserver: BABYLON.Nullable<BABYLON.Observer<BABYLON.Nullable<BABYLON.NodeRenderGraphEditor.SharedUIComponents.ISelectionChangedOptions>>>;
|
|
1454
1455
|
protected _exposedOnFrame: boolean;
|
|
1456
|
+
protected _portUIcontainer?: HTMLDivElement;
|
|
1455
1457
|
delegatedPort: BABYLON.Nullable<BABYLON.NodeRenderGraphEditor.SharedUIComponents.FrameNodePort>;
|
|
1456
1458
|
get element(): HTMLDivElement;
|
|
1457
1459
|
get container(): HTMLElement;
|
|
@@ -1465,9 +1467,9 @@ declare module BABYLON.NodeRenderGraphEditor.SharedUIComponents {
|
|
|
1465
1467
|
set exposedPortPosition(value: number);
|
|
1466
1468
|
private _isConnectedToNodeOutsideOfFrame;
|
|
1467
1469
|
refresh(): void;
|
|
1468
|
-
constructor(portContainer: HTMLElement, portData:
|
|
1470
|
+
constructor(portContainer: HTMLElement, portData: IPortData, node: BABYLON.NodeRenderGraphEditor.SharedUIComponents.GraphNode, stateManager: BABYLON.NodeRenderGraphEditor.SharedUIComponents.StateManager, portUIcontainer?: HTMLDivElement);
|
|
1469
1471
|
dispose(): void;
|
|
1470
|
-
static CreatePortElement(portData:
|
|
1472
|
+
static CreatePortElement(portData: IPortData, node: BABYLON.NodeRenderGraphEditor.SharedUIComponents.GraphNode, root: HTMLElement, displayManager: BABYLON.Nullable<BABYLON.NodeRenderGraphEditor.SharedUIComponents.IDisplayManager>, stateManager: BABYLON.NodeRenderGraphEditor.SharedUIComponents.StateManager): NodePort;
|
|
1471
1473
|
}
|
|
1472
1474
|
|
|
1473
1475
|
|
|
@@ -1489,6 +1491,7 @@ declare module BABYLON.NodeRenderGraphEditor.SharedUIComponents {
|
|
|
1489
1491
|
private _onSelectionChangedObserver;
|
|
1490
1492
|
private _isVisible;
|
|
1491
1493
|
private _isTargetCandidate;
|
|
1494
|
+
private _gradient;
|
|
1492
1495
|
onDisposedObservable: BABYLON.Observable<NodeLink>;
|
|
1493
1496
|
get isTargetCandidate(): boolean;
|
|
1494
1497
|
set isTargetCandidate(value: boolean);
|
|
@@ -1605,7 +1608,7 @@ declare module BABYLON.NodeRenderGraphEditor.SharedUIComponents {
|
|
|
1605
1608
|
private _onUp;
|
|
1606
1609
|
private _onMove;
|
|
1607
1610
|
renderProperties(): BABYLON.Nullable<JSX.Element>;
|
|
1608
|
-
|
|
1611
|
+
_forceRebuild(source: any, propertyName: string, notifiers?: BABYLON.IEditablePropertyOption["notifiers"]): void;
|
|
1609
1612
|
private _isCollapsed;
|
|
1610
1613
|
/**
|
|
1611
1614
|
* Collapse the node
|
|
@@ -2010,6 +2013,32 @@ declare module BABYLON.NodeRenderGraphEditor.SharedUIComponents {
|
|
|
2010
2013
|
/** Output */
|
|
2011
2014
|
Output = 1
|
|
2012
2015
|
}
|
|
2016
|
+
export enum PortDirectValueTypes {
|
|
2017
|
+
Float = 0,
|
|
2018
|
+
Int = 1
|
|
2019
|
+
}
|
|
2020
|
+
export interface IPortDirectValueDefinition {
|
|
2021
|
+
/**
|
|
2022
|
+
* Gets the source object
|
|
2023
|
+
*/
|
|
2024
|
+
source: any;
|
|
2025
|
+
/**
|
|
2026
|
+
* Gets the property name used to store the value
|
|
2027
|
+
*/
|
|
2028
|
+
propertyName: string;
|
|
2029
|
+
/**
|
|
2030
|
+
* Gets or sets the min value accepted for this point if nothing is connected
|
|
2031
|
+
*/
|
|
2032
|
+
valueMin: BABYLON.Nullable<any>;
|
|
2033
|
+
/**
|
|
2034
|
+
* Gets or sets the max value accepted for this point if nothing is connected
|
|
2035
|
+
*/
|
|
2036
|
+
valueMax: BABYLON.Nullable<any>;
|
|
2037
|
+
/**
|
|
2038
|
+
* Gets or sets the type of the value
|
|
2039
|
+
*/
|
|
2040
|
+
valueType: PortDirectValueTypes;
|
|
2041
|
+
}
|
|
2013
2042
|
export interface IPortData {
|
|
2014
2043
|
data: any;
|
|
2015
2044
|
name: string;
|
|
@@ -2023,6 +2052,7 @@ declare module BABYLON.NodeRenderGraphEditor.SharedUIComponents {
|
|
|
2023
2052
|
needDualDirectionValidation: boolean;
|
|
2024
2053
|
hasEndpoints: boolean;
|
|
2025
2054
|
endpoints: BABYLON.Nullable<IPortData[]>;
|
|
2055
|
+
directValueDefinition?: IPortDirectValueDefinition;
|
|
2026
2056
|
updateDisplayName: (newName: string) => void;
|
|
2027
2057
|
canConnectTo: (port: IPortData) => boolean;
|
|
2028
2058
|
connectTo: (port: IPortData) => void;
|