babylonjs-inspector 7.35.2 → 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.
@@ -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: INSPECTOR.SharedUIComponents.IPortData;
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: INSPECTOR.SharedUIComponents.IPortData, node: INSPECTOR.SharedUIComponents.GraphNode, stateManager: INSPECTOR.SharedUIComponents.StateManager);
4427
+ constructor(portContainer: HTMLElement, portData: IPortData, node: INSPECTOR.SharedUIComponents.GraphNode, stateManager: INSPECTOR.SharedUIComponents.StateManager, portUIcontainer?: HTMLDivElement);
4426
4428
  dispose(): void;
4427
- static CreatePortElement(portData: INSPECTOR.SharedUIComponents.IPortData, node: INSPECTOR.SharedUIComponents.GraphNode, root: HTMLElement, displayManager: BABYLON.Nullable<INSPECTOR.SharedUIComponents.IDisplayManager>, stateManager: INSPECTOR.SharedUIComponents.StateManager): NodePort;
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
 
@@ -4563,7 +4565,7 @@ declare module INSPECTOR.SharedUIComponents {
4563
4565
  private _onUp;
4564
4566
  private _onMove;
4565
4567
  renderProperties(): BABYLON.Nullable<JSX.Element>;
4566
- private _forceRebuild;
4568
+ _forceRebuild(source: any, propertyName: string, notifiers?: BABYLON.IEditablePropertyOption["notifiers"]): void;
4567
4569
  private _isCollapsed;
4568
4570
  /**
4569
4571
  * Collapse the node
@@ -4968,6 +4970,32 @@ declare module INSPECTOR.SharedUIComponents {
4968
4970
  /** Output */
4969
4971
  Output = 1
4970
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
+ }
4971
4999
  export interface IPortData {
4972
5000
  data: any;
4973
5001
  name: string;
@@ -4981,6 +5009,7 @@ declare module INSPECTOR.SharedUIComponents {
4981
5009
  needDualDirectionValidation: boolean;
4982
5010
  hasEndpoints: boolean;
4983
5011
  endpoints: BABYLON.Nullable<IPortData[]>;
5012
+ directValueDefinition?: IPortDirectValueDefinition;
4984
5013
  updateDisplayName: (newName: string) => void;
4985
5014
  canConnectTo: (port: IPortData) => boolean;
4986
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
  }
@@ -5469,6 +5471,7 @@ import { NodeLink } from "babylonjs-inspector/nodeGraphSystem/nodeLink";
5469
5471
  import { StateManager } from "babylonjs-inspector/nodeGraphSystem/stateManager";
5470
5472
  import { INodeData } from "babylonjs-inspector/nodeGraphSystem/interfaces/nodeData";
5471
5473
  import { IPortData } from "babylonjs-inspector/nodeGraphSystem/interfaces/portData";
5474
+ import { IEditablePropertyOption } from "babylonjs/Decorators/nodeDecorator";
5472
5475
  export class GraphNode {
5473
5476
  content: INodeData;
5474
5477
  private _visual;
@@ -5546,7 +5549,7 @@ export class GraphNode {
5546
5549
  private _onUp;
5547
5550
  private _onMove;
5548
5551
  renderProperties(): Nullable<JSX.Element>;
5549
- private _forceRebuild;
5552
+ _forceRebuild(source: any, propertyName: string, notifiers?: IEditablePropertyOption["notifiers"]): void;
5550
5553
  private _isCollapsed;
5551
5554
  /**
5552
5555
  * Collapse the node
@@ -5937,6 +5940,32 @@ export enum PortDataDirection {
5937
5940
  /** Output */
5938
5941
  Output = 1
5939
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
+ }
5940
5969
  export interface IPortData {
5941
5970
  data: any;
5942
5971
  name: string;
@@ -5950,6 +5979,7 @@ export interface IPortData {
5950
5979
  needDualDirectionValidation: boolean;
5951
5980
  hasEndpoints: boolean;
5952
5981
  endpoints: Nullable<IPortData[]>;
5982
+ directValueDefinition?: IPortDirectValueDefinition;
5953
5983
  updateDisplayName: (newName: string) => void;
5954
5984
  canConnectTo: (port: IPortData) => boolean;
5955
5985
  connectTo: (port: IPortData) => void;
@@ -12357,6 +12387,7 @@ declare module INSPECTOR {
12357
12387
  declare module INSPECTOR.SharedUIComponents {
12358
12388
  export const IsFramePortData: (variableToCheck: any) => variableToCheck is INSPECTOR.SharedUIComponents.FramePortData;
12359
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;
12360
12391
 
12361
12392
 
12362
12393
 
@@ -12471,7 +12502,7 @@ declare module INSPECTOR {
12471
12502
  }
12472
12503
  declare module INSPECTOR.SharedUIComponents {
12473
12504
  export class NodePort {
12474
- portData: INSPECTOR.SharedUIComponents.IPortData;
12505
+ portData: IPortData;
12475
12506
  node: INSPECTOR.SharedUIComponents.GraphNode;
12476
12507
  protected _element: HTMLDivElement;
12477
12508
  protected _portContainer: HTMLElement;
@@ -12482,6 +12513,7 @@ declare module INSPECTOR.SharedUIComponents {
12482
12513
  protected _onCandidateLinkMovedObserver: BABYLON.Nullable<BABYLON.Observer<BABYLON.Nullable<BABYLON.Vector2>>>;
12483
12514
  protected _onSelectionChangedObserver: BABYLON.Nullable<BABYLON.Observer<BABYLON.Nullable<INSPECTOR.SharedUIComponents.ISelectionChangedOptions>>>;
12484
12515
  protected _exposedOnFrame: boolean;
12516
+ protected _portUIcontainer?: HTMLDivElement;
12485
12517
  delegatedPort: BABYLON.Nullable<INSPECTOR.SharedUIComponents.FrameNodePort>;
12486
12518
  get element(): HTMLDivElement;
12487
12519
  get container(): HTMLElement;
@@ -12495,9 +12527,9 @@ declare module INSPECTOR.SharedUIComponents {
12495
12527
  set exposedPortPosition(value: number);
12496
12528
  private _isConnectedToNodeOutsideOfFrame;
12497
12529
  refresh(): void;
12498
- constructor(portContainer: HTMLElement, portData: INSPECTOR.SharedUIComponents.IPortData, node: INSPECTOR.SharedUIComponents.GraphNode, stateManager: INSPECTOR.SharedUIComponents.StateManager);
12530
+ constructor(portContainer: HTMLElement, portData: IPortData, node: INSPECTOR.SharedUIComponents.GraphNode, stateManager: INSPECTOR.SharedUIComponents.StateManager, portUIcontainer?: HTMLDivElement);
12499
12531
  dispose(): void;
12500
- static CreatePortElement(portData: INSPECTOR.SharedUIComponents.IPortData, node: INSPECTOR.SharedUIComponents.GraphNode, root: HTMLElement, displayManager: BABYLON.Nullable<INSPECTOR.SharedUIComponents.IDisplayManager>, stateManager: INSPECTOR.SharedUIComponents.StateManager): NodePort;
12532
+ static CreatePortElement(portData: IPortData, node: INSPECTOR.SharedUIComponents.GraphNode, root: HTMLElement, displayManager: BABYLON.Nullable<INSPECTOR.SharedUIComponents.IDisplayManager>, stateManager: INSPECTOR.SharedUIComponents.StateManager): NodePort;
12501
12533
  }
12502
12534
 
12503
12535
 
@@ -12636,7 +12668,7 @@ declare module INSPECTOR.SharedUIComponents {
12636
12668
  private _onUp;
12637
12669
  private _onMove;
12638
12670
  renderProperties(): BABYLON.Nullable<JSX.Element>;
12639
- private _forceRebuild;
12671
+ _forceRebuild(source: any, propertyName: string, notifiers?: BABYLON.IEditablePropertyOption["notifiers"]): void;
12640
12672
  private _isCollapsed;
12641
12673
  /**
12642
12674
  * Collapse the node
@@ -13041,6 +13073,32 @@ declare module INSPECTOR.SharedUIComponents {
13041
13073
  /** Output */
13042
13074
  Output = 1
13043
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
+ }
13044
13102
  export interface IPortData {
13045
13103
  data: any;
13046
13104
  name: string;
@@ -13054,6 +13112,7 @@ declare module INSPECTOR.SharedUIComponents {
13054
13112
  needDualDirectionValidation: boolean;
13055
13113
  hasEndpoints: boolean;
13056
13114
  endpoints: BABYLON.Nullable<IPortData[]>;
13115
+ directValueDefinition?: IPortDirectValueDefinition;
13057
13116
  updateDisplayName: (newName: string) => void;
13058
13117
  canConnectTo: (port: IPortData) => boolean;
13059
13118
  connectTo: (port: IPortData) => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "babylonjs-inspector",
3
- "version": "7.35.2",
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.35.2",
18
- "babylonjs-gui": "^7.35.2",
19
- "babylonjs-gui-editor": "^7.35.2",
20
- "babylonjs-loaders": "^7.35.2",
21
- "babylonjs-materials": "^7.35.2",
22
- "babylonjs-serializers": "^7.35.2"
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",