@babylonjs/inspector 9.0.0 → 9.2.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 (293) hide show
  1. package/bin/inspector-bridge.mjs +4734 -0
  2. package/bin/inspector-cli.mjs +4931 -0
  3. package/lib/cli/protocol.d.ts +180 -0
  4. package/lib/components/curveEditor/bottomBar/rangeSelector.d.ts +6 -0
  5. package/lib/components/curveEditor/bottomBar.d.ts +6 -0
  6. package/lib/components/curveEditor/canvas/canvas.d.ts +6 -0
  7. package/lib/components/curveEditor/canvas/curve.d.ts +14 -0
  8. package/lib/components/curveEditor/canvas/curveData.d.ts +40 -0
  9. package/lib/components/curveEditor/canvas/frameBar.d.ts +12 -0
  10. package/lib/components/curveEditor/canvas/graph.d.ts +11 -0
  11. package/lib/components/curveEditor/canvas/keyPoint.d.ts +34 -0
  12. package/lib/components/curveEditor/canvas/playHead.d.ts +12 -0
  13. package/lib/components/curveEditor/canvas/rangeFrameBar.d.ts +10 -0
  14. package/lib/components/curveEditor/curveEditor.d.ts +29 -0
  15. package/lib/components/curveEditor/curveEditorButton.d.ts +31 -0
  16. package/lib/components/curveEditor/curveEditorColors.d.ts +56 -0
  17. package/lib/components/curveEditor/curveEditorContext.d.ts +267 -0
  18. package/lib/components/curveEditor/rangeSelector.d.ts +6 -0
  19. package/lib/components/curveEditor/sideBar/addAnimationPanel.d.ts +10 -0
  20. package/lib/components/curveEditor/sideBar/animationList.d.ts +6 -0
  21. package/lib/components/curveEditor/sideBar/editAnimationPanel.d.ts +12 -0
  22. package/lib/components/curveEditor/sideBar/loadAnimationPanel.d.ts +10 -0
  23. package/lib/components/curveEditor/sideBar/saveAnimationPanel.d.ts +10 -0
  24. package/lib/components/curveEditor/sideBar.d.ts +6 -0
  25. package/lib/components/curveEditor/topBar.d.ts +6 -0
  26. package/lib/components/debug/debugPane.d.ts +6 -0
  27. package/lib/components/errorBoundary.d.ts +31 -0
  28. package/lib/components/extensibleAccordion.d.ts +67 -0
  29. package/lib/components/gizmoToolbar.d.ts +7 -0
  30. package/lib/components/pane.d.ts +4 -0
  31. package/lib/components/performanceViewer/canvasGraph.d.ts +16 -0
  32. package/lib/components/performanceViewer/canvasGraphService.d.ts +238 -0
  33. package/lib/components/performanceViewer/graphSupportingTypes.d.ts +90 -0
  34. package/lib/components/performanceViewer/performanceSidebar.d.ts +10 -0
  35. package/lib/components/performanceViewer/performanceViewer.d.ts +15 -0
  36. package/lib/components/pickingToolbar.d.ts +11 -0
  37. package/lib/components/properties/animation/animationGroupProperties.d.ts +8 -0
  38. package/lib/components/properties/animation/animationsProperties.d.ts +21 -0
  39. package/lib/components/properties/animation/targetedAnimationProperties.d.ts +7 -0
  40. package/lib/components/properties/atmosphereProperties.d.ts +20 -0
  41. package/lib/components/properties/audio/soundProperties.d.ts +8 -0
  42. package/lib/components/properties/boundProperty.d.ts +80 -0
  43. package/lib/components/properties/cameras/arcRotateCameraProperties.d.ts +17 -0
  44. package/lib/components/properties/cameras/cameraProperties.d.ts +10 -0
  45. package/lib/components/properties/cameras/followCameraProperties.d.ts +8 -0
  46. package/lib/components/properties/cameras/freeCameraProperties.d.ts +11 -0
  47. package/lib/components/properties/cameras/geospatialCameraProperties.d.ts +11 -0
  48. package/lib/components/properties/cameras/targetCameraProperties.d.ts +8 -0
  49. package/lib/components/properties/commonGeneralProperties.d.ts +16 -0
  50. package/lib/components/properties/frameGraph/frameGraphProperties.d.ts +8 -0
  51. package/lib/components/properties/generateCopyString.d.ts +7 -0
  52. package/lib/components/properties/lights/areaLightProperties.d.ts +5 -0
  53. package/lib/components/properties/lights/clusteredLightContainerProperties.d.ts +10 -0
  54. package/lib/components/properties/lights/directionalLightProperties.d.ts +8 -0
  55. package/lib/components/properties/lights/hemisphericLightProperties.d.ts +5 -0
  56. package/lib/components/properties/lights/lightProperties.d.ts +7 -0
  57. package/lib/components/properties/lights/pointLightProperties.d.ts +5 -0
  58. package/lib/components/properties/lights/shadowGeneratorProperties.d.ts +6 -0
  59. package/lib/components/properties/lights/shadowLightProperties.d.ts +5 -0
  60. package/lib/components/properties/lights/spotLightProperties.d.ts +5 -0
  61. package/lib/components/properties/linkToEntityPropertyLine.d.ts +27 -0
  62. package/lib/components/properties/materials/materialProperties.d.ts +11 -0
  63. package/lib/components/properties/materials/multiMaterialProperties.d.ts +7 -0
  64. package/lib/components/properties/materials/nodeMaterialProperties.d.ts +8 -0
  65. package/lib/components/properties/materials/normalMapProperties.d.ts +19 -0
  66. package/lib/components/properties/materials/openpbrMaterialProperties.d.ts +64 -0
  67. package/lib/components/properties/materials/pbrBaseMaterialProperties.d.ts +285 -0
  68. package/lib/components/properties/materials/skyMaterialProperties.d.ts +5 -0
  69. package/lib/components/properties/materials/standardMaterialProperties.d.ts +29 -0
  70. package/lib/components/properties/metadataProperties.d.ts +12 -0
  71. package/lib/components/properties/nodes/abstractMeshProperties.d.ts +27 -0
  72. package/lib/components/properties/nodes/gaussianSplattingProperties.d.ts +5 -0
  73. package/lib/components/properties/nodes/meshProperties.d.ts +11 -0
  74. package/lib/components/properties/nodes/nodeProperties.d.ts +7 -0
  75. package/lib/components/properties/particles/attractor.d.ts +23 -0
  76. package/lib/components/properties/particles/attractorAdapter.d.ts +56 -0
  77. package/lib/components/properties/particles/attractorList.d.ts +15 -0
  78. package/lib/components/properties/particles/attractorProperties.d.ts +11 -0
  79. package/lib/components/properties/particles/colorProperties.d.ts +11 -0
  80. package/lib/components/properties/particles/commandsProperties.d.ts +13 -0
  81. package/lib/components/properties/particles/emissionProperties.d.ts +11 -0
  82. package/lib/components/properties/particles/emitterProperties.d.ts +13 -0
  83. package/lib/components/properties/particles/lifetimeProperties.d.ts +11 -0
  84. package/lib/components/properties/particles/nodeEditorProperties.d.ts +12 -0
  85. package/lib/components/properties/particles/rotationProperties.d.ts +11 -0
  86. package/lib/components/properties/particles/sizeProperties.d.ts +11 -0
  87. package/lib/components/properties/particles/spritesheetProperties.d.ts +11 -0
  88. package/lib/components/properties/particles/systemProperties.d.ts +13 -0
  89. package/lib/components/properties/physics/physicsProperties.d.ts +6 -0
  90. package/lib/components/properties/postProcesses/postProcessProperties.d.ts +10 -0
  91. package/lib/components/properties/propertiesPane.d.ts +2 -0
  92. package/lib/components/properties/renderingPipelines/defaultRenderingPipelineProperties.d.ts +23 -0
  93. package/lib/components/properties/renderingPipelines/iblShadowsRenderPipelineProperties.d.ts +11 -0
  94. package/lib/components/properties/renderingPipelines/lensRenderingPipelineProperties.d.ts +8 -0
  95. package/lib/components/properties/renderingPipelines/postProcessRenderPipelineProperties.d.ts +5 -0
  96. package/lib/components/properties/renderingPipelines/ssao2RenderingPipelineProperties.d.ts +8 -0
  97. package/lib/components/properties/renderingPipelines/ssaoRenderingPipelineProperties.d.ts +5 -0
  98. package/lib/components/properties/renderingPipelines/ssrRenderingPipelineProperties.d.ts +17 -0
  99. package/lib/components/properties/skeleton/boneProperties.d.ts +7 -0
  100. package/lib/components/properties/skeleton/skeletonProperties.d.ts +8 -0
  101. package/lib/components/properties/sprites/spriteManagerProperties.d.ts +25 -0
  102. package/lib/components/properties/sprites/spriteProperties.d.ts +19 -0
  103. package/lib/components/properties/textures/advancedDynamicTextureProperties.d.ts +11 -0
  104. package/lib/components/properties/textures/baseTextureProperties.d.ts +16 -0
  105. package/lib/components/properties/textures/cubeTextureProperties.d.ts +5 -0
  106. package/lib/components/properties/textures/multiRenderTargetProperties.d.ts +5 -0
  107. package/lib/components/properties/textures/renderTargetTextureProperties.d.ts +5 -0
  108. package/lib/components/properties/textures/textureFormatUtils.d.ts +48 -0
  109. package/lib/components/properties/textures/texturePreview.d.ts +17 -0
  110. package/lib/components/properties/textures/textureProperties.d.ts +11 -0
  111. package/lib/components/properties/textures/thinTextureProperties.d.ts +8 -0
  112. package/lib/components/properties/transformProperties.d.ts +11 -0
  113. package/lib/components/scene/sceneExplorer.d.ts +182 -0
  114. package/lib/components/scene/sceneExplorerDragDrop.d.ts +38 -0
  115. package/lib/components/scene/sceneProperties.d.ts +19 -0
  116. package/lib/components/stats/countStats.d.ts +5 -0
  117. package/lib/components/stats/frameStepStats.d.ts +8 -0
  118. package/lib/components/stats/performanceStats.d.ts +6 -0
  119. package/lib/components/stats/statsPane.d.ts +3 -0
  120. package/lib/components/stats/systemStats.d.ts +5 -0
  121. package/lib/components/teachingMoment.d.ts +20 -0
  122. package/lib/components/textureEditor/canvasManager.d.ts +113 -0
  123. package/lib/components/textureEditor/canvasShader.d.ts +10 -0
  124. package/lib/components/textureEditor/channels.d.ts +25 -0
  125. package/lib/components/textureEditor/properties.d.ts +23 -0
  126. package/lib/components/textureEditor/status.d.ts +13 -0
  127. package/lib/components/textureEditor/textureEditor.d.ts +113 -0
  128. package/lib/components/textureEditor/tools.d.ts +20 -0
  129. package/lib/components/theme.d.ts +10 -0
  130. package/lib/components/tools/capture/equirectangularCaptureTool.d.ts +5 -0
  131. package/lib/components/tools/capture/gifCaptureTool.d.ts +7 -0
  132. package/lib/components/tools/capture/sceneReplayTool.d.ts +5 -0
  133. package/lib/components/tools/capture/screenshotTool.d.ts +5 -0
  134. package/lib/components/tools/capture/videoCaptureTool.d.ts +5 -0
  135. package/lib/components/tools/exportTools.d.ts +11 -0
  136. package/lib/components/tools/import/gltfAnimationImportTool.d.ts +5 -0
  137. package/lib/components/tools/import/gltfLoaderOptionsTool.d.ts +8 -0
  138. package/lib/components/tools/import/gltfValidationTool.d.ts +5 -0
  139. package/lib/components/tools/reflectorTools.d.ts +5 -0
  140. package/lib/components/tools/toolsPane.d.ts +3 -0
  141. package/lib/components/uxContextProvider.d.ts +2 -0
  142. package/lib/contexts/extensionManagerContext.d.ts +6 -0
  143. package/lib/contexts/propertyContext.d.ts +30 -0
  144. package/lib/contexts/settingsContext.d.ts +3 -0
  145. package/lib/contexts/watcherContext.d.ts +3 -0
  146. package/lib/extensibility/builtInsExtensionFeed.d.ts +21 -0
  147. package/lib/extensibility/defaultInspectorExtensionFeed.d.ts +5 -0
  148. package/lib/extensibility/extensionFeed.d.ts +113 -0
  149. package/lib/extensibility/extensionManager.d.ts +111 -0
  150. package/lib/extensions/quickCreate/cameras.d.ts +14 -0
  151. package/lib/extensions/quickCreate/frameGraphs.d.ts +14 -0
  152. package/lib/extensions/quickCreate/lights.d.ts +14 -0
  153. package/lib/extensions/quickCreate/materials.d.ts +14 -0
  154. package/lib/extensions/quickCreate/meshes.d.ts +10 -0
  155. package/lib/extensions/quickCreate/particles.d.ts +15 -0
  156. package/lib/extensions/quickCreate/quickCreateLayout.d.ts +44 -0
  157. package/lib/extensions/quickCreate/quickCreateToolsService.d.ts +11 -0
  158. package/lib/extensions/quickCreate/renderingPipelines.d.ts +14 -0
  159. package/lib/extensions/quickCreate/settingsPopover.d.ts +14 -0
  160. package/lib/extensions/quickCreate/spriteManagers.d.ts +14 -0
  161. package/lib/{extensionsListService-zYdKn8uM.js → extensionsListService-eRZtqcfj.js} +8 -8
  162. package/lib/extensionsListService-eRZtqcfj.js.map +1 -0
  163. package/lib/hooks/compoundPropertyHooks.d.ts +24 -0
  164. package/lib/hooks/instrumentationHooks.d.ts +9 -0
  165. package/lib/hooks/observableHooks.d.ts +35 -0
  166. package/lib/hooks/pollingHooks.d.ts +7 -0
  167. package/lib/hooks/resourceHooks.d.ts +20 -0
  168. package/lib/hooks/settingsHooks.d.ts +13 -0
  169. package/lib/hooks/teachingMomentHooks.d.ts +34 -0
  170. package/lib/hooks/themeHooks.d.ts +17 -0
  171. package/lib/hooks/useObservableArray.d.ts +11 -0
  172. package/lib/hooks/useResizeHandle.d.ts +35 -0
  173. package/lib/{index-DuVF9zYN.js → index-FWuITINA.js} +1932 -1031
  174. package/lib/index-FWuITINA.js.map +1 -0
  175. package/lib/index.d.ts +111 -74767
  176. package/lib/index.js +6 -6
  177. package/lib/inspectable.d.ts +67 -0
  178. package/lib/inspector.d.ts +41 -0
  179. package/lib/instrumentation/functionInstrumentation.d.ts +20 -0
  180. package/lib/instrumentation/propertyInstrumentation.d.ts +33 -0
  181. package/lib/legacy/debugLayer.d.ts +24 -0
  182. package/lib/legacy/inspectableCustomPropertiesService.d.ts +3 -0
  183. package/lib/legacy/inspector.d.ts +39 -0
  184. package/lib/legacy/legacy.d.ts +9 -0
  185. package/lib/legacy/propertiesSectionMapping.d.ts +99 -0
  186. package/lib/misc/arrayUtils.d.ts +4 -0
  187. package/lib/misc/assert.d.ts +5 -0
  188. package/lib/misc/defaultPerfStrategies.d.ts +16 -0
  189. package/lib/misc/graphUtils.d.ts +44 -0
  190. package/lib/misc/nodeGeometryEditor.d.ts +3 -0
  191. package/lib/misc/nodeMaterialEditor.d.ts +2 -0
  192. package/lib/misc/nodeParticleEditor.d.ts +2 -0
  193. package/lib/misc/nodeRenderGraphEditor.d.ts +2 -0
  194. package/lib/misc/observableCollection.d.ts +23 -0
  195. package/lib/misc/snippetUtils.d.ts +74 -0
  196. package/lib/misc/textureTools.d.ts +34 -0
  197. package/lib/modularTool.d.ts +42 -0
  198. package/lib/modularity/serviceContainer.d.ts +64 -0
  199. package/lib/modularity/serviceDefinition.d.ts +64 -0
  200. package/lib/{quickCreateToolsService-BtsSLeMY.js → quickCreateToolsService-MzZbVrvr.js} +7 -7
  201. package/lib/quickCreateToolsService-MzZbVrvr.js.map +1 -0
  202. package/lib/{reflectorService-Bzs-Ykos.js → reflectorService-DdPEZLjO.js} +7 -7
  203. package/lib/reflectorService-DdPEZLjO.js.map +1 -0
  204. package/lib/services/cli/cliConnectionStatus.d.ts +19 -0
  205. package/lib/services/cli/entityQueryService.d.ts +8 -0
  206. package/lib/services/cli/inspectableBridgeService.d.ts +22 -0
  207. package/lib/services/cli/inspectableCommandRegistry.d.ts +58 -0
  208. package/lib/services/cli/perfTraceCommandService.d.ts +9 -0
  209. package/lib/services/cli/screenshotCommandService.d.ts +8 -0
  210. package/lib/services/cli/shaderCommandService.d.ts +7 -0
  211. package/lib/services/cli/statsCommandService.d.ts +9 -0
  212. package/lib/services/cliConnectionStatusService.d.ts +4 -0
  213. package/lib/services/defaultToolbarMetadata.d.ts +6 -0
  214. package/lib/services/extensionsListService.d.ts +3 -0
  215. package/lib/services/gizmoService.d.ts +84 -0
  216. package/lib/services/gizmoToolbarService.d.ts +5 -0
  217. package/lib/services/globalSettings.d.ts +5 -0
  218. package/lib/services/highlightService.d.ts +8 -0
  219. package/lib/services/miniStatsService.d.ts +4 -0
  220. package/lib/services/panes/debugService.d.ts +25 -0
  221. package/lib/services/panes/properties/animationGroupPropertiesService.d.ts +4 -0
  222. package/lib/services/panes/properties/animationPropertiesService.d.ts +5 -0
  223. package/lib/services/panes/properties/atmospherePropertiesService.d.ts +5 -0
  224. package/lib/services/panes/properties/audioPropertiesService.d.ts +3 -0
  225. package/lib/services/panes/properties/cameraPropertiesService.d.ts +7 -0
  226. package/lib/services/panes/properties/commonPropertiesService.d.ts +3 -0
  227. package/lib/services/panes/properties/effectLayerPropertiesService.d.ts +3 -0
  228. package/lib/services/panes/properties/frameGraphPropertiesService.d.ts +3 -0
  229. package/lib/services/panes/properties/lightPropertiesServices.d.ts +4 -0
  230. package/lib/services/panes/properties/materialPropertiesService.d.ts +4 -0
  231. package/lib/services/panes/properties/metadataPropertiesService.d.ts +3 -0
  232. package/lib/services/panes/properties/nodePropertiesService.d.ts +4 -0
  233. package/lib/services/panes/properties/particleSystemPropertiesService.d.ts +4 -0
  234. package/lib/services/panes/properties/physicsPropertiesService.d.ts +3 -0
  235. package/lib/services/panes/properties/postProcessPropertiesService.d.ts +3 -0
  236. package/lib/services/panes/properties/propertiesService.d.ts +53 -0
  237. package/lib/services/panes/properties/renderingPipelinePropertiesService.d.ts +3 -0
  238. package/lib/services/panes/properties/scenePropertiesService.d.ts +4 -0
  239. package/lib/services/panes/properties/skeletonPropertiesService.d.ts +4 -0
  240. package/lib/services/panes/properties/spritePropertiesService.d.ts +4 -0
  241. package/lib/services/panes/properties/texturePropertiesService.d.ts +4 -0
  242. package/lib/services/panes/properties/transformPropertiesService.d.ts +3 -0
  243. package/lib/services/panes/scene/animationGroupExplorerService.d.ts +5 -0
  244. package/lib/services/panes/scene/atmosphereExplorerService.d.ts +5 -0
  245. package/lib/services/panes/scene/defaultSectionsMetadata.d.ts +33 -0
  246. package/lib/services/panes/scene/disposableCommandService.d.ts +4 -0
  247. package/lib/services/panes/scene/effectLayersExplorerService.d.ts +5 -0
  248. package/lib/services/panes/scene/frameGraphExplorerService.d.ts +5 -0
  249. package/lib/services/panes/scene/guiExplorerService.d.ts +5 -0
  250. package/lib/services/panes/scene/materialExplorerService.d.ts +5 -0
  251. package/lib/services/panes/scene/nodeExplorerService.d.ts +7 -0
  252. package/lib/services/panes/scene/particleSystemExplorerService.d.ts +5 -0
  253. package/lib/services/panes/scene/postProcessExplorerService.d.ts +5 -0
  254. package/lib/services/panes/scene/renderingPipelinesExplorerService.d.ts +5 -0
  255. package/lib/services/panes/scene/sceneExplorerService.d.ts +34 -0
  256. package/lib/services/panes/scene/skeletonExplorerService.d.ts +5 -0
  257. package/lib/services/panes/scene/soundExplorerService.d.ts +5 -0
  258. package/lib/services/panes/scene/spriteManagerExplorerService.d.ts +6 -0
  259. package/lib/services/panes/scene/texturesExplorerService.d.ts +5 -0
  260. package/lib/services/panes/settingsService.d.ts +25 -0
  261. package/lib/services/panes/statsService.d.ts +28 -0
  262. package/lib/services/panes/tools/captureService.d.ts +3 -0
  263. package/lib/services/panes/tools/exportService.d.ts +3 -0
  264. package/lib/services/panes/tools/import/gltfAnimationImportService.d.ts +3 -0
  265. package/lib/services/panes/tools/import/gltfLoaderOptionsDefaults.d.ts +46 -0
  266. package/lib/services/panes/tools/import/gltfLoaderOptionsService.d.ts +4 -0
  267. package/lib/services/panes/tools/import/gltfValidationService.d.ts +3 -0
  268. package/lib/services/panes/tools/reflectorService.d.ts +7 -0
  269. package/lib/services/panes/toolsService.d.ts +29 -0
  270. package/lib/services/pickingService.d.ts +7 -0
  271. package/lib/services/reactContextService.d.ts +18 -0
  272. package/lib/services/sceneContext.d.ts +19 -0
  273. package/lib/services/selectionService.d.ts +24 -0
  274. package/lib/services/settingsStore.d.ts +55 -0
  275. package/lib/services/shellService.d.ts +256 -0
  276. package/lib/services/shellSettingsService.d.ts +3 -0
  277. package/lib/services/textureEditor/textureEditorService.d.ts +21 -0
  278. package/lib/services/textureEditor/tools/contrast.d.ts +2 -0
  279. package/lib/services/textureEditor/tools/eyedropper.d.ts +5 -0
  280. package/lib/services/textureEditor/tools/floodfill.d.ts +5 -0
  281. package/lib/services/textureEditor/tools/paintbrush.d.ts +2 -0
  282. package/lib/services/textureEditor/tools/rectangularSelect.d.ts +5 -0
  283. package/lib/services/themeSelectorService.d.ts +3 -0
  284. package/lib/services/themeService.d.ts +60 -0
  285. package/lib/services/userFeedbackService.d.ts +3 -0
  286. package/lib/services/watcherService.d.ts +38 -0
  287. package/lib/themes/babylonTheme.d.ts +3 -0
  288. package/package.json +12 -5
  289. package/readme.md +27 -0
  290. package/lib/extensionsListService-zYdKn8uM.js.map +0 -1
  291. package/lib/index-DuVF9zYN.js.map +0 -1
  292. package/lib/quickCreateToolsService-BtsSLeMY.js.map +0 -1
  293. package/lib/reflectorService-Bzs-Ykos.js.map +0 -1
