babylonjs-node-editor 7.35.2 → 7.37.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
CHANGED
|
@@ -1564,6 +1564,7 @@ declare module BABYLON.NodeEditor {
|
|
|
1564
1564
|
declare module BABYLON.NodeEditor.SharedUIComponents {
|
|
1565
1565
|
export const IsFramePortData: (variableToCheck: any) => variableToCheck is BABYLON.NodeEditor.SharedUIComponents.FramePortData;
|
|
1566
1566
|
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;
|
|
1567
|
+
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;
|
|
1567
1568
|
|
|
1568
1569
|
|
|
1569
1570
|
|
|
@@ -1678,7 +1679,7 @@ declare module BABYLON.NodeEditor {
|
|
|
1678
1679
|
}
|
|
1679
1680
|
declare module BABYLON.NodeEditor.SharedUIComponents {
|
|
1680
1681
|
export class NodePort {
|
|
1681
|
-
portData:
|
|
1682
|
+
portData: IPortData;
|
|
1682
1683
|
node: BABYLON.NodeEditor.SharedUIComponents.GraphNode;
|
|
1683
1684
|
protected _element: HTMLDivElement;
|
|
1684
1685
|
protected _portContainer: HTMLElement;
|
|
@@ -1689,6 +1690,7 @@ declare module BABYLON.NodeEditor.SharedUIComponents {
|
|
|
1689
1690
|
protected _onCandidateLinkMovedObserver: BABYLON.Nullable<BABYLON.Observer<BABYLON.Nullable<BABYLON.Vector2>>>;
|
|
1690
1691
|
protected _onSelectionChangedObserver: BABYLON.Nullable<BABYLON.Observer<BABYLON.Nullable<BABYLON.NodeEditor.SharedUIComponents.ISelectionChangedOptions>>>;
|
|
1691
1692
|
protected _exposedOnFrame: boolean;
|
|
1693
|
+
protected _portUIcontainer?: HTMLDivElement;
|
|
1692
1694
|
delegatedPort: BABYLON.Nullable<BABYLON.NodeEditor.SharedUIComponents.FrameNodePort>;
|
|
1693
1695
|
get element(): HTMLDivElement;
|
|
1694
1696
|
get container(): HTMLElement;
|
|
@@ -1702,9 +1704,9 @@ declare module BABYLON.NodeEditor.SharedUIComponents {
|
|
|
1702
1704
|
set exposedPortPosition(value: number);
|
|
1703
1705
|
private _isConnectedToNodeOutsideOfFrame;
|
|
1704
1706
|
refresh(): void;
|
|
1705
|
-
constructor(portContainer: HTMLElement, portData:
|
|
1707
|
+
constructor(portContainer: HTMLElement, portData: IPortData, node: BABYLON.NodeEditor.SharedUIComponents.GraphNode, stateManager: BABYLON.NodeEditor.SharedUIComponents.StateManager, portUIcontainer?: HTMLDivElement);
|
|
1706
1708
|
dispose(): void;
|
|
1707
|
-
static CreatePortElement(portData:
|
|
1709
|
+
static CreatePortElement(portData: IPortData, node: BABYLON.NodeEditor.SharedUIComponents.GraphNode, root: HTMLElement, displayManager: BABYLON.Nullable<BABYLON.NodeEditor.SharedUIComponents.IDisplayManager>, stateManager: BABYLON.NodeEditor.SharedUIComponents.StateManager): NodePort;
|
|
1708
1710
|
}
|
|
1709
1711
|
|
|
1710
1712
|
|
|
@@ -1843,7 +1845,7 @@ declare module BABYLON.NodeEditor.SharedUIComponents {
|
|
|
1843
1845
|
private _onUp;
|
|
1844
1846
|
private _onMove;
|
|
1845
1847
|
renderProperties(): BABYLON.Nullable<JSX.Element>;
|
|
1846
|
-
|
|
1848
|
+
_forceRebuild(source: any, propertyName: string, notifiers?: BABYLON.IEditablePropertyOption["notifiers"]): void;
|
|
1847
1849
|
private _isCollapsed;
|
|
1848
1850
|
/**
|
|
1849
1851
|
* Collapse the node
|
|
@@ -2248,6 +2250,32 @@ declare module BABYLON.NodeEditor.SharedUIComponents {
|
|
|
2248
2250
|
/** Output */
|
|
2249
2251
|
Output = 1
|
|
2250
2252
|
}
|
|
2253
|
+
export enum PortDirectValueTypes {
|
|
2254
|
+
Float = 0,
|
|
2255
|
+
Int = 1
|
|
2256
|
+
}
|
|
2257
|
+
export interface IPortDirectValueDefinition {
|
|
2258
|
+
/**
|
|
2259
|
+
* Gets the source object
|
|
2260
|
+
*/
|
|
2261
|
+
source: any;
|
|
2262
|
+
/**
|
|
2263
|
+
* Gets the property name used to store the value
|
|
2264
|
+
*/
|
|
2265
|
+
propertyName: string;
|
|
2266
|
+
/**
|
|
2267
|
+
* Gets or sets the min value accepted for this point if nothing is connected
|
|
2268
|
+
*/
|
|
2269
|
+
valueMin: BABYLON.Nullable<any>;
|
|
2270
|
+
/**
|
|
2271
|
+
* Gets or sets the max value accepted for this point if nothing is connected
|
|
2272
|
+
*/
|
|
2273
|
+
valueMax: BABYLON.Nullable<any>;
|
|
2274
|
+
/**
|
|
2275
|
+
* Gets or sets the type of the value
|
|
2276
|
+
*/
|
|
2277
|
+
valueType: PortDirectValueTypes;
|
|
2278
|
+
}
|
|
2251
2279
|
export interface IPortData {
|
|
2252
2280
|
data: any;
|
|
2253
2281
|
name: string;
|
|
@@ -2261,6 +2289,7 @@ declare module BABYLON.NodeEditor.SharedUIComponents {
|
|
|
2261
2289
|
needDualDirectionValidation: boolean;
|
|
2262
2290
|
hasEndpoints: boolean;
|
|
2263
2291
|
endpoints: BABYLON.Nullable<IPortData[]>;
|
|
2292
|
+
directValueDefinition?: IPortDirectValueDefinition;
|
|
2264
2293
|
updateDisplayName: (newName: string) => void;
|
|
2265
2294
|
canConnectTo: (port: IPortData) => boolean;
|
|
2266
2295
|
connectTo: (port: IPortData) => void;
|