@babylonjs/inspector 9.0.0 → 9.1.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 (278) hide show
  1. package/lib/components/curveEditor/bottomBar/rangeSelector.d.ts +6 -0
  2. package/lib/components/curveEditor/bottomBar.d.ts +6 -0
  3. package/lib/components/curveEditor/canvas/canvas.d.ts +6 -0
  4. package/lib/components/curveEditor/canvas/curve.d.ts +14 -0
  5. package/lib/components/curveEditor/canvas/curveData.d.ts +40 -0
  6. package/lib/components/curveEditor/canvas/frameBar.d.ts +12 -0
  7. package/lib/components/curveEditor/canvas/graph.d.ts +11 -0
  8. package/lib/components/curveEditor/canvas/keyPoint.d.ts +34 -0
  9. package/lib/components/curveEditor/canvas/playHead.d.ts +12 -0
  10. package/lib/components/curveEditor/canvas/rangeFrameBar.d.ts +10 -0
  11. package/lib/components/curveEditor/curveEditor.d.ts +29 -0
  12. package/lib/components/curveEditor/curveEditorButton.d.ts +31 -0
  13. package/lib/components/curveEditor/curveEditorColors.d.ts +56 -0
  14. package/lib/components/curveEditor/curveEditorContext.d.ts +267 -0
  15. package/lib/components/curveEditor/rangeSelector.d.ts +6 -0
  16. package/lib/components/curveEditor/sideBar/addAnimationPanel.d.ts +10 -0
  17. package/lib/components/curveEditor/sideBar/animationList.d.ts +6 -0
  18. package/lib/components/curveEditor/sideBar/editAnimationPanel.d.ts +12 -0
  19. package/lib/components/curveEditor/sideBar/loadAnimationPanel.d.ts +10 -0
  20. package/lib/components/curveEditor/sideBar/saveAnimationPanel.d.ts +10 -0
  21. package/lib/components/curveEditor/sideBar.d.ts +6 -0
  22. package/lib/components/curveEditor/topBar.d.ts +6 -0
  23. package/lib/components/debug/debugPane.d.ts +6 -0
  24. package/lib/components/errorBoundary.d.ts +31 -0
  25. package/lib/components/extensibleAccordion.d.ts +67 -0
  26. package/lib/components/gizmoToolbar.d.ts +7 -0
  27. package/lib/components/pane.d.ts +4 -0
  28. package/lib/components/performanceViewer/canvasGraph.d.ts +16 -0
  29. package/lib/components/performanceViewer/canvasGraphService.d.ts +238 -0
  30. package/lib/components/performanceViewer/graphSupportingTypes.d.ts +90 -0
  31. package/lib/components/performanceViewer/performanceSidebar.d.ts +10 -0
  32. package/lib/components/performanceViewer/performanceViewer.d.ts +15 -0
  33. package/lib/components/pickingToolbar.d.ts +11 -0
  34. package/lib/components/properties/animation/animationGroupProperties.d.ts +8 -0
  35. package/lib/components/properties/animation/animationsProperties.d.ts +21 -0
  36. package/lib/components/properties/animation/targetedAnimationProperties.d.ts +7 -0
  37. package/lib/components/properties/atmosphereProperties.d.ts +20 -0
  38. package/lib/components/properties/audio/soundProperties.d.ts +8 -0
  39. package/lib/components/properties/boundProperty.d.ts +80 -0
  40. package/lib/components/properties/cameras/arcRotateCameraProperties.d.ts +17 -0
  41. package/lib/components/properties/cameras/cameraProperties.d.ts +10 -0
  42. package/lib/components/properties/cameras/followCameraProperties.d.ts +8 -0
  43. package/lib/components/properties/cameras/freeCameraProperties.d.ts +11 -0
  44. package/lib/components/properties/cameras/geospatialCameraProperties.d.ts +11 -0
  45. package/lib/components/properties/cameras/targetCameraProperties.d.ts +8 -0
  46. package/lib/components/properties/commonGeneralProperties.d.ts +16 -0
  47. package/lib/components/properties/frameGraph/frameGraphProperties.d.ts +8 -0
  48. package/lib/components/properties/generateCopyString.d.ts +7 -0
  49. package/lib/components/properties/lights/areaLightProperties.d.ts +5 -0
  50. package/lib/components/properties/lights/clusteredLightContainerProperties.d.ts +10 -0
  51. package/lib/components/properties/lights/directionalLightProperties.d.ts +8 -0
  52. package/lib/components/properties/lights/hemisphericLightProperties.d.ts +5 -0
  53. package/lib/components/properties/lights/lightProperties.d.ts +7 -0
  54. package/lib/components/properties/lights/pointLightProperties.d.ts +5 -0
  55. package/lib/components/properties/lights/shadowGeneratorProperties.d.ts +6 -0
  56. package/lib/components/properties/lights/shadowLightProperties.d.ts +5 -0
  57. package/lib/components/properties/lights/spotLightProperties.d.ts +5 -0
  58. package/lib/components/properties/linkToEntityPropertyLine.d.ts +27 -0
  59. package/lib/components/properties/materials/materialProperties.d.ts +11 -0
  60. package/lib/components/properties/materials/multiMaterialProperties.d.ts +7 -0
  61. package/lib/components/properties/materials/nodeMaterialProperties.d.ts +8 -0
  62. package/lib/components/properties/materials/normalMapProperties.d.ts +19 -0
  63. package/lib/components/properties/materials/openpbrMaterialProperties.d.ts +61 -0
  64. package/lib/components/properties/materials/pbrBaseMaterialProperties.d.ts +285 -0
  65. package/lib/components/properties/materials/skyMaterialProperties.d.ts +5 -0
  66. package/lib/components/properties/materials/standardMaterialProperties.d.ts +29 -0
  67. package/lib/components/properties/metadataProperties.d.ts +12 -0
  68. package/lib/components/properties/nodes/abstractMeshProperties.d.ts +27 -0
  69. package/lib/components/properties/nodes/gaussianSplattingProperties.d.ts +5 -0
  70. package/lib/components/properties/nodes/meshProperties.d.ts +11 -0
  71. package/lib/components/properties/nodes/nodeProperties.d.ts +7 -0
  72. package/lib/components/properties/particles/attractor.d.ts +23 -0
  73. package/lib/components/properties/particles/attractorAdapter.d.ts +56 -0
  74. package/lib/components/properties/particles/attractorList.d.ts +15 -0
  75. package/lib/components/properties/particles/attractorProperties.d.ts +11 -0
  76. package/lib/components/properties/particles/colorProperties.d.ts +11 -0
  77. package/lib/components/properties/particles/commandsProperties.d.ts +13 -0
  78. package/lib/components/properties/particles/emissionProperties.d.ts +11 -0
  79. package/lib/components/properties/particles/emitterProperties.d.ts +13 -0
  80. package/lib/components/properties/particles/lifetimeProperties.d.ts +11 -0
  81. package/lib/components/properties/particles/nodeEditorProperties.d.ts +12 -0
  82. package/lib/components/properties/particles/rotationProperties.d.ts +11 -0
  83. package/lib/components/properties/particles/sizeProperties.d.ts +11 -0
  84. package/lib/components/properties/particles/spritesheetProperties.d.ts +11 -0
  85. package/lib/components/properties/particles/systemProperties.d.ts +13 -0
  86. package/lib/components/properties/physics/physicsProperties.d.ts +6 -0
  87. package/lib/components/properties/postProcesses/postProcessProperties.d.ts +10 -0
  88. package/lib/components/properties/propertiesPane.d.ts +2 -0
  89. package/lib/components/properties/renderingPipelines/defaultRenderingPipelineProperties.d.ts +23 -0
  90. package/lib/components/properties/renderingPipelines/iblShadowsRenderPipelineProperties.d.ts +11 -0
  91. package/lib/components/properties/renderingPipelines/lensRenderingPipelineProperties.d.ts +8 -0
  92. package/lib/components/properties/renderingPipelines/postProcessRenderPipelineProperties.d.ts +5 -0
  93. package/lib/components/properties/renderingPipelines/ssao2RenderingPipelineProperties.d.ts +8 -0
  94. package/lib/components/properties/renderingPipelines/ssaoRenderingPipelineProperties.d.ts +5 -0
  95. package/lib/components/properties/renderingPipelines/ssrRenderingPipelineProperties.d.ts +17 -0
  96. package/lib/components/properties/skeleton/boneProperties.d.ts +7 -0
  97. package/lib/components/properties/skeleton/skeletonProperties.d.ts +8 -0
  98. package/lib/components/properties/sprites/spriteManagerProperties.d.ts +25 -0
  99. package/lib/components/properties/sprites/spriteProperties.d.ts +19 -0
  100. package/lib/components/properties/textures/advancedDynamicTextureProperties.d.ts +11 -0
  101. package/lib/components/properties/textures/baseTextureProperties.d.ts +16 -0
  102. package/lib/components/properties/textures/cubeTextureProperties.d.ts +5 -0
  103. package/lib/components/properties/textures/multiRenderTargetProperties.d.ts +5 -0
  104. package/lib/components/properties/textures/renderTargetTextureProperties.d.ts +5 -0
  105. package/lib/components/properties/textures/textureFormatUtils.d.ts +48 -0
  106. package/lib/components/properties/textures/texturePreview.d.ts +17 -0
  107. package/lib/components/properties/textures/textureProperties.d.ts +11 -0
  108. package/lib/components/properties/textures/thinTextureProperties.d.ts +8 -0
  109. package/lib/components/properties/transformProperties.d.ts +11 -0
  110. package/lib/components/scene/sceneExplorer.d.ts +182 -0
  111. package/lib/components/scene/sceneExplorerDragDrop.d.ts +38 -0
  112. package/lib/components/scene/sceneProperties.d.ts +19 -0
  113. package/lib/components/stats/countStats.d.ts +5 -0
  114. package/lib/components/stats/frameStepStats.d.ts +8 -0
  115. package/lib/components/stats/performanceStats.d.ts +6 -0
  116. package/lib/components/stats/statsPane.d.ts +3 -0
  117. package/lib/components/stats/systemStats.d.ts +5 -0
  118. package/lib/components/teachingMoment.d.ts +20 -0
  119. package/lib/components/textureEditor/canvasManager.d.ts +113 -0
  120. package/lib/components/textureEditor/canvasShader.d.ts +10 -0
  121. package/lib/components/textureEditor/channels.d.ts +25 -0
  122. package/lib/components/textureEditor/properties.d.ts +23 -0
  123. package/lib/components/textureEditor/status.d.ts +13 -0
  124. package/lib/components/textureEditor/textureEditor.d.ts +113 -0
  125. package/lib/components/textureEditor/tools.d.ts +20 -0
  126. package/lib/components/theme.d.ts +10 -0
  127. package/lib/components/tools/capture/equirectangularCaptureTool.d.ts +5 -0
  128. package/lib/components/tools/capture/gifCaptureTool.d.ts +7 -0
  129. package/lib/components/tools/capture/sceneReplayTool.d.ts +5 -0
  130. package/lib/components/tools/capture/screenshotTool.d.ts +5 -0
  131. package/lib/components/tools/capture/videoCaptureTool.d.ts +5 -0
  132. package/lib/components/tools/exportTools.d.ts +11 -0
  133. package/lib/components/tools/import/gltfAnimationImportTool.d.ts +5 -0
  134. package/lib/components/tools/import/gltfLoaderOptionsTool.d.ts +8 -0
  135. package/lib/components/tools/import/gltfValidationTool.d.ts +5 -0
  136. package/lib/components/tools/reflectorTools.d.ts +5 -0
  137. package/lib/components/tools/toolsPane.d.ts +3 -0
  138. package/lib/components/uxContextProvider.d.ts +2 -0
  139. package/lib/contexts/extensionManagerContext.d.ts +6 -0
  140. package/lib/contexts/propertyContext.d.ts +30 -0
  141. package/lib/contexts/settingsContext.d.ts +3 -0
  142. package/lib/contexts/watcherContext.d.ts +3 -0
  143. package/lib/extensibility/builtInsExtensionFeed.d.ts +21 -0
  144. package/lib/extensibility/defaultInspectorExtensionFeed.d.ts +5 -0
  145. package/lib/extensibility/extensionFeed.d.ts +113 -0
  146. package/lib/extensibility/extensionManager.d.ts +111 -0
  147. package/lib/extensions/quickCreate/cameras.d.ts +14 -0
  148. package/lib/extensions/quickCreate/frameGraphs.d.ts +14 -0
  149. package/lib/extensions/quickCreate/lights.d.ts +14 -0
  150. package/lib/extensions/quickCreate/materials.d.ts +14 -0
  151. package/lib/extensions/quickCreate/meshes.d.ts +10 -0
  152. package/lib/extensions/quickCreate/particles.d.ts +15 -0
  153. package/lib/extensions/quickCreate/quickCreateLayout.d.ts +44 -0
  154. package/lib/extensions/quickCreate/quickCreateToolsService.d.ts +11 -0
  155. package/lib/extensions/quickCreate/renderingPipelines.d.ts +14 -0
  156. package/lib/extensions/quickCreate/settingsPopover.d.ts +14 -0
  157. package/lib/extensions/quickCreate/spriteManagers.d.ts +14 -0
  158. package/lib/{extensionsListService-zYdKn8uM.js → extensionsListService-BmiNjZiw.js} +7 -7
  159. package/lib/extensionsListService-BmiNjZiw.js.map +1 -0
  160. package/lib/hooks/compoundPropertyHooks.d.ts +24 -0
  161. package/lib/hooks/instrumentationHooks.d.ts +9 -0
  162. package/lib/hooks/observableHooks.d.ts +35 -0
  163. package/lib/hooks/pollingHooks.d.ts +7 -0
  164. package/lib/hooks/resourceHooks.d.ts +20 -0
  165. package/lib/hooks/settingsHooks.d.ts +13 -0
  166. package/lib/hooks/teachingMomentHooks.d.ts +34 -0
  167. package/lib/hooks/themeHooks.d.ts +17 -0
  168. package/lib/hooks/useObservableArray.d.ts +11 -0
  169. package/lib/hooks/useResizeHandle.d.ts +35 -0
  170. package/lib/{index-DuVF9zYN.js → index-BCbXjPTn.js} +791 -758
  171. package/lib/index-BCbXjPTn.js.map +1 -0
  172. package/lib/index.d.ts +108 -74767
  173. package/lib/index.js +5 -5
  174. package/lib/inspector.d.ts +41 -0
  175. package/lib/instrumentation/functionInstrumentation.d.ts +20 -0
  176. package/lib/instrumentation/propertyInstrumentation.d.ts +33 -0
  177. package/lib/legacy/debugLayer.d.ts +24 -0
  178. package/lib/legacy/inspectableCustomPropertiesService.d.ts +3 -0
  179. package/lib/legacy/inspector.d.ts +39 -0
  180. package/lib/legacy/legacy.d.ts +9 -0
  181. package/lib/legacy/propertiesSectionMapping.d.ts +99 -0
  182. package/lib/misc/arrayUtils.d.ts +4 -0
  183. package/lib/misc/assert.d.ts +5 -0
  184. package/lib/misc/graphUtils.d.ts +44 -0
  185. package/lib/misc/nodeGeometryEditor.d.ts +3 -0
  186. package/lib/misc/nodeMaterialEditor.d.ts +2 -0
  187. package/lib/misc/nodeParticleEditor.d.ts +2 -0
  188. package/lib/misc/nodeRenderGraphEditor.d.ts +2 -0
  189. package/lib/misc/observableCollection.d.ts +23 -0
  190. package/lib/misc/snippetUtils.d.ts +74 -0
  191. package/lib/misc/textureTools.d.ts +34 -0
  192. package/lib/modularTool.d.ts +37 -0
  193. package/lib/modularity/serviceContainer.d.ts +41 -0
  194. package/lib/modularity/serviceDefinition.d.ts +64 -0
  195. package/lib/{quickCreateToolsService-BtsSLeMY.js → quickCreateToolsService-BoqrJqoM.js} +6 -6
  196. package/lib/quickCreateToolsService-BoqrJqoM.js.map +1 -0
  197. package/lib/{reflectorService-Bzs-Ykos.js → reflectorService-CFTva2GG.js} +6 -6
  198. package/lib/reflectorService-CFTva2GG.js.map +1 -0
  199. package/lib/services/defaultToolbarMetadata.d.ts +5 -0
  200. package/lib/services/extensionsListService.d.ts +3 -0
  201. package/lib/services/gizmoService.d.ts +84 -0
  202. package/lib/services/gizmoToolbarService.d.ts +5 -0
  203. package/lib/services/globalSettings.d.ts +5 -0
  204. package/lib/services/highlightService.d.ts +8 -0
  205. package/lib/services/miniStatsService.d.ts +4 -0
  206. package/lib/services/panes/debugService.d.ts +25 -0
  207. package/lib/services/panes/properties/animationGroupPropertiesService.d.ts +4 -0
  208. package/lib/services/panes/properties/animationPropertiesService.d.ts +5 -0
  209. package/lib/services/panes/properties/atmospherePropertiesService.d.ts +5 -0
  210. package/lib/services/panes/properties/audioPropertiesService.d.ts +3 -0
  211. package/lib/services/panes/properties/cameraPropertiesService.d.ts +7 -0
  212. package/lib/services/panes/properties/commonPropertiesService.d.ts +3 -0
  213. package/lib/services/panes/properties/effectLayerPropertiesService.d.ts +3 -0
  214. package/lib/services/panes/properties/frameGraphPropertiesService.d.ts +3 -0
  215. package/lib/services/panes/properties/lightPropertiesServices.d.ts +4 -0
  216. package/lib/services/panes/properties/materialPropertiesService.d.ts +4 -0
  217. package/lib/services/panes/properties/metadataPropertiesService.d.ts +3 -0
  218. package/lib/services/panes/properties/nodePropertiesService.d.ts +4 -0
  219. package/lib/services/panes/properties/particleSystemPropertiesService.d.ts +4 -0
  220. package/lib/services/panes/properties/physicsPropertiesService.d.ts +3 -0
  221. package/lib/services/panes/properties/postProcessPropertiesService.d.ts +3 -0
  222. package/lib/services/panes/properties/propertiesService.d.ts +53 -0
  223. package/lib/services/panes/properties/renderingPipelinePropertiesService.d.ts +3 -0
  224. package/lib/services/panes/properties/scenePropertiesService.d.ts +4 -0
  225. package/lib/services/panes/properties/skeletonPropertiesService.d.ts +4 -0
  226. package/lib/services/panes/properties/spritePropertiesService.d.ts +4 -0
  227. package/lib/services/panes/properties/texturePropertiesService.d.ts +4 -0
  228. package/lib/services/panes/properties/transformPropertiesService.d.ts +3 -0
  229. package/lib/services/panes/scene/animationGroupExplorerService.d.ts +5 -0
  230. package/lib/services/panes/scene/atmosphereExplorerService.d.ts +5 -0
  231. package/lib/services/panes/scene/defaultSectionsMetadata.d.ts +33 -0
  232. package/lib/services/panes/scene/disposableCommandService.d.ts +4 -0
  233. package/lib/services/panes/scene/effectLayersExplorerService.d.ts +5 -0
  234. package/lib/services/panes/scene/frameGraphExplorerService.d.ts +5 -0
  235. package/lib/services/panes/scene/guiExplorerService.d.ts +5 -0
  236. package/lib/services/panes/scene/materialExplorerService.d.ts +5 -0
  237. package/lib/services/panes/scene/nodeExplorerService.d.ts +7 -0
  238. package/lib/services/panes/scene/particleSystemExplorerService.d.ts +5 -0
  239. package/lib/services/panes/scene/postProcessExplorerService.d.ts +5 -0
  240. package/lib/services/panes/scene/renderingPipelinesExplorerService.d.ts +5 -0
  241. package/lib/services/panes/scene/sceneExplorerService.d.ts +34 -0
  242. package/lib/services/panes/scene/skeletonExplorerService.d.ts +5 -0
  243. package/lib/services/panes/scene/soundExplorerService.d.ts +5 -0
  244. package/lib/services/panes/scene/spriteManagerExplorerService.d.ts +6 -0
  245. package/lib/services/panes/scene/texturesExplorerService.d.ts +5 -0
  246. package/lib/services/panes/settingsService.d.ts +25 -0
  247. package/lib/services/panes/statsService.d.ts +28 -0
  248. package/lib/services/panes/tools/captureService.d.ts +3 -0
  249. package/lib/services/panes/tools/exportService.d.ts +3 -0
  250. package/lib/services/panes/tools/import/gltfAnimationImportService.d.ts +3 -0
  251. package/lib/services/panes/tools/import/gltfLoaderOptionsDefaults.d.ts +46 -0
  252. package/lib/services/panes/tools/import/gltfLoaderOptionsService.d.ts +4 -0
  253. package/lib/services/panes/tools/import/gltfValidationService.d.ts +3 -0
  254. package/lib/services/panes/tools/reflectorService.d.ts +7 -0
  255. package/lib/services/panes/toolsService.d.ts +29 -0
  256. package/lib/services/pickingService.d.ts +7 -0
  257. package/lib/services/reactContextService.d.ts +18 -0
  258. package/lib/services/sceneContext.d.ts +19 -0
  259. package/lib/services/selectionService.d.ts +24 -0
  260. package/lib/services/settingsStore.d.ts +55 -0
  261. package/lib/services/shellService.d.ts +256 -0
  262. package/lib/services/shellSettingsService.d.ts +3 -0
  263. package/lib/services/textureEditor/textureEditorService.d.ts +21 -0
  264. package/lib/services/textureEditor/tools/contrast.d.ts +2 -0
  265. package/lib/services/textureEditor/tools/eyedropper.d.ts +5 -0
  266. package/lib/services/textureEditor/tools/floodfill.d.ts +5 -0
  267. package/lib/services/textureEditor/tools/paintbrush.d.ts +2 -0
  268. package/lib/services/textureEditor/tools/rectangularSelect.d.ts +5 -0
  269. package/lib/services/themeSelectorService.d.ts +3 -0
  270. package/lib/services/themeService.d.ts +60 -0
  271. package/lib/services/userFeedbackService.d.ts +3 -0
  272. package/lib/services/watcherService.d.ts +38 -0
  273. package/lib/themes/babylonTheme.d.ts +3 -0
  274. package/package.json +2 -2
  275. package/lib/extensionsListService-zYdKn8uM.js.map +0 -1
  276. package/lib/index-DuVF9zYN.js.map +0 -1
  277. package/lib/quickCreateToolsService-BtsSLeMY.js.map +0 -1
  278. package/lib/reflectorService-Bzs-Ykos.js.map +0 -1
