babylonjs-inspector 7.34.2 → 7.34.4

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.
@@ -84,7 +84,6 @@ export class Inspector {
84
84
  private static _GlobalState;
85
85
  static MarkLineContainerTitleForHighlighting(title: string): void;
86
86
  static MarkMultipleLineContainerTitlesForHighlighting(titles: string[]): void;
87
- private static _CopyStyles;
88
87
  private static _SceneExplorerOptions;
89
88
  private static _InspectorOptions;
90
89
  private static _EmbedOptions;
@@ -94,7 +93,6 @@ export class Inspector {
94
93
  private static _CreateSceneExplorer;
95
94
  private static _CreateActionTabs;
96
95
  private static _CreateEmbedHost;
97
- static _CreatePopup(title: string, windowVariableName: string, width?: number, height?: number, lateBinding?: boolean): HTMLDivElement | null;
98
96
  static get IsVisible(): boolean;
99
97
  static EarlyAttachToLoader(): void;
100
98
  static Show(scene: Scene, userOptions: Partial<IInspectorOptions>): void;
@@ -1417,6 +1415,7 @@ export class PropertyGridTabComponent extends PaneComponent {
1417
1415
  componentWillUnmount(): void;
1418
1416
 
1419
1417
 
1418
+
1420
1419
  }
1421
1420
 
1422
1421
  }
@@ -1691,7 +1690,6 @@ export class CommonPropertyGridComponent extends React.Component<ICommonProperty
1691
1690
  constructor(props: ICommonPropertyGridComponentProps);
1692
1691
 
1693
1692
 
1694
-
1695
1693
  }
1696
1694
  export {};
1697
1695
 
@@ -4684,6 +4682,15 @@ export class MeshPickerComponent extends React.Component<IMeshPickerComponentPro
4684
4682
  }
4685
4683
  export {};
4686
4684
 
4685
+ }
4686
+ declare module "babylonjs-inspector/styleHelper" {
4687
+ /**
4688
+ * Copy all styles from a document to another document or shadow root
4689
+ * @param source document to copy styles from
4690
+ * @param target document or shadow root to copy styles to
4691
+ */
4692
+ export function CopyStyles(source: Document, target: Document): void;
4693
+
4687
4694
  }
