babylonjs-inspector 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.inspector.d.ts +34 -4
- package/babylon.inspector.module.d.ts +68 -7
- package/package.json +7 -7
package/babylon.inspector.d.ts
CHANGED
|
@@ -4284,6 +4284,7 @@ declare module INSPECTOR {
|
|
|
4284
4284
|
declare module INSPECTOR.SharedUIComponents {
|
|
4285
4285
|
export const IsFramePortData: (variableToCheck: any) => variableToCheck is INSPECTOR.SharedUIComponents.FramePortData;
|
|
4286
4286
|
export const RefreshNode: (node: INSPECTOR.SharedUIComponents.GraphNode, visitedNodes?: Set<INSPECTOR.SharedUIComponents.GraphNode>, visitedLinks?: Set<INSPECTOR.SharedUIComponents.NodeLink>, canvas?: INSPECTOR.SharedUIComponents.GraphCanvasComponent) => void;
|
|
4287
|
+
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;
|
|
4287
4288
|
|
|
4288
4289
|
|
|
4289
4290
|
|
|
@@ -4398,7 +4399,7 @@ declare module INSPECTOR {
|
|
|
4398
4399
|
}
|
|
4399
4400
|
declare module INSPECTOR.SharedUIComponents {
|
|
4400
4401
|
export class NodePort {
|
|
4401
|
-
portData:
|
|
4402
|
+
portData: IPortData;
|
|
4402
4403
|
node: INSPECTOR.SharedUIComponents.GraphNode;
|
|
4403
4404
|
protected _element: HTMLDivElement;
|
|
4404
4405
|
protected _portContainer: HTMLElement;
|
|
@@ -4409,6 +4410,7 @@ declare module INSPECTOR.SharedUIComponents {
|
|
|
4409
4410
|
protected _onCandidateLinkMovedObserver: BABYLON.Nullable<BABYLON.Observer<BABYLON.Nullable<BABYLON.Vector2>>>;
|
|
4410
4411
|
protected _onSelectionChangedObserver: BABYLON.Nullable<BABYLON.Observer<BABYLON.Nullable<INSPECTOR.SharedUIComponents.ISelectionChangedOptions>>>;
|
|
4411
4412
|
protected _exposedOnFrame: boolean;
|
|
4413
|
+
protected _portUIcontainer?: HTMLDivElement;
|
|
4412
4414
|
delegatedPort: BABYLON.Nullable<INSPECTOR.SharedUIComponents.FrameNodePort>;
|
|
4413
4415
|
get element(): HTMLDivElement;
|
|
4414
4416
|
get container(): HTMLElement;
|
|
@@ -4422,9 +4424,9 @@ declare module INSPECTOR.SharedUIComponents {
|
|
|
4422
4424
|
set exposedPortPosition(value: number);
|
|
4423
4425
|
private _isConnectedToNodeOutsideOfFrame;
|
|
4424
4426
|
refresh(): void;
|
|
4425
|
-
constructor(portContainer: HTMLElement, portData:
|
|
4427
|
+
constructor(portContainer: HTMLElement, portData: IPortData, node: INSPECTOR.SharedUIComponents.GraphNode, stateManager: INSPECTOR.SharedUIComponents.StateManager, portUIcontainer?: HTMLDivElement);
|
|
4426
4428
|
dispose(): void;
|
|
4427
|
-
static CreatePortElement(portData:
|
|
4429
|
+
static CreatePortElement(portData: IPortData, node: INSPECTOR.SharedUIComponents.GraphNode, root: HTMLElement, displayManager: BABYLON.Nullable<INSPECTOR.SharedUIComponents.IDisplayManager>, stateManager: INSPECTOR.SharedUIComponents.StateManager): NodePort;
|
|
4428
4430
|
}
|
|
4429
4431
|
|
|
4430
4432
|
|
|
@@ -4446,6 +4448,7 @@ declare module INSPECTOR.SharedUIComponents {
|
|
|
4446
4448
|
private _onSelectionChangedObserver;
|
|
4447
4449
|
private _isVisible;
|
|
4448
4450
|
private _isTargetCandidate;
|
|
4451
|
+
private _gradient;
|
|
4449
4452
|
onDisposedObservable: BABYLON.Observable<NodeLink>;
|
|
4450
4453
|
get isTargetCandidate(): boolean;
|
|
4451
4454
|
set isTargetCandidate(value: boolean);
|
|
@@ -4562,7 +4565,7 @@ declare module INSPECTOR.SharedUIComponents {
|
|
|
4562
4565
|
private _onUp;
|
|
4563
4566
|
private _onMove;
|
|
4564
4567
|
renderProperties(): BABYLON.Nullable<JSX.Element>;
|
|
4565
|
-
|
|
4568
|
+
_forceRebuild(source: any, propertyName: string, notifiers?: BABYLON.IEditablePropertyOption["notifiers"]): void;
|
|
4566
4569
|
private _isCollapsed;
|
|
4567
4570
|
/**
|
|
4568
4571
|
* Collapse the node
|
|
@@ -4967,6 +4970,32 @@ declare module INSPECTOR.SharedUIComponents {
|
|
|
4967
4970
|
/** Output */
|
|
4968
4971
|
Output = 1
|
|
4969
4972
|
}
|
|
4973
|
+
export enum PortDirectValueTypes {
|
|
4974
|
+
Float = 0,
|
|
4975
|
+
Int = 1
|
|
4976
|
+
}
|
|
4977
|
+
export interface IPortDirectValueDefinition {
|
|
4978
|
+
/**
|
|
4979
|
+
* Gets the source object
|
|
4980
|
+
*/
|
|
4981
|
+
source: any;
|
|
4982
|
+
/**
|
|
4983
|
+
* Gets the property name used to store the value
|
|
4984
|
+
*/
|
|
4985
|
+
propertyName: string;
|
|
4986
|
+
/**
|
|
4987
|
+
* Gets or sets the min value accepted for this point if nothing is connected
|
|
4988
|
+
*/
|
|
4989
|
+
valueMin: BABYLON.Nullable<any>;
|
|
4990
|
+
/**
|
|
4991
|
+
* Gets or sets the max value accepted for this point if nothing is connected
|
|
4992
|
+
*/
|
|
4993
|
+
valueMax: BABYLON.Nullable<any>;
|
|
4994
|
+
/**
|
|
4995
|
+
* Gets or sets the type of the value
|
|
4996
|
+
*/
|
|
4997
|
+
valueType: PortDirectValueTypes;
|
|
4998
|
+
}
|
|
4970
4999
|
export interface IPortData {
|
|
4971
5000
|
data: any;
|
|
4972
5001
|
name: string;
|
|
@@ -4980,6 +5009,7 @@ declare module INSPECTOR.SharedUIComponents {
|
|
|
4980
5009
|
needDualDirectionValidation: boolean;
|
|
4981
5010
|
hasEndpoints: boolean;
|
|
4982
5011
|
endpoints: BABYLON.Nullable<IPortData[]>;
|
|
5012
|
+
directValueDefinition?: IPortDirectValueDefinition;
|
|
4983
5013
|
updateDisplayName: (newName: string) => void;
|
|
4984
5014
|
canConnectTo: (port: IPortData) => boolean;
|
|
4985
5015
|
connectTo: (port: IPortData) => void;
|
|
@@ -5269,6 +5269,7 @@ import { NodeLink } from "babylonjs-inspector/nodeGraphSystem/nodeLink";
|
|
|
5269
5269
|
import { FramePortData } from "babylonjs-inspector/nodeGraphSystem/types/framePortData";
|
|
5270
5270
|
export const IsFramePortData: (variableToCheck: any) => variableToCheck is FramePortData;
|
|
5271
5271
|
export const RefreshNode: (node: GraphNode, visitedNodes?: Set<GraphNode>, visitedLinks?: Set<NodeLink>, canvas?: GraphCanvasComponent) => void;
|
|
5272
|
+
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;
|
|
5272
5273
|
|
|
5273
5274
|
}
|
|
5274
5275
|
declare module "babylonjs-inspector/nodeGraphSystem/stateManager" {
|
|
@@ -5384,7 +5385,7 @@ import { StateManager } from "babylonjs-inspector/nodeGraphSystem/stateManager";
|
|
|
5384
5385
|
import { ISelectionChangedOptions } from "babylonjs-inspector/nodeGraphSystem/interfaces/selectionChangedOptions";
|
|
5385
5386
|
import { FrameNodePort } from "babylonjs-inspector/nodeGraphSystem/frameNodePort";
|
|
5386
5387
|
import { IDisplayManager } from "babylonjs-inspector/nodeGraphSystem/interfaces/displayManager";
|
|
5387
|
-
import { IPortData } from "babylonjs-inspector/nodeGraphSystem/interfaces/portData";
|
|
5388
|
+
import { type IPortData } from "babylonjs-inspector/nodeGraphSystem/interfaces/portData";
|
|
5388
5389
|
export class NodePort {
|
|
5389
5390
|
portData: IPortData;
|
|
5390
5391
|
node: GraphNode;
|
|
@@ -5397,6 +5398,7 @@ export class NodePort {
|
|
|
5397
5398
|
protected _onCandidateLinkMovedObserver: Nullable<Observer<Nullable<Vector2>>>;
|
|
5398
5399
|
protected _onSelectionChangedObserver: Nullable<Observer<Nullable<ISelectionChangedOptions>>>;
|
|
5399
5400
|
protected _exposedOnFrame: boolean;
|
|
5401
|
+
protected _portUIcontainer?: HTMLDivElement;
|
|
5400
5402
|
delegatedPort: Nullable<FrameNodePort>;
|
|
5401
5403
|
get element(): HTMLDivElement;
|
|
5402
5404
|
get container(): HTMLElement;
|
|
@@ -5410,7 +5412,7 @@ export class NodePort {
|
|
|
5410
5412
|
set exposedPortPosition(value: number);
|
|
5411
5413
|
private _isConnectedToNodeOutsideOfFrame;
|
|
5412
5414
|
refresh(): void;
|
|
5413
|
-
constructor(portContainer: HTMLElement, portData: IPortData, node: GraphNode, stateManager: StateManager);
|
|
5415
|
+
constructor(portContainer: HTMLElement, portData: IPortData, node: GraphNode, stateManager: StateManager, portUIcontainer?: HTMLDivElement);
|
|
5414
5416
|
dispose(): void;
|
|
5415
5417
|
static CreatePortElement(portData: IPortData, node: GraphNode, root: HTMLElement, displayManager: Nullable<IDisplayManager>, stateManager: StateManager): NodePort;
|
|
5416
5418
|
}
|
|
@@ -5433,6 +5435,7 @@ export class NodeLink {
|
|
|
5433
5435
|
private _onSelectionChangedObserver;
|
|
5434
5436
|
private _isVisible;
|
|
5435
5437
|
private _isTargetCandidate;
|
|
5438
|
+
private _gradient;
|
|
5436
5439
|
onDisposedObservable: Observable<NodeLink>;
|
|
5437
5440
|
get isTargetCandidate(): boolean;
|
|
5438
5441
|
set isTargetCandidate(value: boolean);
|
|
@@ -5468,6 +5471,7 @@ import { NodeLink } from "babylonjs-inspector/nodeGraphSystem/nodeLink";
|
|
|
5468
5471
|
import { StateManager } from "babylonjs-inspector/nodeGraphSystem/stateManager";
|
|
5469
5472
|
import { INodeData } from "babylonjs-inspector/nodeGraphSystem/interfaces/nodeData";
|
|
5470
5473
|
import { IPortData } from "babylonjs-inspector/nodeGraphSystem/interfaces/portData";
|
|
5474
|
+
import { IEditablePropertyOption } from "babylonjs/Decorators/nodeDecorator";
|
|
5471
5475
|
export class GraphNode {
|
|
5472
5476
|
content: INodeData;
|
|
5473
5477
|
private _visual;
|
|
@@ -5545,7 +5549,7 @@ export class GraphNode {
|
|
|
5545
5549
|
private _onUp;
|
|
5546
5550
|
private _onMove;
|
|
5547
5551
|
renderProperties(): Nullable<JSX.Element>;
|
|
5548
|
-
|
|
5552
|
+
_forceRebuild(source: any, propertyName: string, notifiers?: IEditablePropertyOption["notifiers"]): void;
|
|
5549
5553
|
private _isCollapsed;
|
|
5550
5554
|
/**
|
|
5551
5555
|
* Collapse the node
|
|
@@ -5936,6 +5940,32 @@ export enum PortDataDirection {
|
|
|
5936
5940
|
/** Output */
|
|
5937
5941
|
Output = 1
|
|
5938
5942
|
}
|
|
5943
|
+
export enum PortDirectValueTypes {
|
|
5944
|
+
Float = 0,
|
|
5945
|
+
Int = 1
|
|
5946
|
+
}
|
|
5947
|
+
export interface IPortDirectValueDefinition {
|
|
5948
|
+
/**
|
|
5949
|
+
* Gets the source object
|
|
5950
|
+
*/
|
|
5951
|
+
source: any;
|
|
5952
|
+
/**
|
|
5953
|
+
* Gets the property name used to store the value
|
|
5954
|
+
*/
|
|
5955
|
+
propertyName: string;
|
|
5956
|
+
/**
|
|
5957
|
+
* Gets or sets the min value accepted for this point if nothing is connected
|
|
5958
|
+
*/
|
|
5959
|
+
valueMin: Nullable<any>;
|
|
5960
|
+
/**
|
|
5961
|
+
* Gets or sets the max value accepted for this point if nothing is connected
|
|
5962
|
+
*/
|
|
5963
|
+
valueMax: Nullable<any>;
|
|
5964
|
+
/**
|
|
5965
|
+
* Gets or sets the type of the value
|
|
5966
|
+
*/
|
|
5967
|
+
valueType: PortDirectValueTypes;
|
|
5968
|
+
}
|
|
5939
5969
|
export interface IPortData {
|
|
5940
5970
|
data: any;
|
|
5941
5971
|
name: string;
|
|
@@ -5949,6 +5979,7 @@ export interface IPortData {
|
|
|
5949
5979
|
needDualDirectionValidation: boolean;
|
|
5950
5980
|
hasEndpoints: boolean;
|
|
5951
5981
|
endpoints: Nullable<IPortData[]>;
|
|
5982
|
+
directValueDefinition?: IPortDirectValueDefinition;
|
|
5952
5983
|
updateDisplayName: (newName: string) => void;
|
|
5953
5984
|
canConnectTo: (port: IPortData) => boolean;
|
|
5954
5985
|
connectTo: (port: IPortData) => void;
|
|
@@ -12356,6 +12387,7 @@ declare module INSPECTOR {
|
|
|
12356
12387
|
declare module INSPECTOR.SharedUIComponents {
|
|
12357
12388
|
export const IsFramePortData: (variableToCheck: any) => variableToCheck is INSPECTOR.SharedUIComponents.FramePortData;
|
|
12358
12389
|
export const RefreshNode: (node: INSPECTOR.SharedUIComponents.GraphNode, visitedNodes?: Set<INSPECTOR.SharedUIComponents.GraphNode>, visitedLinks?: Set<INSPECTOR.SharedUIComponents.NodeLink>, canvas?: INSPECTOR.SharedUIComponents.GraphCanvasComponent) => void;
|
|
12390
|
+
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;
|
|
12359
12391
|
|
|
12360
12392
|
|
|
12361
12393
|
|
|
@@ -12470,7 +12502,7 @@ declare module INSPECTOR {
|
|
|
12470
12502
|
}
|
|
12471
12503
|
declare module INSPECTOR.SharedUIComponents {
|
|
12472
12504
|
export class NodePort {
|
|
12473
|
-
portData:
|
|
12505
|
+
portData: IPortData;
|
|
12474
12506
|
node: INSPECTOR.SharedUIComponents.GraphNode;
|
|
12475
12507
|
protected _element: HTMLDivElement;
|
|
12476
12508
|
protected _portContainer: HTMLElement;
|
|
@@ -12481,6 +12513,7 @@ declare module INSPECTOR.SharedUIComponents {
|
|
|
12481
12513
|
protected _onCandidateLinkMovedObserver: BABYLON.Nullable<BABYLON.Observer<BABYLON.Nullable<BABYLON.Vector2>>>;
|
|
12482
12514
|
protected _onSelectionChangedObserver: BABYLON.Nullable<BABYLON.Observer<BABYLON.Nullable<INSPECTOR.SharedUIComponents.ISelectionChangedOptions>>>;
|
|
12483
12515
|
protected _exposedOnFrame: boolean;
|
|
12516
|
+
protected _portUIcontainer?: HTMLDivElement;
|
|
12484
12517
|
delegatedPort: BABYLON.Nullable<INSPECTOR.SharedUIComponents.FrameNodePort>;
|
|
12485
12518
|
get element(): HTMLDivElement;
|
|
12486
12519
|
get container(): HTMLElement;
|
|
@@ -12494,9 +12527,9 @@ declare module INSPECTOR.SharedUIComponents {
|
|
|
12494
12527
|
set exposedPortPosition(value: number);
|
|
12495
12528
|
private _isConnectedToNodeOutsideOfFrame;
|
|
12496
12529
|
refresh(): void;
|
|
12497
|
-
constructor(portContainer: HTMLElement, portData:
|
|
12530
|
+
constructor(portContainer: HTMLElement, portData: IPortData, node: INSPECTOR.SharedUIComponents.GraphNode, stateManager: INSPECTOR.SharedUIComponents.StateManager, portUIcontainer?: HTMLDivElement);
|
|
12498
12531
|
dispose(): void;
|
|
12499
|
-
static CreatePortElement(portData:
|
|
12532
|
+
static CreatePortElement(portData: IPortData, node: INSPECTOR.SharedUIComponents.GraphNode, root: HTMLElement, displayManager: BABYLON.Nullable<INSPECTOR.SharedUIComponents.IDisplayManager>, stateManager: INSPECTOR.SharedUIComponents.StateManager): NodePort;
|
|
12500
12533
|
}
|
|
12501
12534
|
|
|
12502
12535
|
|
|
@@ -12518,6 +12551,7 @@ declare module INSPECTOR.SharedUIComponents {
|
|
|
12518
12551
|
private _onSelectionChangedObserver;
|
|
12519
12552
|
private _isVisible;
|
|
12520
12553
|
private _isTargetCandidate;
|
|
12554
|
+
private _gradient;
|
|
12521
12555
|
onDisposedObservable: BABYLON.Observable<NodeLink>;
|
|
12522
12556
|
get isTargetCandidate(): boolean;
|
|
12523
12557
|
set isTargetCandidate(value: boolean);
|
|
@@ -12634,7 +12668,7 @@ declare module INSPECTOR.SharedUIComponents {
|
|
|
12634
12668
|
private _onUp;
|
|
12635
12669
|
private _onMove;
|
|
12636
12670
|
renderProperties(): BABYLON.Nullable<JSX.Element>;
|
|
12637
|
-
|
|
12671
|
+
_forceRebuild(source: any, propertyName: string, notifiers?: BABYLON.IEditablePropertyOption["notifiers"]): void;
|
|
12638
12672
|
private _isCollapsed;
|
|
12639
12673
|
/**
|
|
12640
12674
|
* Collapse the node
|
|
@@ -13039,6 +13073,32 @@ declare module INSPECTOR.SharedUIComponents {
|
|
|
13039
13073
|
/** Output */
|
|
13040
13074
|
Output = 1
|
|
13041
13075
|
}
|
|
13076
|
+
export enum PortDirectValueTypes {
|
|
13077
|
+
Float = 0,
|
|
13078
|
+
Int = 1
|
|
13079
|
+
}
|
|
13080
|
+
export interface IPortDirectValueDefinition {
|
|
13081
|
+
/**
|
|
13082
|
+
* Gets the source object
|
|
13083
|
+
*/
|
|
13084
|
+
source: any;
|
|
13085
|
+
/**
|
|
13086
|
+
* Gets the property name used to store the value
|
|
13087
|
+
*/
|
|
13088
|
+
propertyName: string;
|
|
13089
|
+
/**
|
|
13090
|
+
* Gets or sets the min value accepted for this point if nothing is connected
|
|
13091
|
+
*/
|
|
13092
|
+
valueMin: BABYLON.Nullable<any>;
|
|
13093
|
+
/**
|
|
13094
|
+
* Gets or sets the max value accepted for this point if nothing is connected
|
|
13095
|
+
*/
|
|
13096
|
+
valueMax: BABYLON.Nullable<any>;
|
|
13097
|
+
/**
|
|
13098
|
+
* Gets or sets the type of the value
|
|
13099
|
+
*/
|
|
13100
|
+
valueType: PortDirectValueTypes;
|
|
13101
|
+
}
|
|
13042
13102
|
export interface IPortData {
|
|
13043
13103
|
data: any;
|
|
13044
13104
|
name: string;
|
|
@@ -13052,6 +13112,7 @@ declare module INSPECTOR.SharedUIComponents {
|
|
|
13052
13112
|
needDualDirectionValidation: boolean;
|
|
13053
13113
|
hasEndpoints: boolean;
|
|
13054
13114
|
endpoints: BABYLON.Nullable<IPortData[]>;
|
|
13115
|
+
directValueDefinition?: IPortDirectValueDefinition;
|
|
13055
13116
|
updateDisplayName: (newName: string) => void;
|
|
13056
13117
|
canConnectTo: (port: IPortData) => boolean;
|
|
13057
13118
|
connectTo: (port: IPortData) => void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "babylonjs-inspector",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.36.0",
|
|
4
4
|
"main": "babylon.inspector.bundle.max.js",
|
|
5
5
|
"types": "babylon.inspector.module.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -14,12 +14,12 @@
|
|
|
14
14
|
"clean": "rimraf dist && rimraf babylon*.* -g"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"babylonjs": "^7.
|
|
18
|
-
"babylonjs-gui": "^7.
|
|
19
|
-
"babylonjs-gui-editor": "^7.
|
|
20
|
-
"babylonjs-loaders": "^7.
|
|
21
|
-
"babylonjs-materials": "^7.
|
|
22
|
-
"babylonjs-serializers": "^7.
|
|
17
|
+
"babylonjs": "^7.36.0",
|
|
18
|
+
"babylonjs-gui": "^7.36.0",
|
|
19
|
+
"babylonjs-gui-editor": "^7.36.0",
|
|
20
|
+
"babylonjs-loaders": "^7.36.0",
|
|
21
|
+
"babylonjs-materials": "^7.36.0",
|
|
22
|
+
"babylonjs-serializers": "^7.36.0"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
25
|
"@dev/build-tools": "1.0.0",
|