@babylonjs/inspector 9.1.0 → 9.2.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/bin/inspector-bridge.mjs +4734 -0
- package/bin/inspector-cli.mjs +4931 -0
- package/lib/cli/protocol.d.ts +180 -0
- package/lib/components/debug/debugPane.d.ts +1 -1
- package/lib/components/properties/materials/openpbrMaterialProperties.d.ts +3 -0
- package/lib/components/properties/propertiesPane.d.ts +1 -1
- package/lib/components/properties/textures/texturePreview.d.ts +38 -0
- package/lib/components/scene/sceneExplorer.d.ts +5 -0
- package/lib/components/stats/statsPane.d.ts +1 -1
- package/lib/components/tools/toolsPane.d.ts +1 -1
- package/lib/extensibility/defaultInspectorExtensionFeed.d.ts +1 -1
- package/lib/extensions/quickCreate/quickCreateToolsService.d.ts +2 -2
- package/lib/{extensionsListService-BmiNjZiw.js → extensionsListService-CBQwBhYh.js} +3 -3
- package/lib/extensionsListService-CBQwBhYh.js.map +1 -0
- package/lib/hooks/settingsHooks.d.ts +0 -8
- package/lib/{index-BCbXjPTn.js → index-DmfAhsIm.js} +1451 -433
- package/lib/index-DmfAhsIm.js.map +1 -0
- package/lib/index.d.ts +28 -21
- package/lib/index.js +2 -2
- package/lib/inspectable.d.ts +67 -0
- package/lib/inspector.d.ts +1 -1
- package/lib/legacy/inspectableCustomPropertiesService.d.ts +1 -1
- package/lib/misc/defaultPerfStrategies.d.ts +16 -0
- package/lib/misc/textureTools.d.ts +2 -1
- package/lib/{quickCreateToolsService-BoqrJqoM.js → quickCreateToolsService-C38aK2nP.js} +3 -3
- package/lib/{quickCreateToolsService-BoqrJqoM.js.map → quickCreateToolsService-C38aK2nP.js.map} +1 -1
- package/lib/{reflectorService-CFTva2GG.js → reflectorService-Bs9E2OMh.js} +3 -3
- package/lib/reflectorService-Bs9E2OMh.js.map +1 -0
- package/lib/services/cli/cliConnectionStatus.d.ts +19 -0
- package/lib/services/cli/entityQueryService.d.ts +8 -0
- package/lib/services/cli/inspectableBridgeService.d.ts +22 -0
- package/lib/services/cli/inspectableCommandRegistry.d.ts +58 -0
- package/lib/services/cli/perfTraceCommandService.d.ts +9 -0
- package/lib/services/cli/screenshotCommandService.d.ts +8 -0
- package/lib/services/cli/shaderCommandService.d.ts +7 -0
- package/lib/services/cli/statsCommandService.d.ts +9 -0
- package/lib/services/cliConnectionStatusService.d.ts +4 -0
- package/lib/services/defaultToolbarMetadata.d.ts +2 -1
- package/lib/services/gizmoService.d.ts +1 -1
- package/lib/services/gizmoToolbarService.d.ts +2 -2
- package/lib/services/globalSettings.d.ts +2 -3
- package/lib/services/highlightService.d.ts +3 -3
- package/lib/services/inspectorSettingsService.d.ts +3 -0
- package/lib/services/miniStatsService.d.ts +2 -2
- package/lib/services/panes/debugService.d.ts +3 -3
- package/lib/services/panes/properties/animationGroupPropertiesService.d.ts +1 -1
- package/lib/services/panes/properties/animationPropertiesService.d.ts +1 -1
- package/lib/services/panes/properties/atmospherePropertiesService.d.ts +1 -1
- package/lib/services/panes/properties/audioPropertiesService.d.ts +1 -1
- package/lib/services/panes/properties/cameraPropertiesService.d.ts +1 -1
- package/lib/services/panes/properties/commonPropertiesService.d.ts +1 -1
- package/lib/services/panes/properties/effectLayerPropertiesService.d.ts +1 -1
- package/lib/services/panes/properties/frameGraphPropertiesService.d.ts +1 -1
- package/lib/services/panes/properties/lightPropertiesServices.d.ts +1 -1
- package/lib/services/panes/properties/materialPropertiesService.d.ts +1 -1
- package/lib/services/panes/properties/metadataPropertiesService.d.ts +1 -1
- package/lib/services/panes/properties/nodePropertiesService.d.ts +1 -1
- package/lib/services/panes/properties/particleSystemPropertiesService.d.ts +1 -1
- package/lib/services/panes/properties/physicsPropertiesService.d.ts +1 -1
- package/lib/services/panes/properties/postProcessPropertiesService.d.ts +1 -1
- package/lib/services/panes/properties/propertiesService.d.ts +3 -3
- package/lib/services/panes/properties/renderingPipelinePropertiesService.d.ts +1 -1
- package/lib/services/panes/properties/scenePropertiesService.d.ts +1 -1
- package/lib/services/panes/properties/skeletonPropertiesService.d.ts +1 -1
- package/lib/services/panes/properties/spritePropertiesService.d.ts +1 -1
- package/lib/services/panes/properties/texturePropertiesService.d.ts +1 -1
- package/lib/services/panes/properties/transformPropertiesService.d.ts +1 -1
- package/lib/services/panes/scene/animationGroupExplorerService.d.ts +1 -1
- package/lib/services/panes/scene/atmosphereExplorerService.d.ts +1 -1
- package/lib/services/panes/scene/disposableCommandService.d.ts +1 -1
- package/lib/services/panes/scene/effectLayersExplorerService.d.ts +1 -1
- package/lib/services/panes/scene/frameGraphExplorerService.d.ts +1 -1
- package/lib/services/panes/scene/guiExplorerService.d.ts +1 -1
- package/lib/services/panes/scene/materialExplorerService.d.ts +1 -1
- package/lib/services/panes/scene/nodeExplorerService.d.ts +1 -1
- package/lib/services/panes/scene/particleSystemExplorerService.d.ts +1 -1
- package/lib/services/panes/scene/postProcessExplorerService.d.ts +1 -1
- package/lib/services/panes/scene/renderingPipelinesExplorerService.d.ts +1 -1
- package/lib/services/panes/scene/sceneExplorerService.d.ts +2 -2
- package/lib/services/panes/scene/skeletonExplorerService.d.ts +1 -1
- package/lib/services/panes/scene/soundExplorerService.d.ts +1 -1
- package/lib/services/panes/scene/spriteManagerExplorerService.d.ts +1 -1
- package/lib/services/panes/scene/texturesExplorerService.d.ts +1 -1
- package/lib/services/panes/statsService.d.ts +3 -3
- package/lib/services/panes/tools/captureService.d.ts +1 -1
- package/lib/services/panes/tools/exportService.d.ts +1 -1
- package/lib/services/panes/tools/import/gltfAnimationImportService.d.ts +1 -1
- package/lib/services/panes/tools/import/gltfLoaderOptionsService.d.ts +1 -1
- package/lib/services/panes/tools/import/gltfValidationService.d.ts +1 -1
- package/lib/services/panes/tools/reflectorService.d.ts +1 -1
- package/lib/services/panes/toolsService.d.ts +3 -3
- package/lib/services/pickingService.d.ts +3 -3
- package/lib/services/sceneContext.d.ts +1 -1
- package/lib/services/selectionService.d.ts +4 -4
- package/lib/services/textureEditor/textureEditorService.d.ts +1 -1
- package/lib/services/userFeedbackService.d.ts +2 -2
- package/lib/services/watcherService.d.ts +5 -5
- package/package.json +11 -4
- package/readme.md +27 -0
- package/lib/components/errorBoundary.d.ts +0 -31
- package/lib/components/extensibleAccordion.d.ts +0 -67
- package/lib/components/pane.d.ts +0 -4
- package/lib/components/teachingMoment.d.ts +0 -20
- package/lib/components/theme.d.ts +0 -10
- package/lib/components/uxContextProvider.d.ts +0 -2
- package/lib/contexts/extensionManagerContext.d.ts +0 -6
- package/lib/contexts/settingsContext.d.ts +0 -3
- package/lib/extensibility/builtInsExtensionFeed.d.ts +0 -21
- package/lib/extensibility/extensionFeed.d.ts +0 -113
- package/lib/extensibility/extensionManager.d.ts +0 -111
- package/lib/extensionsListService-BmiNjZiw.js.map +0 -1
- package/lib/hooks/observableHooks.d.ts +0 -35
- package/lib/hooks/resourceHooks.d.ts +0 -20
- package/lib/hooks/teachingMomentHooks.d.ts +0 -34
- package/lib/hooks/themeHooks.d.ts +0 -17
- package/lib/hooks/useResizeHandle.d.ts +0 -35
- package/lib/index-BCbXjPTn.js.map +0 -1
- package/lib/misc/assert.d.ts +0 -5
- package/lib/misc/graphUtils.d.ts +0 -44
- package/lib/misc/observableCollection.d.ts +0 -23
- package/lib/modularTool.d.ts +0 -37
- package/lib/modularity/serviceContainer.d.ts +0 -41
- package/lib/modularity/serviceDefinition.d.ts +0 -64
- package/lib/reflectorService-CFTva2GG.js.map +0 -1
- package/lib/services/extensionsListService.d.ts +0 -3
- package/lib/services/panes/settingsService.d.ts +0 -25
- package/lib/services/reactContextService.d.ts +0 -18
- package/lib/services/settingsStore.d.ts +0 -55
- package/lib/services/shellService.d.ts +0 -256
- package/lib/services/shellSettingsService.d.ts +0 -3
- package/lib/services/themeSelectorService.d.ts +0 -3
- package/lib/services/themeService.d.ts +0 -60
- package/lib/themes/babylonTheme.d.ts +0 -3
package/lib/index.d.ts
CHANGED
|
@@ -1,51 +1,58 @@
|
|
|
1
1
|
export * from "./components/properties/boundProperty";
|
|
2
2
|
export * from "./components/properties/linkToEntityPropertyLine";
|
|
3
3
|
export type { EntityDisplayInfo, SceneExplorerCommand, SceneExplorerCommandProvider, SceneExplorerSection } from "./components/scene/sceneExplorer";
|
|
4
|
-
export * from "
|
|
5
|
-
export * from "
|
|
6
|
-
export { SidePaneContainer } from "
|
|
7
|
-
export * from "
|
|
8
|
-
export * from "
|
|
4
|
+
export * from "@babylonjs/shared-ui-components/modularTool/components/errorBoundary.js";
|
|
5
|
+
export * from "@babylonjs/shared-ui-components/modularTool/components/extensibleAccordion.js";
|
|
6
|
+
export { SidePaneContainer } from "@babylonjs/shared-ui-components/modularTool/components/pane.js";
|
|
7
|
+
export * from "@babylonjs/shared-ui-components/modularTool/components/theme.js";
|
|
8
|
+
export * from "@babylonjs/shared-ui-components/modularTool/components/teachingMoment.js";
|
|
9
9
|
export * from "./contexts/propertyContext";
|
|
10
|
-
export * from "
|
|
11
|
-
export * from "
|
|
10
|
+
export * from "@babylonjs/shared-ui-components/modularTool/extensibility/extensionFeed.js";
|
|
11
|
+
export * from "@babylonjs/shared-ui-components/modularTool/extensibility/builtInsExtensionFeed.js";
|
|
12
12
|
export * from "./hooks/compoundPropertyHooks";
|
|
13
13
|
export * from "./hooks/instrumentationHooks";
|
|
14
|
-
export * from "
|
|
14
|
+
export * from "@babylonjs/shared-ui-components/modularTool/hooks/observableHooks.js";
|
|
15
15
|
export * from "./hooks/pollingHooks";
|
|
16
|
-
export * from "
|
|
16
|
+
export * from "@babylonjs/shared-ui-components/modularTool/hooks/resourceHooks.js";
|
|
17
17
|
export * from "./hooks/settingsHooks";
|
|
18
|
-
export * from "
|
|
19
|
-
export * from "
|
|
18
|
+
export * from "@babylonjs/shared-ui-components/modularTool/hooks/teachingMomentHooks.js";
|
|
19
|
+
export * from "@babylonjs/shared-ui-components/modularTool/hooks/themeHooks.js";
|
|
20
20
|
export * from "./instrumentation/functionInstrumentation";
|
|
21
21
|
export * from "./instrumentation/propertyInstrumentation";
|
|
22
|
-
export * from "
|
|
23
|
-
export * from "
|
|
22
|
+
export * from "@babylonjs/shared-ui-components/modularTool/misc/observableCollection.js";
|
|
23
|
+
export * from "@babylonjs/shared-ui-components/modularTool/modularity/serviceDefinition.js";
|
|
24
24
|
export type { IPropertiesService } from "./services/panes/properties/propertiesService";
|
|
25
25
|
export { PropertiesServiceIdentity } from "./services/panes/properties/propertiesService";
|
|
26
26
|
export type { ISceneExplorerService } from "./services/panes/scene/sceneExplorerService";
|
|
27
27
|
export { SceneExplorerServiceIdentity } from "./services/panes/scene/sceneExplorerService";
|
|
28
28
|
export type { IDebugService } from "./services/panes/debugService";
|
|
29
29
|
export { DebugServiceIdentity } from "./services/panes/debugService";
|
|
30
|
-
export type { ISettingsService } from "
|
|
31
|
-
export { SettingsServiceIdentity } from "
|
|
30
|
+
export type { ISettingsService } from "@babylonjs/shared-ui-components/modularTool/services/settingsService.js";
|
|
31
|
+
export { SettingsServiceIdentity } from "@babylonjs/shared-ui-components/modularTool/services/settingsService.js";
|
|
32
32
|
export type { IStatsService } from "./services/panes/statsService";
|
|
33
33
|
export { StatsServiceIdentity } from "./services/panes/statsService";
|
|
34
34
|
export type { IToolsService } from "./services/panes/toolsService";
|
|
35
35
|
export { ToolsServiceIdentity } from "./services/panes/toolsService";
|
|
36
|
-
export type { IThemeService } from "
|
|
37
|
-
export { ThemeServiceIdentity } from "
|
|
38
|
-
export type { ISettingsStore, SettingDescriptor } from "
|
|
39
|
-
export { SettingsStoreIdentity } from "
|
|
36
|
+
export type { IThemeService } from "@babylonjs/shared-ui-components/modularTool/services/themeService.js";
|
|
37
|
+
export { ThemeServiceIdentity } from "@babylonjs/shared-ui-components/modularTool/services/themeService.js";
|
|
38
|
+
export type { ISettingsStore, SettingDescriptor } from "@babylonjs/shared-ui-components/modularTool/services/settingsStore.js";
|
|
39
|
+
export { SettingsStoreIdentity } from "@babylonjs/shared-ui-components/modularTool/services/settingsStore.js";
|
|
40
40
|
export type { IGizmoService, GizmoMode } from "./services/gizmoService";
|
|
41
41
|
export { GizmoServiceIdentity } from "./services/gizmoService";
|
|
42
42
|
export type { IWatcherService } from "./services/watcherService";
|
|
43
43
|
export { WatcherServiceIdentity } from "./services/watcherService";
|
|
44
44
|
export * from "./services/sceneContext";
|
|
45
45
|
export * from "./services/selectionService";
|
|
46
|
-
export
|
|
47
|
-
export {
|
|
46
|
+
export * from "@babylonjs/shared-ui-components/modularTool/services/settingsStore.js";
|
|
47
|
+
export type { IShellService, ToolbarItemDefinition, SidePaneDefinition, CentralContentDefinition, HorizontalLocation, VerticalLocation, ShellServiceOptions, } from "@babylonjs/shared-ui-components/modularTool/services/shellService.js";
|
|
48
|
+
export { ShellServiceIdentity } from "@babylonjs/shared-ui-components/modularTool/services/shellService.js";
|
|
49
|
+
export type { ModularToolOptions } from "@babylonjs/shared-ui-components/modularTool/modularTool.js";
|
|
50
|
+
export { MakeModularTool } from "@babylonjs/shared-ui-components/modularTool/modularTool.js";
|
|
51
|
+
export type { WeaklyTypedServiceDefinition } from "@babylonjs/shared-ui-components/modularTool/modularity/serviceContainer.js";
|
|
48
52
|
export * from "./inspector";
|
|
53
|
+
export { StartInspectable, type InspectableToken, type InspectableOptions } from "./inspectable";
|
|
54
|
+
export type { IInspectableCommandRegistry, InspectableCommandDescriptor, InspectableCommandArg } from "./services/cli/inspectableCommandRegistry";
|
|
55
|
+
export { InspectableCommandRegistryIdentity } from "./services/cli/inspectableCommandRegistry";
|
|
49
56
|
export { ConvertOptions, Inspector } from "./legacy/inspector";
|
|
50
57
|
export { AttachDebugLayer, DetachDebugLayer } from "./legacy/debugLayer";
|
|
51
58
|
export * from "@babylonjs/shared-ui-components/fluent/hooks/keyboardHooks.js";
|
package/lib/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { A as Accordion, i as AccordionSection, l as AccordionSectionItem, m as AttachDebugLayer, n as BooleanBadgePropertyLine, o as BoundProperty, p as BuiltInsExtensionFeed, B as Button, j as ButtonLine, q as Checkbox, C as CheckboxPropertyLine, r as ChildWindow, s as Collapse, t as Color3GradientComponent, v as Color3GradientList, w as Color3PropertyLine, x as Color4GradientComponent, y as Color4GradientList, z as Color4PropertyLine, D as ColorPickerPopup, E as ColorStepGradientComponent, F as ComboBox, G as ComboBoxPropertyLine, H as ConstructorFactory, I as ConvertOptions, J as DebugServiceIdentity, K as DetachDebugLayer, O as DraggableLine, Q as Dropdown, R as EntitySelector, U as ErrorBoundary, W as ExtensibleAccordion, X as FactorGradientComponent, Y as FactorGradientList, Z as FileUploadLine, _ as GetPropertyDescriptor, $ as GizmoServiceIdentity, a0 as HexPropertyLine, a1 as InfoLabel, a2 as InputHexField, a3 as InputHsvField, a4 as
|
|
1
|
+
export { A as Accordion, i as AccordionSection, l as AccordionSectionItem, m as AttachDebugLayer, n as BooleanBadgePropertyLine, o as BoundProperty, p as BuiltInsExtensionFeed, B as Button, j as ButtonLine, q as Checkbox, C as CheckboxPropertyLine, r as ChildWindow, s as Collapse, t as Color3GradientComponent, v as Color3GradientList, w as Color3PropertyLine, x as Color4GradientComponent, y as Color4GradientList, z as Color4PropertyLine, D as ColorPickerPopup, E as ColorStepGradientComponent, F as ComboBox, G as ComboBoxPropertyLine, H as ConstructorFactory, I as ConvertOptions, J as DebugServiceIdentity, K as DetachDebugLayer, O as DraggableLine, Q as Dropdown, R as EntitySelector, U as ErrorBoundary, W as ExtensibleAccordion, X as FactorGradientComponent, Y as FactorGradientList, Z as FileUploadLine, _ as GetPropertyDescriptor, $ as GizmoServiceIdentity, a0 as HexPropertyLine, a1 as InfoLabel, a2 as InputHexField, a3 as InputHsvField, a4 as InspectableCommandRegistryIdentity, a5 as Inspector, a6 as InterceptFunction, a7 as InterceptProperty, a8 as IsPropertyReadonly, a9 as LineContainer, L as Link, aa as LinkPropertyLine, c as LinkToEntity, ab as LinkToEntityPropertyLine, ac as List, ad as MakeDialogTeachingMoment, ae as MakeLazyComponent, af as MakeModularTool, ag as MakePopoverTeachingMoment, ah as MakePropertyHook, ai as MakeTeachingMoment, aj as MaterialSelector, M as MessageBar, ak as NodeSelector, al as NumberDropdown, am as NumberDropdownPropertyLine, N as NumberInputPropertyLine, an as ObservableCollection, ao as Pane, ap as PlaceholderPropertyLine, P as Popover, aq as PositionedPopover, ar as PropertiesServiceIdentity, as as Property, at as PropertyContext, au as PropertyLine, av as QuaternionPropertyLine, aw as RotationVectorPropertyLine, f as SceneContextIdentity, ax as SceneExplorerServiceIdentity, ay as SearchBar, az as SearchBox, aA as SelectionServiceDefinition, g as SelectionServiceIdentity, aB as SettingsServiceIdentity, aC as SettingsStore, aD as SettingsStoreIdentity, S as ShellServiceIdentity, aE as ShowInspector, aF as SidePaneContainer, aG as SkeletonSelector, aH as Slider, aI as SpinButton, d as SpinButtonPropertyLine, aJ as StartInspectable, aK as StatsServiceIdentity, aL as StringDropdown, aM as StringDropdownPropertyLine, aN as StringifiedPropertyLine, aO as Switch, aP as SwitchPropertyLine, aQ as SyncedSliderInput, aR as SyncedSliderPropertyLine, aS as TeachingMoment, aT as TextAreaPropertyLine, aU as TextInput, T as TextInputPropertyLine, aV as TextPropertyLine, aW as Textarea, aX as TextureSelector, aY as TextureUpload, aZ as Theme, a_ as ThemeServiceIdentity, a$ as ToastProvider, b0 as ToggleButton, k as ToolsServiceIdentity, b1 as Tooltip, b2 as UploadButton, b3 as Vector2PropertyLine, V as Vector3PropertyLine, b4 as Vector4PropertyLine, b5 as WatcherServiceIdentity, b6 as useAngleConverters, b7 as useAsyncResource, b8 as useColor3Property, b9 as useColor4Property, ba as useEventListener, bb as useEventfulState, b as useInterceptObservable, bc as useKeyListener, bd as useKeyState, be as useObservableCollection, h as useObservableState, bf as useOrderedObservableCollection, bg as usePollingObservable, e as useProperty, bh as usePropertyChangedNotifier, bi as useQuaternionProperty, bj as useResource, bk as useTheme, bl as useThemeMode, a as useToast, bm as useVector3Property } from './index-DmfAhsIm.js';
|
|
2
2
|
import 'react/jsx-runtime';
|
|
3
3
|
import 'react';
|
|
4
4
|
import '@fluentui/react-components';
|
|
@@ -46,6 +46,7 @@ import '@babylonjs/core/Lights/light.js';
|
|
|
46
46
|
import '@babylonjs/core/Meshes/abstractMesh.js';
|
|
47
47
|
import '@babylonjs/core/node.js';
|
|
48
48
|
import 'react-dom/client';
|
|
49
|
+
import '@babylonjs/core/Misc/screenshotTools.js';
|
|
49
50
|
import '@babylonjs/core/Layers/selectionOutlineLayer.js';
|
|
50
51
|
import '@babylonjs/core/Meshes/GaussianSplatting/gaussianSplattingMesh.js';
|
|
51
52
|
import '@babylonjs/core/Animations/animationGroup.js';
|
|
@@ -139,7 +140,6 @@ import '@babylonjs/core/Sprites/spriteSceneComponent.js';
|
|
|
139
140
|
import '@babylonjs/core/Materials/Textures/dynamicTexture.js';
|
|
140
141
|
import '@babylonjs/core/Misc/equirectangularCapture.js';
|
|
141
142
|
import '@babylonjs/core/Misc/sceneRecorder.js';
|
|
142
|
-
import '@babylonjs/core/Misc/screenshotTools.js';
|
|
143
143
|
import '@babylonjs/core/Misc/videoRecorder.js';
|
|
144
144
|
import '@babylonjs/core/Misc/sceneSerializer.js';
|
|
145
145
|
import '@babylonjs/core/Misc/environmentTextureTools.js';
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { type IDisposable } from "@babylonjs/core/index.js";
|
|
2
|
+
import { type Scene } from "@babylonjs/core/scene.js";
|
|
3
|
+
import { type WeaklyTypedServiceDefinition, ServiceContainer } from "@babylonjs/shared-ui-components/modularTool/modularity/serviceContainer.js";
|
|
4
|
+
/**
|
|
5
|
+
* Options for making a scene inspectable via the Inspector CLI.
|
|
6
|
+
*/
|
|
7
|
+
export type InspectableOptions = {
|
|
8
|
+
/**
|
|
9
|
+
* WebSocket port for the bridge's browser port. Defaults to 4400.
|
|
10
|
+
*/
|
|
11
|
+
port?: number;
|
|
12
|
+
/**
|
|
13
|
+
* Session display name reported to the bridge. Defaults to `document.title`.
|
|
14
|
+
*/
|
|
15
|
+
name?: string;
|
|
16
|
+
/**
|
|
17
|
+
* Additional service definitions to register with the inspectable container.
|
|
18
|
+
* These are added in a separate call from the built-in services and are removed
|
|
19
|
+
* when the returned token is disposed.
|
|
20
|
+
*/
|
|
21
|
+
serviceDefinitions?: readonly WeaklyTypedServiceDefinition[];
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* A token returned by {@link StartInspectable} that can be disposed to disconnect
|
|
25
|
+
* the scene from the Inspector CLI bridge.
|
|
26
|
+
*/
|
|
27
|
+
export type InspectableToken = IDisposable & {
|
|
28
|
+
/**
|
|
29
|
+
* Whether this token has been disposed.
|
|
30
|
+
*/
|
|
31
|
+
readonly isDisposed: boolean;
|
|
32
|
+
};
|
|
33
|
+
/**
|
|
34
|
+
* @internal
|
|
35
|
+
* An internal token that also exposes the underlying ServiceContainer,
|
|
36
|
+
* allowing ShowInspector to use it as a parent container.
|
|
37
|
+
*/
|
|
38
|
+
export type InternalInspectableToken = InspectableToken & {
|
|
39
|
+
/**
|
|
40
|
+
* The ServiceContainer backing this inspectable session.
|
|
41
|
+
*/
|
|
42
|
+
readonly serviceContainer: ServiceContainer;
|
|
43
|
+
};
|
|
44
|
+
/**
|
|
45
|
+
* @internal
|
|
46
|
+
* Internal implementation that returns an {@link InternalInspectableToken} with access
|
|
47
|
+
* to the underlying ServiceContainer. Used by ShowInspector to set up a parent container relationship.
|
|
48
|
+
*/
|
|
49
|
+
export declare function _StartInspectable(scene: Scene, options?: Partial<InspectableOptions>): InternalInspectableToken;
|
|
50
|
+
/**
|
|
51
|
+
* Makes a scene inspectable by connecting it to the Inspector CLI bridge.
|
|
52
|
+
* This creates a headless {@link ServiceContainer} (no UI) and registers the
|
|
53
|
+
* {@link InspectableBridgeService} which opens a WebSocket to the bridge and
|
|
54
|
+
* exposes a command registry for CLI-invocable commands.
|
|
55
|
+
*
|
|
56
|
+
* Multiple callers may call this for the same scene. Each returned token is
|
|
57
|
+
* ref-counted — the underlying connection is only torn down when all tokens
|
|
58
|
+
* have been disposed. Additional {@link InspectableOptions.serviceDefinitions}
|
|
59
|
+
* passed by each caller are added to the shared container and removed when
|
|
60
|
+
* that caller's token is disposed.
|
|
61
|
+
*
|
|
62
|
+
* @param scene The scene to make inspectable.
|
|
63
|
+
* @param options Optional configuration.
|
|
64
|
+
* @returns An {@link InspectableToken} that can be disposed to disconnect.
|
|
65
|
+
* @experimental
|
|
66
|
+
*/
|
|
67
|
+
export declare function StartInspectable(scene: Scene, options?: Partial<InspectableOptions>): InspectableToken;
|
package/lib/inspector.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type IDisposable, type IReadonlyObservable, type Scene } from "@babylonjs/core/index.js";
|
|
2
|
-
import { type ModularToolOptions } from "
|
|
2
|
+
import { type ModularToolOptions } from "@babylonjs/shared-ui-components/modularTool/modularTool.js";
|
|
3
3
|
type LayoutMode = "inline" | "overlay";
|
|
4
4
|
/**
|
|
5
5
|
* Options for configuring the inspector.
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { type ServiceDefinition } from "
|
|
1
|
+
import { type ServiceDefinition } from "@babylonjs/shared-ui-components/modularTool/modularity/serviceDefinition.js";
|
|
2
2
|
import { type IPropertiesService } from "../services/panes/properties/propertiesService";
|
|
3
3
|
export declare const LegacyInspectableObjectPropertiesServiceDefinition: ServiceDefinition<[], [IPropertiesService]>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { type PerformanceViewerCollector } from "@babylonjs/core/Misc/PerformanceViewer/performanceViewerCollector.js";
|
|
2
|
+
/**
|
|
3
|
+
* The strategy parameter type accepted by {@link PerformanceViewerCollector.addCollectionStrategies}.
|
|
4
|
+
*/
|
|
5
|
+
export type PerfStrategyParameter = Parameters<PerformanceViewerCollector["addCollectionStrategies"]>[number];
|
|
6
|
+
/**
|
|
7
|
+
* Performance metadata categories for grouping strategies.
|
|
8
|
+
*/
|
|
9
|
+
export declare const enum PerfMetadataCategory {
|
|
10
|
+
Count = "Count",
|
|
11
|
+
FrameSteps = "Frame Steps Duration"
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Default list of performance collection strategies used by the performance viewer and CLI perf trace.
|
|
15
|
+
*/
|
|
16
|
+
export declare const DefaultPerfStrategies: readonly PerfStrategyParameter[];
|
|
@@ -29,6 +29,7 @@ export type TextureChannelsToDisplay = {
|
|
|
29
29
|
* @param faceOrLayer if the texture has multiple faces, the face index to use for the source. For 2D array textures, this is the layer index.
|
|
30
30
|
* @param channels a filter for which of the RGBA channels to return in the result
|
|
31
31
|
* @param lod if the texture has multiple LODs, the lod index to use for the source
|
|
32
|
+
* @param slice if the texture is 3D, the depth slice index to use for the source
|
|
32
33
|
* @returns the 8-bit texture data
|
|
33
34
|
*/
|
|
34
|
-
export declare function ApplyChannelsToTextureDataAsync(texture: BaseTexture, width: number, height: number, faceOrLayer: number, channels: TextureChannelsToDisplay, lod?: number): Promise<Uint8Array>;
|
|
35
|
+
export declare function ApplyChannelsToTextureDataAsync(texture: BaseTexture, width: number, height: number, faceOrLayer: number, channels: TextureChannelsToDisplay, lod?: number, slice?: number): Promise<Uint8Array>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
2
|
-
import { P as Popover, a as useToast, b as useInterceptObservable, B as Button, c as LinkToEntity, T as TextInputPropertyLine, d as SpinButtonPropertyLine, C as CheckboxPropertyLine, V as Vector3PropertyLine, e as useProperty, M as MessageBar, S as ShellServiceIdentity, f as SceneContextIdentity, g as SelectionServiceIdentity, h as useObservableState, A as Accordion, i as AccordionSection } from './index-
|
|
2
|
+
import { P as Popover, a as useToast, b as useInterceptObservable, B as Button, c as LinkToEntity, T as TextInputPropertyLine, d as SpinButtonPropertyLine, C as CheckboxPropertyLine, V as Vector3PropertyLine, e as useProperty, M as MessageBar, S as ShellServiceIdentity, f as SceneContextIdentity, g as SelectionServiceIdentity, h as useObservableState, A as Accordion, i as AccordionSection } from './index-DmfAhsIm.js';
|
|
3
3
|
import { SettingsRegular, CollectionsAdd20Regular } from '@fluentui/react-icons';
|
|
4
4
|
import '@babylonjs/core/Particles/webgl2ParticleSystem.js';
|
|
5
5
|
import '@babylonjs/core/Rendering/prePassRendererSceneComponent.js';
|
|
@@ -74,6 +74,7 @@ import '@babylonjs/core/Lights/light.js';
|
|
|
74
74
|
import '@babylonjs/core/Meshes/abstractMesh.js';
|
|
75
75
|
import '@babylonjs/core/node.js';
|
|
76
76
|
import 'react-dom/client';
|
|
77
|
+
import '@babylonjs/core/Misc/screenshotTools.js';
|
|
77
78
|
import '@babylonjs/core/Layers/selectionOutlineLayer.js';
|
|
78
79
|
import '@babylonjs/core/Meshes/GaussianSplatting/gaussianSplattingMesh.js';
|
|
79
80
|
import '@babylonjs/core/Animations/animationGroup.js';
|
|
@@ -149,7 +150,6 @@ import '@babylonjs/core/Sprites/spriteSceneComponent.js';
|
|
|
149
150
|
import '@babylonjs/core/Materials/Textures/dynamicTexture.js';
|
|
150
151
|
import '@babylonjs/core/Misc/equirectangularCapture.js';
|
|
151
152
|
import '@babylonjs/core/Misc/sceneRecorder.js';
|
|
152
|
-
import '@babylonjs/core/Misc/screenshotTools.js';
|
|
153
153
|
import '@babylonjs/core/Misc/videoRecorder.js';
|
|
154
154
|
import '@babylonjs/core/Misc/sceneSerializer.js';
|
|
155
155
|
import '@babylonjs/core/Misc/environmentTextureTools.js';
|
|
@@ -772,4 +772,4 @@ var quickCreateToolsService = {
|
|
|
772
772
|
};
|
|
773
773
|
|
|
774
774
|
export { CreateToolsServiceDefinition, quickCreateToolsService as default };
|
|
775
|
-
//# sourceMappingURL=quickCreateToolsService-
|
|
775
|
+
//# sourceMappingURL=quickCreateToolsService-C38aK2nP.js.map
|