@babylonjs/inspector 7.34.2 → 7.34.4
Sign up to get free protection for your applications and to get access to all the features.
@@ -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/core/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";
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@babylonjs/inspector",
|
3
|
-
"version": "7.34.
|
3
|
+
"version": "7.34.4",
|
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.34.
|
36
|
-
"@babylonjs/gui": "^7.34.
|
37
|
-
"@babylonjs/gui-editor": "^7.34.
|
38
|
-
"@babylonjs/loaders": "^7.34.
|
39
|
-
"@babylonjs/materials": "^7.34.
|
40
|
-
"@babylonjs/serializers": "^7.34.
|
35
|
+
"@babylonjs/core": "^7.34.4",
|
36
|
+
"@babylonjs/gui": "^7.34.4",
|
37
|
+
"@babylonjs/gui-editor": "^7.34.4",
|
38
|
+
"@babylonjs/loaders": "^7.34.4",
|
39
|
+
"@babylonjs/materials": "^7.34.4",
|
40
|
+
"@babylonjs/serializers": "^7.34.4",
|
41
41
|
"@lts/gui": "1.0.0",
|
42
42
|
"react": "^17.0.2",
|
43
43
|
"react-dom": "^17.0.2"
|