@babylonjs/inspector 9.24.0 → 9.26.0

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.
Files changed (56) hide show
  1. package/bin/inspector-bridge.mjs +3 -1
  2. package/bin/inspector-cli.mjs +3 -1
  3. package/lib/components/explorer/explorer.d.ts +40 -0
  4. package/lib/components/{scene/sceneExplorerDragDrop.d.ts → explorer/explorerDragDrop.d.ts} +8 -8
  5. package/lib/components/explorer/explorerModel.d.ts +359 -0
  6. package/lib/components/properties/boundProperty.d.ts +15 -0
  7. package/lib/components/scene/sceneExplorer.d.ts +10 -124
  8. package/lib/contexts/watcherContext.d.ts +11 -0
  9. package/lib/{extensionsListService-CKrN2x5A.js → extensionsListService-DVpZa3gV.js} +14 -14
  10. package/lib/{extensionsListService-CKrN2x5A.js.map → extensionsListService-DVpZa3gV.js.map} +1 -1
  11. package/lib/hooks/pollingHooks.d.ts +3 -0
  12. package/lib/{index-CgagLRQT.js → index-C5ggNiyY.js} +24160 -23545
  13. package/lib/index-C5ggNiyY.js.map +1 -0
  14. package/lib/index.common.d.ts +88 -0
  15. package/lib/index.d.ts +2 -87
  16. package/lib/index.js +15 -15
  17. package/lib/inspector.common.d.ts +38 -0
  18. package/lib/inspector.d.ts +3 -39
  19. package/lib/inspectorHost.d.ts +26 -0
  20. package/lib/lite/engineContext.d.ts +20 -0
  21. package/lib/lite/engineExplorerService.d.ts +75 -0
  22. package/lib/lite/engineSelectionService.d.ts +11 -0
  23. package/lib/lite/explorerDisplayInfo.d.ts +12 -0
  24. package/lib/lite/extensionsListService-xgITNk9y.js +216 -0
  25. package/lib/lite/extensionsListService-xgITNk9y.js.map +1 -0
  26. package/lib/lite/index-DmQN3QdU.js +8518 -0
  27. package/lib/lite/index-DmQN3QdU.js.map +1 -0
  28. package/lib/lite/index.d.ts +6 -0
  29. package/lib/lite/index.js +21 -0
  30. package/lib/lite/index.js.map +1 -0
  31. package/lib/lite/inspector.d.ts +9 -0
  32. package/lib/lite/services/panes/properties/enginePropertiesService.d.ts +4 -0
  33. package/lib/lite/services/panes/properties/materialPropertiesService.d.ts +3 -0
  34. package/lib/lite/services/panes/properties/meshPropertiesService.d.ts +3 -0
  35. package/lib/lite/services/panes/properties/renderingContextPropertiesService.d.ts +4 -0
  36. package/lib/lite/services/panes/properties/textLayerPropertiesService.d.ts +4 -0
  37. package/lib/lite/services/panes/properties/texturePropertiesService.d.ts +3 -0
  38. package/lib/lite/services/panes/scene/materialExplorerService.d.ts +4 -0
  39. package/lib/lite/services/panes/scene/meshExplorerService.d.ts +4 -0
  40. package/lib/lite/services/panes/scene/sceneExplorerSection.d.ts +21 -0
  41. package/lib/lite/services/panes/scene/sceneResources.d.ts +13 -0
  42. package/lib/lite/services/panes/scene/textLayerExplorerService.d.ts +3 -0
  43. package/lib/lite/services/panes/scene/textureExplorerService.d.ts +3 -0
  44. package/lib/{quickCreateToolsService-C-GqDTqc.js → quickCreateToolsService-0rVa_CjZ.js} +14 -14
  45. package/lib/{quickCreateToolsService-C-GqDTqc.js.map → quickCreateToolsService-0rVa_CjZ.js.map} +1 -1
  46. package/lib/{reflectorService-CPunL_Qs.js → reflectorService-pyDncbYA.js} +16 -16
  47. package/lib/{reflectorService-CPunL_Qs.js.map → reflectorService-pyDncbYA.js.map} +1 -1
  48. package/lib/services/panes/explorer/explorerPane.d.ts +79 -0
  49. package/lib/services/panes/explorer/explorerService.d.ts +80 -0
  50. package/lib/services/panes/scene/sceneExplorerService.d.ts +7 -2
  51. package/lib/services/sceneSelectionService.d.ts +11 -0
  52. package/lib/services/selectionService.d.ts +5 -2
  53. package/lib/services/watcherService.d.ts +46 -3
  54. package/package.json +12 -1
  55. package/readme.md +10 -0
  56. 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 * from "@babylonjs/shared-ui-components/modularTool/services/settingsStore.js";
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,22 @@
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 ConstructorFactory, J as ConvertOptions, K as DebugServiceIdentity, O as DetachDebugLayer, Q as DraggableLine, R as Dropdown, U as EntitySelector, W as ErrorBoundary, X as ExtensibleAccordion, Y as FactorGradientComponent, Z as FactorGradientList, _ as FileUploadLine, $ as GetPropertyDescriptor, a0 as GizmoServiceIdentity, a1 as HexPropertyLine, a2 as InfoLabel, a3 as InputHexField, a4 as InputHsvField, 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 MakeModularBridge, ag as MakeModularTool, ah as MakePopoverTeachingMoment, ai as MakePropertyHook, aj as MakeTeachingMoment, ak as MaterialSelector, M as MessageBar, al as NodeSelector, am as NumberDropdown, an as NumberDropdownPropertyLine, N as NumberInputPropertyLine, ao as ObservableCollection, ap as Pane, aq as PlaceholderPropertyLine, P as Popover, ar as PositionedPopover, as as PropertiesServiceIdentity, at as Property, au as PropertyContext, av as PropertyLine, aw as QuaternionPropertyLine, ax as RotationVectorPropertyLine, f as SceneContextIdentity, ay as SceneExplorerServiceIdentity, az as SearchBar, aA as SearchBox, aB as SelectionServiceDefinition, g as SelectionServiceIdentity, aC as SettingsServiceIdentity, aD as SettingsStore, aE as SettingsStoreIdentity, S as ShellServiceIdentity, aF as ShowInspector, aG as SidePaneContainer, aH as SkeletonSelector, aI as Slider, aJ as SpinButton, d as SpinButtonPropertyLine, aK as StartInspectable, aL as StatsServiceIdentity, aM as StringDropdown, aN as StringDropdownPropertyLine, aO as StringifiedPropertyLine, aP as Switch, aQ as SwitchPropertyLine, aR as SyncedSliderInput, aS as SyncedSliderPropertyLine, aT as TeachingMoment, aU as TextAreaPropertyLine, aV as TextInput, T as TextInputPropertyLine, aW as TextPropertyLine, aX as Textarea, aY as TextureSelector, aZ as TextureUpload, a_ as Theme, a$ as ThemeServiceIdentity, b0 as ToastProvider, b1 as ToggleButton, k as ToolsServiceIdentity, b2 as Tooltip, b3 as UploadButton, b4 as Vector2PropertyLine, V as Vector3PropertyLine, b5 as Vector4PropertyLine, b6 as WatcherServiceIdentity, b7 as inspectorAssetNotFoundHandler, b8 as useAngleConverters, b9 as useAsyncResource, ba as useColor3Property, bb as useColor4Property, bc as useEventListener, bd as useEventfulState, b as useInterceptObservable, be as useKeyListener, bf as useKeyState, bg as useObservableCollection, h as useObservableState, bh as useOrderedObservableCollection, bi as usePollingObservable, e as useProperty, bj as usePropertyChangedNotifier, bk as useQuaternionProperty, bl as useResource, bm as useTheme, bn as useThemeMode, a as useToast, bo as useVector3Property } from './index-CgagLRQT.js';
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 DetachDebugLayer, R as DraggableLine, U as Dropdown, W as EntitySelector, X as ErrorBoundary, Y as ExplorerServiceIdentity, Z as ExtensibleAccordion, _ as FactorGradientComponent, $ as FactorGradientList, a0 as FileUploadLine, a1 as GetPropertyDescriptor, a2 as GizmoServiceIdentity, a3 as HexPropertyLine, a4 as InfoLabel, a5 as InputHexField, a6 as InputHsvField, a7 as Inspector, a8 as InterceptFunction, a9 as InterceptProperty, aa as IsPropertyReadonly, ab as LineContainer, L as Link, ac as LinkPropertyLine, c as LinkToEntity, ad as LinkToEntityPropertyLine, ae as List, af as MakeDialogTeachingMoment, ag as MakeLazyComponent, ah as MakeModularBridge, ai as MakeModularTool, aj as MakePopoverTeachingMoment, ak as MakePropertyHook, al as MakeTeachingMoment, am as MaterialSelector, M as MessageBar, an as NodeSelector, ao as NumberDropdown, ap as NumberDropdownPropertyLine, N as NumberInputPropertyLine, aq as ObservableCollection, ar as Pane, as as PlaceholderPropertyLine, P as Popover, at as PositionedPopover, au as PropertiesServiceIdentity, av as Property, aw as PropertyContext, ax as PropertyLine, ay as QuaternionPropertyLine, az as RotationVectorPropertyLine, f as SceneContextIdentity, aA as SceneExplorerServiceIdentity, aB as SearchBar, aC as SearchBox, aD as SelectionServiceDefinition, g as SelectionServiceIdentity, aE as SettingsServiceIdentity, aF as SettingsStore, aG as SettingsStoreIdentity, S as ShellServiceIdentity, aH as ShowInspector, aI as SidePaneContainer, aJ as SkeletonSelector, aK as Slider, aL as SpinButton, d as SpinButtonPropertyLine, aM as StartInspectable, aN as StatsServiceIdentity, aO as StringDropdown, aP as StringDropdownPropertyLine, aQ as StringifiedPropertyLine, aR as Switch, aS as SwitchPropertyLine, aT as SyncedSliderInput, aU as SyncedSliderPropertyLine, aV as TeachingMoment, aW as TextAreaPropertyLine, aX as TextInput, T as TextInputPropertyLine, aY as TextPropertyLine, aZ as Textarea, a_ as TextureSelector, a$ as TextureUpload, b0 as Theme, b1 as ThemeServiceIdentity, b2 as ToastProvider, b3 as ToggleButton, k as ToolsServiceIdentity, b4 as Tooltip, b5 as UploadButton, b6 as Vector2PropertyLine, V as Vector3PropertyLine, b7 as Vector4PropertyLine, b8 as WatcherServiceIdentity, b9 as inspectorAssetNotFoundHandler, ba as useAngleConverters, bb as useAsyncResource, bc as useColor3Property, bd as useColor4Property, be as useEventListener, bf as useEventfulState, b as useInterceptObservable, bg as useKeyListener, bh as useKeyState, bi as useObservableCollection, h as useObservableState, bj as useOrderedObservableCollection, bk as usePollingObservable, e as useProperty, bl as usePropertyChangedNotifier, bm as useQuaternionProperty, bn as useResource, bo as useTheme, bp as useThemeMode, a as useToast, bq as useVector3Property } from './index-C5ggNiyY.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
8
  import '@babylonjs/core/Misc/logger.js';
