babylonjs-gui-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.guiEditor.d.ts
CHANGED
|
@@ -1816,6 +1816,7 @@ declare module BABYLON {
|
|
|
1816
1816
|
declare module BABYLON.GuiEditor.SharedUIComponents {
|
|
1817
1817
|
export const IsFramePortData: (variableToCheck: any) => variableToCheck is BABYLON.GuiEditor.SharedUIComponents.FramePortData;
|
|
1818
1818
|
export const RefreshNode: (node: BABYLON.GuiEditor.SharedUIComponents.GraphNode, visitedNodes?: Set<BABYLON.GuiEditor.SharedUIComponents.GraphNode>, visitedLinks?: Set<BABYLON.GuiEditor.SharedUIComponents.NodeLink>, canvas?: BABYLON.GuiEditor.SharedUIComponents.GraphCanvasComponent) => void;
|
|
1819
|
+
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;
|
|
1819
1820
|
|
|
1820
1821
|
|
|
1821
1822
|
|
|
@@ -1930,7 +1931,7 @@ declare module BABYLON {
|
|
|
1930
1931
|
}
|
|
1931
1932
|
declare module BABYLON.GuiEditor.SharedUIComponents {
|
|
1932
1933
|
export class NodePort {
|
|
1933
|
-
portData:
|
|
1934
|
+
portData: IPortData;
|
|
1934
1935
|
node: BABYLON.GuiEditor.SharedUIComponents.GraphNode;
|
|
1935
1936
|
protected _element: HTMLDivElement;
|
|
1936
1937
|
protected _portContainer: HTMLElement;
|
|
@@ -1941,6 +1942,7 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
|
|
|
1941
1942
|
protected _onCandidateLinkMovedObserver: Nullable<Observer<Nullable<Vector2>>>;
|
|
1942
1943
|
protected _onSelectionChangedObserver: Nullable<Observer<Nullable<BABYLON.GuiEditor.SharedUIComponents.ISelectionChangedOptions>>>;
|
|
1943
1944
|
protected _exposedOnFrame: boolean;
|
|
1945
|
+
protected _portUIcontainer?: HTMLDivElement;
|
|
1944
1946
|
delegatedPort: Nullable<BABYLON.GuiEditor.SharedUIComponents.FrameNodePort>;
|
|
1945
1947
|
get element(): HTMLDivElement;
|
|
1946
1948
|
get container(): HTMLElement;
|
|
@@ -1954,9 +1956,9 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
|
|
|
1954
1956
|
set exposedPortPosition(value: number);
|
|
1955
1957
|
private _isConnectedToNodeOutsideOfFrame;
|
|
1956
1958
|
refresh(): void;
|
|
1957
|
-
constructor(portContainer: HTMLElement, portData:
|
|
1959
|
+
constructor(portContainer: HTMLElement, portData: IPortData, node: BABYLON.GuiEditor.SharedUIComponents.GraphNode, stateManager: BABYLON.GuiEditor.SharedUIComponents.StateManager, portUIcontainer?: HTMLDivElement);
|
|
1958
1960
|
dispose(): void;
|
|
1959
|
-
static CreatePortElement(portData:
|
|
1961
|
+
static CreatePortElement(portData: IPortData, node: BABYLON.GuiEditor.SharedUIComponents.GraphNode, root: HTMLElement, displayManager: Nullable<BABYLON.GuiEditor.SharedUIComponents.IDisplayManager>, stateManager: BABYLON.GuiEditor.SharedUIComponents.StateManager): NodePort;
|
|
1960
1962
|
}
|
|
1961
1963
|
|
|
1962
1964
|
|
|
@@ -2095,7 +2097,7 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
|
|
|
2095
2097
|
private _onUp;
|
|
2096
2098
|
private _onMove;
|
|
2097
2099
|
renderProperties(): Nullable<JSX.Element>;
|
|
2098
|
-
|
|
2100
|
+
_forceRebuild(source: any, propertyName: string, notifiers?: IEditablePropertyOption["notifiers"]): void;
|
|
2099
2101
|
private _isCollapsed;
|
|
2100
2102
|
/**
|
|
2101
2103
|
* Collapse the node
|
|
@@ -2500,6 +2502,32 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
|
|
|
2500
2502
|
/** Output */
|
|
2501
2503
|
Output = 1
|
|
2502
2504
|
}
|
|
2505
|
+
export enum PortDirectValueTypes {
|
|
2506
|
+
Float = 0,
|
|
2507
|
+
Int = 1
|
|
2508
|
+
}
|
|
2509
|
+
export interface IPortDirectValueDefinition {
|
|
2510
|
+
/**
|
|
2511
|
+
* Gets the source object
|
|
2512
|
+
*/
|
|
2513
|
+
source: any;
|
|
2514
|
+
/**
|
|
2515
|
+
* Gets the property name used to store the value
|
|
2516
|
+
*/
|
|
2517
|
+
propertyName: string;
|
|
2518
|
+
/**
|
|
2519
|
+
* Gets or sets the min value accepted for this point if nothing is connected
|
|
2520
|
+
*/
|
|
2521
|
+
valueMin: Nullable<any>;
|
|
2522
|
+
/**
|
|
2523
|
+
* Gets or sets the max value accepted for this point if nothing is connected
|
|
2524
|
+
*/
|
|
2525
|
+
valueMax: Nullable<any>;
|
|
2526
|
+
/**
|
|
2527
|
+
* Gets or sets the type of the value
|
|
2528
|
+
*/
|
|
2529
|
+
valueType: PortDirectValueTypes;
|
|
2530
|
+
}
|
|
2503
2531
|
export interface IPortData {
|
|
2504
2532
|
data: any;
|
|
2505
2533
|
name: string;
|
|
@@ -2513,6 +2541,7 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
|
|
|
2513
2541
|
needDualDirectionValidation: boolean;
|
|
2514
2542
|
hasEndpoints: boolean;
|
|
2515
2543
|
endpoints: Nullable<IPortData[]>;
|
|
2544
|
+
directValueDefinition?: IPortDirectValueDefinition;
|
|
2516
2545
|
updateDisplayName: (newName: string) => void;
|
|
2517
2546
|
canConnectTo: (port: IPortData) => boolean;
|
|
2518
2547
|
connectTo: (port: IPortData) => void;
|