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.
- package/babylon.inspector.bundle.js +1 -1
- package/babylon.inspector.bundle.js.map +1 -1
- package/babylon.inspector.bundle.max.js +134 -98
- package/babylon.inspector.d.ts +204 -16
- package/babylon.inspector.module.d.ts +380 -26
- package/package.json +7 -7
package/babylon.inspector.d.ts
CHANGED
|
@@ -74,7 +74,6 @@ declare module INSPECTOR {
|
|
|
74
74
|
private static _GlobalState;
|
|
75
75
|
static MarkLineContainerTitleForHighlighting(title: string): void;
|
|
76
76
|
static MarkMultipleLineContainerTitlesForHighlighting(titles: string[]): void;
|
|
77
|
-
private static _CopyStyles;
|
|
78
77
|
private static _SceneExplorerOptions;
|
|
79
78
|
private static _InspectorOptions;
|
|
80
79
|
private static _EmbedOptions;
|
|
@@ -84,7 +83,6 @@ declare module INSPECTOR {
|
|
|
84
83
|
private static _CreateSceneExplorer;
|
|
85
84
|
private static _CreateActionTabs;
|
|
86
85
|
private static _CreateEmbedHost;
|
|
87
|
-
static _CreatePopup(title: string, windowVariableName: string, width?: number, height?: number, lateBinding?: boolean): HTMLDivElement | null;
|
|
88
86
|
static get IsVisible(): boolean;
|
|
89
87
|
static EarlyAttachToLoader(): void;
|
|
90
88
|
static Show(scene: BABYLON.Scene, userOptions: Partial<BABYLON.IInspectorOptions>): void;
|
|
@@ -1176,6 +1174,7 @@ declare module INSPECTOR {
|
|
|
1176
1174
|
componentDidMount(): void;
|
|
1177
1175
|
componentWillUnmount(): void;
|
|
1178
1176
|
renderContent(): import("react/jsx-runtime").JSX.Element | null;
|
|
1177
|
+
renderTags(): import("react/jsx-runtime").JSX.Element[];
|
|
1179
1178
|
render(): import("react/jsx-runtime").JSX.Element;
|
|
1180
1179
|
}
|
|
1181
1180
|
|
|
@@ -1364,7 +1363,6 @@ declare module INSPECTOR {
|
|
|
1364
1363
|
export class CommonPropertyGridComponent extends React.Component<ICommonPropertyGridComponentProps> {
|
|
1365
1364
|
constructor(props: ICommonPropertyGridComponentProps);
|
|
1366
1365
|
renderLevel(jsonObject: any): import("react/jsx-runtime").JSX.Element[];
|
|
1367
|
-
renderTags(): import("react/jsx-runtime").JSX.Element[];
|
|
1368
1366
|
render(): import("react/jsx-runtime").JSX.Element;
|
|
1369
1367
|
}
|
|
1370
1368
|
|
|
@@ -3644,6 +3642,21 @@ declare module INSPECTOR {
|
|
|
3644
3642
|
|
|
3645
3643
|
|
|
3646
3644
|
|
|
3645
|
+
}
|
|
3646
|
+
declare module INSPECTOR.SharedUIComponents {
|
|
3647
|
+
/**
|
|
3648
|
+
* Copy all styles from a document to another document or shadow root
|
|
3649
|
+
* @param source document to copy styles from
|
|
3650
|
+
* @param target document or shadow root to copy styles to
|
|
3651
|
+
*/
|
|
3652
|
+
export function CopyStyles(source: Document, target: Document): void;
|
|
3653
|
+
|
|
3654
|
+
|
|
3655
|
+
|
|
3656
|
+
}
|
|
3657
|
+
declare module INSPECTOR {
|
|
3658
|
+
|
|
3659
|
+
|
|
3647
3660
|
}
|
|
3648
3661
|
declare module INSPECTOR.SharedUIComponents {
|
|
3649
3662
|
export class StringTools {
|
|
@@ -3676,6 +3689,27 @@ declare module INSPECTOR.SharedUIComponents {
|
|
|
3676
3689
|
|
|
3677
3690
|
|
|
3678
3691
|
|
|
3692
|
+
}
|
|
3693
|
+
declare module INSPECTOR {
|
|
3694
|
+
|
|
3695
|
+
|
|
3696
|
+
}
|
|
3697
|
+
declare module INSPECTOR.SharedUIComponents {
|
|
3698
|
+
/**
|
|
3699
|
+
* Create a popup window
|
|
3700
|
+
* @param title default title for the popup
|
|
3701
|
+
* @param options options for the popup
|
|
3702
|
+
* @returns the parent control of the popup
|
|
3703
|
+
*/
|
|
3704
|
+
export function CreatePopup(title: string, options: Partial<{
|
|
3705
|
+
onParentControlCreateCallback?: (parentControl: HTMLDivElement) => void;
|
|
3706
|
+
onWindowCreateCallback?: (newWindow: Window) => void;
|
|
3707
|
+
width?: number;
|
|
3708
|
+
height?: number;
|
|
3709
|
+
}>): HTMLDivElement | null;
|
|
3710
|
+
|
|
3711
|
+
|
|
3712
|
+
|
|
3679
3713
|
}
|
|
3680
3714
|
declare module INSPECTOR {
|
|
3681
3715
|
|
|
@@ -4065,6 +4099,173 @@ declare module INSPECTOR.SharedUIComponents {
|
|
|
4065
4099
|
|
|
4066
4100
|
|
|
4067
4101
|
|
|
4102
|
+
}
|
|
4103
|
+
declare module INSPECTOR {
|
|
4104
|
+
|
|
4105
|
+
|
|
4106
|
+
}
|
|
4107
|
+
declare module INSPECTOR.SharedUIComponents {
|
|
4108
|
+
/// <reference types="react" />
|
|
4109
|
+
/**
|
|
4110
|
+
* Splitter component properties
|
|
4111
|
+
*/
|
|
4112
|
+
export interface ISplitterProps {
|
|
4113
|
+
/**
|
|
4114
|
+
* Unique identifier
|
|
4115
|
+
*/
|
|
4116
|
+
id?: string;
|
|
4117
|
+
/**
|
|
4118
|
+
* Splitter size
|
|
4119
|
+
*/
|
|
4120
|
+
size: number;
|
|
4121
|
+
/**
|
|
4122
|
+
* Minimum size for the controlled element
|
|
4123
|
+
*/
|
|
4124
|
+
minSize?: number;
|
|
4125
|
+
/**
|
|
4126
|
+
* Maximum size for the controlled element
|
|
4127
|
+
*/
|
|
4128
|
+
maxSize?: number;
|
|
4129
|
+
/**
|
|
4130
|
+
* Initial size for the controlled element
|
|
4131
|
+
*/
|
|
4132
|
+
initialSize?: number;
|
|
4133
|
+
/**
|
|
4134
|
+
* Defines the controlled side
|
|
4135
|
+
*/
|
|
4136
|
+
controlledSide: INSPECTOR.SharedUIComponents.ControlledSize;
|
|
4137
|
+
/**
|
|
4138
|
+
* refObject to the splitter element
|
|
4139
|
+
*/
|
|
4140
|
+
refObject?: React.RefObject<HTMLDivElement>;
|
|
4141
|
+
}
|
|
4142
|
+
/**
|
|
4143
|
+
* Creates a splitter component
|
|
4144
|
+
* @param props defines the splitter properties
|
|
4145
|
+
* @returns the splitter component
|
|
4146
|
+
*/
|
|
4147
|
+
export var Splitter: React.FC<ISplitterProps>;
|
|
4148
|
+
|
|
4149
|
+
|
|
4150
|
+
|
|
4151
|
+
}
|
|
4152
|
+
declare module INSPECTOR {
|
|
4153
|
+
|
|
4154
|
+
|
|
4155
|
+
}
|
|
4156
|
+
declare module INSPECTOR.SharedUIComponents {
|
|
4157
|
+
/// <reference types="react" />
|
|
4158
|
+
export enum ControlledSize {
|
|
4159
|
+
First = 0,
|
|
4160
|
+
Second = 1
|
|
4161
|
+
}
|
|
4162
|
+
export enum SplitDirection {
|
|
4163
|
+
Horizontal = 0,
|
|
4164
|
+
Vertical = 1
|
|
4165
|
+
}
|
|
4166
|
+
/**
|
|
4167
|
+
* Context used to share data with splitters
|
|
4168
|
+
*/
|
|
4169
|
+
export interface ISplitContext {
|
|
4170
|
+
/**
|
|
4171
|
+
* Split direction
|
|
4172
|
+
*/
|
|
4173
|
+
direction: SplitDirection;
|
|
4174
|
+
/**
|
|
4175
|
+
* Function called by splitters to update the offset
|
|
4176
|
+
* @param offset new offet
|
|
4177
|
+
* @param source source element
|
|
4178
|
+
* @param controlledSide defined controlled element
|
|
4179
|
+
*/
|
|
4180
|
+
drag: (offset: number, source: HTMLElement, controlledSide: ControlledSize) => void;
|
|
4181
|
+
/**
|
|
4182
|
+
* Function called by splitters to begin dragging
|
|
4183
|
+
*/
|
|
4184
|
+
beginDrag: () => void;
|
|
4185
|
+
/**
|
|
4186
|
+
* Function called by splitters to end dragging
|
|
4187
|
+
*/
|
|
4188
|
+
endDrag: () => void;
|
|
4189
|
+
/**
|
|
4190
|
+
* Sync sizes for the elements
|
|
4191
|
+
* @param source source element
|
|
4192
|
+
* @param controlledSide defined controlled element
|
|
4193
|
+
* @param size size of the controlled element
|
|
4194
|
+
* @param minSize minimum size for the controlled element
|
|
4195
|
+
* @param maxSize maximum size for the controlled element
|
|
4196
|
+
*/
|
|
4197
|
+
sync: (source: HTMLElement, controlledSide: ControlledSize, size?: number, minSize?: number, maxSize?: number) => void;
|
|
4198
|
+
}
|
|
4199
|
+
export var SplitContext: import("react").Context<ISplitContext>;
|
|
4200
|
+
|
|
4201
|
+
|
|
4202
|
+
|
|
4203
|
+
}
|
|
4204
|
+
declare module INSPECTOR {
|
|
4205
|
+
|
|
4206
|
+
|
|
4207
|
+
}
|
|
4208
|
+
declare module INSPECTOR.SharedUIComponents {
|
|
4209
|
+
/// <reference types="react" />
|
|
4210
|
+
/**
|
|
4211
|
+
* Split container properties
|
|
4212
|
+
*/
|
|
4213
|
+
export interface ISplitContainerProps {
|
|
4214
|
+
/**
|
|
4215
|
+
* Unique identifier
|
|
4216
|
+
*/
|
|
4217
|
+
id?: string;
|
|
4218
|
+
/**
|
|
4219
|
+
* Split direction
|
|
4220
|
+
*/
|
|
4221
|
+
direction: INSPECTOR.SharedUIComponents.SplitDirection;
|
|
4222
|
+
/**
|
|
4223
|
+
* Minimum size for the floating elements
|
|
4224
|
+
*/
|
|
4225
|
+
floatingMinSize?: number;
|
|
4226
|
+
/**
|
|
4227
|
+
* RefObject to the root div element
|
|
4228
|
+
*/
|
|
4229
|
+
containerRef?: React.RefObject<HTMLDivElement>;
|
|
4230
|
+
/**
|
|
4231
|
+
* Optional class name
|
|
4232
|
+
*/
|
|
4233
|
+
className?: string;
|
|
4234
|
+
/**
|
|
4235
|
+
* Pointer down
|
|
4236
|
+
* @param event pointer events
|
|
4237
|
+
*/
|
|
4238
|
+
onPointerDown?: (event: React.PointerEvent) => void;
|
|
4239
|
+
/**
|
|
4240
|
+
* Pointer move
|
|
4241
|
+
* @param event pointer events
|
|
4242
|
+
*/
|
|
4243
|
+
onPointerMove?: (event: React.PointerEvent) => void;
|
|
4244
|
+
/**
|
|
4245
|
+
* Pointer up
|
|
4246
|
+
* @param event pointer events
|
|
4247
|
+
*/
|
|
4248
|
+
onPointerUp?: (event: React.PointerEvent) => void;
|
|
4249
|
+
/**
|
|
4250
|
+
* Drop
|
|
4251
|
+
* @param event drag events
|
|
4252
|
+
*/
|
|
4253
|
+
onDrop?: (event: React.DragEvent<HTMLDivElement>) => void;
|
|
4254
|
+
/**
|
|
4255
|
+
* Drag over
|
|
4256
|
+
* @param event drag events
|
|
4257
|
+
*/
|
|
4258
|
+
onDragOver?: (event: React.DragEvent<HTMLDivElement>) => void;
|
|
4259
|
+
}
|
|
4260
|
+
/**
|
|
4261
|
+
* Creates a split container component
|
|
4262
|
+
* @param props defines the split container properties
|
|
4263
|
+
* @returns the split container component
|
|
4264
|
+
*/
|
|
4265
|
+
export var SplitContainer: React.FC<ISplitContainerProps>;
|
|
4266
|
+
|
|
4267
|
+
|
|
4268
|
+
|
|
4068
4269
|
}
|
|
4069
4270
|
declare module INSPECTOR {
|
|
4070
4271
|
|
|
@@ -5227,19 +5428,6 @@ declare module INSPECTOR.SharedUIComponents {
|
|
|
5227
5428
|
|
|
5228
5429
|
|
|
5229
5430
|
|
|
5230
|
-
}
|
|
5231
|
-
declare module INSPECTOR {
|
|
5232
|
-
|
|
5233
|
-
|
|
5234
|
-
}
|
|
5235
|
-
declare module INSPECTOR.SharedUIComponents {
|
|
5236
|
-
export class Popup {
|
|
5237
|
-
static CreatePopup(title: string, windowVariableName: string, width?: number, height?: number): HTMLDivElement | null;
|
|
5238
|
-
private static _CopyStyles;
|
|
5239
|
-
}
|
|
5240
|
-
|
|
5241
|
-
|
|
5242
|
-
|
|
5243
5431
|
}
|
|
5244
5432
|
declare module INSPECTOR {
|
|
5245
5433
|
|