12
- import '@fluentui/react-motion-components-preview';
13
9
  import '@babylonjs/core/Misc/asyncLock.js';
14
10
  import '@babylonjs/core/Misc/deferred.js';
15
11
  import '@fluentui-contrib/react-resize-handle';
16
- import '@fluentui-contrib/react-virtualizer';
12
+ import '@fluentui/react-motion-components-preview';
13
+ import '@babylonjs/core/Misc/typeStore.js';
14
+ import '@babylonjs/core/Maths/math.scalar.functions.js';
15
+ import 'react-dom/client';
16
+ import '@babylonjs/core/Maths/math.color.js';
17
+ import '@babylonjs/core/Maths/math.vector.js';
17
18
  import '@babylonjs/core/Misc/uniqueIdGenerator.js';
19
+ import '@fluentui-contrib/react-virtualizer';
18
20
  import '@babylonjs/addons/msdfText/fontAsset.js';
19
21
  import '@babylonjs/addons/msdfText/textRenderer.js';
20
22
  import '@babylonjs/core/Debug/physicsViewer.js';
@@ -35,7 +37,6 @@ import '@babylonjs/core/Misc/PerformanceViewer/performanceViewerSceneExtension.j
35
37
  import '@babylonjs/core/Misc/pressureObserverWrapper.js';