package/lib/index.js CHANGED
@@ -1,4 +1,4 @@
1
- export { A as Accordion, g as AccordionSection, l as AccordionSectionItem, m as AttachDebugLayer, n as BooleanBadgePropertyLine, o as BoundProperty, p as BuiltInsExtensionFeed, B as Button, h as ButtonLine, q as Checkbox, C as CheckboxPropertyLine, r as ChildWindow, s as Collapse, t as Color3GradientComponent, v as Color3GradientList, w as Color3PropertyLine, x as Color4GradientComponent, y as Color4GradientList, z as Color4PropertyLine, D as ColorPickerPopup, E as ColorStepGradientComponent, F as ComboBox, G as ComboBoxPropertyLine, H as ConstructorFactory, I as ConvertOptions, J as DebugServiceIdentity, K as DetachDebugLayer, O as DraggableLine, Q as Dropdown, R as EntitySelector, U as ErrorBoundary, W as ExtensibleAccordion, X as FactorGradientComponent, Y as FactorGradientList, Z as FileUploadLine, _ as GetPropertyDescriptor, $ as GizmoServiceIdentity, a0 as HexPropertyLine, a1 as InfoLabel, a2 as InputHexField, a3 as InputHsvField, a4 as Inspector, a5 as InterceptFunction, a6 as InterceptProperty, a7 as IsPropertyReadonly, a8 as LineContainer, k as Link, a9 as LinkPropertyLine, L as LinkToEntity, aa as LinkToEntityPropertyLine, ab as List, ac as MakeDialogTeachingMoment, ad as MakeLazyComponent, ae as MakePopoverTeachingMoment, af as MakePropertyHook, ag as MakeTeachingMoment, ah as MaterialSelector, M as MessageBar, ai as NodeSelector, aj as NumberDropdown, ak as NumberDropdownPropertyLine, N as NumberInputPropertyLine, al as ObservableCollection, am as Pane, an as PlaceholderPropertyLine, P as Popover, ao as PositionedPopover, ap as PropertiesServiceIdentity, aq as Property, ar as PropertyContext, as as PropertyLine, at as QuaternionPropertyLine, au as RotationVectorPropertyLine, d as SceneContextIdentity, av as SceneExplorerServiceIdentity, aw as SearchBar, ax as SearchBox, ay as SelectionServiceDefinition, e as SelectionServiceIdentity, az as SettingsServiceIdentity, aA as SettingsStore, aB as SettingsStoreIdentity, c as ShellServiceIdentity, aC as ShowInspector, aD as SidePaneContainer, aE as SkeletonSelector, aF as Slider, aG as SpinButton, S as SpinButtonPropertyLine, aH as StatsServiceIdentity, aI as StringDropdown, aJ as StringDropdownPropertyLine, aK as StringifiedPropertyLine, aL as Switch, aM as SwitchPropertyLine, aN as SyncedSliderInput, aO as SyncedSliderPropertyLine, aP as TeachingMoment, aQ as TextAreaPropertyLine, aR as TextInput, T as TextInputPropertyLine, aS as TextPropertyLine, aT as Textarea, aU as TextureSelector, aV as TextureUpload, aW as Theme, aX as ThemeServiceIdentity, aY as ToastProvider, aZ as ToggleButton, i as ToolsServiceIdentity, a_ as Tooltip, a$ as UploadButton, b0 as Vector2PropertyLine, V as Vector3PropertyLine, b1 as Vector4PropertyLine, b2 as WatcherServiceIdentity, b3 as useAngleConverters, b4 as useAsyncResource, b5 as useColor3Property, b6 as useColor4Property, b7 as useEventListener, b8 as useEventfulState, a as useInterceptObservable, b9 as useKeyListener, ba as useKeyState, bb as useObservableCollection, f as useObservableState, bc as useOrderedObservableCollection, bd as usePollingObservable, b as useProperty, be as usePropertyChangedNotifier, bf as useQuaternionProperty, bg as useResource, bh as useSetting, bi as useTheme, bj as useThemeMode, u as useToast, bk as useVector3Property } from './index-DuVF9zYN.js';
1
+ export { A as Accordion, i as AccordionSection, l as AccordionSectionItem, m as AttachDebugLayer, n as BooleanBadgePropertyLine, o as BoundProperty, p as BuiltInsExtensionFeed, B as Button, j as ButtonLine, q as Checkbox, C as CheckboxPropertyLine, r as ChildWindow, s as Collapse, t as Color3GradientComponent, v as Color3GradientList, w as Color3PropertyLine, x as Color4GradientComponent, y as Color4GradientList, z as Color4PropertyLine, D as ColorPickerPopup, E as ColorStepGradientComponent, F as ComboBox, G as ComboBoxPropertyLine, H as ConstructorFactory, I as ConvertOptions, J as DebugServiceIdentity, K as DetachDebugLayer, O as DraggableLine, Q as Dropdown, R as EntitySelector, U as ErrorBoundary, W as ExtensibleAccordion, X as FactorGradientComponent, Y as FactorGradientList, Z as FileUploadLine, _ as GetPropertyDescriptor, $ as GizmoServiceIdentity, a0 as HexPropertyLine, a1 as InfoLabel, a2 as InputHexField, a3 as InputHsvField, a4 as Inspector, a5 as InterceptFunction, a6 as InterceptProperty, a7 as IsPropertyReadonly, a8 as LineContainer, L as Link, a9 as LinkPropertyLine, c as LinkToEntity, aa as LinkToEntityPropertyLine, ab as List, ac as MakeDialogTeachingMoment, ad as MakeLazyComponent, ae as MakePopoverTeachingMoment, af as MakePropertyHook, ag as MakeTeachingMoment, ah as MaterialSelector, M as MessageBar, ai as NodeSelector, aj as NumberDropdown, ak as NumberDropdownPropertyLine, N as NumberInputPropertyLine, al as ObservableCollection, am as Pane, an as PlaceholderPropertyLine, P as Popover, ao as PositionedPopover, ap as PropertiesServiceIdentity, aq as Property, ar as PropertyContext, as as PropertyLine, at as QuaternionPropertyLine, au as RotationVectorPropertyLine, f as SceneContextIdentity, av as SceneExplorerServiceIdentity, aw as SearchBar, ax as SearchBox, ay as SelectionServiceDefinition, g as SelectionServiceIdentity, az as SettingsServiceIdentity, aA as SettingsStoreIdentity, S as ShellServiceIdentity, aB as ShowInspector, aC as SidePaneContainer, aD as SkeletonSelector, aE as Slider, aF as SpinButton, d as SpinButtonPropertyLine, aG as StatsServiceIdentity, aH as StringDropdown, aI as StringDropdownPropertyLine, aJ as StringifiedPropertyLine, aK as Switch, aL as SwitchPropertyLine, aM as SyncedSliderInput, aN as SyncedSliderPropertyLine, aO as TeachingMoment, aP as TextAreaPropertyLine, aQ as TextInput, T as TextInputPropertyLine, aR as TextPropertyLine, aS as Textarea, aT as TextureSelector, aU as TextureUpload, aV as Theme, aW as ThemeServiceIdentity, aX as ToastProvider, aY as ToggleButton, k as ToolsServiceIdentity, aZ as Tooltip, a_ as UploadButton, a$ as Vector2PropertyLine, V as Vector3PropertyLine, b0 as Vector4PropertyLine, b1 as WatcherServiceIdentity, b2 as useAngleConverters, b3 as useAsyncResource, b4 as useColor3Property, b5 as useColor4Property, b6 as useEventListener, b7 as useEventfulState, b as useInterceptObservable, b8 as useKeyListener, b9 as useKeyState, ba as useObservableCollection, h as useObservableState, bb as useOrderedObservableCollection, bc as usePollingObservable, e as useProperty, bd as usePropertyChangedNotifier, be as useQuaternionProperty, bf as useResource, bg as useSetting, bh as useTheme, bi as useThemeMode, a as useToast, bj as useVector3Property } from './index-BCbXjPTn.js';
2
2
  import 'react/jsx-runtime';