4688
4695
  declare module "babylonjs-inspector/stringTools" {
4689
4696
  export class StringTools {
@@ -4708,6 +4715,21 @@ export class PropertyChangedEvent {
4708
4715
  allowNullValue?: boolean;
4709
4716
  }
4710
4717
 
4718
+ }
4719
+ declare module "babylonjs-inspector/popupHelper" {
4720
+ /**
4721
+ * Create a popup window
4722
+ * @param title default title for the popup
4723
+ * @param options options for the popup
4724
+ * @returns the parent control of the popup
4725
+ */
4726
+ export function CreatePopup(title: string, options: Partial<{
4727
+ onParentControlCreateCallback?: (parentControl: HTMLDivElement) => void;
4728
+ onWindowCreateCallback?: (newWindow: Window) => void;
4729
+ width?: number;
4730
+ height?: number;
4731
+ }>): HTMLDivElement | null;
4732
+
4711
4733
  }
4712
4734
  declare module "babylonjs-inspector/historyStack" {
4713
4735
  import { IDisposable } from "babylonjs/scene";
@@ -5080,6 +5102,157 @@ export class CheckboxPropertyGridComponent extends React.Component<ICheckboxProp
5080
5102
  }
5081
5103
  export {};
5082
5104
 
5105
+ }
5106
+ declare module "babylonjs-inspector/split/splitter" {
5107
+ /// <reference types="react" />
5108
+ import { ControlledSize } from "babylonjs-inspector/split/splitContext";
5109
+ /**
5110
+ * Splitter component properties
5111
+ */
5112
+ export interface ISplitterProps {
5113
+ /**
5114
+ * Unique identifier
5115
+ */
5116
+ id?: string;
5117
+ /**
5118
+ * Splitter size
5119
+ */
5120
+ size: number;
5121
+ /**
5122
+ * Minimum size for the controlled element
5123
+ */
5124
+ minSize?: number;
5125
+ /**
5126
+ * Maximum size for the controlled element
5127
+ */
5128
+ maxSize?: number;
5129
+ /**
5130
+ * Initial size for the controlled element
5131
+ */
5132
+ initialSize?: number;
5133
+ /**
5134
+ * Defines the controlled side
5135
+ */
5136
+ controlledSide: ControlledSize;
5137
+ /**
5138
+ * refObject to the splitter element
5139
+ */
5140
+ refObject?: React.RefObject<HTMLDivElement>;
5141
+ }
5142
+ /**
5143
+ * Creates a splitter component
5144
+ * @param props defines the splitter properties
5145
+ * @returns the splitter component
5146
+ */
5147
+ export const Splitter: React.FC<ISplitterProps>;
5148
+
5149
+ }
5150
+ declare module "babylonjs-inspector/split/splitContext" {
5151
+ /// <reference types="react" />
5152
+ export enum ControlledSize {
5153
+ First = 0,
5154
+ Second = 1
5155
+ }
5156
+ export enum SplitDirection {
5157
+ Horizontal = 0,
5158
+ Vertical = 1
5159
+ }
5160
+ /**
5161
+ * Context used to share data with splitters
5162
+ */
5163
+ export interface ISplitContext {
5164
+ /**
5165
+ * Split direction
5166
+ */
5167
+ direction: SplitDirection;
5168
+ /**
5169
+ * Function called by splitters to update the offset
5170
+ * @param offset new offet
5171
+ * @param source source element
5172
+ * @param controlledSide defined controlled element
5173
+ */
5174
+ drag: (offset: number, source: HTMLElement, controlledSide: ControlledSize) => void;
5175
+ /**
5176
+ * Function called by splitters to begin dragging
5177
+ */
5178
+ beginDrag: () => void;
5179
+ /**
5180
+ * Function called by splitters to end dragging
5181
+ */
5182
+ endDrag: () => void;
5183
+ /**
5184
+ * Sync sizes for the elements
5185
+ * @param source source element
5186
+ * @param controlledSide defined controlled element
5187
+ * @param size size of the controlled element
5188
+ * @param minSize minimum size for the controlled element
5189
+ * @param maxSize maximum size for the controlled element
5190
+ */
5191
+ sync: (source: HTMLElement, controlledSide: ControlledSize, size?: number, minSize?: number, maxSize?: number) => void;
5192
+ }
5193
+ export const SplitContext: import("react").Context<ISplitContext>;
5194
+
5195
+ }
5196
+ declare module "babylonjs-inspector/split/splitContainer" {
5197
+ /// <reference types="react" />
5198
+ import { SplitDirection } from "babylonjs-inspector/split/splitContext";
5199
+ /**
5200
+ * Split container properties
5201
+ */
5202
+ export interface ISplitContainerProps {
5203
+ /**
5204
+ * Unique identifier
5205
+ */
5206
+ id?: string;
5207
+ /**
5208
+ * Split direction
5209
+ */
5210
+ direction: SplitDirection;
5211
+ /**
5212
+ * Minimum size for the floating elements
5213
+ */
5214
+ floatingMinSize?: number;
5215
+ /**
5216
+ * RefObject to the root div element
5217
+ */
5218
+ containerRef?: React.RefObject<HTMLDivElement>;
5219
+ /**
5220
+ * Optional class name
5221
+ */
5222
+ className?: string;
5223
+ /**
5224
+ * Pointer down
5225
+ * @param event pointer events
5226
+ */
5227
+ onPointerDown?: (event: React.PointerEvent) => void;
5228
+ /**
5229
+ * Pointer move
5230
+ * @param event pointer events
5231
+ */
5232
+ onPointerMove?: (event: React.PointerEvent) => void;
5233
+ /**
5234
+ * Pointer up
5235
+ * @param event pointer events
5236
+ */
5237
+ onPointerUp?: (event: React.PointerEvent) => void;
5238
+ /**
5239
+ * Drop
5240
+ * @param event drag events
5241
+ */
5242
+ onDrop?: (event: React.DragEvent<HTMLDivElement>) => void;
5243
+ /**
5244
+ * Drag over
5245
+ * @param event drag events
5246
+ */
5247
+ onDragOver?: (event: React.DragEvent<HTMLDivElement>) => void;
5248
+ }
5249
+ /**
5250
+ * Creates a split container component
5251
+ * @param props defines the split container properties
5252
+ * @returns the split container component
5253
+ */
5254
+ export const SplitContainer: React.FC<ISplitContainerProps>;
5255
+
5083
5256
  }
