babylonjs-inspector 7.25.2 → 7.26.1

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.
@@ -3665,8 +3665,9 @@ declare module INSPECTOR.SharedUIComponents {
3665
3665
  * Class handling undo / redo operations
3666
3666
  */
3667
3667
  export class HistoryStack implements BABYLON.IDisposable {
3668
- private _history;
3668
+ private _historyStack;
3669
3669
  private _redoStack;
3670
+ private _activeData;
3670
3671
  private readonly _maxHistoryLength;
3671
3672
  private _locked;
3672
3673
  private _dataProvider;
@@ -3677,13 +3678,19 @@ declare module INSPECTOR.SharedUIComponents {
3677
3678
  * @param applyUpdate defines the code to execute when undo/redo operation is required
3678
3679
  */
3679
3680
  constructor(dataProvider: () => any, applyUpdate: (data: any) => void);
3681
+ /**
3682
+ * Process key event to handle undo / redo
3683
+ * @param evt defines the keyboard event to process
3684
+ * @returns true if the event was processed
3685
+ */
3686
+ processKeyEvent(evt: KeyboardEvent): boolean;
3680
3687
  /**
3681
3688
  * Resets the stack
3682
3689
  */
3683
3690
  reset(): void;
3684
3691
  private _generateJSONDiff;
3685
3692
  private _applyJSONDiff;
3686
- private _rebuildState;
3693
+ private _copy;
3687
3694
  /**
3688
3695
  * Stores the current state
3689
3696
  */
@@ -4218,6 +4225,8 @@ declare module INSPECTOR.SharedUIComponents {
4218
4225
  get nodeB(): INSPECTOR.SharedUIComponents.GraphNode | undefined;
4219
4226
  intersectsWith(rect: DOMRect): boolean;
4220
4227
  update(endX?: number, endY?: number, straight?: boolean): void;
4228
+ get path(): SVGPathElement;
4229
+ get selectionPath(): SVGPathElement;
4221
4230
  constructor(graphCanvas: INSPECTOR.SharedUIComponents.GraphCanvasComponent, portA: INSPECTOR.SharedUIComponents.NodePort, nodeA: INSPECTOR.SharedUIComponents.GraphNode, portB?: INSPECTOR.SharedUIComponents.NodePort, nodeB?: INSPECTOR.SharedUIComponents.GraphNode);
4222
4231
  onClick(evt: MouseEvent): void;
4223
4232
  dispose(notify?: boolean): void;
@@ -4302,6 +4311,7 @@ declare module INSPECTOR.SharedUIComponents {
4302
4311
  set enclosingFrameId(value: number);
4303
4312
  set isSelected(value: boolean);
4304
4313
  setIsSelected(value: boolean, marqueeSelection: boolean): void;
4314
+ get rootElement(): HTMLDivElement;
4305
4315
  constructor(content: INSPECTOR.SharedUIComponents.INodeData, stateManager: INSPECTOR.SharedUIComponents.StateManager);
4306
4316
  isOverlappingFrame(frame: INSPECTOR.SharedUIComponents.GraphFrame): boolean;
4307
4317
  getPortForPortData(portData: INSPECTOR.SharedUIComponents.IPortData): INSPECTOR.SharedUIComponents.NodePort | null;
@@ -4351,6 +4361,7 @@ declare module INSPECTOR.SharedUIComponents {
4351
4361
  private _headerTextElement;
4352
4362
  private _headerCollapseElement;
4353
4363
  private _headerCloseElement;
4364
+ private _headerFocusElement;
4354
4365
  private _commentsElement;
4355
4366
  private _portContainer;
4356
4367
  private _outputPortContainer;
@@ -4380,6 +4391,7 @@ declare module INSPECTOR.SharedUIComponents {
4380
4391
  private readonly _closeSVG;
4381
4392
  private readonly _expandSVG;
4382
4393
  private readonly _collapseSVG;
4394
+ private readonly _focusSVG;
4383
4395
  get id(): number;
4384
4396
  get isCollapsed(): boolean;
4385
4397
  private _createInputPort;
@@ -4408,6 +4420,11 @@ declare module INSPECTOR.SharedUIComponents {
4408
4420
  get comments(): string;
4409
4421
  set comments(comments: string);
4410
4422
  constructor(candidate: BABYLON.Nullable<HTMLDivElement>, canvas: INSPECTOR.SharedUIComponents.GraphCanvasComponent, doNotCaptureNodes?: boolean);
4423
+ private _isFocused;
4424
+ /**
4425
+ * Enter/leave focus mode
4426
+ */
4427
+ switchFocusMode(): void;
4411
4428
  refresh(): void;
4412
4429
  addNode(node: INSPECTOR.SharedUIComponents.GraphNode): void;
4413
4430
  removeNode(node: INSPECTOR.SharedUIComponents.GraphNode): void;
@@ -4686,8 +4686,9 @@ import { IDisposable } from "babylonjs/scene";
4686
4686
  * Class handling undo / redo operations
4687
4687
  */
4688
4688
  export class HistoryStack implements IDisposable {
4689
- private _history;
4689
+ private _historyStack;
4690
4690
  private _redoStack;
4691
+ private _activeData;
4691
4692
  private readonly _maxHistoryLength;
4692
4693
  private _locked;
4693
4694
  private _dataProvider;
@@ -4698,13 +4699,19 @@ export class HistoryStack implements IDisposable {
4698
4699
  * @param applyUpdate defines the code to execute when undo/redo operation is required
4699
4700
  */
4700
4701
  constructor(dataProvider: () => any, applyUpdate: (data: any) => void);
4702
+ /**
4703
+ * Process key event to handle undo / redo
4704
+ * @param evt defines the keyboard event to process
4705
+ * @returns true if the event was processed
4706
+ */
4707
+ processKeyEvent(evt: KeyboardEvent): boolean;
4701
4708
  /**
4702
4709
  * Resets the stack
4703
4710
  */
4704
4711
  reset(): void;
4705
4712
  private _generateJSONDiff;
4706
4713
  private _applyJSONDiff;
4707
- private _rebuildState;
4714
+ private _copy;
4708
4715
  /**
4709
4716
  * Stores the current state
4710
4717
  */
@@ -5223,6 +5230,8 @@ export class NodeLink {
5223
5230
  get nodeB(): GraphNode | undefined;
5224
5231
  intersectsWith(rect: DOMRect): boolean;
5225
5232
  update(endX?: number, endY?: number, straight?: boolean): void;
5233
+ get path(): SVGPathElement;
5234
+ get selectionPath(): SVGPathElement;
5226
5235
  constructor(graphCanvas: GraphCanvasComponent, portA: NodePort, nodeA: GraphNode, portB?: NodePort, nodeB?: GraphNode);
5227
5236
  onClick(evt: MouseEvent): void;
5228
5237
  dispose(notify?: boolean): void;
@@ -5303,6 +5312,7 @@ export class GraphNode {
5303
5312
  set enclosingFrameId(value: number);
5304
5313
  set isSelected(value: boolean);
5305
5314
  setIsSelected(value: boolean, marqueeSelection: boolean): void;
5315
+ get rootElement(): HTMLDivElement;
5306
5316
  constructor(content: INodeData, stateManager: StateManager);
5307
5317
  isOverlappingFrame(frame: GraphFrame): boolean;
5308
5318
  getPortForPortData(portData: IPortData): NodePort | null;
@@ -5353,6 +5363,7 @@ export class GraphFrame {
5353
5363
  private _headerTextElement;
5354
5364
  private _headerCollapseElement;
5355
5365
  private _headerCloseElement;
5366
+ private _headerFocusElement;
5356
5367
  private _commentsElement;
5357
5368
  private _portContainer;
5358
5369
  private _outputPortContainer;
@@ -5382,6 +5393,7 @@ export class GraphFrame {
5382
5393
  private readonly _closeSVG;
5383
5394
  private readonly _expandSVG;
5384
5395
  private readonly _collapseSVG;
5396
+ private readonly _focusSVG;
5385
5397
  get id(): number;
5386
5398
  get isCollapsed(): boolean;
5387
5399
  private _createInputPort;
@@ -5410,6 +5422,11 @@ export class GraphFrame {
5410
5422
  get comments(): string;
5411
5423
  set comments(comments: string);
5412
5424
  constructor(candidate: Nullable<HTMLDivElement>, canvas: GraphCanvasComponent, doNotCaptureNodes?: boolean);
5425
+ private _isFocused;
5426
+ /**
5427
+ * Enter/leave focus mode
5428
+ */
5429
+ switchFocusMode(): void;
5413
5430
  refresh(): void;
5414
5431
  addNode(node: GraphNode): void;
5415
5432
  removeNode(node: GraphNode): void;
@@ -11447,8 +11464,9 @@ declare module INSPECTOR.SharedUIComponents {
11447
11464
  * Class handling undo / redo operations
11448
11465
  */
11449
11466
  export class HistoryStack implements BABYLON.IDisposable {
11450
- private _history;
11467
+ private _historyStack;
11451
11468
  private _redoStack;
11469
+ private _activeData;
11452
11470
  private readonly _maxHistoryLength;
11453
11471
  private _locked;
11454
11472
  private _dataProvider;
@@ -11459,13 +11477,19 @@ declare module INSPECTOR.SharedUIComponents {
11459
11477
  * @param applyUpdate defines the code to execute when undo/redo operation is required
11460
11478
  */
11461
11479
  constructor(dataProvider: () => any, applyUpdate: (data: any) => void);
11480
+ /**
11481
+ * Process key event to handle undo / redo
11482
+ * @param evt defines the keyboard event to process
11483
+ * @returns true if the event was processed
11484
+ */
11485
+ processKeyEvent(evt: KeyboardEvent): boolean;
11462
11486
  /**
11463
11487
  * Resets the stack
11464
11488
  */
11465
11489
  reset(): void;
11466
11490
  private _generateJSONDiff;
11467
11491
  private _applyJSONDiff;
11468
- private _rebuildState;
11492
+ private _copy;
11469
11493
  /**
11470
11494
  * Stores the current state
11471
11495
  */
@@ -12000,6 +12024,8 @@ declare module INSPECTOR.SharedUIComponents {
12000
12024
  get nodeB(): INSPECTOR.SharedUIComponents.GraphNode | undefined;
12001
12025
  intersectsWith(rect: DOMRect): boolean;
12002
12026
  update(endX?: number, endY?: number, straight?: boolean): void;
12027
+ get path(): SVGPathElement;
12028
+ get selectionPath(): SVGPathElement;
12003
12029
  constructor(graphCanvas: INSPECTOR.SharedUIComponents.GraphCanvasComponent, portA: INSPECTOR.SharedUIComponents.NodePort, nodeA: INSPECTOR.SharedUIComponents.GraphNode, portB?: INSPECTOR.SharedUIComponents.NodePort, nodeB?: INSPECTOR.SharedUIComponents.GraphNode);
12004
12030
  onClick(evt: MouseEvent): void;
12005
12031
  dispose(notify?: boolean): void;
@@ -12084,6 +12110,7 @@ declare module INSPECTOR.SharedUIComponents {
12084
12110
  set enclosingFrameId(value: number);
12085
12111
  set isSelected(value: boolean);
12086
12112
  setIsSelected(value: boolean, marqueeSelection: boolean): void;
12113
+ get rootElement(): HTMLDivElement;
12087
12114
  constructor(content: INSPECTOR.SharedUIComponents.INodeData, stateManager: INSPECTOR.SharedUIComponents.StateManager);
12088
12115
  isOverlappingFrame(frame: INSPECTOR.SharedUIComponents.GraphFrame): boolean;
12089
12116
  getPortForPortData(portData: INSPECTOR.SharedUIComponents.IPortData): INSPECTOR.SharedUIComponents.NodePort | null;
@@ -12133,6 +12160,7 @@ declare module INSPECTOR.SharedUIComponents {
12133
12160
  private _headerTextElement;
12134
12161
  private _headerCollapseElement;
12135
12162
  private _headerCloseElement;
12163
+ private _headerFocusElement;
12136
12164
  private _commentsElement;
12137
12165
  private _portContainer;
12138
12166
  private _outputPortContainer;
@@ -12162,6 +12190,7 @@ declare module INSPECTOR.SharedUIComponents {
12162
12190
  private readonly _closeSVG;
12163
12191
  private readonly _expandSVG;
12164
12192
  private readonly _collapseSVG;
12193
+ private readonly _focusSVG;
12165
12194
  get id(): number;
12166
12195
  get isCollapsed(): boolean;
12167
12196
  private _createInputPort;
@@ -12190,6 +12219,11 @@ declare module INSPECTOR.SharedUIComponents {
12190
12219
  get comments(): string;
12191
12220
  set comments(comments: string);
12192
12221
  constructor(candidate: BABYLON.Nullable<HTMLDivElement>, canvas: INSPECTOR.SharedUIComponents.GraphCanvasComponent, doNotCaptureNodes?: boolean);
12222
+ private _isFocused;
12223
+ /**
12224
+ * Enter/leave focus mode
12225
+ */
12226
+ switchFocusMode(): void;
12193
12227
  refresh(): void;
12194
12228
  addNode(node: INSPECTOR.SharedUIComponents.GraphNode): void;
12195
12229
  removeNode(node: INSPECTOR.SharedUIComponents.GraphNode): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "babylonjs-inspector",
3
- "version": "7.25.2",
3
+ "version": "7.26.1",
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.25.2",
18
- "babylonjs-gui": "^7.25.2",
19
- "babylonjs-gui-editor": "^7.25.2",
20
- "babylonjs-loaders": "^7.25.2",
21
- "babylonjs-materials": "^7.25.2",
22
- "babylonjs-serializers": "^7.25.2"
17
+ "babylonjs": "^7.26.1",
18
+ "babylonjs-gui": "^7.26.1",
19
+ "babylonjs-gui-editor": "^7.26.1",
20
+ "babylonjs-loaders": "^7.26.1",
21
+ "babylonjs-materials": "^7.26.1",
22
+ "babylonjs-serializers": "^7.26.1"
23
23
  },
24
24
  "devDependencies": {
25
25
  "@dev/build-tools": "1.0.0",
@@ -31,7 +31,7 @@
31
31
  "react": "^17.0.2",
32
32
  "react-contextmenu": "RaananW/react-contextmenu",
33
33
  "react-dom": "^17.0.2",
34
- "sass-loader": "^13.0.0",
34
+ "sass-loader": "^16.0.0",
35
35
  "source-map-loader": "^4.0.0",
36
36
  "ts-loader": "^9.2.6",
37
37
  "webpack": "^5.73.0",