36
38
  import '@babylonjs/core/Maths/math.scalar.js';
37
39
  import '@babylonjs/core/Misc/PerformanceViewer/performanceViewerCollector.js';
38
- import '@babylonjs/core/Maths/math.scalar.functions.js';
39
40
  import '@babylonjs/core/Engines/abstractEngine.js';
40
41
  import '@babylonjs/core/Bones/bone.js';
41
42
  import '@babylonjs/core/Cameras/camera.js';
@@ -47,10 +48,14 @@ import '@babylonjs/core/Gizmos/spatialAudioGizmo.js';
47
48
  import '@babylonjs/core/Lights/light.js';
48
49
  import '@babylonjs/core/Meshes/abstractMesh.js';
49
50
  import '@babylonjs/core/node.js';
50
- import 'react-dom/client';
51
51
  import '@babylonjs/core/Misc/screenshotTools.js';
52
52
  import '@babylonjs/core/Layers/selectionOutlineLayer.js';
53
53
  import '@babylonjs/core/Meshes/GaussianSplatting/gaussianSplattingMesh.js';
54
+ import '@babylonjs/core/SmartAssets/smartAssetManager.pure.js';
55
+ import '@babylonjs/core/Loading/Plugins/babylonFileLoader.js';
56
+ import '@babylonjs/core/Meshes/mesh.js';
57
+ import '@babylonjs/core/Misc/sceneSerializer.js';
58
+ import '@babylonjs/core/SmartAssets/smartAssetSerializer.js';
54
59
  import '@babylonjs/core/Animations/animationGroup.js';
