babylonjs-node-editor 7.35.1 → 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.
- package/babylon.nodeEditor.d.ts +34 -4
- package/babylon.nodeEditor.js +1 -1
- package/babylon.nodeEditor.js.map +1 -1
- package/babylon.nodeEditor.max.js +233 -105
- package/babylon.nodeEditor.module.d.ts +68 -7
- package/package.json +2 -2
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
|
|
|
@@ -1726,6 +1728,7 @@ declare module BABYLON.NodeEditor.SharedUIComponents {
|
|
|
1726
1728
|
private _onSelectionChangedObserver;
|
|
1727
1729
|
private _isVisible;
|
|
1728
1730
|
private _isTargetCandidate;
|
|
1731
|
+
private _gradient;
|
|
1729
1732
|
onDisposedObservable: BABYLON.Observable<NodeLink>;
|
|
1730
1733
|
get isTargetCandidate(): boolean;
|
|
1731
1734
|
set isTargetCandidate(value: boolean);
|
|
@@ -1842,7 +1845,7 @@ declare module BABYLON.NodeEditor.SharedUIComponents {
|
|
|
1842
1845
|
private _onUp;
|
|
1843
1846
|
private _onMove;
|
|
1844
1847
|
renderProperties(): BABYLON.Nullable<JSX.Element>;
|
|
1845
|
-
|
|
1848
|
+
_forceRebuild(source: any, propertyName: string, notifiers?: BABYLON.IEditablePropertyOption["notifiers"]): void;
|
|
1846
1849
|
private _isCollapsed;
|
|
1847
1850
|
/**
|
|
1848
1851
|
* Collapse the node
|
|
@@ -2247,6 +2250,32 @@ declare module BABYLON.NodeEditor.SharedUIComponents {
|
|
|
2247
2250
|
/** Output */
|
|
2248
2251
|
Output = 1
|
|
2249
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
|
+
}
|
|
2250
2279
|
export interface IPortData {
|
|
2251
2280
|
data: any;
|
|
2252
2281
|
name: string;
|
|
@@ -2260,6 +2289,7 @@ declare module BABYLON.NodeEditor.SharedUIComponents {
|
|
|
2260
2289
|
needDualDirectionValidation: boolean;
|
|
2261
2290
|
hasEndpoints: boolean;
|
|
2262
2291
|
endpoints: BABYLON.Nullable<IPortData[]>;
|
|
2292
|
+
directValueDefinition?: IPortDirectValueDefinition;
|
|
2263
2293
|
updateDisplayName: (newName: string) => void;
|
|
2264
2294
|
canConnectTo: (port: IPortData) => boolean;
|
|
2265
2295
|
connectTo: (port: IPortData) => void;
|