@babylonjs/inspector 7.25.2 → 7.26.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -4686,8 +4686,9 @@ import { IDisposable } from "@babylonjs/core/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;
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
  "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.25.2",
36
- "@babylonjs/gui": "^7.25.2",
37
- "@babylonjs/gui-editor": "^7.25.2",
38
- "@babylonjs/loaders": "^7.25.2",
39
- "@babylonjs/materials": "^7.25.2",
40
- "@babylonjs/serializers": "^7.25.2",
35
+ "@babylonjs/core": "^7.26.1",
36
+ "@babylonjs/gui": "^7.26.1",
37
+ "@babylonjs/gui-editor": "^7.26.1",
38
+ "@babylonjs/loaders": "^7.26.1",
39
+ "@babylonjs/materials": "^7.26.1",
40
+ "@babylonjs/serializers": "^7.26.1",
41
41
  "@lts/gui": "1.0.0",
42
42
  "react": "^17.0.2",
43
43
  "react-dom": "^17.0.2"