3
3
  import 'react';
4
4
  import '@fluentui/react-components';
@@ -124,15 +124,15 @@ import '@babylonjs/core/Bones/skeleton.js';
124
124
  import '@babylonjs/core/Sprites/sprite.js';
125
125
  import '@babylonjs/core/Sprites/spriteManager.js';
126
126
  import '@babylonjs/core/Misc/textureTools.js';
127
- import '@babylonjs/core/Materials/Textures/baseTexture.js';
128
- import '@babylonjs/core/Materials/Textures/multiRenderTarget.js';
129
- import '@babylonjs/core/Materials/Textures/renderTargetTexture.js';
130
- import '@babylonjs/core/Materials/Textures/thinTexture.js';
131
127
  import '@babylonjs/core/Events/keyboardEvents.js';
132
128
  import '@babylonjs/core/Events/pointerEvents.js';
133
129
  import '@babylonjs/core/Materials/Textures/htmlElementTexture.js';
134
130
  import '@babylonjs/core/Materials/shaderMaterial.js';
135
131
  import '@babylonjs/core/Meshes/Builders/planeBuilder.js';
132
+ import '@babylonjs/core/Materials/Textures/baseTexture.js';
133
+ import '@babylonjs/core/Materials/Textures/multiRenderTarget.js';
134
+ import '@babylonjs/core/Materials/Textures/renderTargetTexture.js';
135
+ import '@babylonjs/core/Materials/Textures/thinTexture.js';
136
136
  import '@babylonjs/core/Rendering/boundingBoxRenderer.js';
