@babylonjs/inspector 9.25.0 → 9.26.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 +3 -1
- package/bin/inspector-cli.mjs +3 -1
- package/lib/browser-CANgtOiM.js.map +1 -1
- package/lib/components/explorer/explorer.d.ts +40 -0
- package/lib/components/{scene/sceneExplorerDragDrop.d.ts → explorer/explorerDragDrop.d.ts} +8 -8
- package/lib/components/explorer/explorerModel.d.ts +359 -0
- package/lib/components/properties/boundProperty.d.ts +31 -0
- package/lib/components/properties/metadataProperties.d.ts +5 -1
- package/lib/components/scene/sceneExplorer.d.ts +10 -124
- package/lib/contexts/watcherContext.d.ts +11 -0
- package/lib/{extensionsListService-CKrN2x5A.js → extensionsListService-2sqR5MRD.js} +13 -14
- package/lib/{extensionsListService-CKrN2x5A.js.map → extensionsListService-2sqR5MRD.js.map} +1 -1
- package/lib/gif-5DieAkSF.js.map +1 -1
- package/lib/hooks/pollingHooks.d.ts +3 -0
- package/lib/{index-CgagLRQT.js → index-DvyGGbVg.js} +24463 -23694
- package/lib/index-DvyGGbVg.js.map +1 -0
- package/lib/index.common.d.ts +88 -0
- package/lib/index.d.ts +2 -87
- package/lib/index.js +15 -16
- package/lib/index.js.map +1 -1
- package/lib/inspector.common.d.ts +38 -0
- package/lib/inspector.d.ts +3 -39
- package/lib/inspectorHost.d.ts +26 -0
- package/lib/lite/components/properties/cameraProperties.d.ts +11 -0
- package/lib/lite/components/properties/lightProperties.d.ts +33 -0
- package/lib/lite/components/properties/sceneNodeProperties.d.ts +8 -0
- package/lib/lite/engineContext.d.ts +20 -0
- package/lib/lite/engineExplorerService.d.ts +75 -0
- package/lib/lite/engineSelectionService.d.ts +11 -0
- package/lib/lite/explorerDisplayInfo.d.ts +12 -0
- package/lib/lite/extensionsListService-BP2ToO_O.js +214 -0
- package/lib/lite/extensionsListService-BP2ToO_O.js.map +1 -0
- package/lib/lite/index-6eEEtyAL.js +9687 -0
- package/lib/lite/index-6eEEtyAL.js.map +1 -0
- package/lib/lite/index.d.ts +6 -0
- package/lib/lite/index.js +19 -0
- package/lib/lite/index.js.map +1 -0
- package/lib/lite/inspector.d.ts +9 -0
- package/lib/lite/sceneEntityUtils.d.ts +19 -0
- package/lib/lite/services/panes/properties/cameraPropertiesService.d.ts +3 -0
- package/lib/lite/services/panes/properties/enginePropertiesService.d.ts +4 -0
- package/lib/lite/services/panes/properties/lightPropertiesService.d.ts +3 -0
- package/lib/lite/services/panes/properties/materialPropertiesService.d.ts +3 -0
- package/lib/lite/services/panes/properties/meshPropertiesService.d.ts +3 -0
- package/lib/lite/services/panes/properties/renderingContextPropertiesService.d.ts +4 -0
- package/lib/lite/services/panes/properties/sceneNodePropertiesService.d.ts +3 -0
- package/lib/lite/services/panes/properties/shadowGeneratorPropertiesService.d.ts +4 -0
- package/lib/lite/services/panes/properties/textLayerPropertiesService.d.ts +4 -0
- package/lib/lite/services/panes/properties/texturePropertiesService.d.ts +3 -0
- package/lib/lite/services/panes/scene/cameraExplorerService.d.ts +7 -0
- package/lib/lite/services/panes/scene/lightExplorerService.d.ts +6 -0
- package/lib/lite/services/panes/scene/materialExplorerService.d.ts +4 -0
- package/lib/lite/services/panes/scene/meshExplorerService.d.ts +7 -0
- package/lib/lite/services/panes/scene/sceneExplorerSection.d.ts +21 -0
- package/lib/lite/services/panes/scene/sceneResources.d.ts +13 -0
- package/lib/lite/services/panes/scene/sceneSelectionUtils.d.ts +3 -0
- package/lib/lite/services/panes/scene/shadowGeneratorExplorerService.d.ts +6 -0
- package/lib/lite/services/panes/scene/textLayerExplorerService.d.ts +3 -0
- package/lib/lite/services/panes/scene/textureExplorerService.d.ts +3 -0
- package/lib/{quickCreateToolsService-C-GqDTqc.js → quickCreateToolsService-B0RAjMcI.js} +14 -15
- package/lib/{quickCreateToolsService-C-GqDTqc.js.map → quickCreateToolsService-B0RAjMcI.js.map} +1 -1
- package/lib/{reflectorService-CPunL_Qs.js → reflectorService-CUFxJIMt.js} +16 -17
- package/lib/{reflectorService-CPunL_Qs.js.map → reflectorService-CUFxJIMt.js.map} +1 -1
- package/lib/services/panes/explorer/explorerPane.d.ts +79 -0
- package/lib/services/panes/explorer/explorerService.d.ts +80 -0
- package/lib/services/panes/scene/sceneExplorerService.d.ts +7 -2
- package/lib/services/sceneSelectionService.d.ts +11 -0
- package/lib/services/selectionService.d.ts +5 -2
- package/lib/services/watcherService.d.ts +46 -3
- package/package.json +12 -1
- package/readme.md +10 -0
- package/lib/index-CgagLRQT.js.map +0 -1
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
export type { ExplorerCommand, ExplorerCommandMode, ExplorerCommandProvider, ExplorerCommandType, ExplorerDisplayInfo, ExplorerDragDropConfig, ExplorerNodeDescription, ExplorerNodeKind, ExplorerNodeValue, } from "./components/explorer/explorerModel";
|
|
2
|
+
export type { ExplorerNodeProvider, IExplorerService } from "./services/panes/explorer/explorerService";
|
|
3
|
+
export { ExplorerServiceIdentity } from "./services/panes/explorer/explorerService";
|
|
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
|
+
export * from "./contexts/propertyContext";
|
|
10
|
+
export * from "@babylonjs/shared-ui-components/modularTool/extensibility/extensionFeed.js";
|
|
11
|
+
export * from "@babylonjs/shared-ui-components/modularTool/extensibility/builtInsExtensionFeed.js";
|
|
12
|
+
export * from "./hooks/instrumentationHooks";
|
|
13
|
+
export * from "@babylonjs/shared-ui-components/modularTool/hooks/observableHooks.js";
|
|
14
|
+
export * from "./hooks/pollingHooks";
|
|
15
|
+
export * from "@babylonjs/shared-ui-components/modularTool/hooks/resourceHooks.js";
|
|
16
|
+
export * from "./hooks/settingsHooks";
|
|
17
|
+
export * from "@babylonjs/shared-ui-components/modularTool/hooks/teachingMomentHooks.js";
|
|
18
|
+
export * from "@babylonjs/shared-ui-components/modularTool/hooks/themeHooks.js";
|
|
19
|
+
export * from "./instrumentation/functionInstrumentation";
|
|
20
|
+
export * from "./instrumentation/propertyInstrumentation";
|
|
21
|
+
export * from "@babylonjs/shared-ui-components/modularTool/misc/observableCollection.js";
|
|
22
|
+
export * from "@babylonjs/shared-ui-components/modularTool/modularity/serviceDefinition.js";
|
|
23
|
+
export type { ISettingsService } from "@babylonjs/shared-ui-components/modularTool/services/settingsService.js";
|
|
24
|
+
export { SettingsServiceIdentity } from "@babylonjs/shared-ui-components/modularTool/services/settingsService.js";
|
|
25
|
+
export type { IThemeService } from "@babylonjs/shared-ui-components/modularTool/services/themeService.js";
|
|
26
|
+
export { ThemeServiceIdentity } from "@babylonjs/shared-ui-components/modularTool/services/themeService.js";
|
|
27
|
+
export * from "@babylonjs/shared-ui-components/modularTool/services/settingsStore.js";
|
|
28
|
+
export type { IPropertiesService } from "./services/panes/properties/propertiesService";
|
|
29
|
+
export { PropertiesServiceIdentity } from "./services/panes/properties/propertiesService";
|
|
30
|
+
export type { IWatcherService } from "./services/watcherService";
|
|
31
|
+
export { WatcherServiceIdentity } from "./services/watcherService";
|
|
32
|
+
export * from "./services/selectionService";
|
|
33
|
+
export type { IShellService, ToolbarItemDefinition, SidePaneDefinition, CentralContentDefinition, HorizontalLocation, VerticalLocation, ShellServiceOptions, } from "@babylonjs/shared-ui-components/modularTool/services/shellService.js";
|
|
34
|
+
export { ShellServiceIdentity } from "@babylonjs/shared-ui-components/modularTool/services/shellService.js";
|
|
35
|
+
export type { ModularToolOptions } from "@babylonjs/shared-ui-components/modularTool/modularTool.js";
|
|
36
|
+
export { MakeModularTool } from "@babylonjs/shared-ui-components/modularTool/modularTool.js";
|
|
37
|
+
export type { WeaklyTypedServiceDefinition } from "@babylonjs/shared-ui-components/modularTool/modularity/serviceContainer.js";
|
|
38
|
+
export * from "./inspector.common";
|
|
39
|
+
export { type IBridgeCommandRegistry, type BridgeCommandDescriptor, type BridgeCommandArg, type BridgeCommandArgType, BridgeCommandRegistryIdentity, } from "@babylonjs/shared-ui-components/modularTool/services/cli/bridgeCommandRegistry.js";
|
|
40
|
+
export { MakeModularBridge, type ModularBridgeToken, type ModularBridgeOptions } from "@babylonjs/shared-ui-components/modularTool/modularBridge.js";
|
|
41
|
+
export * from "@babylonjs/shared-ui-components/fluent/hooks/keyboardHooks.js";
|
|
42
|
+
export * from "@babylonjs/shared-ui-components/fluent/hooks/eventHooks.js";
|
|
43
|
+
export * from "@babylonjs/shared-ui-components/fluent/primitives/accordion.js";
|
|
44
|
+
export * from "@babylonjs/shared-ui-components/fluent/primitives/button.js";
|
|
45
|
+
export * from "@babylonjs/shared-ui-components/fluent/primitives/checkbox.js";
|
|
46
|
+
export * from "@babylonjs/shared-ui-components/fluent/primitives/collapse.js";
|
|
47
|
+
export * from "@babylonjs/shared-ui-components/fluent/primitives/comboBox.js";
|
|
48
|
+
export * from "@babylonjs/shared-ui-components/fluent/primitives/draggable.js";
|
|
49
|
+
export * from "@babylonjs/shared-ui-components/fluent/primitives/dropdown.js";
|
|
50
|
+
export * from "@babylonjs/shared-ui-components/fluent/primitives/entitySelector.js";
|
|
51
|
+
export * from "@babylonjs/shared-ui-components/fluent/primitives/infoLabel.js";
|
|
52
|
+
export * from "@babylonjs/shared-ui-components/fluent/primitives/lazyComponent.js";
|
|
53
|
+
export * from "@babylonjs/shared-ui-components/fluent/primitives/link.js";
|
|
54
|
+
export * from "@babylonjs/shared-ui-components/fluent/primitives/list.js";
|
|
55
|
+
export * from "@babylonjs/shared-ui-components/fluent/primitives/messageBar.js";
|
|
56
|
+
export * from "@babylonjs/shared-ui-components/fluent/primitives/popover.js";
|
|
57
|
+
export * from "@babylonjs/shared-ui-components/fluent/primitives/positionedPopover.js";
|
|
58
|
+
export * from "@babylonjs/shared-ui-components/fluent/primitives/primitive.js";
|
|
59
|
+
export * from "@babylonjs/shared-ui-components/fluent/primitives/searchBar.js";
|
|
60
|
+
export * from "@babylonjs/shared-ui-components/fluent/primitives/searchBox.js";
|
|
61
|
+
export * from "@babylonjs/shared-ui-components/fluent/primitives/slider.js";
|
|
62
|
+
export * from "@babylonjs/shared-ui-components/fluent/primitives/spinButton.js";
|
|
63
|
+
export * from "@babylonjs/shared-ui-components/fluent/primitives/switch.js";
|
|
64
|
+
export * from "@babylonjs/shared-ui-components/fluent/primitives/syncedSlider.js";
|
|
65
|
+
export * from "@babylonjs/shared-ui-components/fluent/primitives/textarea.js";
|
|
66
|
+
export * from "@babylonjs/shared-ui-components/fluent/primitives/textInput.js";
|
|
67
|
+
export * from "@babylonjs/shared-ui-components/fluent/primitives/toast.js";
|
|
68
|
+
export * from "@babylonjs/shared-ui-components/fluent/primitives/toggleButton.js";
|
|
69
|
+
export * from "@babylonjs/shared-ui-components/fluent/primitives/tooltip.js";
|
|
70
|
+
export * from "@babylonjs/shared-ui-components/fluent/primitives/uploadButton.js";
|
|
71
|
+
export * from "@babylonjs/shared-ui-components/fluent/hoc/buttonLine.js";
|
|
72
|
+
export * from "@babylonjs/shared-ui-components/fluent/hoc/childWindow.js";
|
|
73
|
+
export * from "@babylonjs/shared-ui-components/fluent/hoc/fileUploadLine.js";
|
|
74
|
+
export * from "@babylonjs/shared-ui-components/fluent/hoc/pane.js";
|
|
75
|
+
export * from "@babylonjs/shared-ui-components/fluent/hoc/propertyLines/booleanBadgePropertyLine.js";
|
|
76
|
+
export * from "@babylonjs/shared-ui-components/fluent/hoc/propertyLines/checkboxPropertyLine.js";
|
|
77
|
+
export * from "@babylonjs/shared-ui-components/fluent/hoc/propertyLines/comboBoxPropertyLine.js";
|
|
78
|
+
export { NumberDropdownPropertyLine, StringDropdownPropertyLine } from "@babylonjs/shared-ui-components/fluent/hoc/propertyLines/dropdownPropertyLine.js";
|
|
79
|
+
export * from "@babylonjs/shared-ui-components/fluent/hoc/propertyLines/hexPropertyLine.js";
|
|
80
|
+
export * from "@babylonjs/shared-ui-components/fluent/hoc/propertyLines/inputPropertyLine.js";
|
|
81
|
+
export * from "@babylonjs/shared-ui-components/fluent/hoc/propertyLines/linkPropertyLine.js";
|
|
82
|
+
export * from "@babylonjs/shared-ui-components/fluent/hoc/propertyLines/propertyLine.js";
|
|
83
|
+
export * from "@babylonjs/shared-ui-components/fluent/hoc/propertyLines/spinButtonPropertyLine.js";
|
|
84
|
+
export * from "@babylonjs/shared-ui-components/fluent/hoc/propertyLines/stringifiedPropertyLine.js";
|
|
85
|
+
export * from "@babylonjs/shared-ui-components/fluent/hoc/propertyLines/switchPropertyLine.js";
|
|
86
|
+
export * from "@babylonjs/shared-ui-components/fluent/hoc/propertyLines/syncedSliderPropertyLine.js";
|
|
87
|
+
export * from "@babylonjs/shared-ui-components/fluent/hoc/propertyLines/textAreaPropertyLine.js";
|
|
88
|
+
export * from "@babylonjs/shared-ui-components/fluent/hoc/propertyLines/textPropertyLine.js";
|
package/lib/index.d.ts
CHANGED
|
@@ -1,116 +1,31 @@
|
|
|
1
|
+
export * from "./index.common";
|
|
1
2
|
export * from "./components/properties/boundProperty";
|
|
2
3
|
export * from "./components/properties/linkToEntityPropertyLine";
|
|
3
4
|
export type { EntityDisplayInfo, SceneExplorerCommand, SceneExplorerCommandProvider, SceneExplorerSection } from "./components/scene/sceneExplorer";
|
|
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
|
-
export * from "./contexts/propertyContext";
|
|
10
|
-
export * from "@babylonjs/shared-ui-components/modularTool/extensibility/extensionFeed.js";
|
|
11
|
-
export * from "@babylonjs/shared-ui-components/modularTool/extensibility/builtInsExtensionFeed.js";
|
|
12
5
|
export * from "./hooks/compoundPropertyHooks";
|
|
13
|
-
export * from "./hooks/instrumentationHooks";
|
|
14
|
-
export * from "@babylonjs/shared-ui-components/modularTool/hooks/observableHooks.js";
|
|
15
|
-
export * from "./hooks/pollingHooks";
|
|
16
|
-
export * from "@babylonjs/shared-ui-components/modularTool/hooks/resourceHooks.js";
|
|
17
|
-
export * from "./hooks/settingsHooks";
|
|
18
|
-
export * from "@babylonjs/shared-ui-components/modularTool/hooks/teachingMomentHooks.js";
|
|
19
|
-
export * from "@babylonjs/shared-ui-components/modularTool/hooks/themeHooks.js";
|
|
20
|
-
export * from "./instrumentation/functionInstrumentation";
|
|
21
|
-
export * from "./instrumentation/propertyInstrumentation";
|
|
22
|
-
export * from "@babylonjs/shared-ui-components/modularTool/misc/observableCollection.js";
|
|
23
|
-
export * from "@babylonjs/shared-ui-components/modularTool/modularity/serviceDefinition.js";
|
|
24
|
-
export type { IPropertiesService } from "./services/panes/properties/propertiesService";
|
|
25
|
-
export { PropertiesServiceIdentity } from "./services/panes/properties/propertiesService";
|
|
26
6
|
export type { ISceneExplorerService } from "./services/panes/scene/sceneExplorerService";
|
|
27
7
|
export { SceneExplorerServiceIdentity } from "./services/panes/scene/sceneExplorerService";
|
|
28
8
|
export type { IDebugService } from "./services/panes/debugService";
|
|
29
9
|
export { DebugServiceIdentity } from "./services/panes/debugService";
|
|
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
10
|
export type { IStatsService } from "./services/panes/statsService";
|
|
33
11
|
export { StatsServiceIdentity } from "./services/panes/statsService";
|
|
34
12
|
export type { IToolsService } from "./services/panes/toolsService";
|
|
35
13
|
export { ToolsServiceIdentity } from "./services/panes/toolsService";
|
|
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
14
|
export type { IGizmoService, GizmoMode } from "./services/gizmoService";
|
|
41
15
|
export { GizmoServiceIdentity } from "./services/gizmoService";
|
|
42
|
-
export type { IWatcherService } from "./services/watcherService";
|
|
43
|
-
export { WatcherServiceIdentity } from "./services/watcherService";
|
|
44
16
|
export * from "./services/sceneContext";
|
|
45
|
-
export * from "./services/selectionService";
|
|
46
17
|
export { inspectorAssetNotFoundHandler } from "./services/smartAssetHandler";
|
|
47
|
-
export
|
|
48
|
-
export type { IShellService, ToolbarItemDefinition, SidePaneDefinition, CentralContentDefinition, HorizontalLocation, VerticalLocation, ShellServiceOptions, } from "@babylonjs/shared-ui-components/modularTool/services/shellService.js";
|
|
49
|
-
export { ShellServiceIdentity } from "@babylonjs/shared-ui-components/modularTool/services/shellService.js";
|
|
50
|
-
export type { ModularToolOptions } from "@babylonjs/shared-ui-components/modularTool/modularTool.js";
|
|
51
|
-
export { MakeModularTool } from "@babylonjs/shared-ui-components/modularTool/modularTool.js";
|
|
52
|
-
export type { WeaklyTypedServiceDefinition } from "@babylonjs/shared-ui-components/modularTool/modularity/serviceContainer.js";
|
|
53
|
-
export * from "./inspector";
|
|
18
|
+
export { ShowInspector } from "./inspector";
|
|
54
19
|
export { StartInspectable, type InspectableToken, type InspectableOptions } from "./inspectable";
|
|
55
|
-
export { type IBridgeCommandRegistry, type BridgeCommandDescriptor, type BridgeCommandArg, type BridgeCommandArgType, BridgeCommandRegistryIdentity, } from "@babylonjs/shared-ui-components/modularTool/services/cli/bridgeCommandRegistry.js";
|
|
56
|
-
export { MakeModularBridge, type ModularBridgeToken, type ModularBridgeOptions } from "@babylonjs/shared-ui-components/modularTool/modularBridge.js";
|
|
57
20
|
export { ConvertOptions, Inspector } from "./legacy/inspector";
|
|
58
21
|
export { AttachDebugLayer, DetachDebugLayer } from "./legacy/debugLayer";
|
|
59
|
-
export * from "@babylonjs/shared-ui-components/fluent/hooks/keyboardHooks.js";
|
|
60
|
-
export * from "@babylonjs/shared-ui-components/fluent/hooks/eventHooks.js";
|
|
61
|
-
export * from "@babylonjs/shared-ui-components/fluent/primitives/accordion.js";
|
|
62
|
-
export * from "@babylonjs/shared-ui-components/fluent/primitives/button.js";
|
|
63
|
-
export * from "@babylonjs/shared-ui-components/fluent/primitives/checkbox.js";
|
|
64
|
-
export * from "@babylonjs/shared-ui-components/fluent/primitives/collapse.js";
|
|
65
22
|
export * from "@babylonjs/shared-ui-components/fluent/primitives/colorPicker.js";
|
|
66
|
-
export * from "@babylonjs/shared-ui-components/fluent/primitives/comboBox.js";
|
|
67
|
-
export * from "@babylonjs/shared-ui-components/fluent/primitives/draggable.js";
|
|
68
|
-
export * from "@babylonjs/shared-ui-components/fluent/primitives/dropdown.js";
|
|
69
|
-
export * from "@babylonjs/shared-ui-components/fluent/primitives/entitySelector.js";
|
|
70
23
|
export * from "@babylonjs/shared-ui-components/fluent/primitives/gradient.js";
|
|
71
|
-
export * from "@babylonjs/shared-ui-components/fluent/primitives/infoLabel.js";
|
|
72
|
-
export * from "@babylonjs/shared-ui-components/fluent/primitives/lazyComponent.js";
|
|
73
|
-
export * from "@babylonjs/shared-ui-components/fluent/primitives/link.js";
|
|
74
|
-
export * from "@babylonjs/shared-ui-components/fluent/primitives/list.js";
|
|
75
24
|
export * from "@babylonjs/shared-ui-components/fluent/primitives/materialSelector.js";
|
|
76
|
-
export * from "@babylonjs/shared-ui-components/fluent/primitives/messageBar.js";
|
|
77
25
|
export * from "@babylonjs/shared-ui-components/fluent/primitives/nodeSelector.js";
|
|
78
|
-
export * from "@babylonjs/shared-ui-components/fluent/primitives/popover.js";
|
|
79
|
-
export * from "@babylonjs/shared-ui-components/fluent/primitives/positionedPopover.js";
|
|
80
|
-
export * from "@babylonjs/shared-ui-components/fluent/primitives/primitive.js";
|
|
81
|
-
export * from "@babylonjs/shared-ui-components/fluent/primitives/searchBar.js";
|
|
82
|
-
export * from "@babylonjs/shared-ui-components/fluent/primitives/searchBox.js";
|
|
83
26
|
export * from "@babylonjs/shared-ui-components/fluent/primitives/skeletonSelector.js";
|
|
84
|
-
export * from "@babylonjs/shared-ui-components/fluent/primitives/slider.js";
|
|
85
|
-
export * from "@babylonjs/shared-ui-components/fluent/primitives/spinButton.js";
|
|
86
|
-
export * from "@babylonjs/shared-ui-components/fluent/primitives/switch.js";
|
|
87
|
-
export * from "@babylonjs/shared-ui-components/fluent/primitives/syncedSlider.js";
|
|
88
|
-
export * from "@babylonjs/shared-ui-components/fluent/primitives/textarea.js";
|
|
89
|
-
export * from "@babylonjs/shared-ui-components/fluent/primitives/textInput.js";
|
|
90
27
|
export * from "@babylonjs/shared-ui-components/fluent/primitives/textureSelector.js";
|
|
91
|
-
export * from "@babylonjs/shared-ui-components/fluent/primitives/toast.js";
|
|
92
|
-
export * from "@babylonjs/shared-ui-components/fluent/primitives/toggleButton.js";
|
|
93
|
-
export * from "@babylonjs/shared-ui-components/fluent/primitives/tooltip.js";
|
|
94
|
-
export * from "@babylonjs/shared-ui-components/fluent/primitives/uploadButton.js";
|
|
95
|
-
export * from "@babylonjs/shared-ui-components/fluent/hoc/buttonLine.js";
|
|
96
|
-
export * from "@babylonjs/shared-ui-components/fluent/hoc/childWindow.js";
|
|
97
|
-
export * from "@babylonjs/shared-ui-components/fluent/hoc/fileUploadLine.js";
|
|
98
28
|
export * from "@babylonjs/shared-ui-components/fluent/hoc/gradientList.js";
|
|
99
|
-
export * from "@babylonjs/shared-ui-components/fluent/hoc/pane.js";
|
|
100
29
|
export * from "@babylonjs/shared-ui-components/fluent/hoc/textureUpload.js";
|
|
101
|
-
export * from "@babylonjs/shared-ui-components/fluent/hoc/propertyLines/booleanBadgePropertyLine.js";
|
|
102
|
-
export * from "@babylonjs/shared-ui-components/fluent/hoc/propertyLines/checkboxPropertyLine.js";
|
|
103
30
|
export * from "@babylonjs/shared-ui-components/fluent/hoc/propertyLines/colorPropertyLine.js";
|
|
104
|
-
export * from "@babylonjs/shared-ui-components/fluent/hoc/propertyLines/comboBoxPropertyLine.js";
|
|
105
|
-
export { NumberDropdownPropertyLine, StringDropdownPropertyLine } from "@babylonjs/shared-ui-components/fluent/hoc/propertyLines/dropdownPropertyLine.js";
|
|
106
|
-
export * from "@babylonjs/shared-ui-components/fluent/hoc/propertyLines/hexPropertyLine.js";
|
|
107
|
-
export * from "@babylonjs/shared-ui-components/fluent/hoc/propertyLines/inputPropertyLine.js";
|
|
108
|
-
export * from "@babylonjs/shared-ui-components/fluent/hoc/propertyLines/linkPropertyLine.js";
|
|
109
|
-
export * from "@babylonjs/shared-ui-components/fluent/hoc/propertyLines/propertyLine.js";
|
|
110
|
-
export * from "@babylonjs/shared-ui-components/fluent/hoc/propertyLines/spinButtonPropertyLine.js";
|
|
111
|
-
export * from "@babylonjs/shared-ui-components/fluent/hoc/propertyLines/stringifiedPropertyLine.js";
|
|
112
|
-
export * from "@babylonjs/shared-ui-components/fluent/hoc/propertyLines/switchPropertyLine.js";
|
|
113
|
-
export * from "@babylonjs/shared-ui-components/fluent/hoc/propertyLines/syncedSliderPropertyLine.js";
|
|
114
|
-
export * from "@babylonjs/shared-ui-components/fluent/hoc/propertyLines/textAreaPropertyLine.js";
|
|
115
|
-
export * from "@babylonjs/shared-ui-components/fluent/hoc/propertyLines/textPropertyLine.js";
|
|
116
31
|
export * from "@babylonjs/shared-ui-components/fluent/hoc/propertyLines/vectorPropertyLine.js";
|
package/lib/index.js
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
export { A as Accordion, i as AccordionSection, l as AccordionSectionItem, m as AttachDebugLayer, n as BooleanBadgePropertyLine, o as BoundProperty, p as BridgeCommandRegistryIdentity, q as BuiltInsExtensionFeed, B as Button, j as ButtonLine, r as Checkbox, C as CheckboxPropertyLine, s as ChildWindow, t as Collapse, v as Color3GradientComponent, w as Color3GradientList, x as Color3PropertyLine, y as Color4GradientComponent, z as Color4GradientList, D as Color4PropertyLine, E as ColorPickerPopup, F as ColorStepGradientComponent, G as ComboBox, H as ComboBoxPropertyLine, I as
|
|
1
|
+
export { A as Accordion, i as AccordionSection, l as AccordionSectionItem, m as AttachDebugLayer, n as BooleanBadgePropertyLine, o as BoundProperty, p as BridgeCommandRegistryIdentity, q as BuiltInsExtensionFeed, B as Button, j as ButtonLine, r as Checkbox, C as CheckboxPropertyLine, s as ChildWindow, t as Collapse, v as Color3GradientComponent, w as Color3GradientList, x as Color3PropertyLine, y as Color4GradientComponent, z as Color4GradientList, D as Color4PropertyLine, E as ColorPickerPopup, F as ColorStepGradientComponent, G as ComboBox, H as ComboBoxPropertyLine, I as ComputedProperty, J as ConstructorFactory, K as ConvertOptions, O as DebugServiceIdentity, Q as DerivedProperty, R as DetachDebugLayer, U as DraggableLine, W as Dropdown, X as EntitySelector, Y as ErrorBoundary, Z as ExplorerServiceIdentity, _ as ExtensibleAccordion, $ as FactorGradientComponent, a0 as FactorGradientList, a1 as FileUploadLine, a2 as GetPropertyDescriptor, a3 as GizmoServiceIdentity, a4 as HexPropertyLine, a5 as InfoLabel, a6 as InputHexField, a7 as InputHsvField, a8 as Inspector, a9 as InterceptFunction, aa as InterceptProperty, ab as IsPropertyReadonly, ac as LineContainer, L as Link, ad as LinkPropertyLine, c as LinkToEntity, ae as LinkToEntityPropertyLine, af as List, ag as MakeDialogTeachingMoment, ah as MakeLazyComponent, ai as MakeModularBridge, aj as MakeModularTool, ak as MakePopoverTeachingMoment, al as MakePropertyHook, am as MakeTeachingMoment, an as MaterialSelector, M as MessageBar, ao as NodeSelector, ap as NumberDropdown, aq as NumberDropdownPropertyLine, N as NumberInputPropertyLine, ar as ObservableCollection, as as Pane, at as PlaceholderPropertyLine, P as Popover, au as PositionedPopover, av as PropertiesServiceIdentity, aw as Property, ax as PropertyContext, ay as PropertyLine, az as QuaternionPropertyLine, aA as RotationVectorPropertyLine, f as SceneContextIdentity, aB as SceneExplorerServiceIdentity, aC as SearchBar, aD as SearchBox, aE as SelectionServiceDefinition, g as SelectionServiceIdentity, aF as SettingsServiceIdentity, aG as SettingsStore, aH as SettingsStoreIdentity, S as ShellServiceIdentity, aI as ShowInspector, aJ as SidePaneContainer, aK as SkeletonSelector, aL as Slider, aM as SpinButton, d as SpinButtonPropertyLine, aN as StartInspectable, aO as StatsServiceIdentity, aP as StringDropdown, aQ as StringDropdownPropertyLine, aR as StringifiedPropertyLine, aS as Switch, aT as SwitchPropertyLine, aU as SyncedSliderInput, aV as SyncedSliderPropertyLine, aW as TeachingMoment, aX as TextAreaPropertyLine, aY as TextInput, T as TextInputPropertyLine, aZ as TextPropertyLine, a_ as Textarea, a$ as TextureSelector, b0 as TextureUpload, b1 as Theme, b2 as ThemeServiceIdentity, b3 as ToastProvider, b4 as ToggleButton, k as ToolsServiceIdentity, b5 as Tooltip, b6 as UploadButton, b7 as Vector2PropertyLine, V as Vector3PropertyLine, b8 as Vector4PropertyLine, b9 as WatcherServiceIdentity, ba as inspectorAssetNotFoundHandler, bb as useAngleConverters, bc as useAsyncResource, bd as useColor3Property, be as useColor4Property, bf as useEventListener, bg as useEventfulState, b as useInterceptObservable, bh as useKeyListener, bi as useKeyState, bj as useObservableCollection, h as useObservableState, bk as useOrderedObservableCollection, bl as usePollingObservable, e as useProperty, bm as usePropertyChangedNotifier, bn as useQuaternionProperty, bo as useResource, bp as useTheme, bq as useThemeMode, a as useToast, br as useVector3Property } from './index-DvyGGbVg.js';
|
|
2
|
+
import '@babylonjs/core/Misc/observable.js';
|
|
2
3
|
import 'react/jsx-runtime';
|
|
3
4
|
import 'react';
|
|
4
5
|
import '@fluentui/react-components';
|
|
5
6
|
import '@fluentui/react-icons';
|
|
6
|
-
import '@babylonjs/core/Maths/math.color.js';
|
|
7
|
-
import '@babylonjs/core/Maths/math.vector.js';
|
|
8
|
-
import '@babylonjs/core/Misc/observable.js';
|
|
9
|
-
import '@babylonjs/core/Misc/typeStore.js';
|
|
10
7
|
import '@babylonjs/core/Misc/dataStorage.js';
|
|
11
|
-
import '@babylonjs/core/Misc/logger.js';
|
|
12
|
-
import '@fluentui/react-motion-components-preview';
|
|
13
8
|
import '@babylonjs/core/Misc/asyncLock.js';
|
|
14
9
|
import '@babylonjs/core/Misc/deferred.js';
|
|
15
10
|
import '@fluentui-contrib/react-resize-handle';
|
|
16
|
-
import '@fluentui
|
|
11
|
+
import '@fluentui/react-motion-components-preview';
|
|
12
|
+
import '@babylonjs/core/Misc/logger.js';
|
|
13
|
+
import 'react-dom/client';
|
|
14
|
+
import '@babylonjs/core/Maths/math.color.js';
|
|
15
|
+
import '@babylonjs/core/Maths/math.vector.js';
|
|
17
16
|
import '@babylonjs/core/Misc/uniqueIdGenerator.js';
|
|
17
|
+
import '@fluentui-contrib/react-virtualizer';
|
|
18
18
|
import '@babylonjs/addons/msdfText/fontAsset.js';
|
|
19
19
|
import '@babylonjs/addons/msdfText/textRenderer.js';
|
|
20
20
|
import '@babylonjs/core/Debug/physicsViewer.js';
|
|
@@ -35,7 +35,6 @@ import '@babylonjs/core/Misc/PerformanceViewer/performanceViewerSceneExtension.j
|
|
|
35
35
|
import '@babylonjs/core/Misc/pressureObserverWrapper.js';
|
|
36
36
|
import '@babylonjs/core/Maths/math.scalar.js';
|
|
37
37
|
import '@babylonjs/core/Misc/PerformanceViewer/performanceViewerCollector.js';
|
|
38
|
-
import '@babylonjs/core/Maths/math.scalar.functions.js';
|
|
39
38
|
import '@babylonjs/core/Engines/abstractEngine.js';
|
|
40
39
|
import '@babylonjs/core/Bones/bone.js';
|
|
41
40
|
import '@babylonjs/core/Cameras/camera.js';
|
|
@@ -47,10 +46,14 @@ import '@babylonjs/core/Gizmos/spatialAudioGizmo.js';
|
|
|
47
46
|
import '@babylonjs/core/Lights/light.js';
|
|
48
47
|
import '@babylonjs/core/Meshes/abstractMesh.js';
|
|
49
48
|
import '@babylonjs/core/node.js';
|
|
50
|
-
import 'react-dom/client';
|
|
51
49
|
import '@babylonjs/core/Misc/screenshotTools.js';
|
|
52
50
|
import '@babylonjs/core/Layers/selectionOutlineLayer.js';
|
|
53
51
|
import '@babylonjs/core/Meshes/GaussianSplatting/gaussianSplattingMesh.js';
|
|
52
|
+
import '@babylonjs/core/SmartAssets/smartAssetManager.pure.js';
|
|
53
|
+
import '@babylonjs/core/Loading/Plugins/babylonFileLoader.js';
|
|
54
|
+
import '@babylonjs/core/Meshes/mesh.js';
|
|
55
|
+
import '@babylonjs/core/Misc/sceneSerializer.js';
|
|
56
|
+
import '@babylonjs/core/SmartAssets/smartAssetSerializer.js';
|
|
54
57
|
import '@babylonjs/core/Animations/animationGroup.js';
|
|
55
58
|
import '@babylonjs/core/Animations/animation.js';
|
|
56
59
|
import '@babylonjs/core/Animations/animationPropertiesOverride.js';
|
|
@@ -69,9 +72,9 @@ import '@babylonjs/core/Cameras/freeCamera.js';
|
|
|
69
72
|
import '@babylonjs/core/Cameras/geospatialCamera.js';
|
|
70
73
|
import '@babylonjs/core/Cameras/targetCamera.js';
|
|
71
74
|
import '@babylonjs/core/scene.js';
|
|
75
|
+
import '@babylonjs/core/FlowGraph/flowGraph.js';
|
|
72
76
|
import '@babylonjs/core/FrameGraph/frameGraph.js';
|
|
73
77
|
import '@babylonjs/core/FrameGraph/Node/nodeRenderGraph.js';
|
|
74
|
-
import '@babylonjs/core/FlowGraph/flowGraph.js';
|
|
75
78
|
import '@babylonjs/core/Lights/Clustered/clusteredLightContainer.js';
|
|
76
79
|
import '@babylonjs/core/Lights/directionalLight.js';
|
|
77
80
|
import '@babylonjs/core/Lights/hemisphericLight.js';
|
|
@@ -98,7 +101,6 @@ import '@babylonjs/core/Materials/PBR/pbrMaterial.js';
|
|
|
98
101
|
import '@babylonjs/core/Materials/Node/Blocks/gradientBlock.js';
|
|
99
102
|
import '@babylonjs/core/Materials/Node/Enums/nodeMaterialBlockConnectionPointTypes.js';
|
|
100
103
|
import '@babylonjs/core/Misc/gradients.js';
|
|
101
|
-
import '@babylonjs/core/Meshes/mesh.js';
|
|
102
104
|
import '@babylonjs/core/Debug/skeletonViewer.js';
|
|
103
105
|
import '@babylonjs/core/Meshes/buffer.js';
|
|
104
106
|
import '@babylonjs/core/Meshes/Builders/linesBuilder.js';
|
|
@@ -137,6 +139,7 @@ import '@babylonjs/core/Maths/colorTemperature.functions.js';
|
|
|
137
139
|
import '@babylonjs/core/Bones/skeleton.js';
|
|
138
140
|
import '@babylonjs/core/Sprites/sprite.js';
|
|
139
141
|
import '@babylonjs/core/Sprites/spriteManager.js';
|
|
142
|
+
import '@babylonjs/core/Maths/math.scalar.functions.js';
|
|
140
143
|
import '@babylonjs/core/Misc/textureTools.js';
|
|
141
144
|
import '@babylonjs/core/Events/keyboardEvents.js';
|
|
142
145
|
import '@babylonjs/core/Events/pointerEvents.js';
|
|
@@ -150,7 +153,6 @@ import '@babylonjs/core/Materials/Textures/renderTargetTexture.js';
|
|
|
150
153
|
import '@babylonjs/core/Materials/Textures/thinTexture.js';
|
|
151
154
|
import '@babylonjs/core/AudioV2/abstractAudio/mainAudioBus.js';
|
|
152
155
|
import '@babylonjs/core/FlowGraph/flowGraphCoordinator.js';
|
|
153
|
-
import '@babylonjs/core/SmartAssets/smartAssetManager.pure.js';
|
|
154
156
|
import '@babylonjs/core/Rendering/boundingBoxRenderer.js';
|
|
155
157
|
import '@babylonjs/core/PostProcesses/RenderPipeline/postProcessRenderPipelineManagerSceneComponent.js';
|
|
156
158
|
import '@babylonjs/core/Sprites/spriteSceneComponent.js';
|
|
@@ -158,10 +160,7 @@ import '@babylonjs/core/Materials/Textures/dynamicTexture.js';
|
|
|
158
160
|
import '@babylonjs/core/Misc/equirectangularCapture.js';
|
|
159
161
|
import '@babylonjs/core/Misc/sceneRecorder.js';
|
|
160
162
|
import '@babylonjs/core/Misc/videoRecorder.js';
|
|
161
|
-
import '@babylonjs/core/Misc/sceneSerializer.js';
|
|
162
163
|
import '@babylonjs/core/Misc/environmentTextureTools.js';
|
|
163
|
-
import '@babylonjs/core/Loading/Plugins/babylonFileLoader.js';
|
|
164
|
-
import '@babylonjs/core/SmartAssets/smartAssetSerializer.js';
|
|
165
164
|
import '@babylonjs/core/Loading/sceneLoader.js';
|
|
166
165
|
import '@babylonjs/core/Misc/filesInput.js';
|
|
167
166
|
import '@babylonjs/loaders/glTF/2.0/glTFLoaderExtensionRegistry.js';
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { type IReadonlyObservable } from "@babylonjs/core/index.js";
|
|
2
|
+
import { type ModularToolOptions } from "@babylonjs/shared-ui-components/modularTool/modularTool.js";
|
|
3
|
+
type LayoutMode = "inline" | "overlay";
|
|
4
|
+
/**
|
|
5
|
+
* Options for configuring the inspector.
|
|
6
|
+
*/
|
|
7
|
+
export type InspectorOptions = Omit<ModularToolOptions, "namespace" | "toolbarMode"> & {
|
|
8
|
+
/**
|
|
9
|
+
* Whether to automatically resize the engine when the inspector layout changes. Defaults to true.
|
|
10
|
+
*/
|
|
11
|
+
autoResizeEngine?: boolean;
|
|
12
|
+
/**
|
|
13
|
+
* The layout mode for the inspector.
|
|
14
|
+
* - "inline": The inspector is embedded within the same container as the rendering canvas, and re-hosts the canvas.
|
|
15
|
+
* - "overlay": The inspector is rendered as an overlay on top of the rendering canvas.
|
|
16
|
+
* Defaults to "overlay".
|
|
17
|
+
*/
|
|
18
|
+
layoutMode?: LayoutMode;
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* A token returned by `ShowInspector` that can be used to dispose the inspector and observe its disposal.
|
|
22
|
+
*/
|
|
23
|
+
export type InspectorToken = {
|
|
24
|
+
/**
|
|
25
|
+
* Disposes the inspector. The returned promise resolves once all cleanup
|
|
26
|
+
* (including asynchronous React unmount and ServiceContainer disposal) is complete.
|
|
27
|
+
*/
|
|
28
|
+
dispose(): Promise<void>;
|
|
29
|
+
/**
|
|
30
|
+
* Whether the inspector has been disposed.
|
|
31
|
+
*/
|
|
32
|
+
readonly isDisposed: boolean;
|
|
33
|
+
/**
|
|
34
|
+
* An observable that fires when the inspector is disposed.
|
|
35
|
+
*/
|
|
36
|
+
readonly onDisposed: IReadonlyObservable<void>;
|
|
37
|
+
};
|
|
38
|
+
export {};
|
package/lib/inspector.d.ts
CHANGED
|
@@ -1,41 +1,6 @@
|
|
|
1
|
-
import { type
|
|
2
|
-
import { type
|
|
3
|
-
type
|
|
4
|
-
/**
|
|
5
|
-
* Options for configuring the inspector.
|
|
6
|
-
*/
|
|
7
|
-
export type InspectorOptions = Omit<ModularToolOptions, "namespace" | "toolbarMode"> & {
|
|
8
|
-
/**
|
|
9
|
-
* Whether to automatically resize the engine when the inspector layout changes. Defaults to true.
|
|
10
|
-
*/
|
|
11
|
-
autoResizeEngine?: boolean;
|
|
12
|
-
/**
|
|
13
|
-
* The layout mode for the inspector.
|
|
14
|
-
* - "inline": The inspector is embedded within the same container as the rendering canvas, and re-hosts the canvas.
|
|
15
|
-
* - "overlay": The inspector is rendered as an overlay on top of the rendering canvas.
|
|
16
|
-
* Defaults to "overlay".
|
|
17
|
-
*/
|
|
18
|
-
layoutMode?: LayoutMode;
|
|
19
|
-
};
|
|
20
|
-
/**
|
|
21
|
-
* A token returned by {@link ShowInspector} that can be used to dispose the inspector
|
|
22
|
-
* and observe its disposal.
|
|
23
|
-
*/
|
|
24
|
-
export type InspectorToken = {
|
|
25
|
-
/**
|
|
26
|
-
* Disposes the inspector. The returned promise resolves once all cleanup
|
|
27
|
-
* (including asynchronous React unmount and ServiceContainer disposal) is complete.
|
|
28
|
-
*/
|
|
29
|
-
dispose(): Promise<void>;
|
|
30
|
-
/**
|
|
31
|
-
* Whether the inspector has been disposed.
|
|
32
|
-
*/
|
|
33
|
-
readonly isDisposed: boolean;
|
|
34
|
-
/**
|
|
35
|
-
* An observable that fires when the inspector is disposed.
|
|
36
|
-
*/
|
|
37
|
-
readonly onDisposed: IReadonlyObservable<void>;
|
|
38
|
-
};
|
|
1
|
+
import { type Scene } from "@babylonjs/core/index.js";
|
|
2
|
+
import { type InspectorOptions, type InspectorToken } from "./inspector.common";
|
|
3
|
+
export type { InspectorOptions, InspectorToken } from "./inspector.common";
|
|
39
4
|
/**
|
|
40
5
|
* Shows the inspector for the specified scene.
|
|
41
6
|
* @param scene The scene to inspect.
|
|
@@ -43,4 +8,3 @@ export type InspectorToken = {
|
|
|
43
8
|
* @returns An {@link InspectorToken} that can be disposed to hide the inspector.
|
|
44
9
|
*/
|
|
45
10
|
export declare function ShowInspector(scene: Scene, options?: Partial<InspectorOptions>): InspectorToken;
|
|
46
|
-
export {};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { type WeaklyTypedServiceDefinition, type ServiceContainer } from "@babylonjs/shared-ui-components/modularTool/modularity/serviceContainer.js";
|
|
2
|
+
import { type ModularToolOptions } from "@babylonjs/shared-ui-components/modularTool/modularTool.js";
|
|
3
|
+
import { type InspectorOptions, type InspectorToken } from "./inspector.common";
|
|
4
|
+
type DisposeAction = () => void | Promise<void>;
|
|
5
|
+
type InspectorProductConfiguration = {
|
|
6
|
+
serviceDefinitions: readonly WeaklyTypedServiceDefinition[];
|
|
7
|
+
parentContainer?: ServiceContainer;
|
|
8
|
+
extensionFeeds?: ModularToolOptions["extensionFeeds"];
|
|
9
|
+
dispose?: DisposeAction;
|
|
10
|
+
};
|
|
11
|
+
type InspectorHostConfiguration = {
|
|
12
|
+
renderingCanvas: HTMLCanvasElement | null;
|
|
13
|
+
resize: () => void;
|
|
14
|
+
startAutoResize?: () => DisposeAction;
|
|
15
|
+
initialize: (options: Readonly<Partial<InspectorOptions>>) => InspectorProductConfiguration;
|
|
16
|
+
registerTargetDisposed?: (disposeInspector: () => void) => DisposeAction;
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* Hosts a product-specific Inspector configuration using the shared Inspector lifecycle and layout.
|
|
20
|
+
* @param target The object associated with this Inspector instance.
|
|
21
|
+
* @param options Inspector hosting and modular tool options.
|
|
22
|
+
* @param configuration Product-specific services and engine lifecycle behavior.
|
|
23
|
+
* @returns A token that can be disposed to hide Inspector.
|
|
24
|
+
*/
|
|
25
|
+
export declare function _ShowInspector(target: object, options: Partial<InspectorOptions>, configuration: InspectorHostConfiguration): InspectorToken;
|
|
26
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { type ArcRotateCamera, type Camera, type FreeCamera } from "@babylonjs/lite";
|
|
2
|
+
import { type FunctionComponent } from "react";
|
|
3
|
+
export declare const CameraGeneralProperties: FunctionComponent<{
|
|
4
|
+
camera: Camera;
|
|
5
|
+
}>;
|
|
6
|
+
export declare const FreeCameraTransformProperties: FunctionComponent<{
|
|
7
|
+
camera: FreeCamera;
|
|
8
|
+
}>;
|
|
9
|
+
export declare const ArcRotateCameraTransformProperties: FunctionComponent<{
|
|
10
|
+
camera: ArcRotateCamera;
|
|
11
|
+
}>;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { type DirectionalLight, type HemisphericLight, type LightBase, type PointLight, type SpotLight, type Vec3 } from "@babylonjs/lite";
|
|
2
|
+
import { type FunctionComponent } from "react";
|
|
3
|
+
type DirtyVector = Vec3 & {
|
|
4
|
+
set(x: number, y: number, z: number): void;
|
|
5
|
+
};
|
|
6
|
+
type LightPropertyTarget = ({
|
|
7
|
+
direction: DirtyVector;
|
|
8
|
+
} | {
|
|
9
|
+
position: DirtyVector;
|
|
10
|
+
}) & object;
|
|
11
|
+
/**
|
|
12
|
+
* Updates a plain Babylon Lite light property and marks its GPU light data dirty through a public observable transform.
|
|
13
|
+
* @param light The light to update.
|
|
14
|
+
* @param propertyKey The property to update.
|
|
15
|
+
* @param value The new property value.
|
|
16
|
+
*/
|
|
17
|
+
export declare function SetLightProperty<T extends LightPropertyTarget, K extends keyof T>(light: T, propertyKey: K, value: T[K]): void;
|
|
18
|
+
export declare const LightGeneralProperties: FunctionComponent<{
|
|
19
|
+
light: LightBase;
|
|
20
|
+
}>;
|
|
21
|
+
export declare const DirectionalLightSetupProperties: FunctionComponent<{
|
|
22
|
+
light: DirectionalLight;
|
|
23
|
+
}>;
|
|
24
|
+
export declare const PointLightSetupProperties: FunctionComponent<{
|
|
25
|
+
light: PointLight;
|
|
26
|
+
}>;
|
|
27
|
+
export declare const SpotLightSetupProperties: FunctionComponent<{
|
|
28
|
+
light: SpotLight;
|
|
29
|
+
}>;
|
|
30
|
+
export declare const HemisphericLightSetupProperties: FunctionComponent<{
|
|
31
|
+
light: HemisphericLight;
|
|
32
|
+
}>;
|
|
33
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { type SceneNode } from "@babylonjs/lite";
|
|
2
|
+
import { type FunctionComponent } from "react";
|
|
3
|
+
export declare const SceneNodeGeneralProperties: FunctionComponent<{
|
|
4
|
+
node: SceneNode;
|
|
5
|
+
}>;
|
|
6
|
+
export declare const SceneNodeTransformProperties: FunctionComponent<{
|
|
7
|
+
node: SceneNode;
|
|
8
|
+
}>;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { type EngineContext } from "@babylonjs/lite";
|
|
2
|
+
import { type IService } from "@babylonjs/shared-ui-components/modularTool/modularity/serviceDefinition.js";
|
|
3
|
+
/**
|
|
4
|
+
* The unique identity symbol for the Babylon Lite engine context service.
|
|
5
|
+
*/
|
|
6
|
+
export declare const EngineContextIdentity: unique symbol;
|
|
7
|
+
/**
|
|
8
|
+
* EngineContext provides the Babylon Lite engine being inspected. It is the Babylon Lite counterpart of
|
|
9
|
+
* `ISceneContext` (which provides the current `Scene` to Babylon.js Inspector services), and it is the
|
|
10
|
+
* shared dependency for all Babylon Lite specific Inspector services.
|
|
11
|
+
*
|
|
12
|
+
* The engine is fixed for the lifetime of the Inspector session (a new Inspector is created for each
|
|
13
|
+
* engine), so unlike `ISceneContext` there is no change observable.
|
|
14
|
+
*/
|
|
15
|
+
export interface IEngineContext extends IService<typeof EngineContextIdentity> {
|
|
16
|
+
/**
|
|
17
|
+
* Gets the Babylon Lite engine being inspected.
|
|
18
|
+
*/
|
|
19
|
+
readonly engine: EngineContext;
|
|
20
|
+
}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { type RenderingContext } from "@babylonjs/lite";
|
|
2
|
+
import { type ComponentType } from "react";
|
|
3
|
+
import { type IDisposable } from "@babylonjs/core/index.js";
|
|
4
|
+
import { type ExplorerDisplayInfo, type ExplorerNodeDescription } from "../components/explorer/explorerModel";
|
|
5
|
+
import { type IService, type ServiceDefinition } from "@babylonjs/shared-ui-components/modularTool/modularity/serviceDefinition.js";
|
|
6
|
+
import { type IShellService } from "@babylonjs/shared-ui-components/modularTool/services/shellService.js";
|
|
7
|
+
import { type IExplorerService } from "../services/panes/explorer/explorerService";
|
|
8
|
+
import { type ISelectionService } from "../services/selectionService";
|
|
9
|
+
import { type IWatcherService } from "../services/watcherService";
|
|
10
|
+
import { type IEngineContext } from "./engineContext";
|
|
11
|
+
/**
|
|
12
|
+
* The unique identity symbol for the Babylon Lite engine explorer service.
|
|
13
|
+
* @experimental
|
|
14
|
+
*/
|
|
15
|
+
export declare const EngineExplorerServiceIdentity: unique symbol;
|
|
16
|
+
/**
|
|
17
|
+
* Contributes child nodes beneath a compatible Babylon Lite rendering context.
|
|
18
|
+
* @experimental
|
|
19
|
+
*/
|
|
20
|
+
export type RenderingContextNodeProvider<T extends RenderingContext> = Readonly<{
|
|
21
|
+
/** Controls this provider's position relative to other providers. */
|
|
22
|
+
order?: number;
|
|
23
|
+
/** Returns whether this provider supports the rendering context. */
|
|
24
|
+
predicate: (context: RenderingContext) => context is T;
|
|
25
|
+
/** Gets the Explorer nodes contributed beneath the rendering context. */
|
|
26
|
+
getNodes: (context: T) => readonly ExplorerNodeDescription[];
|
|
27
|
+
/** Gets the object identities used to detect changes in the contributed nodes. */
|
|
28
|
+
getSnapshot: (context: T) => readonly object[];
|
|
29
|
+
}>;
|
|
30
|
+
/**
|
|
31
|
+
* Overrides presentation for a Babylon Lite rendering context node.
|
|
32
|
+
* @experimental
|
|
33
|
+
*/
|
|
34
|
+
export type RenderingContextPresentation<T extends RenderingContext = RenderingContext> = Readonly<{
|
|
35
|
+
/** Gets display information for the rendering context node. */
|
|
36
|
+
getDisplayInfo?: () => ExplorerDisplayInfo;
|
|
37
|
+
/** Overrides the icon rendered for the node. The icon receives the Rendering Context subtype matched by the provider. */
|
|
38
|
+
icon?: ComponentType<{
|
|
39
|
+
entity: T;
|
|
40
|
+
}>;
|
|
41
|
+
}>;
|
|
42
|
+
/**
|
|
43
|
+
* Contributes presentation for a compatible Babylon Lite rendering context.
|
|
44
|
+
* @experimental
|
|
45
|
+
*/
|
|
46
|
+
export type RenderingContextPresentationProvider<T extends RenderingContext> = Readonly<{
|
|
47
|
+
/** Returns whether this provider supports the rendering context. */
|
|
48
|
+
predicate: (context: RenderingContext) => context is T;
|
|
49
|
+
/** Gets partial presentation that overrides the built-in rendering context presentation. */
|
|
50
|
+
getPresentation: (context: T) => RenderingContextPresentation<T>;
|
|
51
|
+
}>;
|
|
52
|
+
/**
|
|
53
|
+
* Allows product-specific services to contribute hierarchy beneath Babylon Lite rendering contexts.
|
|
54
|
+
* @experimental
|
|
55
|
+
*/
|
|
56
|
+
export interface IEngineExplorerService extends IService<typeof EngineExplorerServiceIdentity> {
|
|
57
|
+
/**
|
|
58
|
+
* Adds a provider that contributes child nodes beneath compatible rendering contexts.
|
|
59
|
+
* @param provider The node provider to add.
|
|
60
|
+
* @returns A disposable that removes the provider.
|
|
61
|
+
*/
|
|
62
|
+
addRenderingContextNodeProvider<T extends RenderingContext>(provider: RenderingContextNodeProvider<T>): IDisposable;
|
|
63
|
+
/**
|
|
64
|
+
* Adds a provider that controls how compatible rendering context nodes are presented.
|
|
65
|
+
* The last registered matching provider takes precedence.
|
|
66
|
+
* @param provider The presentation provider to add.
|
|
67
|
+
* @returns A disposable that removes the provider.
|
|
68
|
+
*/
|
|
69
|
+
addRenderingContextPresentationProvider<T extends RenderingContext>(provider: RenderingContextPresentationProvider<T>): IDisposable;
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* Owns the "Explorer" pane of the Babylon Lite Inspector, which displays the engine hierarchy
|
|
73
|
+
* (rendering contexts of the primary surface, and any auxiliary surfaces and their contexts).
|
|
74
|
+
*/
|
|
75
|
+
export declare const EngineExplorerServiceDefinition: ServiceDefinition<[IEngineExplorerService, IExplorerService], [IEngineContext, IShellService, ISelectionService, IWatcherService]>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { type ServiceDefinition } from "@babylonjs/shared-ui-components/modularTool/modularity/serviceDefinition.js";
|
|
2
|
+
import { type ISelectionService } from "../services/selectionService";
|
|
3
|
+
import { type IEngineContext } from "./engineContext";
|
|
4
|
+
/**
|
|
5
|
+
* Selects the engine by default when the Babylon Lite Inspector starts.
|
|
6
|
+
*
|
|
7
|
+
* The selection service itself is product agnostic (it starts with no selection), so this Babylon Lite
|
|
8
|
+
* specific service owns the notion of "the engine is what is selected when nothing else is". It does not
|
|
9
|
+
* produce a service contract: it only wires the engine context to the selection service at startup.
|
|
10
|
+
*/
|
|
11
|
+
export declare const EngineSelectionServiceDefinition: ServiceDefinition<[], [IEngineContext, ISelectionService]>;
|