@babylonjs/inspector 8.28.1-preview → 8.28.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.
- package/dist/babylon.inspector.bundle.js +3 -0
- package/dist/babylon.inspector.bundle.js.LICENSE.txt +72 -0
- package/dist/babylon.inspector.bundle.js.map +1 -0
- package/dist/babylon.inspector.bundle.max.js +3 -0
- package/dist/babylon.inspector.module.d.ts +9116 -0
- package/package.json +35 -19
- package/readme.md +17 -14
- package/lib/captureService-D-Slmy5j.js +0 -184
- package/lib/captureService-D-Slmy5j.js.map +0 -1
- package/lib/creationToolsService-5hPBu3cR.js +0 -139
- package/lib/creationToolsService-5hPBu3cR.js.map +0 -1
- package/lib/exportService-DR2QNzfz.js +0 -230
- package/lib/exportService-DR2QNzfz.js.map +0 -1
- package/lib/importService-DoIGHoXQ.js +0 -166
- package/lib/importService-DoIGHoXQ.js.map +0 -1
- package/lib/index-BTnAB6ls.js +0 -8072
- package/lib/index-BTnAB6ls.js.map +0 -1
- package/lib/index.d.ts +0 -193
- package/lib/index.js +0 -102
- package/lib/index.js.map +0 -1
package/lib/index.d.ts
DELETED
|
@@ -1,193 +0,0 @@
|
|
|
1
|
-
import { IInspectorOptions } from '@babylonjs/core/Debug/debugLayer.js';
|
|
2
|
-
import { Scene } from '@babylonjs/core/scene.js';
|
|
3
|
-
import { IDisposable } from '@babylonjs/core/index.js';
|
|
4
|
-
|
|
5
|
-
declare const Contract: unique symbol;
|
|
6
|
-
/**
|
|
7
|
-
* This interface must be implemented by all service contracts.
|
|
8
|
-
*/
|
|
9
|
-
interface IService<ContractIdentity extends symbol> {
|
|
10
|
-
/**
|
|
11
|
-
* @internal
|
|
12
|
-
*/
|
|
13
|
-
readonly [Contract]?: ContractIdentity;
|
|
14
|
-
}
|
|
15
|
-
type ExtractContractIdentity<ServiceContract extends IService<symbol>> = ServiceContract extends IService<infer ContractIdentity> ? ContractIdentity : never;
|
|
16
|
-
type ExtractContractIdentities<ServiceContracts extends IService<symbol>[]> = {
|
|
17
|
-
[Index in keyof ServiceContracts]: ExtractContractIdentity<ServiceContracts[Index]>;
|
|
18
|
-
};
|
|
19
|
-
type UnionToIntersection<Union> = (Union extends any ? (k: Union) => void : never) extends (k: infer Intersection) => void ? Intersection : never;
|
|
20
|
-
type MaybePromise<T> = T | Promise<T>;
|
|
21
|
-
/**
|
|
22
|
-
* A factory function responsible for creating a service instance.
|
|
23
|
-
* Consumed services are passed as arguments to the factory function.
|
|
24
|
-
* The returned value must implement all produced services, and may IDisposable.
|
|
25
|
-
* If not services are produced, the returned value may implement IDisposable, otherwise it may return void.
|
|
26
|
-
*/
|
|
27
|
-
type ServiceFactory<Produces extends IService<symbol>[], Consumes extends IService<symbol>[]> = (...dependencies: [...Consumes, abortSignal?: AbortSignal]) => MaybePromise<Produces extends [] ? Partial<IDisposable> | void : Partial<IDisposable> & UnionToIntersection<Produces[number]>>;
|
|
28
|
-
/**
|
|
29
|
-
* Defines a service, which is a logical unit that consumes other services (dependencies), and optionally produces services that can be consumed by other services (dependents).
|
|
30
|
-
*/
|
|
31
|
-
type ServiceDefinition<Produces extends IService<symbol>[] = [], Consumes extends IService<symbol>[] = []> = {
|
|
32
|
-
/**
|
|
33
|
-
* A human readable name for the service to help with debugging.
|
|
34
|
-
*/
|
|
35
|
-
friendlyName: string;
|
|
36
|
-
/**
|
|
37
|
-
* A function that instantiates the service.
|
|
38
|
-
*/
|
|
39
|
-
factory: ServiceFactory<Produces, Consumes>;
|
|
40
|
-
} & (Produces extends [] ? {
|
|
41
|
-
/**
|
|
42
|
-
* An empty list or undefined, since the type specification has indicated no contracts are produced.
|
|
43
|
-
*/
|
|
44
|
-
produces?: [];
|
|
45
|
-
} : {
|
|
46
|
-
/**
|
|
47
|
-
* The list of contract identities that this service produces for consumption by other services.
|
|
48
|
-
*/
|
|
49
|
-
produces: ExtractContractIdentities<Produces>;
|
|
50
|
-
}) & (Consumes extends [] ? {
|
|
51
|
-
/**
|
|
52
|
-
* An empty list or undefined, since the type specification has indicated that no other services are consumed.
|
|
53
|
-
*/
|
|
54
|
-
consumes?: [];
|
|
55
|
-
} : {
|
|
56
|
-
/**
|
|
57
|
-
* The list of contract identities of other services that this service consumes.
|
|
58
|
-
*/
|
|
59
|
-
consumes: ExtractContractIdentities<Consumes>;
|
|
60
|
-
});
|
|
61
|
-
|
|
62
|
-
type WeaklyTypedServiceDefinition = Omit<ServiceDefinition<IService<symbol>[] | [], IService<symbol>[] | []>, "factory"> & {
|
|
63
|
-
/**
|
|
64
|
-
* A factory function responsible for creating a service instance.
|
|
65
|
-
*/
|
|
66
|
-
factory: (...args: any) => ReturnType<ServiceDefinition<IService<symbol>[] | [], IService<symbol>[] | []>["factory"]>;
|
|
67
|
-
};
|
|
68
|
-
|
|
69
|
-
type ExtensionMetadata = {
|
|
70
|
-
/**
|
|
71
|
-
* The name of the extension.
|
|
72
|
-
*/
|
|
73
|
-
readonly name: string;
|
|
74
|
-
/**
|
|
75
|
-
* The description of the extension.
|
|
76
|
-
*/
|
|
77
|
-
readonly description: string;
|
|
78
|
-
/**
|
|
79
|
-
* The keywords of the extension.
|
|
80
|
-
*/
|
|
81
|
-
readonly keywords: readonly string[];
|
|
82
|
-
};
|
|
83
|
-
type ExtensionModule = {
|
|
84
|
-
/**
|
|
85
|
-
* The default export of the module (e.g. export default).
|
|
86
|
-
*/
|
|
87
|
-
default: {
|
|
88
|
-
/**
|
|
89
|
-
* The services that are included with the extension.
|
|
90
|
-
*/
|
|
91
|
-
serviceDefinitions?: readonly WeaklyTypedServiceDefinition[];
|
|
92
|
-
};
|
|
93
|
-
};
|
|
94
|
-
/**
|
|
95
|
-
* Represents a query to fetch subset ranges of extension metadata from a feed.
|
|
96
|
-
*/
|
|
97
|
-
interface IExtensionMetadataQuery {
|
|
98
|
-
/**
|
|
99
|
-
* The total number of extensions that satisfy the query.
|
|
100
|
-
*/
|
|
101
|
-
readonly totalCount: number;
|
|
102
|
-
/**
|
|
103
|
-
* Fetches a range of extension metadata from the feed.
|
|
104
|
-
* @param index The index of the first extension to fetch.
|
|
105
|
-
* @param count The number of extensions to fetch.
|
|
106
|
-
* @returns A promise that resolves to the extension metadata.
|
|
107
|
-
*/
|
|
108
|
-
getExtensionMetadataAsync(index: number, count: number): Promise<readonly ExtensionMetadata[]>;
|
|
109
|
-
}
|
|
110
|
-
/**
|
|
111
|
-
* Represents a feed/source of extensions.
|
|
112
|
-
*/
|
|
113
|
-
interface IExtensionFeed {
|
|
114
|
-
/**
|
|
115
|
-
* The name of the feed.
|
|
116
|
-
*/
|
|
117
|
-
readonly name: string;
|
|
118
|
-
/**
|
|
119
|
-
* Creates an extension metadata query given a filter.
|
|
120
|
-
* @param filter The filter to apply to the query.
|
|
121
|
-
* @returns A promise that resolves to the extension metadata query.
|
|
122
|
-
*/
|
|
123
|
-
queryExtensionsAsync(filter?: string): Promise<IExtensionMetadataQuery>;
|
|
124
|
-
/**
|
|
125
|
-
* Gets the extension module for the specified extension.
|
|
126
|
-
* @param name The name of the extension.
|
|
127
|
-
* @returns A promise that resolves to the extension module.
|
|
128
|
-
*/
|
|
129
|
-
getExtensionModuleAsync(name: string): Promise<ExtensionModule | undefined>;
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
type ToolbarMode = "full" | "compact";
|
|
133
|
-
/**
|
|
134
|
-
* Options for configuring the shell service.
|
|
135
|
-
*/
|
|
136
|
-
type ShellServiceOptions = {
|
|
137
|
-
/**
|
|
138
|
-
* The default width of the left side pane.
|
|
139
|
-
*/
|
|
140
|
-
leftPaneDefaultWidth?: number;
|
|
141
|
-
/**
|
|
142
|
-
* The minimum width of the left side pane.
|
|
143
|
-
*/
|
|
144
|
-
leftPaneMinWidth?: number;
|
|
145
|
-
/**
|
|
146
|
-
* The default width of the right side pane.
|
|
147
|
-
*/
|
|
148
|
-
rightPaneDefaultWidth?: number;
|
|
149
|
-
/**
|
|
150
|
-
* The minimum width of the right side pane.
|
|
151
|
-
*/
|
|
152
|
-
rightPaneMinWidth?: number;
|
|
153
|
-
/**
|
|
154
|
-
* The mode of the toolbars.
|
|
155
|
-
* Can be either "full" (default) or "compact".
|
|
156
|
-
* In "full" mode, toolbars are displayed above and below the side panes.
|
|
157
|
-
* In "compact" mode, toolbars are displayed at the top and bottom of the left and right side panes.
|
|
158
|
-
*/
|
|
159
|
-
toolbarMode?: ToolbarMode;
|
|
160
|
-
};
|
|
161
|
-
|
|
162
|
-
type ModularToolOptions = {
|
|
163
|
-
/**
|
|
164
|
-
* The container element where the tool will be rendered.
|
|
165
|
-
*/
|
|
166
|
-
containerElement: HTMLElement;
|
|
167
|
-
/**
|
|
168
|
-
* The service definitions to be registered with the tool.
|
|
169
|
-
*/
|
|
170
|
-
serviceDefinitions: readonly WeaklyTypedServiceDefinition[];
|
|
171
|
-
/**
|
|
172
|
-
* Whether the tool should allow user selection of the theme (e.g. dark/light/system).
|
|
173
|
-
*/
|
|
174
|
-
isThemeable?: boolean;
|
|
175
|
-
/**
|
|
176
|
-
* The extension feeds that provide optional extensions the user can install.
|
|
177
|
-
*/
|
|
178
|
-
extensionFeeds?: readonly IExtensionFeed[];
|
|
179
|
-
} & ShellServiceOptions;
|
|
180
|
-
|
|
181
|
-
type InspectorV2Options = Pick<ModularToolOptions, "serviceDefinitions" | "isThemeable"> & {
|
|
182
|
-
isExtensible?: boolean;
|
|
183
|
-
};
|
|
184
|
-
declare function IsInspectorVisible(): boolean;
|
|
185
|
-
declare function ShowInspector(scene: Scene, options?: Partial<IInspectorOptions & InspectorV2Options>): void;
|
|
186
|
-
declare function HideInspector(): void;
|
|
187
|
-
declare class Inspector {
|
|
188
|
-
static get IsVisible(): boolean;
|
|
189
|
-
static Show(scene: Scene, userOptions: Partial<IInspectorOptions>): void;
|
|
190
|
-
static Hide(): void;
|
|
191
|
-
}
|
|
192
|
-
|
|
193
|
-
export { HideInspector, Inspector, IsInspectorVisible, ShowInspector };
|
package/lib/index.js
DELETED
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
export { H as HideInspector, e as Inspector, I as IsInspectorVisible, d as ShowInspector } from './index-BTnAB6ls.js';
|
|
2
|
-
import 'react/jsx-runtime';
|
|
3
|
-
import '@fluentui/react-components';
|
|
4
|
-
import '@babylonjs/core/Engines/engineStore.js';
|
|
5
|
-
import '@babylonjs/core/Misc/observable.js';
|
|
6
|
-
import 'react';
|
|
7
|
-
import '@fluentui/react-icons';
|
|
8
|
-
import 'react-dom/client';
|
|
9
|
-
import 'usehooks-ts';
|
|
10
|
-
import '@babylonjs/core/Misc/logger.js';
|
|
11
|
-
import '@babylonjs/core/Misc/deferred.js';
|
|
12
|
-
import '@babylonjs/core/Misc/asyncLock.js';
|
|
13
|
-
import '@fluentui/react-motion-components-preview';
|
|
14
|
-
import '@babylonjs/core/FrameGraph/frameGraphUtils.js';
|
|
15
|
-
import '@babylonjs/core/Gizmos/cameraGizmo.js';
|
|
16
|
-
import '@babylonjs/core/Gizmos/lightGizmo.js';
|
|
17
|
-
import '@babylonjs/core/Rendering/utilityLayerRenderer.js';
|
|
18
|
-
import '@babylonjs/core/Bones/bone.js';
|
|
19
|
-
import '@babylonjs/core/Cameras/camera.js';
|
|
20
|
-
import '@babylonjs/core/Gizmos/gizmoManager.js';
|
|
21
|
-
import '@babylonjs/core/Lights/light.js';
|
|
22
|
-
import '@babylonjs/core/Meshes/abstractMesh.js';
|
|
23
|
-
import '@babylonjs/core/node.js';
|
|
24
|
-
import '@babylonjs/core/Maths/math.color.js';
|
|
25
|
-
import '@babylonjs/core/Maths/math.vector.js';
|
|
26
|
-
import '@babylonjs/addons/msdfText/fontAsset.js';
|
|
27
|
-
import '@babylonjs/addons/msdfText/textRenderer.js';
|
|
28
|
-
import '@babylonjs/core/Debug/physicsViewer.js';
|
|
29
|
-
import '@babylonjs/core/Materials/Textures/texture.js';
|
|
30
|
-
import '@babylonjs/core/Materials/materialFlags.js';
|
|
31
|
-
import '@babylonjs/core/Materials/standardMaterial.js';
|
|
32
|
-
import '@babylonjs/core/Meshes/Builders/groundBuilder.js';
|
|
33
|
-
import '@babylonjs/core/Misc/tools.js';
|
|
34
|
-
import '@babylonjs/materials/grid/gridMaterial.js';
|
|
35
|
-
import '@babylonjs/core/Misc/typeStore.js';
|
|
36
|
-
import '@babylonjs/core/Animations/animationGroup.js';
|
|
37
|
-
import '@babylonjs/core/Animations/animationPropertiesOverride.js';
|
|
38
|
-
import '@babylonjs/core/Cameras/arcRotateCamera.js';
|
|
39
|
-
import '@babylonjs/core/Cameras/followCamera.js';
|
|
40
|
-
import '@babylonjs/core/Cameras/freeCamera.js';
|
|
41
|
-
import '@babylonjs/core/Cameras/targetCamera.js';
|
|
42
|
-
import '@babylonjs/core/scene.js';
|
|
43
|
-
import '@babylonjs/core/FrameGraph/frameGraph.js';
|
|
44
|
-
import '@babylonjs/core/Lights/directionalLight.js';
|
|
45
|
-
import '@babylonjs/core/Lights/hemisphericLight.js';
|
|
46
|
-
import '@babylonjs/core/Lights/pointLight.js';
|
|
47
|
-
import '@babylonjs/core/Lights/rectAreaLight.js';
|
|
48
|
-
import '@babylonjs/core/Lights/shadowLight.js';
|
|
49
|
-
import '@babylonjs/core/Lights/spotLight.js';
|
|
50
|
-
import '@babylonjs/core/Lights/Shadows/cascadedShadowGenerator.js';
|
|
51
|
-
import '@babylonjs/core/Lights/Shadows/shadowGenerator.js';
|
|
52
|
-
import '@babylonjs/core/Lights/Shadows/shadowGeneratorSceneComponent.js';
|
|
53
|
-
import '@babylonjs/core/Materials/material.js';
|
|
54
|
-
import '@babylonjs/core/Materials/multiMaterial.js';
|
|
55
|
-
import '@babylonjs/core/Materials/PBR/pbrBaseMaterial.js';
|
|
56
|
-
import '@babylonjs/core/Materials/PBR/pbrBaseSimpleMaterial.js';
|
|
57
|
-
import '@babylonjs/core/Materials/PBR/pbrMaterial.js';
|
|
58
|
-
import '@babylonjs/materials/sky/skyMaterial.js';
|
|
59
|
-
import '@babylonjs/core/Engines/engine.js';
|
|
60
|
-
import '@babylonjs/core/Engines/constants.js';
|
|
61
|
-
import '@babylonjs/core/Particles/particleSystem.js';
|
|
62
|
-
import '@babylonjs/core/Misc/fileTools.js';
|
|
63
|
-
import '@babylonjs/core/Meshes/mesh.js';
|
|
64
|
-
import '@babylonjs/core/Debug/skeletonViewer.js';
|
|
65
|
-
import '@babylonjs/core/Meshes/buffer.js';
|
|
66
|
-
import '@babylonjs/core/Meshes/Builders/linesBuilder.js';
|
|
67
|
-
import '@babylonjs/core/Meshes/instancedMesh.js';
|
|
68
|
-
import '@babylonjs/core/Rendering/renderingManager.js';
|
|
69
|
-
import '@babylonjs/core/Rendering/edgesRenderer.js';
|
|
70
|
-
import '@babylonjs/core/Rendering/outlineRenderer.js';
|
|
71
|
-
import '@babylonjs/core/Misc/gradients.js';
|
|
72
|
-
import '@babylonjs/core/Materials/Node/Blocks/gradientBlock.js';
|
|
73
|
-
import '@babylonjs/core/Particles/attractor.js';
|
|
74
|
-
import '@babylonjs/core/Meshes/Builders/sphereBuilder.js';
|
|
75
|
-
import '@babylonjs/core/Meshes/transformNode.js';
|
|
76
|
-
import '@babylonjs/core/Physics/v2/IPhysicsEnginePlugin.js';
|
|
77
|
-
import '@babylonjs/core/Physics/v2/physicsEngineComponent.js';
|
|
78
|
-
import '@babylonjs/core/PostProcesses/postProcess.js';
|
|
79
|
-
import '@babylonjs/core/Materials/Textures/cubeTexture.js';
|
|
80
|
-
import '@babylonjs/core/Materials/imageProcessingConfiguration.js';
|
|
81
|
-
import '@babylonjs/core/Bones/skeleton.js';
|
|
82
|
-
import '@babylonjs/core/Sprites/sprite.js';
|
|
83
|
-
import '@babylonjs/core/Materials/Textures/baseTexture.js';
|
|
84
|
-
import '@babylonjs/core/Materials/Textures/multiRenderTarget.js';
|
|
85
|
-
import '@babylonjs/core/Materials/Textures/renderTargetTexture.js';
|
|
86
|
-
import '@babylonjs/core/Materials/Textures/thinTexture.js';
|
|
87
|
-
import '@fluentui-contrib/react-virtualizer';
|
|
88
|
-
import '@babylonjs/core/PostProcesses/RenderPipeline/postProcessRenderPipelineManagerSceneComponent.js';
|
|
89
|
-
import '@babylonjs/core/Sprites/spriteSceneComponent.js';
|
|
90
|
-
import '@babylonjs/core/Materials/Textures/dynamicTexture.js';
|
|
91
|
-
import '@babylonjs/core/Misc/dataStorage.js';
|
|
92
|
-
import '@babylonjs/core/Instrumentation/engineInstrumentation.js';
|
|
93
|
-
import '@babylonjs/core/Instrumentation/sceneInstrumentation.js';
|
|
94
|
-
import '@babylonjs/core/Engines/AbstractEngine/abstractEngine.timeQuery.js';
|
|
95
|
-
import '@babylonjs/core/Engines/Extensions/engine.query.js';
|
|
96
|
-
import '@babylonjs/core/Engines/WebGPU/Extensions/engine.query.js';
|
|
97
|
-
import '@babylonjs/core/Misc/PerformanceViewer/performanceViewerCollectionStrategies.js';
|
|
98
|
-
import '@babylonjs/core/Misc/pressureObserverWrapper.js';
|
|
99
|
-
import '@babylonjs/core/Engines/abstractEngine.js';
|
|
100
|
-
import '@babylonjs/core/Events/pointerEvents.js';
|
|
101
|
-
import '@babylonjs/addons/atmosphere/atmosphere.js';
|
|
102
|
-
//# sourceMappingURL=index.js.map
|
package/lib/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|