babylonjs-gui-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.guiEditor.d.ts +34 -4
- package/babylon.guiEditor.module.d.ts +68 -7
- package/package.json +3 -3
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
|
|
|
@@ -1978,6 +1980,7 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
|
|
|
1978
1980
|
private _onSelectionChangedObserver;
|
|
1979
1981
|
private _isVisible;
|
|
1980
1982
|
private _isTargetCandidate;
|
|
1983
|
+
private _gradient;
|
|
1981
1984
|
onDisposedObservable: Observable<NodeLink>;
|
|
1982
1985
|
get isTargetCandidate(): boolean;
|
|
1983
1986
|
set isTargetCandidate(value: boolean);
|
|
@@ -2094,7 +2097,7 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
|
|
|
2094
2097
|
private _onUp;
|
|
2095
2098
|
private _onMove;
|
|
2096
2099
|
renderProperties(): Nullable<JSX.Element>;
|
|
2097
|
-
|
|
2100
|
+
_forceRebuild(source: any, propertyName: string, notifiers?: IEditablePropertyOption["notifiers"]): void;
|
|
2098
2101
|
private _isCollapsed;
|
|
2099
2102
|
/**
|
|
2100
2103
|
* Collapse the node
|
|
@@ -2499,6 +2502,32 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
|
|
|
2499
2502
|
/** Output */
|
|
2500
2503
|
Output = 1
|
|
2501
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
|
+
}
|
|
2502
2531
|
export interface IPortData {
|
|
2503
2532
|
data: any;
|
|
2504
2533
|
name: string;
|
|
@@ -2512,6 +2541,7 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
|
|
|
2512
2541
|
needDualDirectionValidation: boolean;
|
|
2513
2542
|
hasEndpoints: boolean;
|
|
2514
2543
|
endpoints: Nullable<IPortData[]>;
|
|
2544
|
+
directValueDefinition?: IPortDirectValueDefinition;
|
|
2515
2545
|
updateDisplayName: (newName: string) => void;
|
|
2516
2546
|
canConnectTo: (port: IPortData) => boolean;
|
|
2517
2547
|
connectTo: (port: IPortData) => void;
|
|
@@ -2085,6 +2085,7 @@ import { NodeLink } from "babylonjs-gui-editor/nodeGraphSystem/nodeLink";
|
|
|
2085
2085
|
import { FramePortData } from "babylonjs-gui-editor/nodeGraphSystem/types/framePortData";
|
|
2086
2086
|
export const IsFramePortData: (variableToCheck: any) => variableToCheck is FramePortData;
|
|
2087
2087
|
export const RefreshNode: (node: GraphNode, visitedNodes?: Set<GraphNode>, visitedLinks?: Set<NodeLink>, canvas?: GraphCanvasComponent) => void;
|
|
2088
|
+
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;
|
|
2088
2089
|
|
|
2089
2090
|
}
|
|
2090
2091
|
declare module "babylonjs-gui-editor/nodeGraphSystem/stateManager" {
|
|
@@ -2200,7 +2201,7 @@ import { StateManager } from "babylonjs-gui-editor/nodeGraphSystem/stateManager"
|
|
|
2200
2201
|
import { ISelectionChangedOptions } from "babylonjs-gui-editor/nodeGraphSystem/interfaces/selectionChangedOptions";
|
|
2201
2202
|
import { FrameNodePort } from "babylonjs-gui-editor/nodeGraphSystem/frameNodePort";
|
|
2202
2203
|
import { IDisplayManager } from "babylonjs-gui-editor/nodeGraphSystem/interfaces/displayManager";
|
|
2203
|
-
import { IPortData } from "babylonjs-gui-editor/nodeGraphSystem/interfaces/portData";
|
|
2204
|
+
import { type IPortData } from "babylonjs-gui-editor/nodeGraphSystem/interfaces/portData";
|
|
2204
2205
|
export class NodePort {
|
|
2205
2206
|
portData: IPortData;
|
|
2206
2207
|
node: GraphNode;
|
|
@@ -2213,6 +2214,7 @@ export class NodePort {
|
|
|
2213
2214
|
protected _onCandidateLinkMovedObserver: Nullable<Observer<Nullable<Vector2>>>;
|
|
2214
2215
|
protected _onSelectionChangedObserver: Nullable<Observer<Nullable<ISelectionChangedOptions>>>;
|
|
2215
2216
|
protected _exposedOnFrame: boolean;
|
|
2217
|
+
protected _portUIcontainer?: HTMLDivElement;
|
|
2216
2218
|
delegatedPort: Nullable<FrameNodePort>;
|
|
2217
2219
|
get element(): HTMLDivElement;
|
|
2218
2220
|
get container(): HTMLElement;
|
|
@@ -2226,7 +2228,7 @@ export class NodePort {
|
|
|
2226
2228
|
set exposedPortPosition(value: number);
|
|
2227
2229
|
private _isConnectedToNodeOutsideOfFrame;
|
|
2228
2230
|
refresh(): void;
|
|
2229
|
-
constructor(portContainer: HTMLElement, portData: IPortData, node: GraphNode, stateManager: StateManager);
|
|
2231
|
+
constructor(portContainer: HTMLElement, portData: IPortData, node: GraphNode, stateManager: StateManager, portUIcontainer?: HTMLDivElement);
|
|
2230
2232
|
dispose(): void;
|
|
2231
2233
|
static CreatePortElement(portData: IPortData, node: GraphNode, root: HTMLElement, displayManager: Nullable<IDisplayManager>, stateManager: StateManager): NodePort;
|
|
2232
2234
|
}
|
|
@@ -2249,6 +2251,7 @@ export class NodeLink {
|
|
|
2249
2251
|
private _onSelectionChangedObserver;
|
|
2250
2252
|
private _isVisible;
|
|
2251
2253
|
private _isTargetCandidate;
|
|
2254
|
+
private _gradient;
|
|
2252
2255
|
onDisposedObservable: Observable<NodeLink>;
|
|
2253
2256
|
get isTargetCandidate(): boolean;
|
|
2254
2257
|
set isTargetCandidate(value: boolean);
|
|
@@ -2284,6 +2287,7 @@ import { NodeLink } from "babylonjs-gui-editor/nodeGraphSystem/nodeLink";
|
|
|
2284
2287
|
import { StateManager } from "babylonjs-gui-editor/nodeGraphSystem/stateManager";
|
|
2285
2288
|
import { INodeData } from "babylonjs-gui-editor/nodeGraphSystem/interfaces/nodeData";
|
|
2286
2289
|
import { IPortData } from "babylonjs-gui-editor/nodeGraphSystem/interfaces/portData";
|
|
2290
|
+
import { IEditablePropertyOption } from "babylonjs/Decorators/nodeDecorator";
|
|
2287
2291
|
export class GraphNode {
|
|
2288
2292
|
content: INodeData;
|
|
2289
2293
|
private _visual;
|
|
@@ -2361,7 +2365,7 @@ export class GraphNode {
|
|
|
2361
2365
|
private _onUp;
|
|
2362
2366
|
private _onMove;
|
|
2363
2367
|
renderProperties(): Nullable<JSX.Element>;
|
|
2364
|
-
|
|
2368
|
+
_forceRebuild(source: any, propertyName: string, notifiers?: IEditablePropertyOption["notifiers"]): void;
|
|
2365
2369
|
private _isCollapsed;
|
|
2366
2370
|
/**
|
|
2367
2371
|
* Collapse the node
|
|
@@ -2752,6 +2756,32 @@ export enum PortDataDirection {
|
|
|
2752
2756
|
/** Output */
|
|
2753
2757
|
Output = 1
|
|
2754
2758
|
}
|
|
2759
|
+
export enum PortDirectValueTypes {
|
|
2760
|
+
Float = 0,
|
|
2761
|
+
Int = 1
|
|
2762
|
+
}
|
|
2763
|
+
export interface IPortDirectValueDefinition {
|
|
2764
|
+
/**
|
|
2765
|
+
* Gets the source object
|
|
2766
|
+
*/
|
|
2767
|
+
source: any;
|
|
2768
|
+
/**
|
|
2769
|
+
* Gets the property name used to store the value
|
|
2770
|
+
*/
|
|
2771
|
+
propertyName: string;
|
|
2772
|
+
/**
|
|
2773
|
+
* Gets or sets the min value accepted for this point if nothing is connected
|
|
2774
|
+
*/
|
|
2775
|
+
valueMin: Nullable<any>;
|
|
2776
|
+
/**
|
|
2777
|
+
* Gets or sets the max value accepted for this point if nothing is connected
|
|
2778
|
+
*/
|
|
2779
|
+
valueMax: Nullable<any>;
|
|
2780
|
+
/**
|
|
2781
|
+
* Gets or sets the type of the value
|
|
2782
|
+
*/
|
|
2783
|
+
valueType: PortDirectValueTypes;
|
|
2784
|
+
}
|
|
2755
2785
|
export interface IPortData {
|
|
2756
2786
|
data: any;
|
|
2757
2787
|
name: string;
|
|
@@ -2765,6 +2795,7 @@ export interface IPortData {
|
|
|
2765
2795
|
needDualDirectionValidation: boolean;
|
|
2766
2796
|
hasEndpoints: boolean;
|
|
2767
2797
|
endpoints: Nullable<IPortData[]>;
|
|
2798
|
+
directValueDefinition?: IPortDirectValueDefinition;
|
|
2768
2799
|
updateDisplayName: (newName: string) => void;
|
|
2769
2800
|
canConnectTo: (port: IPortData) => boolean;
|
|
2770
2801
|
connectTo: (port: IPortData) => void;
|
|
@@ -6704,6 +6735,7 @@ declare module BABYLON {
|
|
|
6704
6735
|
declare module BABYLON.GuiEditor.SharedUIComponents {
|
|
6705
6736
|
export const IsFramePortData: (variableToCheck: any) => variableToCheck is BABYLON.GuiEditor.SharedUIComponents.FramePortData;
|
|
6706
6737
|
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;
|
|
6738
|
+
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;
|
|
6707
6739
|
|
|
6708
6740
|
|
|
6709
6741
|
|
|
@@ -6818,7 +6850,7 @@ declare module BABYLON {
|
|
|
6818
6850
|
}
|
|
6819
6851
|
declare module BABYLON.GuiEditor.SharedUIComponents {
|
|
6820
6852
|
export class NodePort {
|
|
6821
|
-
portData:
|
|
6853
|
+
portData: IPortData;
|
|
6822
6854
|
node: BABYLON.GuiEditor.SharedUIComponents.GraphNode;
|
|
6823
6855
|
protected _element: HTMLDivElement;
|
|
6824
6856
|
protected _portContainer: HTMLElement;
|
|
@@ -6829,6 +6861,7 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
|
|
|
6829
6861
|
protected _onCandidateLinkMovedObserver: Nullable<Observer<Nullable<Vector2>>>;
|
|
6830
6862
|
protected _onSelectionChangedObserver: Nullable<Observer<Nullable<BABYLON.GuiEditor.SharedUIComponents.ISelectionChangedOptions>>>;
|
|
6831
6863
|
protected _exposedOnFrame: boolean;
|
|
6864
|
+
protected _portUIcontainer?: HTMLDivElement;
|
|
6832
6865
|
delegatedPort: Nullable<BABYLON.GuiEditor.SharedUIComponents.FrameNodePort>;
|
|
6833
6866
|
get element(): HTMLDivElement;
|
|
6834
6867
|
get container(): HTMLElement;
|
|
@@ -6842,9 +6875,9 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
|
|
|
6842
6875
|
set exposedPortPosition(value: number);
|
|
6843
6876
|
private _isConnectedToNodeOutsideOfFrame;
|
|
6844
6877
|
refresh(): void;
|
|
6845
|
-
constructor(portContainer: HTMLElement, portData:
|
|
6878
|
+
constructor(portContainer: HTMLElement, portData: IPortData, node: BABYLON.GuiEditor.SharedUIComponents.GraphNode, stateManager: BABYLON.GuiEditor.SharedUIComponents.StateManager, portUIcontainer?: HTMLDivElement);
|
|
6846
6879
|
dispose(): void;
|
|
6847
|
-
static CreatePortElement(portData:
|
|
6880
|
+
static CreatePortElement(portData: IPortData, node: BABYLON.GuiEditor.SharedUIComponents.GraphNode, root: HTMLElement, displayManager: Nullable<BABYLON.GuiEditor.SharedUIComponents.IDisplayManager>, stateManager: BABYLON.GuiEditor.SharedUIComponents.StateManager): NodePort;
|
|
6848
6881
|
}
|
|
6849
6882
|
|
|
6850
6883
|
|
|
@@ -6866,6 +6899,7 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
|
|
|
6866
6899
|
private _onSelectionChangedObserver;
|
|
6867
6900
|
private _isVisible;
|
|
6868
6901
|
private _isTargetCandidate;
|
|
6902
|
+
private _gradient;
|
|
6869
6903
|
onDisposedObservable: Observable<NodeLink>;
|
|
6870
6904
|
get isTargetCandidate(): boolean;
|
|
6871
6905
|
set isTargetCandidate(value: boolean);
|
|
@@ -6982,7 +7016,7 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
|
|
|
6982
7016
|
private _onUp;
|
|
6983
7017
|
private _onMove;
|
|
6984
7018
|
renderProperties(): Nullable<JSX.Element>;
|
|
6985
|
-
|
|
7019
|
+
_forceRebuild(source: any, propertyName: string, notifiers?: IEditablePropertyOption["notifiers"]): void;
|
|
6986
7020
|
private _isCollapsed;
|
|
6987
7021
|
/**
|
|
6988
7022
|
* Collapse the node
|
|
@@ -7387,6 +7421,32 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
|
|
|
7387
7421
|
/** Output */
|
|
7388
7422
|
Output = 1
|
|
7389
7423
|
}
|
|
7424
|
+
export enum PortDirectValueTypes {
|
|
7425
|
+
Float = 0,
|
|
7426
|
+
Int = 1
|
|
7427
|
+
}
|
|
7428
|
+
export interface IPortDirectValueDefinition {
|
|
7429
|
+
/**
|
|
7430
|
+
* Gets the source object
|
|
7431
|
+
*/
|
|
7432
|
+
source: any;
|
|
7433
|
+
/**
|
|
7434
|
+
* Gets the property name used to store the value
|
|
7435
|
+
*/
|
|
7436
|
+
propertyName: string;
|
|
7437
|
+
/**
|
|
7438
|
+
* Gets or sets the min value accepted for this point if nothing is connected
|
|
7439
|
+
*/
|
|
7440
|
+
valueMin: Nullable<any>;
|
|
7441
|
+
/**
|
|
7442
|
+
* Gets or sets the max value accepted for this point if nothing is connected
|
|
7443
|
+
*/
|
|
7444
|
+
valueMax: Nullable<any>;
|
|
7445
|
+
/**
|
|
7446
|
+
* Gets or sets the type of the value
|
|
7447
|
+
*/
|
|
7448
|
+
valueType: PortDirectValueTypes;
|
|
7449
|
+
}
|
|
7390
7450
|
export interface IPortData {
|
|
7391
7451
|
data: any;
|
|
7392
7452
|
name: string;
|
|
@@ -7400,6 +7460,7 @@ declare module BABYLON.GuiEditor.SharedUIComponents {
|
|
|
7400
7460
|
needDualDirectionValidation: boolean;
|
|
7401
7461
|
hasEndpoints: boolean;
|
|
7402
7462
|
endpoints: Nullable<IPortData[]>;
|
|
7463
|
+
directValueDefinition?: IPortDirectValueDefinition;
|
|
7403
7464
|
updateDisplayName: (newName: string) => void;
|
|
7404
7465
|
canConnectTo: (port: IPortData) => boolean;
|
|
7405
7466
|
connectTo: (port: IPortData) => void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "babylonjs-gui-editor",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.36.0",
|
|
4
4
|
"main": "babylon.guiEditor.max.js",
|
|
5
5
|
"types": "babylon.guiEditor.module.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
"clean": "rimraf dist && rimraf babylon*.* -g"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"babylonjs": "^7.
|
|
18
|
-
"babylonjs-gui": "^7.
|
|
17
|
+
"babylonjs": "^7.36.0",
|
|
18
|
+
"babylonjs-gui": "^7.36.0"
|
|
19
19
|
},
|
|
20
20
|
"devDependencies": {
|
|
21
21
|
"@dev/build-tools": "1.0.0",
|