@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.
|
@@ -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/core/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;
|
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
|
"module": "dist/babylon.inspector.bundle.max.js",
|
|
5
5
|
"main": "dist/babylon.inspector.bundle.max.js",
|
|
6
6
|
"typings": "dist/babylon.inspector.module.d.ts",
|
|
@@ -32,12 +32,12 @@
|
|
|
32
32
|
"@types/react-dom": ">=16.0.9"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
|
-
"@babylonjs/core": "^7.
|
|
36
|
-
"@babylonjs/gui": "^7.
|
|
37
|
-
"@babylonjs/gui-editor": "^7.
|
|
38
|
-
"@babylonjs/loaders": "^7.
|
|
39
|
-
"@babylonjs/materials": "^7.
|
|
40
|
-
"@babylonjs/serializers": "^7.
|
|
35
|
+
"@babylonjs/core": "^7.36.0",
|
|
36
|
+
"@babylonjs/gui": "^7.36.0",
|
|
37
|
+
"@babylonjs/gui-editor": "^7.36.0",
|
|
38
|
+
"@babylonjs/loaders": "^7.36.0",
|
|
39
|
+
"@babylonjs/materials": "^7.36.0",
|
|
40
|
+
"@babylonjs/serializers": "^7.36.0",
|
|
41
41
|
"@lts/gui": "1.0.0",
|
|
42
42
|
"react": "^17.0.2",
|
|
43
43
|
"react-dom": "^17.0.2"
|