5084
5257
  declare module "babylonjs-inspector/nodeGraphSystem/typeLedger" {
5085
5258
  import { INodeContainer } from "babylonjs-inspector/nodeGraphSystem/interfaces/nodeContainer";
@@ -6183,13 +6356,6 @@ export class RadioButtonLineComponent extends React.Component<IRadioButtonLineCo
6183
6356
  }
6184
6357
  export {};
6185
6358
 
6186
- }
6187
- declare module "babylonjs-inspector/lines/popup" {
6188
- export class Popup {
6189
- static CreatePopup(title: string, windowVariableName: string, width?: number, height?: number): HTMLDivElement | null;
6190
- private static _CopyStyles;
6191
- }
6192
-
6193
6359
  }
6194
6360
  declare module "babylonjs-inspector/lines/optionsLineComponent" {
6195
6361
  import * as React from "react";
@@ -7989,7 +8155,6 @@ declare module INSPECTOR {
7989
8155
  private static _GlobalState;
7990
8156
  static MarkLineContainerTitleForHighlighting(title: string): void;
7991
8157
  static MarkMultipleLineContainerTitlesForHighlighting(titles: string[]): void;
7992
- private static _CopyStyles;
7993
8158
  private static _SceneExplorerOptions;
7994
8159
  private static _InspectorOptions;
7995
8160
  private static _EmbedOptions;
@@ -7999,7 +8164,6 @@ declare module INSPECTOR {
7999
8164
  private static _CreateSceneExplorer;
8000
8165
  private static _CreateActionTabs;
8001
8166
  private static _CreateEmbedHost;
8002
- static _CreatePopup(title: string, windowVariableName: string, width?: number, height?: number, lateBinding?: boolean): HTMLDivElement | null;
8003
8167
  static get IsVisible(): boolean;
8004
8168
  static EarlyAttachToLoader(): void;
8005
8169
  static Show(scene: BABYLON.Scene, userOptions: Partial<BABYLON.IInspectorOptions>): void;
@@ -9091,6 +9255,7 @@ declare module INSPECTOR {
9091
9255
  componentDidMount(): void;
9092
9256
  componentWillUnmount(): void;
9093
9257
  renderContent(): import("react/jsx-runtime").JSX.Element | null;
9258
+ renderTags(): import("react/jsx-runtime").JSX.Element[];
9094
9259
  render(): import("react/jsx-runtime").JSX.Element;
9095
9260
  }
9096
9261
 
@@ -9279,7 +9444,6 @@ declare module INSPECTOR {
9279
9444
  export class CommonPropertyGridComponent extends React.Component<ICommonPropertyGridComponentProps> {
9280
9445
  constructor(props: ICommonPropertyGridComponentProps);
9281
9446
  renderLevel(jsonObject: any): import("react/jsx-runtime").JSX.Element[];
9282
- renderTags(): import("react/jsx-runtime").JSX.Element[];
9283
9447
  render(): import("react/jsx-runtime").JSX.Element;
9284
9448
  }
9285
9449
 
@@ -11559,6 +11723,21 @@ declare module INSPECTOR {
11559
11723
 
11560
11724
 
11561
11725
 
11726
+ }
11727
+ declare module INSPECTOR.SharedUIComponents {
11728
+ /**
11729
+ * Copy all styles from a document to another document or shadow root
11730
+ * @param source document to copy styles from
11731
+ * @param target document or shadow root to copy styles to
11732
+ */
11733
+ export function CopyStyles(source: Document, target: Document): void;
11734
+
11735
+
11736
+
11737
+ }
11738
+ declare module INSPECTOR {
11739
+
11740
+
11562
11741
  }
11563
11742
  declare module INSPECTOR.SharedUIComponents {
11564
11743
  export class StringTools {
@@ -11591,6 +11770,27 @@ declare module INSPECTOR.SharedUIComponents {
11591
11770
 
11592
11771
 
11593
11772
 
11773
+ }
11774
+ declare module INSPECTOR {
11775
+
11776
+
11777
+ }
11778
+ declare module INSPECTOR.SharedUIComponents {
11779
+ /**
11780
+ * Create a popup window
11781
+ * @param title default title for the popup
11782
+ * @param options options for the popup
11783
+ * @returns the parent control of the popup
11784
+ */
11785
+ export function CreatePopup(title: string, options: Partial<{
11786
+ onParentControlCreateCallback?: (parentControl: HTMLDivElement) => void;
11787
+ onWindowCreateCallback?: (newWindow: Window) => void;
11788
+ width?: number;
11789
+ height?: number;
11790
+ }>): HTMLDivElement | null;
11791
+
11792
+
11793
+
11594
11794
  }
11595
11795
  declare module INSPECTOR {
11596
11796
 
@@ -11980,6 +12180,173 @@ declare module INSPECTOR.SharedUIComponents {
11980
12180
 
11981
12181
 
11982
12182
 
12183
+ }
12184
+ declare module INSPECTOR {
12185
+
12186
+
12187
+ }
12188
+ declare module INSPECTOR.SharedUIComponents {
12189
+ /// <reference types="react" />
12190
+ /**
12191
+ * Splitter component properties
12192
+ */
12193
+ export interface ISplitterProps {
12194
+ /**
12195
+ * Unique identifier
12196
+ */
12197
+ id?: string;
12198
+ /**
12199
+ * Splitter size
12200
+ */
12201
+ size: number;
12202
+ /**
12203
+ * Minimum size for the controlled element
12204
+ */
12205
+ minSize?: number;
12206
+ /**
12207
+ * Maximum size for the controlled element
12208
+ */
12209
+ maxSize?: number;
12210
+ /**
12211
+ * Initial size for the controlled element
12212
+ */
12213
+ initialSize?: number;
12214
+ /**
12215
+ * Defines the controlled side
12216
+ */
12217
+ controlledSide: INSPECTOR.SharedUIComponents.ControlledSize;
12218
+ /**
12219
+ * refObject to the splitter element
12220
+ */
12221
+ refObject?: React.RefObject<HTMLDivElement>;
12222
+ }
12223
+ /**
12224
+ * Creates a splitter component
12225
+ * @param props defines the splitter properties
12226
+ * @returns the splitter component
12227
+ */
12228
+ export var Splitter: React.FC<ISplitterProps>;
12229
+
12230
+
12231
+
12232
+ }
12233
+ declare module INSPECTOR {
12234
+
12235
+
12236
+ }
12237
+ declare module INSPECTOR.SharedUIComponents {
12238
+ /// <reference types="react" />
12239
+ export enum ControlledSize {
12240
+ First = 0,
12241
+ Second = 1
12242
+ }
12243
+ export enum SplitDirection {
12244
+ Horizontal = 0,
12245
+ Vertical = 1
12246
+ }
12247
+ /**
12248
+ * Context used to share data with splitters
12249
+ */
12250
+ export interface ISplitContext {
12251
+ /**
12252
+ * Split direction
12253
+ */
12254
+ direction: SplitDirection;
12255
+ /**
12256
+ * Function called by splitters to update the offset
12257
+ * @param offset new offet
12258
+ * @param source source element
12259
+ * @param controlledSide defined controlled element
12260
+ */
12261
+ drag: (offset: number, source: HTMLElement, controlledSide: ControlledSize) => void;
12262
+ /**
12263
+ * Function called by splitters to begin dragging
12264
+ */
12265
+ beginDrag: () => void;
12266
+ /**
12267
+ * Function called by splitters to end dragging
12268
+ */
12269
+ endDrag: () => void;
12270
+ /**
12271
+ * Sync sizes for the elements
12272
+ * @param source source element
12273
+ * @param controlledSide defined controlled element
12274
+ * @param size size of the controlled element
12275
+ * @param minSize minimum size for the controlled element
12276
+ * @param maxSize maximum size for the controlled element
12277
+ */
12278
+ sync: (source: HTMLElement, controlledSide: ControlledSize, size?: number, minSize?: number, maxSize?: number) => void;
12279
+ }
12280
+ export var SplitContext: import("react").Context<ISplitContext>;
12281
+
12282
+
12283
+
12284
+ }
12285
+ declare module INSPECTOR {
12286
+
12287
+
12288
+ }
12289
+ declare module INSPECTOR.SharedUIComponents {
12290
+ /// <reference types="react" />
12291
+ /**
12292
+ * Split container properties
12293
+ */
12294
+ export interface ISplitContainerProps {
12295
+ /**
12296
+ * Unique identifier
12297
+ */
12298
+ id?: string;
12299
+ /**
12300
+ * Split direction
12301
+ */
12302
+ direction: INSPECTOR.SharedUIComponents.SplitDirection;
12303
+ /**
12304
+ * Minimum size for the floating elements
12305
+ */
12306
+ floatingMinSize?: number;
12307
+ /**
12308
+ * RefObject to the root div element
12309
+ */
12310
+ containerRef?: React.RefObject<HTMLDivElement>;
12311
+ /**
12312
+ * Optional class name
12313
+ */
12314
+ className?: string;
12315
+ /**
12316
+ * Pointer down
12317
+ * @param event pointer events
12318
+ */
12319
+ onPointerDown?: (event: React.PointerEvent) => void;
12320
+ /**
12321
+ * Pointer move
12322
+ * @param event pointer events
12323
+ */
12324
+ onPointerMove?: (event: React.PointerEvent) => void;
12325
+ /**
12326
+ * Pointer up
12327
+ * @param event pointer events
12328
+ */
12329
+ onPointerUp?: (event: React.PointerEvent) => void;
12330
+ /**
12331
+ * Drop
12332
+ * @param event drag events
12333
+ */
12334
+ onDrop?: (event: React.DragEvent<HTMLDivElement>) => void;
12335
+ /**
12336
+ * Drag over
12337
+ * @param event drag events
12338
+ */
12339
+ onDragOver?: (event: React.DragEvent<HTMLDivElement>) => void;
12340
+ }
12341
+ /**
12342
+ * Creates a split container component
12343
+ * @param props defines the split container properties
12344
+ * @returns the split container component
12345
+ */
12346
+ export var SplitContainer: React.FC<ISplitContainerProps>;
12347
+
12348
+
12349
+
11983
12350
  }
11984
12351
  declare module INSPECTOR {
11985
12352
 
@@ -13142,19 +13509,6 @@ declare module INSPECTOR.SharedUIComponents {
13142
13509
 
13143
13510
 
13144
13511
 
13145
- }
13146
- declare module INSPECTOR {
13147
-
13148
-
13149
- }
13150
- declare module INSPECTOR.SharedUIComponents {
13151
- export class Popup {
13152
- static CreatePopup(title: string, windowVariableName: string, width?: number, height?: number): HTMLDivElement | null;
13153
- private static _CopyStyles;
13154
- }
13155
-
13156
-
13157
-
13158
13512
  }
13159
13513
  declare module INSPECTOR {
13160
13514
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "babylonjs-inspector",
3
- "version": "7.34.2",
3
+ "version": "7.34.4",
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.34.2",
18
- "babylonjs-gui": "^7.34.2",
19
- "babylonjs-gui-editor": "^7.34.2",
20
- "babylonjs-loaders": "^7.34.2",
21
- "babylonjs-materials": "^7.34.2",
22
- "babylonjs-serializers": "^7.34.2"
17
+ "babylonjs": "^7.34.4",
18
+ "babylonjs-gui": "^7.34.4",
19
+ "babylonjs-gui-editor": "^7.34.4",
20
+ "babylonjs-loaders": "^7.34.4",
21
+ "babylonjs-materials": "^7.34.4",
22
+ "babylonjs-serializers": "^7.34.4"
23
23
  },
24
24
  "devDependencies": {
25
25
  "@dev/build-tools": "1.0.0",