55
60
  import '@babylonjs/core/Animations/animation.js';
56
61
  import '@babylonjs/core/Animations/animationPropertiesOverride.js';
@@ -69,9 +74,9 @@ import '@babylonjs/core/Cameras/freeCamera.js';
69
74
  import '@babylonjs/core/Cameras/geospatialCamera.js';
70
75
  import '@babylonjs/core/Cameras/targetCamera.js';
71
76
  import '@babylonjs/core/scene.js';
77
+ import '@babylonjs/core/FlowGraph/flowGraph.js';
72
78
  import '@babylonjs/core/FrameGraph/frameGraph.js';
73
79
  import '@babylonjs/core/FrameGraph/Node/nodeRenderGraph.js';
74
- import '@babylonjs/core/FlowGraph/flowGraph.js';
75
80
  import '@babylonjs/core/Lights/Clustered/clusteredLightContainer.js';
76
81
  import '@babylonjs/core/Lights/directionalLight.js';
77
82
  import '@babylonjs/core/Lights/hemisphericLight.js';
@@ -98,7 +103,6 @@ import '@babylonjs/core/Materials/PBR/pbrMaterial.js';
98
103
  import '@babylonjs/core/Materials/Node/Blocks/gradientBlock.js';
99
104
  import '@babylonjs/core/Materials/Node/Enums/nodeMaterialBlockConnectionPointTypes.js';
100
105
  import '@babylonjs/core/Misc/gradients.js';
101
- import '@babylonjs/core/Meshes/mesh.js';
102
106
  import '@babylonjs/core/Debug/skeletonViewer.js';
103
107
  import '@babylonjs/core/Meshes/buffer.js';
104
108
  import '@babylonjs/core/Meshes/Builders/linesBuilder.js';
@@ -150,7 +154,6 @@ import '@babylonjs/core/Materials/Textures/renderTargetTexture.js';
150
154
  import '@babylonjs/core/Materials/Textures/thinTexture.js';
151
155
  import '@babylonjs/core/AudioV2/abstractAudio/mainAudioBus.js';
152
156
  import '@babylonjs/core/FlowGraph/flowGraphCoordinator.js';
153
- import '@babylonjs/core/SmartAssets/smartAssetManager.pure.js';
154
157
  import '@babylonjs/core/Rendering/boundingBoxRenderer.js';
155
158
  import '@babylonjs/core/PostProcesses/RenderPipeline/postProcessRenderPipelineManagerSceneComponent.js';
156
159
  import '@babylonjs/core/Sprites/spriteSceneComponent.js';
@@ -158,10 +161,7 @@ import '@babylonjs/core/Materials/Textures/dynamicTexture.js';
158
161
  import '@babylonjs/core/Misc/equirectangularCapture.js';
159
162
  import '@babylonjs/core/Misc/sceneRecorder.js';
160
163
  import '@babylonjs/core/Misc/videoRecorder.js';
161
- import '@babylonjs/core/Misc/sceneSerializer.js';
162
164
  import '@babylonjs/core/Misc/environmentTextureTools.js';
163
- import '@babylonjs/core/Loading/Plugins/babylonFileLoader.js';
164
- import '@babylonjs/core/SmartAssets/smartAssetSerializer.js';
165
165
  import '@babylonjs/core/Loading/sceneLoader.js';
166
166
  import '@babylonjs/core/Misc/filesInput.js';
167
167
  import '@babylonjs/loaders/glTF/2.0/glTFLoaderExtensionRegistry.js';
@@ -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 {};
@@ -1,41 +1,6 @@
1
- import { type IReadonlyObservable, type Scene } 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 {@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,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]>;
@@ -0,0 +1,12 @@
1
+ import { type ExplorerDisplayInfo } from "../components/explorer/explorerModel";
2
+ import { type IWatcherService } from "../services/watcherService";
3
+ /**
4
+ * Creates live Explorer display info for an entity whose name is mutable.
5
+ * @param watcherService The service used to observe name changes.
6
+ * @param entity The named entity.
7
+ * @param getDisplayName Gets the current display name, including any fallback.
8
+ * @returns Disposable display info that updates when the entity name changes.
9
+ */
10
+ export declare function CreateWatchedNameDisplayInfo<T extends {
11
+ name?: string;
12
+ }>(watcherService: IWatcherService, entity: T, getDisplayName: () => string): ExplorerDisplayInfo;