137
137
  import '@babylonjs/core/PostProcesses/RenderPipeline/postProcessRenderPipelineManagerSceneComponent.js';
138
138
  import '@babylonjs/core/Sprites/spriteSceneComponent.js';
@@ -0,0 +1,41 @@
1
+ import { type IDisposable, type IReadonlyObservable, type Scene } from "@babylonjs/core/index.js";
2
+ import { type ModularToolOptions } from "./modularTool";
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 = IDisposable & {
25
+ /**
26
+ * Whether the inspector has been disposed.
27
+ */
28
+ readonly isDisposed: boolean;
29
+ /**
30
+ * An observable that fires when the inspector is disposed.
31
+ */
32
+ readonly onDisposed: IReadonlyObservable<void>;
33
+ };
34
+ /**
35
+ * Shows the inspector for the specified scene.
36
+ * @param scene The scene to inspect.
37
+ * @param options Optional configuration for the inspector.
38
+ * @returns An {@link InspectorToken} that can be disposed to hide the inspector.
39
+ */
40
+ export declare function ShowInspector(scene: Scene, options?: Partial<InspectorOptions>): InspectorToken;
41
+ export {};
@@ -0,0 +1,20 @@
1
+ import { type IDisposable } from "@babylonjs/core/index.js";
2
+ /**
3
+ * Hooks that can be registered on a function to intercept its execution.
4
+ */
5
+ export type FunctionHooks<Args extends unknown[] = unknown[]> = {
6
+ /**
7
+ * This function will be called after the hooked function is called.
8
+ * @param args The arguments that were passed to the original function.
9
+ */
10
+ afterCall?: (...args: Args) => void;
11
+ };
12
+ /**
13
+ * Intercepts a function on an object and allows you to add hooks that will be called during function execution.
14
+ * @param target The object containing the function to intercept.
15
+ * @param propertyKey The key of the property that is a function (this is the function that will be intercepted).
16
+ * @param hooks The hooks to call during the function execution.
17
+ * @returns A disposable that removes the hooks when disposed and returns the object to its original state.
18
+ */
19
+ export declare function InterceptFunction<T extends object, K extends keyof T>(target: T, propertyKey: string extends K ? never : number extends K ? never : symbol extends K ? never : K, hooks: NonNullable<T[K]> extends (...args: infer Args) => unknown ? FunctionHooks<Args> : FunctionHooks): IDisposable;
20
+ export declare function InterceptFunction<T extends object>(target: T, propertyKey: keyof T, hooks: FunctionHooks): IDisposable;
@@ -0,0 +1,33 @@
1
+ import { type IDisposable, type Nullable } from "@babylonjs/core/index.js";
2
+ /**
3
+ * Gets the property descriptor for a property on an object, including inherited properties.
4
+ * @param target The object containing the property.
5
+ * @param propertyKey The key of the property to get the descriptor for.
6
+ * @returns The owner of the property (which may be different from the target in the case of inheritance) along with the property descriptor, or null if the property is not found.
7
+ */
8
+ export declare function GetPropertyDescriptor<T extends object>(target: T, propertyKey: keyof T): Nullable<[owner: object, descriptor: PropertyDescriptor]>;
9
+ /**
10
+ * Checks if a property is readonly.
11
+ * @param propertyDescriptor The property descriptor to check.
12
+ * @returns True if the property is readonly, false otherwise.
13
+ */
14
+ export declare function IsPropertyReadonly(propertyDescriptor: PropertyDescriptor): boolean;
15
+ /**
16
+ * Hooks that can be registered on a property to intercept its setter.
17
+ */
18
+ export type PropertyHooks<T = unknown> = {
19
+ /**
20
+ * This function will be called after the hooked property is set.
21
+ * @param value The new value that was set on the property.
22
+ */
23
+ afterSet?: (value: T) => void;
24
+ };
25
+ /**
26
+ * Intercepts a property on an object and allows you to add hooks that will be called when the property is get or set.
27
+ * @param target The object containing the property to intercept.
28
+ * @param propertyKey The key of the property to intercept.
29
+ * @param hooks The hooks to call when the property is get or set.
30
+ * @returns A disposable that removes the hooks when disposed and returns the object to its original state.
31
+ */
32
+ export declare function InterceptProperty<T extends object, K extends keyof T>(target: T, propertyKey: string extends K ? never : number extends K ? never : symbol extends K ? never : K, hooks: PropertyHooks<NonNullable<T[K]>>): IDisposable;
33
+ export declare function InterceptProperty<T extends object>(target: T, propertyKey: keyof T, hooks: PropertyHooks): IDisposable;
@@ -0,0 +1,24 @@
1
+ import { type IInspectorOptions } from "@babylonjs/core/index.js";
2
+ import { DebugLayer } from "@babylonjs/core/Debug/debugLayer.js";
3
+ declare class DebugLayerEx extends DebugLayer {
4
+ show(config?: IInspectorOptions): Promise<DebugLayer>;
5
+ }
6
+ declare const DebugLayerExKey: unique symbol;
7
+ declare module "@babylonjs/core/scene.js" {
8
+ interface Scene {
9
+ /**
10
+ * @internal
11
+ * Backing field
12
+ */
13
+ [DebugLayerExKey]?: DebugLayerEx;
14
+ }
15
+ }
16
+ /**
17
+ * Attaches Inspector v2 to Scene.debugLayer.
18
+ */
19
+ export declare function AttachDebugLayer(): void;
20
+ /**
21
+ * Detaches Inspector v2 from Scene.debugLayer.
22
+ */
23
+ export declare function DetachDebugLayer(): void;
24
+ export {};
@@ -0,0 +1,3 @@
1
+ import { type ServiceDefinition } from "../modularity/serviceDefinition";
2
+ import { type IPropertiesService } from "../services/panes/properties/propertiesService";
3
+ export declare const LegacyInspectableObjectPropertiesServiceDefinition: ServiceDefinition<[], [IPropertiesService]>;
@@ -0,0 +1,39 @@
1
+ import { type IInspectorOptions as InspectorV1Options, type Scene } from "@babylonjs/core/index.js";
2
+ import { type InspectorOptions as InspectorV2Options } from "../inspector";
3
+ import { Observable } from "@babylonjs/core/Misc/observable.js";
4
+ type PropertyChangedEvent = {
5
+ object: any;
6
+ property: string;
7
+ value: any;
8
+ initialValue: any;
9
+ allowNullValue?: boolean;
10
+ };
11
+ /**
12
+ * Converts Inspector v1 options to Inspector v2 options.
13
+ * @param v1Options Inspector v1 options.
14
+ * @returns Inspector v2 options.
15
+ */
16
+ export declare function ConvertOptions(v1Options: Partial<InspectorV1Options>): Partial<InspectorV2Options>;
17
+ /**
18
+ * @deprecated This class only exists for backward compatibility. Use the module-level ShowInspector function instead.
19
+ */
20
+ export declare class Inspector {
21
+ private static _CurrentInstance;
22
+ private static _PopupToggler;
23
+ private static _SidePaneOpenCounter;
24
+ private static get _OpenedPane();
25
+ static readonly OnSelectionChangeObservable: Observable<any>;
26
+ static readonly OnPropertyChangedObservable: Observable<PropertyChangedEvent>;
27
+ private static readonly _OnMarkLineContainerObservable;
28
+ static MarkLineContainerTitleForHighlighting(title: string): void;
29
+ static MarkMultipleLineContainerTitlesForHighlighting(titles: string[]): void;
30
+ static PopupEmbed(): void;
31
+ static PopupSceneExplorer(): void;
32
+ static PopupInspector(): void;
33
+ static get IsVisible(): boolean;
34
+ static Show(scene: Scene, userOptions: Partial<InspectorV1Options>): void;
35
+ private static _Show;
36
+ static Hide(): void;
37
+ private static _SetNewScene;
38
+ }
39
+ export {};
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Attaches Inspector v2 to the global INSPECTOR and BABYLON.Inspector.
3
+ */
4
+ export declare function AttachInspectorGlobals(): void;
5
+ /**
6
+ * Detaches Inspector v2 from the global INSPECTOR and BABYLON.Inspector.
7
+ */
8
+ export declare function DetachInspectorGlobals(): void;
9
+ export * from "../index";
@@ -0,0 +1,99 @@
1
+ export declare const LegacyPropertiesSectionMapping: {
2
+ readonly GENERAL: "General";
3
+ readonly CUSTOM: "Custom";
4
+ readonly COMMANDS: "Commands";
5
+ readonly DEBUG: "Debug";
6
+ readonly ADVANCED: "Advanced";
7
+ readonly PROPERTIES: "Properties";
8
+ readonly TRANSFORMATIONS: "Transform";
9
+ readonly TRANSFORMS: "Transform";
10
+ readonly TRANSFORM: "Transform";
11
+ readonly ANIMATION: "Animation";
12
+ readonly "ANIMATION RANGES": "Animation Ranges";
13
+ readonly ANIMATIONS: "Animation";
14
+ readonly "ANIMATION GENERAL CONTROL": "Animation Control";
15
+ readonly CONTROLS: "Control";
16
+ readonly INFOS: "Info";
17
+ readonly COLLISIONS: "Collision";
18
+ readonly LIMITS: "Limits";
19
+ readonly BEHAVIORS: "Behaviors";
20
+ readonly TRANSPARENCY: "Transparency";
21
+ readonly STENCIL: "Stencil";
22
+ readonly "STENCIL - FRONT": "Stencil Front";
23
+ readonly "STENCIL - BACK": "Stencil Back";
24
+ readonly TEXTURES: "Textures";
25
+ readonly "LIGHTING & COLORS": "Lighting & Colors";
26
+ readonly LEVELS: "Levels";
27
+ readonly "NORMAL MAP": "Normal Map";
28
+ readonly RENDERING: "Rendering";
29
+ readonly CHANNELS: "Channels";
30
+ readonly "METALLIC WORKFLOW": "Metallic Workflow";
31
+ readonly "CLEAR COAT": "Clear Coat";
32
+ readonly IRIDESCENCE: "Iridescence";
33
+ readonly ANISOTROPIC: "Anisotropic";
34
+ readonly SHEEN: "Sheen";
35
+ readonly SUBSURFACE: "Subsurface";
36
+ readonly BASE: "Base";
37
+ readonly SPECULAR: "Specular";
38
+ readonly COAT: "Coat";
39
+ readonly FUZZ: "Fuzz";
40
+ readonly EMISSION: "Emission";
41
+ readonly "THIN FILM": "Thin Film";
42
+ readonly GEOMETRY: "Geometry";
43
+ readonly SKY: "Sky";
44
+ readonly CHILDREN: "Children";
45
+ readonly DISPLAY: "Display";
46
+ readonly "DISPLAY OPTIONS": "Display Options";
47
+ readonly "NODE GEOMETRY": "Node Geometry";
48
+ readonly "MORPH TARGETS": "Morph Targets";
49
+ readonly PHYSICS: "Physics";
50
+ readonly OCCLUSIONS: "Occlusions";
51
+ readonly "EDGE RENDERING": "Edge Rendering";
52
+ readonly "OUTLINE & OVERLAY": "Outlines & Overlays";
53
+ readonly SETUP: "Setup";
54
+ readonly SHADOWS: "Shadows";
55
+ readonly "SHADOW GENERATOR": "Shadow Generator";
56
+ readonly "NODE PARTICLE EDITOR": "Node Particle Editor";
57
+ readonly FILE: "File";
58
+ readonly SNIPPET: "Snippet";
59
+ readonly ATTRACTORS: "Attractors";
60
+ readonly IMPOSTORS: "Impostors";
61
+ readonly EMITTER: "Emitter";
62
+ readonly SIZE: "Size";
63
+ readonly LIFETIME: "Lifetime";
64
+ readonly COLORS: "Color";
65
+ readonly ROTATION: "Rotation";
66
+ readonly SPRITESHEET: "Spritesheet";
67
+ readonly CELLS: "Cells";
68
+ readonly CELL: "Cell";
69
+ readonly SCALE: "Scale";
70
+ readonly CONFIGURATION: "Configuration";
71
+ readonly BLOOM: "Bloom";
72
+ readonly "CHROMATIC ABERRATION": "Chromatic Aberration";
73
+ readonly "DEPTH OF FIELD": "Depth of Field";
74
+ readonly FXAA: "FXAA";
75
+ readonly "GLOW LAYER": "Glow Layer";
76
+ readonly GRAIN: "Grain";
77
+ readonly "IMAGE PROCESSING": "Image Processing";
78
+ readonly SHARPEN: "Sharpen";
79
+ readonly OPTIONS: "Options";
80
+ readonly SSAO: "SSAO";
81
+ readonly Denoiser: "Denoiser";
82
+ readonly SSR: "SSR";
83
+ readonly "Voxel Shadows": "Voxel Shadows";
84
+ readonly "Screenspace Shadows": "Screenspace Shadows";
85
+ readonly "Automatic thickness computation": "Automatic Thickness Computation";
86
+ readonly Blur: "Blur";
87
+ readonly Attenuations: "Attenuations";
88
+ readonly "Color space": "Color Space";
89
+ readonly "RENDERING MODE": "Rendering";
90
+ readonly ENVIRONMENT: "Environment";
91
+ readonly "MATERIAL IMAGE PROCESSING": "Material Image Processing";
92
+ readonly PREVIEW: "Preview";
93
+ readonly "ADVANCED TEXTURE PROPERTIES": "Advanced Texture Properties";
94
+ readonly TASKS: "Tasks";
95
+ readonly METADATA: "Metadata";
96
+ readonly "XMP METADATA": "XMP Metadata";
97
+ readonly VARIANTS: "Variants";
98
+ readonly INPUTS: "Inputs";
99
+ };
@@ -0,0 +1,4 @@
1
+ export declare function GroupBy<T, K>(items: T[], getKey: (item: T) => K): {
2
+ key: K;
3
+ items: T[];
4
+ }[];
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Asserts that the given value is truthy.
3
+ * @param value The value to check.
4
+ */
5
+ export declare function Assert(value: unknown): asserts value;
@@ -0,0 +1,44 @@
1
+ /**
2
+ * Performs a topological sort on a graph.
3
+ * @param graph The set of nodes that make up the graph.
4
+ * @param getAdjacentNodes A function that returns the adjacent nodes for a given node.
5
+ * @param onSortedNode A function that is called for each node in the sorted order.
6
+ * @remarks
7
+ * This function allocates. Do not use it in the hot path. Instead use an instance of GraphUtils.
8
+ */
9
+ export declare function SortGraph<NodeT>(graph: Iterable<NodeT>, getAdjacentNodes: (node: NodeT) => Iterable<NodeT>, onSortedNode: (node: NodeT) => void): void;
10
+ /**
11
+ * Traverses a graph.
12
+ * @param graph The set of nodes that make up the graph.
13
+ * @param getAdjacentNodes A function that returns the adjacent nodes for a given node.
14
+ * @param onBeforeTraverse A function that is called before traversing each node.
15
+ * @param onAfterTraverse A function that is called after traversing each node.
16
+ * @remarks
17
+ * This function allocates. Do not use it in the hot path. Instead use an instance of GraphUtils.
18
+ */
19
+ export declare function TraverseGraph<NodeT>(graph: Iterable<NodeT>, getAdjacentNodes: (node: NodeT) => Iterable<NodeT> | null | undefined, onBeforeTraverse?: (node: NodeT) => void, onAfterTraverse?: (node: NodeT) => void): void;
20
+ /**
21
+ * A utility class for performing graph operations.
22
+ * @remarks
23
+ * The class allocates new objects, but each operation (e.g. sort, traverse) is allocation free. This is useful when used in the hot path.
24
+ */
25
+ export declare class GraphUtils<DefaultNodeT = unknown> {
26
+ private readonly _traversalState;
27
+ private _isTraversing;
28
+ /**
29
+ * Performs a topological sort on a graph.
30
+ * @param graph The set of nodes that make up the graph.
31
+ * @param getAdjacentNodes A function that returns the adjacent nodes for a given node.
32
+ * @param onSortedNode A function that is called for each node in the sorted order.
33
+ */
34
+ sort<NodeT extends DefaultNodeT>(graph: Iterable<NodeT>, getAdjacentNodes: (node: NodeT) => Iterable<NodeT>, onSortedNode: (node: NodeT) => void): void;
35
+ /**
36
+ * Traverses a graph.
37
+ * @param graph The set of nodes that make up the graph.
38
+ * @param getAdjacentNodes A function that returns the adjacent nodes for a given node.
39
+ * @param onBeforeTraverse A function that is called before traversing each node.
40
+ * @param onAfterTraverse A function that is called after traversing each node.
41
+ */
42
+ traverse<NodeT extends DefaultNodeT>(graph: Iterable<NodeT>, getAdjacentNodes: (node: NodeT) => Iterable<NodeT> | null | undefined, onBeforeTraverse?: (node: NodeT) => void, onAfterTraverse?: (node: NodeT) => void): void;
43
+ private _traverseCore;
44
+ }
@@ -0,0 +1,3 @@
1
+ import { type Mesh, type NodeGeometry, type Nullable, type Scene } from "@babylonjs/core/index.js";
2
+ export declare function GetNodeGeometry(mesh: Mesh): Nullable<NodeGeometry>;
3
+ export declare function EditNodeGeometry(nodeGeometry: NodeGeometry, hostScene: Scene): Promise<void>;
@@ -0,0 +1,2 @@
1
+ import { type NodeMaterial } from "@babylonjs/core/index.js";
2
+ export declare function EditNodeMaterial(material: NodeMaterial): Promise<void>;
@@ -0,0 +1,2 @@
1
+ import { type ParticleSystem } from "@babylonjs/core/index.js";
2
+ export declare function EditParticleSystem(particleSystem: ParticleSystem): Promise<void>;
@@ -0,0 +1,2 @@
1
+ import { type NodeRenderGraph } from "@babylonjs/core/index.js";
2
+ export declare function EditNodeRenderGraph(nodeRenderGraph: NodeRenderGraph): Promise<void>;
@@ -0,0 +1,23 @@
1
+ import { type IDisposable, type IReadonlyObservable } from "@babylonjs/core/index.js";
2
+ /**
3
+ * A collection of items that can be observed for changes.
4
+ */
5
+ export declare class ObservableCollection<T> {
6
+ private readonly _items;
7
+ private readonly _keys;
8
+ private readonly _observable;
9
+ /**
10
+ * An observable that notifies observers when the collection changes.
11
+ */
12
+ get observable(): IReadonlyObservable<void>;
13
+ /**
14
+ * The items in the collection.
15
+ */
16
+ get items(): readonly T[];
17
+ /**
18
+ * Adds an item to the collection.
19
+ * @param item The item to add.
20
+ * @returns A disposable that removes the item from the collection when disposed.
21
+ */
22
+ add(item: T): IDisposable;
23
+ }
@@ -0,0 +1,74 @@
1
+ /**
2
+ * Shared utilities for snippet server operations (save/load).
3
+ */
4
+ /**
5
+ * Persist a snippet ID to local storage for quick reuse.
6
+ * @param storageKey The local storage key to use.
7
+ * @param snippetId The snippet ID to persist.
8
+ * @param maxItems Maximum number of items to store (default 50).
9
+ */
10
+ export declare function PersistSnippetId(storageKey: string, snippetId: string, maxItems?: number): void;
11
+ /**
12
+ * Configuration for saving to the snippet server.
13
+ */
14
+ export type SaveToSnippetConfig = {
15
+ /** The base URL of the snippet server. */
16
+ snippetUrl: string;
17
+ /** The current snippet ID (if updating an existing snippet). */
18
+ currentSnippetId?: string;
19
+ /** The serialized content to save. */
20
+ content: string;
21
+ /** The key name for the payload (e.g., "particleSystem", "spriteManager"). */
22
+ payloadKey: string;
23
+ /** Optional local storage key for persisting snippet IDs. */
24
+ storageKey?: string;
25
+ /** Optional friendly name for the entity type (used in alerts). */
26
+ entityName?: string;
27
+ };
28
+ /**
29
+ * Result from saving to the snippet server.
30
+ */
31
+ export type SaveToSnippetResult = {
32
+ /** The new snippet ID. */
33
+ snippetId: string;
34
+ /** The previous snippet ID (or "_BLANK" if none). */
35
+ oldSnippetId: string;
36
+ };
37
+ /**
38
+ * Save content to the snippet server.
39
+ * @param config Configuration for the save operation.
40
+ * @returns Promise resolving to the save result.
41
+ */
42
+ export declare function SaveToSnippetServer(config: SaveToSnippetConfig): Promise<SaveToSnippetResult>;
43
+ /**
44
+ * Configuration for loading from the snippet server.
45
+ */
46
+ export type LoadFromSnippetConfig = {
47
+ /** The base URL of the snippet server. */
48
+ snippetUrl: string;
49
+ /** The snippet ID to load. */
50
+ snippetId: string;
51
+ /** Optional friendly name for the entity type (used in alerts). */
52
+ entityName?: string;
53
+ };
54
+ /**
55
+ * Load content from the snippet server.
56
+ * @param config Configuration for the load operation.
57
+ * @returns Promise resolving to the parsed response object.
58
+ */
59
+ export declare function LoadFromSnippetServer(config: LoadFromSnippetConfig): Promise<any>;
60
+ /**
61
+ * Prompt the user for a snippet ID.
62
+ * @param message The prompt message.
63
+ * @returns The trimmed snippet ID, or null if cancelled/empty.
64
+ */
65
+ export declare function PromptForSnippetId(message?: string): string | null;
66
+ /**
67
+ * Notify the playground about a snippet ID change (for code replacement).
68
+ * NOTE this is an anti-pattern, instead playground should hook in and observe changes / update its own code
69
+ * This is a legacy approach and should not be copied elsewhere
70
+ * @param oldSnippetId The previous snippet ID.
71
+ * @param newSnippetId The new snippet ID.
72
+ * @param parseMethodName The name of the parse method (e.g., "SpriteManager.ParseFromSnippetAsync").
73
+ */
74
+ export declare function NotifyPlaygroundOfSnippetChange(oldSnippetId: string, newSnippetId: string, parseMethodName: string): void;
@@ -0,0 +1,34 @@
1
+ import { type BaseTexture } from "@babylonjs/core/index.js";
2
+ /**
3
+ * Defines which channels of the texture to retrieve with {@link TextureHelper.GetTextureDataAsync}.
4
+ */
5
+ export type TextureChannelsToDisplay = {
6
+ /**
7
+ * True if the red channel should be included.
8
+ */
9
+ R: boolean;
10
+ /**
11
+ * True if the green channel should be included.
12
+ */
13
+ G: boolean;
14
+ /**
15
+ * True if the blue channel should be included.
16
+ */
17
+ B: boolean;
18
+ /**
19
+ * True if the alpha channel should be included.
20
+ */
21
+ A: boolean;
22
+ };
23
+ /**
24
+ * Gets the data of the specified texture by rendering it to an intermediate RGBA texture and retrieving the bytes from it.
25
+ * This is convenient to get 8-bit RGBA values for a texture in a GPU compressed format.
26
+ * @param texture the source texture
27
+ * @param width the width of the result, which does not have to match the source texture width
28
+ * @param height the height of the result, which does not have to match the source texture height
29
+ * @param faceOrLayer if the texture has multiple faces, the face index to use for the source. For 2D array textures, this is the layer index.
30
+ * @param channels a filter for which of the RGBA channels to return in the result
31
+ * @param lod if the texture has multiple LODs, the lod index to use for the source
32
+ * @returns the 8-bit texture data
33
+ */
34
+ export declare function ApplyChannelsToTextureDataAsync(texture: BaseTexture, width: number, height: number, faceOrLayer: number, channels: TextureChannelsToDisplay, lod?: number): Promise<Uint8Array>;
@@ -0,0 +1,37 @@
1
+ import { type IDisposable } from "@babylonjs/core/index.js";
2
+ import { type IExtensionFeed } from "./extensibility/extensionFeed";
3
+ import { type WeaklyTypedServiceDefinition } from "./modularity/serviceContainer";
4
+ import { type ShellServiceOptions } from "./services/shellService";
5
+ import { type ThemeMode } from "./services/themeService";
6
+ export type ModularToolOptions = {
7
+ /**
8
+ * The namespace for the tool, used for scoping persisted settings and other storage.
9
+ */
10
+ namespace: string;
11
+ /**
12
+ * The container element where the tool will be rendered.
13
+ */
14
+ containerElement: HTMLElement;
15
+ /**
16
+ * The service definitions to be registered with the tool.
17
+ */
18
+ serviceDefinitions: readonly WeaklyTypedServiceDefinition[];
19
+ /**
20
+ * The theme mode to use. If not specified, the default is "system", which uses the system/browser preference, and the last used mode is persisted.
21
+ */
22
+ themeMode?: ThemeMode;
23
+ /**
24
+ * Whether to show the theme selector in the toolbar. Default is true.
25
+ */
26
+ showThemeSelector?: boolean;
27
+ /**
28
+ * The extension feeds that provide optional extensions the user can install.
29
+ */
30
+ extensionFeeds?: readonly IExtensionFeed[];
31
+ } & ShellServiceOptions;
32
+ /**
33
+ * Creates a modular tool with a base set of common tool services, including the toolbar/side pane basic UI layout.
34
+ * @param options The options for the tool.
35
+ * @returns A token that can be used to dispose of the tool.
36
+ */
37
+ export declare function MakeModularTool(options: ModularToolOptions): IDisposable;
@@ -0,0 +1,41 @@
1
+ import { type IDisposable } from "@babylonjs/core/index.js";
2
+ import { type IService, type ServiceDefinition } from "./serviceDefinition";
3
+ export type WeaklyTypedServiceDefinition = Omit<ServiceDefinition<IService<symbol>[] | [], IService<symbol>[] | []>, "factory"> & {
4
+ /**
5
+ * A factory function responsible for creating a service instance.
6
+ */
7
+ factory: (...args: any) => ReturnType<ServiceDefinition<IService<symbol>[] | [], IService<symbol>[] | []>["factory"]>;
8
+ };
9
+ /**
10
+ * A service container manages the lifetimes of a set of services.
11
+ * It takes care of instantiating the services in the correct order based on their dependencies,
12
+ * passing dependencies through to services, and disposing of services when the container is disposed.
13
+ */
14
+ export declare class ServiceContainer implements IDisposable {
15
+ private readonly _friendlyName;
16
+ private _isDisposed;
17
+ private readonly _serviceDefinitions;
18
+ private readonly _serviceDependents;
19
+ private readonly _serviceInstances;
20
+ constructor(_friendlyName: string);
21
+ /**
22
+ * Adds a set of service definitions in the service container.
23
+ * The services are sorted based on their dependencies.
24
+ * @param args The service definitions to register, and optionally an abort signal.
25
+ * @returns A disposable that will remove the service definition from the service container.
26
+ */
27
+ addServicesAsync(...args: WeaklyTypedServiceDefinition[] | [...serviceDefinitions: WeaklyTypedServiceDefinition[], abortSignal: AbortSignal]): Promise<IDisposable>;
28
+ /**
29
+ * Registers a service definition in the service container.
30
+ * @param serviceDefinition The service definition to register.
31
+ * @param abortSignal An optional abort signal.
32
+ * @returns A disposable that will remove the service definition from the service container.
33
+ */
34
+ addServiceAsync<Produces extends IService<symbol>[] = [], Consumes extends IService<symbol>[] = []>(serviceDefinition: ServiceDefinition<Produces, Consumes>, abortSignal?: AbortSignal): Promise<IDisposable>;
35
+ private _addServiceAsync;
36
+ private _removeService;
37
+ /**
38
+ * Disposes the service container and all contained services.
39
+ */
40
+ dispose(): void;
41
+ }