@@ -0,0 +1,5 @@
1
+ import { type ServiceDefinition } from "../../../modularity/serviceDefinition";
2
+ import { type ISceneContext } from "../../sceneContext";
3
+ import { type IWatcherService } from "../../watcherService";
4
+ import { type ISceneExplorerService } from "./sceneExplorerService";
5
+ export declare const TextureExplorerServiceDefinition: ServiceDefinition<[], [ISceneExplorerService, ISceneContext, IWatcherService]>;
@@ -0,0 +1,25 @@
1
+ import { type IDisposable, type Scene } from "@babylonjs/core/index.js";
2
+ import { type DynamicAccordionSection, type DynamicAccordionSectionContent } from "../../components/extensibleAccordion";
3
+ import { type IService, type ServiceDefinition } from "../../modularity/serviceDefinition";
4
+ import { type ISceneContext } from "../sceneContext";
5
+ import { type IShellService } from "../shellService";
6
+ /**
7
+ * The unique identity symbol for the settings service.
8
+ */
9
+ export declare const SettingsServiceIdentity: unique symbol;
10
+ /**
11
+ * Allows new sections or content to be added to the Settings pane.
12
+ */
13
+ export interface ISettingsService extends IService<typeof SettingsServiceIdentity> {
14
+ /**
15
+ * Adds a new section to the settings pane.
16
+ * @param section A description of the section to add.
17
+ */
18
+ addSection(section: DynamicAccordionSection): IDisposable;
19
+ /**
20
+ * Adds content to one or more sections in the settings pane.
21
+ * @param content A description of the content to add.
22
+ */
23
+ addSectionContent(content: DynamicAccordionSectionContent<Scene>): IDisposable;
24
+ }
25
+ export declare const SettingsServiceDefinition: ServiceDefinition<[ISettingsService], [IShellService, ISceneContext]>;
@@ -0,0 +1,28 @@
1
+ import { type IDisposable, type Scene } from "@babylonjs/core/index.js";
2
+ import { type DynamicAccordionSection, type DynamicAccordionSectionContent } from "../../components/extensibleAccordion";
3
+ import { type IService, type ServiceDefinition } from "../../modularity/serviceDefinition";
4
+ import { type ISceneContext } from "../sceneContext";
5
+ import { type IShellService } from "../shellService";
6
+ /**
7
+ * The unique identity symbol for the stats service.
8
+ */
9
+ export declare const StatsServiceIdentity: unique symbol;
10
+ /**
11
+ * Allows new sections or content to be added to the stats pane.
12
+ */
13
+ export interface IStatsService extends IService<typeof StatsServiceIdentity> {
14
+ /**
15
+ * Adds a new section (e.g. "Count", "Frame Steps Duration", etc.).
16
+ * @param section A description of the section to add.
17
+ */
18
+ addSection(section: DynamicAccordionSection): IDisposable;
19
+ /**
20
+ * Adds content to one or more sections.
21
+ * @param content A description of the content to add.
22
+ */
23
+ addSectionContent(content: DynamicAccordionSectionContent<Scene>): IDisposable;
24
+ }
25
+ /**
26
+ * Provides a scene stats pane.
27
+ */
28
+ export declare const StatsServiceDefinition: ServiceDefinition<[IStatsService], [IShellService, ISceneContext]>;
@@ -0,0 +1,3 @@
1
+ import { type ServiceDefinition } from "../../../modularity/serviceDefinition";
2
+ import { type IToolsService } from "../toolsService";
3
+ export declare const CaptureToolsDefinition: ServiceDefinition<[], [IToolsService]>;
@@ -0,0 +1,3 @@
1
+ import { type ServiceDefinition } from "../../../modularity/serviceDefinition";
2
+ import { type IToolsService } from "../toolsService";
3
+ export declare const ExportServiceDefinition: ServiceDefinition<[], [IToolsService]>;
@@ -0,0 +1,3 @@
1
+ import { type ServiceDefinition } from "../../../../modularity/serviceDefinition";
2
+ import { type IToolsService } from "../../toolsService";
3
+ export declare const GLTFAnimationImportServiceDefinition: ServiceDefinition<[], [IToolsService]>;
@@ -0,0 +1,46 @@
1
+ /**
2
+ * Helper type to make all properties of T nullable.
3
+ */
4
+ export type NullableProperties<T> = {
5
+ [K in keyof T]: T[K] | null;
6
+ };
7
+ export declare const LoaderOptionDefaults: {
8
+ capturePerformanceCounters: false;
9
+ loggingEnabled: false;
10
+ } & {
11
+ alwaysComputeBoundingBox: boolean;
12
+ alwaysComputeSkeletonRootNode: boolean;
13
+ animationStartMode: import("@babylonjs/loaders/glTF/glTFFileLoader.js").GLTFLoaderAnimationStartMode;
14
+ compileMaterials: boolean;
15
+ compileShadowGenerators: boolean;
16
+ coordinateSystemMode: import("@babylonjs/loaders/glTF/glTFFileLoader.js").GLTFLoaderCoordinateSystemMode;
17
+ createInstances: boolean;
18
+ loadAllMaterials: boolean;
19
+ loadMorphTargets: boolean;
20
+ loadNodeAnimations: boolean;
21
+ loadOnlyMaterials: boolean;
22
+ loadSkins: boolean;
23
+ skipMaterials: boolean;
24
+ targetFps: number;
25
+ transparencyAsCoverage: boolean;
26
+ useClipPlane: boolean;
27
+ useGltfTextureNames: boolean;
28
+ useRangeRequests: boolean;
29
+ useSRGBBuffers: boolean;
30
+ validate: boolean;
31
+ useOpenPBR: boolean;
32
+ dontUseTransmissionHelper: boolean;
33
+ };
34
+ export type GLTFLoaderOptionsType = NullableProperties<typeof LoaderOptionDefaults>;
35
+ export declare const ExtensionOptionDefaults: {
36
+ MSFT_lod: {
37
+ maxLODsToLoad: number;
38
+ };
39
+ };
40
+ export type GLTFExtensionOptionsType = Record<string, {
41
+ /**
42
+ *
43
+ */
44
+ enabled: boolean | null;
45
+ [key: string]: unknown;
46
+ }>;
@@ -0,0 +1,4 @@
1
+ import { type ServiceDefinition } from "../../../../modularity/serviceDefinition";
2
+ import { type IToolsService } from "../../toolsService";
3
+ export declare const GLTFLoaderServiceIdentity: unique symbol;
4
+ export declare const GLTFLoaderOptionsServiceDefinition: ServiceDefinition<[], [IToolsService]>;
@@ -0,0 +1,3 @@
1
+ import { type ServiceDefinition } from "../../../../modularity/serviceDefinition";
2
+ import { type IToolsService } from "../../toolsService";
3
+ export declare const GLTFValidationServiceDefinition: ServiceDefinition<[], [IToolsService]>;
@@ -0,0 +1,7 @@
1
+ import { type ServiceDefinition } from "../../../modularity/serviceDefinition";
2
+ import { type IToolsService } from "../toolsService";
3
+ export declare const ReflectorServiceDefinition: ServiceDefinition<[], [IToolsService]>;
4
+ declare const _default: {
5
+ readonly serviceDefinitions: readonly [ServiceDefinition<[], [IToolsService]>];
6
+ };
7
+ export default _default;
@@ -0,0 +1,29 @@
1
+ import { type IDisposable, type Scene } from "@babylonjs/core/scene.js";
2
+ import { type IService, type ServiceDefinition } from "../../modularity/serviceDefinition";
3
+ import { type IShellService } from "../shellService";
4
+ import { type DynamicAccordionSection, type DynamicAccordionSectionContent } from "../../components/extensibleAccordion";
5
+ import { type ISceneContext } from "../sceneContext";
6
+ /**
7
+ * The unique identity symbol for the tools service.
8
+ */
9
+ export declare const ToolsServiceIdentity: unique symbol;
10
+ /**
11
+ * A service that provides tools for the user to generate artifacts or perform actions on entities.
12
+ */
13
+ export interface IToolsService extends IService<typeof ToolsServiceIdentity> {
14
+ /**
15
+ * Adds a new section (e.g. "Export", "Capture", etc.).
16
+ * @param section A description of the section to add.
17
+ */
18
+ addSection(section: DynamicAccordionSection): IDisposable;
19
+ /**
20
+ * Adds content to one or more sections.
21
+ * @param content A description of the content to add.
22
+ */
23
+ addSectionContent(content: DynamicAccordionSectionContent<Scene>): IDisposable;
24
+ }
25
+ /**
26
+ * A collection of usually optional, dynamic extensions.
27
+ * Common examples includes importing/exporting, or other general creation tools.
28
+ */
29
+ export declare const ToolsServiceDefinition: ServiceDefinition<[IToolsService], [IShellService, ISceneContext]>;
@@ -0,0 +1,7 @@
1
+ import { type ServiceDefinition } from "../modularity/serviceDefinition";
2
+ import { type IGizmoService } from "./gizmoService";
3
+ import { type ISettingsService } from "./panes/settingsService";
4
+ import { type ISceneContext } from "./sceneContext";
5
+ import { type ISelectionService } from "./selectionService";
6
+ import { type IShellService } from "./shellService";
7
+ export declare const PickingServiceDefinition: ServiceDefinition<[], [ISceneContext, IShellService, ISelectionService, IGizmoService, ISettingsService]>;
@@ -0,0 +1,18 @@
1
+ import { type Context } from "react";
2
+ import { type IDisposable } from "@babylonjs/core/index.js";
3
+ import { type IService } from "../modularity/serviceDefinition";
4
+ /**
5
+ * The unique identity symbol for the react context service.
6
+ */
7
+ export declare const ReactContextServiceIdentity: unique symbol;
8
+ export type ReactContextHandle<T> = IDisposable & {
9
+ updateValue: (newValue: T) => void;
10
+ };
11
+ /**
12
+ * ReactContextService allows global React contexts to be added/removed/updated.
13
+ */
14
+ export interface IReactContextService extends IService<typeof ReactContextServiceIdentity> {
15
+ addContext<T>(provider: Context<T>["Provider"], initialValue: T, options?: {
16
+ order?: number;
17
+ }): ReactContextHandle<T>;
18
+ }
@@ -0,0 +1,19 @@
1
+ import { type IReadonlyObservable, type Nullable, type Scene } from "@babylonjs/core/index.js";
2
+ import { type IService } from "../modularity/serviceDefinition";
3
+ /**
4
+ * The unique identity symbol for the scene context service.
5
+ */
6
+ export declare const SceneContextIdentity: unique symbol;
7
+ /**
8
+ * SceneContext provides the current scene, but could have different implementations depending on the context (e.g. inspector, sandbox, etc.)
9
+ */
10
+ export interface ISceneContext extends IService<typeof SceneContextIdentity> {
11
+ /**
12
+ * Gets the current scene.
13
+ */
14
+ readonly currentScene: Nullable<Scene>;
15
+ /**
16
+ * Observable that fires whenever the current scene changes.
17
+ */
18
+ readonly currentSceneObservable: IReadonlyObservable<Nullable<Scene>>;
19
+ }
@@ -0,0 +1,24 @@
1
+ import { type IReadonlyObservable, type Nullable } from "@babylonjs/core/index.js";
2
+ import { type IService, type ServiceDefinition } from "../modularity/serviceDefinition";
3
+ import { type ISettingsService } from "./panes/settingsService";
4
+ import { type ISceneContext } from "./sceneContext";
5
+ import { type ISettingsStore } from "./settingsStore";
6
+ import { type IShellService } from "./shellService";
7
+ /**
8
+ * The unique identity symbol for the selection service.
9
+ */
10
+ export declare const SelectionServiceIdentity: unique symbol;
11
+ /**
12
+ * Tracks the currently selected entity.
13
+ */
14
+ export interface ISelectionService extends IService<typeof SelectionServiceIdentity> {
15
+ /**
16
+ * Gets or sets the currently selected entity.
17
+ */
18
+ selectedEntity: Nullable<object>;
19
+ /**
20
+ * An observable that notifies when the selected entity changes.
21
+ */
22
+ readonly onSelectedEntityChanged: IReadonlyObservable<void>;
23
+ }
24
+ export declare const SelectionServiceDefinition: ServiceDefinition<[ISelectionService], [IShellService, ISettingsStore, ISettingsService, ISceneContext]>;
@@ -0,0 +1,55 @@
1
+ import { type IReadonlyObservable } from "@babylonjs/core/index.js";
2
+ import { type IService } from "../modularity/serviceDefinition";
3
+ /**
4
+ * The unique identity symbol for the settings store service.
5
+ */
6
+ export declare const SettingsStoreIdentity: unique symbol;
7
+ /**
8
+ * Describes a setting by its key and default value.
9
+ */
10
+ export type SettingDescriptor<T> = {
11
+ /**
12
+ * The unique key used to identify this setting in the store.
13
+ */
14
+ readonly key: string;
15
+ /**
16
+ * The default value to use when the setting has not been explicitly set.
17
+ */
18
+ readonly defaultValue: T;
19
+ };
20
+ /**
21
+ * Provides a key-value store for persisting user settings.
22
+ */
23
+ export interface ISettingsStore extends IService<typeof SettingsStoreIdentity> {
24
+ /**
25
+ * An observable that notifies when a setting has changed, providing the key of the changed setting.
26
+ */
27
+ onChanged: IReadonlyObservable<string>;
28
+ /**
29
+ * Reads a setting from the store.
30
+ * @param descriptor The descriptor of the setting to read.
31
+ * @returns The current value of the setting, or the default value if it has not been set.
32
+ */
33
+ readSetting<T>(descriptor: SettingDescriptor<T>): T;
34
+ /**
35
+ * Writes a setting to the store.
36
+ * @param descriptor The descriptor of the setting to write.
37
+ * @param value The value to write.
38
+ */
39
+ writeSetting<T>(descriptor: SettingDescriptor<T>, value: T): void;
40
+ }
41
+ /**
42
+ * Default implementation of {@link ISettingsStore} that persists settings using browser local storage.
43
+ */
44
+ export declare class SettingsStore implements ISettingsStore {
45
+ private readonly _namespace;
46
+ private readonly _onChanged;
47
+ /**
48
+ * Creates a new settings store.
49
+ * @param _namespace A namespace used to scope the settings keys to avoid collisions with other stores.
50
+ */
51
+ constructor(_namespace: string);
52
+ get onChanged(): IReadonlyObservable<Readonly<string>>;
53
+ readSetting<T>(descriptor: SettingDescriptor<T>): T;
54
+ writeSetting<T>(descriptor: SettingDescriptor<T>, value: T): void;
55
+ }
@@ -0,0 +1,256 @@
1
+ import { type ComponentType } from "react";
2
+ import { type IDisposable, type Nullable } from "@babylonjs/core/index.js";
3
+ import { type IService, type ServiceDefinition } from "../modularity/serviceDefinition";
4
+ import { type SettingDescriptor } from "./settingsStore";
5
+ /**
6
+ * Setting descriptor for persisting side pane dock location overrides.
7
+ */
8
+ export declare const SidePaneDockOverridesSettingDescriptor: SettingDescriptor<Record<string, Readonly<{
9
+ horizontalLocation: HorizontalLocation;
10
+ verticalLocation: VerticalLocation;
11
+ }> | undefined>>;
12
+ /**
13
+ * Setting descriptor for persisting the left side pane width adjustment.
14
+ */
15
+ export declare const LeftSidePaneWidthAdjustSettingDescriptor: SettingDescriptor<number>;
16
+ /**
17
+ * Setting descriptor for persisting the left side pane height adjustment.
18
+ */
19
+ export declare const LeftSidePaneHeightAdjustSettingDescriptor: SettingDescriptor<number>;
20
+ /**
21
+ * Setting descriptor for persisting the right side pane width adjustment.
22
+ */
23
+ export declare const RightSidePaneWidthAdjustSettingDescriptor: SettingDescriptor<number>;
24
+ /**
25
+ * Setting descriptor for persisting the right side pane height adjustment.
26
+ */
27
+ export declare const RightSidePaneHeightAdjustSettingDescriptor: SettingDescriptor<number>;
28
+ /**
29
+ * Represents a horizontal location in the shell layout.
30
+ */
31
+ export type HorizontalLocation = "left" | "right";
32
+ /**
33
+ * Represents a vertical location in the shell layout.
34
+ */
35
+ export type VerticalLocation = "top" | "bottom";
36
+ type TeachingMomentInfo = boolean | {
37
+ readonly title: string;
38
+ readonly description: string;
39
+ };
40
+ /**
41
+ * Describes an item that can be added to one of the shell's toolbars.
42
+ */
43
+ export type ToolbarItemDefinition = {
44
+ /**
45
+ * A unique key for the toolbar item.
46
+ */
47
+ key: string;
48
+ /**
49
+ * The component to render for the toolbar item.
50
+ */
51
+ component: ComponentType;
52
+ /**
53
+ * An optional order for the toolbar item, relative to other items.
54
+ * Defaults to 0.
55
+ */
56
+ order?: number;
57
+ /**
58
+ * The horizontal location of the toolbar item.
59
+ * Can be either "left" or "right".
60
+ * In "compact" toolbar mode, "left" and "right" mean the "compact" toolbars at the top/bottom of the left/right side panes.
61
+ * In "full" toolbar mode, "left" and "right" mean the left side and right side of the full width toolbars above/below the side panes.
62
+ */
63
+ horizontalLocation: HorizontalLocation;
64
+ /**
65
+ * The vertical location of the toolbar item.
66
+ * Can be either "top" or "bottom".
67
+ */
68
+ verticalLocation: VerticalLocation;
69
+ /**
70
+ * An optional display name for the toolbar item, used for teaching moments, tooltips, etc.
71
+ */
72
+ displayName?: string;
73
+ /**
74
+ * An optional teaching moment info. The default assumes the toolbar item was added by an extension and provides a generic title and description based on the display name or id, which is helpful for discoverability of new items.
75
+ * Set this to false to suppress the teaching moment, which may be desirable for built in items or items that are added in a non-dynamic way.
76
+ * Set it to an object with a title and description to provide a custom teaching moment, which may be desirable if the generic title and description are not sufficient.
77
+ * Teaching moments are more helpful for dynamically added items, possibly from extensions.
78
+ */
79
+ teachingMoment?: TeachingMomentInfo;
80
+ };
81
+ /**
82
+ * Describes a side pane that can be added to the shell's left or right side.
83
+ */
84
+ export type SidePaneDefinition = {
85
+ /**
86
+ * A unique key for the side pane.
87
+ */
88
+ key: string;
89
+ /**
90
+ * An icon component to render for the pane tab.
91
+ */
92
+ icon: ComponentType;
93
+ /**
94
+ * The component to render for the side pane's content.
95
+ */
96
+ content: ComponentType;
97
+ /**
98
+ * An optional order for the side pane, relative to other panes.
99
+ * Defaults to 0.
100
+ */
101
+ order?: number;
102
+ /**
103
+ * The horizontal location of the side pane.
104
+ * Can be either "left" or "right".
105
+ */
106
+ horizontalLocation: HorizontalLocation;
107
+ /**
108
+ * The vertical location of the side pane.
109
+ * Can be either "top" or "bottom".
110
+ */
111
+ verticalLocation: VerticalLocation;
112
+ /**
113
+ * The title of the side pane, displayed as a standardized header at the top of the pane.
114
+ */
115
+ title: string;
116
+ /**
117
+ * An optional teaching moment info. The default assumes the side pane was added by an extension and provides a generic title and description based on the display name or id, which is helpful for discoverability of new items.
118
+ * Set this to false to suppress the teaching moment, which may be desirable for built in items or items that are added in a non-dynamic way.
119
+ * Set it to an object with a title and description to provide a custom teaching moment, which may be desirable if the generic title and description are not sufficient.
120
+ * Teaching moments are more helpful for dynamically added panes, possibly from extensions.
121
+ */
122
+ teachingMoment?: TeachingMomentInfo;
123
+ /**
124
+ * Keep the pane mounted even when it is not visible. This is useful if you don't want the
125
+ * user to lose the complex visual state when switching between tabs.
126
+ */
127
+ keepMounted?: boolean;
128
+ };
129
+ type RegisteredSidePane = {
130
+ readonly key: string;
131
+ select(): void;
132
+ };
133
+ type SidePaneContainer = {
134
+ readonly isDocked: boolean;
135
+ dock(): void;
136
+ undock(): void;
137
+ readonly isCollapsed: boolean;
138
+ collapse(): void;
139
+ expand(): void;
140
+ };
141
+ /**
142
+ * Describes content that can be added to the shell's central area (between the side panes and toolbars - e.g. the main content).
143
+ */
144
+ export type CentralContentDefinition = {
145
+ /**
146
+ * A unique key for the central content.
147
+ */
148
+ key: string;
149
+ /**
150
+ * The component to render for the central content.
151
+ */
152
+ component: ComponentType;
153
+ /**
154
+ * An optional order for content, relative to other central content.
155
+ * Defaults to 0.
156
+ */
157
+ order?: number;
158
+ };
159
+ /**
160
+ * The unique identity symbol for the root component service.
161
+ */
162
+ export declare const RootComponentServiceIdentity: unique symbol;
163
+ /**
164
+ * Exposes a top level component that should be rendered as the React root.
165
+ */
166
+ export interface IRootComponentService extends IService<typeof RootComponentServiceIdentity> {
167
+ /**
168
+ * The root component that should be rendered as the React root.
169
+ */
170
+ readonly rootComponent: ComponentType;
171
+ }
172
+ /**
173
+ * The unique identity symbol for the shell service.
174
+ */
175
+ export declare const ShellServiceIdentity: unique symbol;
176
+ /**
177
+ * Provides a shell for the application, including toolbars, side panes, and central content.
178
+ * This service allows adding toolbar items, side panes, and central content dynamically.
179
+ */
180
+ export interface IShellService extends IService<typeof ShellServiceIdentity> {
181
+ /**
182
+ * Adds a new item to one of the shell's toolbars.
183
+ * @param item Defines the item to add.
184
+ */
185
+ addToolbarItem(item: Readonly<ToolbarItemDefinition>): IDisposable;
186
+ /**
187
+ * Adds a new side pane to the shell.
188
+ * @param pane Defines the side pane to add.
189
+ */
190
+ addSidePane(pane: Readonly<SidePaneDefinition>): IDisposable;
191
+ /**
192
+ * Adds new central content to the shell.
193
+ * @param content Defines the content area to add.
194
+ */
195
+ addCentralContent(content: Readonly<CentralContentDefinition>): IDisposable;
196
+ /**
197
+ * The left side pane container.
198
+ */
199
+ readonly leftSidePaneContainer: Nullable<SidePaneContainer>;
200
+ /**
201
+ * The right side pane container.
202
+ */
203
+ readonly rightSidePaneContainer: Nullable<SidePaneContainer>;
204
+ /**
205
+ * The side panes currently present in the shell.
206
+ */
207
+ readonly sidePanes: readonly RegisteredSidePane[];
208
+ }
209
+ type ToolbarMode = "full" | "compact";
210
+ /**
211
+ * Options for configuring the shell service.
212
+ */
213
+ export type ShellServiceOptions = {
214
+ /**
215
+ * The default width of the left side pane.
216
+ */
217
+ leftPaneDefaultWidth?: number;
218
+ /**
219
+ * The minimum width of the left side pane.
220
+ */
221
+ leftPaneMinWidth?: number;
222
+ /**
223
+ * The default width of the right side pane.
224
+ */
225
+ rightPaneDefaultWidth?: number;
226
+ /**
227
+ * The minimum width of the right side pane.
228
+ */
229
+ rightPaneMinWidth?: number;
230
+ /**
231
+ * The mode of the toolbars.
232
+ * Can be either "full" (default) or "compact".
233
+ * In "full" mode, toolbars are displayed above and below the side panes.
234
+ * In "compact" mode, toolbars are displayed at the top and bottom of the left and right side panes.
235
+ */
236
+ toolbarMode?: ToolbarMode;
237
+ /**
238
+ * Whether the left side pane should start collapsed. Default is false.
239
+ */
240
+ leftPaneDefaultCollapsed?: boolean;
241
+ /**
242
+ * Whether the right side pane should start collapsed. Default is false.
243
+ */
244
+ rightPaneDefaultCollapsed?: boolean;
245
+ /**
246
+ * A function that can remap the default location of side panes.
247
+ * @param sidePane The side pane to remap.
248
+ * @returns The new location for the side pane.
249
+ */
250
+ sidePaneRemapper?: (sidePane: Readonly<SidePaneDefinition>) => Nullable<{
251
+ horizontalLocation: HorizontalLocation;
252
+ verticalLocation: VerticalLocation;
253
+ }>;
254
+ };
255
+ export declare function MakeShellServiceDefinition({ leftPaneDefaultWidth, leftPaneMinWidth, rightPaneDefaultWidth, rightPaneMinWidth, leftPaneDefaultCollapsed, rightPaneDefaultCollapsed, toolbarMode, sidePaneRemapper, }?: ShellServiceOptions): ServiceDefinition<[IShellService, IRootComponentService], []>;
256
+ export {};
@@ -0,0 +1,3 @@
1
+ import { type ServiceDefinition } from "../modularity/serviceDefinition";
2
+ import { type ISettingsService } from "./panes/settingsService";
3
+ export declare const ShellSettingsServiceDefinition: ServiceDefinition<[], [ISettingsService]>;
@@ -0,0 +1,21 @@
1
+ import { type ComponentType } from "react";
2
+ import { type IDisposable } from "@babylonjs/core/index.js";
3
+ import { type TextureEditorProps, type TextureEditorToolProvider } from "../../components/textureEditor/textureEditor";
4
+ import { type IService, type ServiceDefinition } from "../../modularity/serviceDefinition";
5
+ export declare const TextureEditorServiceIdentity: unique symbol;
6
+ /**
7
+ * Allows tools to be added to the texture editor, and also exposes a React component that is the texture editor with all the tools configured.
8
+ */
9
+ export interface ITextureEditorService extends IService<typeof TextureEditorServiceIdentity> {
10
+ /**
11
+ * Adds a new tool to the texture editor.
12
+ * @param toolProvider A provider that can create instances of the tool.
13
+ * @returns A disposable that removes the tool from the texture editor when disposed.
14
+ */
15
+ addTool(toolProvider: TextureEditorToolProvider): IDisposable;
16
+ /**
17
+ * The texture editor component with all the registered tools.
18
+ */
19
+ readonly component: ComponentType<TextureEditorProps>;
20
+ }
21
+ export declare const TextureEditorServiceDefinition: ServiceDefinition<[ITextureEditorService], []>;
@@ -0,0 +1,2 @@
1
+ import { type TextureEditorToolProvider } from "../../../components/textureEditor/textureEditor";
2
+ export declare const Contrast: TextureEditorToolProvider;
@@ -0,0 +1,5 @@
1
+ import { type TextureEditorToolProvider } from "../../../components/textureEditor/textureEditor";
2
+ /**
3
+ * Eyedropper tool for picking colors from the texture
4
+ */
5
+ export declare const Eyedropper: TextureEditorToolProvider;
@@ -0,0 +1,5 @@
1
+ import { type TextureEditorToolProvider } from "../../../components/textureEditor/textureEditor";
2
+ /**
3
+ * Floodfill tool for filling regions with a solid color
4
+ */
5
+ export declare const Floodfill: TextureEditorToolProvider;
@@ -0,0 +1,2 @@
1
+ import { type TextureEditorToolProvider } from "../../../components/textureEditor/textureEditor";
2
+ export declare const Paintbrush: TextureEditorToolProvider;
@@ -0,0 +1,5 @@
1
+ import { type TextureEditorToolProvider } from "../../../components/textureEditor/textureEditor";
2
+ /**
3
+ * Rectangle selection tool for selecting regions of the texture
4
+ */
5
+ export declare const RectangleSelect: TextureEditorToolProvider;
@@ -0,0 +1,3 @@
1
+ import { type ServiceDefinition } from "../modularity/serviceDefinition";
2
+ import { type IShellService } from "../services/shellService";
3
+ export declare const ThemeSelectorServiceDefinition: ServiceDefinition<[], [IShellService]>;