@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,180 @@
1
+ /**
2
+ * Serializable description of a command argument, used in protocol messages.
3
+ */
4
+ export type CommandArgInfo = {
5
+ /** The name of the argument. */
6
+ name: string;
7
+ /** A human-readable description of the argument. */
8
+ description: string;
9
+ /** Whether this argument is required. */
10
+ required?: boolean;
11
+ };
12
+ /**
13
+ * Serializable description of a command, used in protocol messages.
14
+ */
15
+ export type CommandInfo = {
16
+ /** A unique identifier for the command. */
17
+ id: string;
18
+ /** A human-readable description of the command. */
19
+ description: string;
20
+ /** The arguments this command accepts. */
21
+ args?: CommandArgInfo[];
22
+ };
23
+ /**
24
+ * Serializable description of a session, used in protocol messages.
25
+ */
26
+ export type SessionInfo = {
27
+ /** The numeric session identifier. */
28
+ id: number;
29
+ /** The display name of the session. */
30
+ name: string;
31
+ /** ISO 8601 timestamp of when the session connected. */
32
+ connectedAt: string;
33
+ };
34
+ /**
35
+ * CLI → Bridge: Request the list of active browser sessions.
36
+ */
37
+ export type SessionsRequest = {
38
+ /** The message type discriminator. */
39
+ type: "sessions";
40
+ };
41
+ /**
42
+ * CLI → Bridge: Request the list of commands available from a session.
43
+ */
44
+ export type CommandsRequest = {
45
+ /** The message type discriminator. */
46
+ type: "commands";
47
+ /** The session to query for commands. */
48
+ sessionId: number;
49
+ };
50
+ /**
51
+ * CLI → Bridge: Execute a command on a session.
52
+ */
53
+ export type ExecRequest = {
54
+ /** The message type discriminator. */
55
+ type: "exec";
56
+ /** The session to execute the command on. */
57
+ sessionId: number;
58
+ /** The identifier of the command to execute. */
59
+ commandId: string;
60
+ /** Key-value pairs of arguments for the command. */
61
+ args: Record<string, string>;
62
+ };
63
+ /**
64
+ * CLI → Bridge: Stop the bridge process.
65
+ */
66
+ export type StopRequest = {
67
+ /** The message type discriminator. */
68
+ type: "stop";
69
+ };
70
+ /**
71
+ * All messages that the CLI sends to the bridge.
72
+ */
73
+ export type CliRequest = SessionsRequest | CommandsRequest | ExecRequest | StopRequest;
74
+ /**
75
+ * Bridge → CLI: Response with the list of active sessions.
76
+ */
77
+ export type SessionsResponse = {
78
+ /** The message type discriminator. */
79
+ type: "sessionsResponse";
80
+ /** The list of active sessions. */
81
+ sessions: SessionInfo[];
82
+ };
83
+ /**
84
+ * Bridge → CLI: Response with the list of commands from a session.
85
+ */
86
+ export type CommandsResponse = {
87
+ /** The message type discriminator. */
88
+ type: "commandsResponse";
89
+ /** The list of available commands, if successful. */
90
+ commands?: CommandInfo[];
91
+ /** An error message, if the request failed. */
92
+ error?: string;
93
+ };
94
+ /**
95
+ * Bridge → CLI: Response with the result of a command execution.
96
+ */
97
+ export type ExecResponse = {
98
+ /** The message type discriminator. */
99
+ type: "execResponse";
100
+ /** The result of the command execution, if successful. */
101
+ result?: string;
102
+ /** An error message, if the execution failed. */
103
+ error?: string;
104
+ };
105
+ /**
106
+ * Bridge → CLI: Acknowledgement that the bridge is stopping.
107
+ */
108
+ export type StopResponse = {
109
+ /** The message type discriminator. */
110
+ type: "stopResponse";
111
+ /** Whether the bridge stopped successfully. */
112
+ success: boolean;
113
+ };
114
+ /**
115
+ * All messages that the bridge sends to the CLI.
116
+ */
117
+ export type CliResponse = SessionsResponse | CommandsResponse | ExecResponse | StopResponse;
118
+ /**
119
+ * Browser → Bridge: Register a new session.
120
+ */
121
+ export type RegisterRequest = {
122
+ /** The message type discriminator. */
123
+ type: "register";
124
+ /** The display name for this session. */
125
+ name: string;
126
+ };
127
+ /**
128
+ * Browser → Bridge: Response to a listCommands request from the bridge.
129
+ */
130
+ export type CommandListResponse = {
131
+ /** The message type discriminator. */
132
+ type: "commandListResponse";
133
+ /** The identifier of the original request. */
134
+ requestId: string;
135
+ /** The list of registered commands. */
136
+ commands: CommandInfo[];
137
+ };
138
+ /**
139
+ * Browser → Bridge: Response to an execCommand request from the bridge.
140
+ */
141
+ export type CommandResponse = {
142
+ /** The message type discriminator. */
143
+ type: "commandResponse";
144
+ /** The identifier of the original request. */
145
+ requestId: string;
146
+ /** The result of the command execution, if successful. */
147
+ result?: string;
148
+ /** An error message, if the execution failed. */
149
+ error?: string;
150
+ };
151
+ /**
152
+ * All messages that the browser sends to the bridge.
153
+ */
154
+ export type BrowserRequest = RegisterRequest | CommandListResponse | CommandResponse;
155
+ /**
156
+ * Bridge → Browser: Request the list of registered commands.
157
+ */
158
+ export type ListCommandsRequest = {
159
+ /** The message type discriminator. */
160
+ type: "listCommands";
161
+ /** A unique identifier for this request. */
162
+ requestId: string;
163
+ };
164
+ /**
165
+ * Bridge → Browser: Request execution of a command.
166
+ */
167
+ export type ExecCommandRequest = {
168
+ /** The message type discriminator. */
169
+ type: "execCommand";
170
+ /** A unique identifier for this request. */
171
+ requestId: string;
172
+ /** The identifier of the command to execute. */
173
+ commandId: string;
174
+ /** Key-value pairs of arguments for the command. */
175
+ args: Record<string, string>;
176
+ };
177
+ /**
178
+ * All messages that the bridge sends to the browser.
179
+ */
180
+ export type BrowserResponse = ListCommandsRequest | ExecCommandRequest;
@@ -0,0 +1,6 @@
1
+ import { type FunctionComponent } from "react";
2
+ /**
3
+ * Range selector component - a draggable scrollbar for selecting frame range
4
+ * @returns The range selector component
5
+ */
6
+ export declare const RangeSelector: FunctionComponent;
@@ -0,0 +1,6 @@
1
+ import { type FunctionComponent } from "react";
2
+ /**
3
+ * Bottom bar component with playback controls and frame navigation.
4
+ * @returns The BottomBar component.
5
+ */
6
+ export declare const BottomBar: FunctionComponent;
@@ -0,0 +1,6 @@
1
+ import { type FunctionComponent } from "react";
2
+ /**
3
+ * Main canvas area containing the graph, playhead, and frame bars
4
+ * @returns The canvas component
5
+ */
6
+ export declare const Canvas: FunctionComponent;
@@ -0,0 +1,14 @@
1
+ import { type FunctionComponent } from "react";
2
+ import { type CurveData } from "./curveData";
3
+ type CurveProps = {
4
+ curve: CurveData;
5
+ convertX: (frame: number) => number;
6
+ convertY: (value: number) => number;
7
+ };
8
+ /**
9
+ * Curve component that renders an animation curve path
10
+ * @param props - The curve props
11
+ * @returns The rendered curve SVG element
12
+ */
13
+ export declare const Curve: FunctionComponent<CurveProps>;
14
+ export {};
@@ -0,0 +1,40 @@
1
+ import { Animation } from "@babylonjs/core/Animations/animation.js";
2
+ import { AnimationKeyInterpolation } from "@babylonjs/core/Animations/animationKey.js";
3
+ import { Observable } from "@babylonjs/core/Misc/observable.js";
4
+ export interface KeyEntry {
5
+ frame: number;
6
+ value: number;
7
+ inTangent?: number;
8
+ outTangent?: number;
9
+ lockedTangent: boolean;
10
+ interpolation?: AnimationKeyInterpolation;
11
+ }
12
+ export declare class CurveData {
13
+ static readonly SampleRate = 50;
14
+ keys: KeyEntry[];
15
+ animation: Animation;
16
+ color: string;
17
+ onDataUpdatedObservable: Observable<void>;
18
+ property?: string;
19
+ tangentBuilder?: () => any;
20
+ setDefaultInTangent?: (keyId: number) => any;
21
+ setDefaultOutTangent?: (keyId: number) => any;
22
+ siblings: CurveData[];
23
+ static readonly TangentLength = 50;
24
+ constructor(color: string, animation: Animation, property?: string, tangentBuilder?: () => any, setDefaultInTangent?: (keyId: number) => any, setDefaultOutTangent?: (keyId: number) => any);
25
+ getPathData(convertX: (x: number) => number, convertY: (y: number) => number): string;
26
+ updateLockedTangentMode(keyIndex: number, enabled: boolean): void;
27
+ updateInterpolationMode(keyIndex: number, interpolationMode: AnimationKeyInterpolation): void;
28
+ getInControlPoint(keyIndex: number): number | undefined;
29
+ getOutControlPoint(keyIndex: number): number | undefined;
30
+ hasDefinedOutTangent(keyIndex: number): boolean;
31
+ evaluateOutTangent(keyIndex: number): number;
32
+ hasDefinedInTangent(keyIndex: number): boolean;
33
+ evaluateInTangent(keyIndex: number): number;
34
+ storeDefaultInTangent(keyIndex: number): void;
35
+ storeDefaultOutTangent(keyIndex: number): void;
36
+ updateInTangentFromControlPoint(keyId: number, slope: number): void;
37
+ updateOutTangentFromControlPoint(keyId: number, slope: number): void;
38
+ updateKeyFrame(keyId: number, frame: number): void;
39
+ updateKeyValue(keyId: number, value: number): void;
40
+ }
@@ -0,0 +1,12 @@
1
+ import { type FunctionComponent } from "react";
2
+ type FrameBarProps = {
3
+ /** Width of the frame bar */
4
+ width: number;
5
+ };
6
+ /**
7
+ * Frame bar showing frame numbers along the top of the graph
8
+ * @param props - The component props
9
+ * @returns The frame bar component
10
+ */
11
+ export declare const FrameBar: FunctionComponent<FrameBarProps>;
12
+ export {};
@@ -0,0 +1,11 @@
1
+ import { type FunctionComponent } from "react";
2
+ type GraphProps = {
3
+ width: number;
4
+ height: number;
5
+ };
6
+ /**
7
+ * Main graph area for displaying and editing animation curves
8
+ * @returns The graph component
9
+ */
10
+ export declare const Graph: FunctionComponent<GraphProps>;
11
+ export {};
@@ -0,0 +1,34 @@
1
+ import { type Nullable } from "@babylonjs/core/types.js";
2
+ import * as React from "react";
3
+ import { type CurveData } from "./curveData";
4
+ /** Selection state for key points */
5
+ export declare enum SelectionState {
6
+ None = 0,
7
+ Selected = 1,
8
+ Siblings = 2
9
+ }
10
+ /** Props for the KeyPointComponent */
11
+ interface IKeyPointComponentProps {
12
+ x: number;
13
+ y: number;
14
+ getPreviousX: () => Nullable<number>;
15
+ getNextX: () => Nullable<number>;
16
+ invertX: (x: number) => number;
17
+ invertY: (y: number) => number;
18
+ convertX: (x: number) => number;
19
+ convertY: (y: number) => number;
20
+ scale: number;
21
+ keyId: number;
22
+ curve: CurveData;
23
+ channel: string;
24
+ onFrameValueChanged: (value: number) => void;
25
+ onKeyValueChanged: (value: number) => void;
26
+ }
27
+ /**
28
+ * KeyPointComponent - Renders a single key point on the curve editor
29
+ * Handles selection, dragging, and tangent manipulation
30
+ * @param props - The component props
31
+ * @returns The rendered key point SVG element
32
+ */
33
+ export declare const KeyPointComponent: React.FunctionComponent<IKeyPointComponentProps>;
34
+ export default KeyPointComponent;
@@ -0,0 +1,12 @@
1
+ import { type FunctionComponent } from "react";
2
+ type PlayHeadProps = {
3
+ width: number;
4
+ height: number;
5
+ };
6
+ /**
7
+ * Playhead component showing current frame position
8
+ * Uses direct DOM manipulation (like v1) to avoid render cycle flashing during animation
9
+ * @returns The playhead component
10
+ */
11
+ export declare const PlayHead: FunctionComponent<PlayHeadProps>;
12
+ export {};
@@ -0,0 +1,10 @@
1
+ import { type FunctionComponent } from "react";
2
+ type RangeFrameBarProps = {
3
+ width: number;
4
+ };
5
+ /**
6
+ * Range frame bar showing frame tick marks and keyframe indicators
7
+ * @returns The range frame bar component
8
+ */
9
+ export declare const RangeFrameBar: FunctionComponent<RangeFrameBarProps>;
10
+ export {};
@@ -0,0 +1,29 @@
1
+ import { type FunctionComponent } from "react";
2
+ import { type Nullable } from "@babylonjs/core/types.js";
3
+ import { type Animation } from "@babylonjs/core/Animations/animation.js";
4
+ import { type TargetedAnimation, type AnimationGroup } from "@babylonjs/core/Animations/animationGroup.js";
5
+ import { type Scene } from "@babylonjs/core/scene.js";
6
+ import { type IAnimatable } from "@babylonjs/core/Animations/animatable.interface.js";
7
+ /**
8
+ * Props for the CurveEditor component
9
+ */
10
+ export type CurveEditorProps = {
11
+ /** The scene */
12
+ scene: Scene;
13
+ /** Target animatable */
14
+ target: Nullable<IAnimatable>;
15
+ /** Animations to edit */
16
+ animations: Nullable<Animation[] | TargetedAnimation[]>;
17
+ /** Root animation group if any */
18
+ rootAnimationGroup?: Nullable<AnimationGroup>;
19
+ /** Editor title */
20
+ title?: string;
21
+ /** Whether using targeted animations */
22
+ useTargetAnimations?: boolean;
23
+ };
24
+ /**
25
+ * Animation Curve Editor component for editing animation keyframes and curves
26
+ * @param props - The component props
27
+ * @returns The curve editor component
28
+ */
29
+ export declare const CurveEditor: FunctionComponent<CurveEditorProps>;
@@ -0,0 +1,31 @@
1
+ import { type FunctionComponent } from "react";
2
+ import { type Nullable } from "@babylonjs/core/types.js";
3
+ import { type Animation } from "@babylonjs/core/Animations/animation.js";
4
+ import { type TargetedAnimation, type AnimationGroup } from "@babylonjs/core/Animations/animationGroup.js";
5
+ import { type Scene } from "@babylonjs/core/scene.js";
6
+ import { type IAnimatable } from "@babylonjs/core/Animations/animatable.interface.js";
7
+ /**
8
+ * Props for the CurveEditorButton component
9
+ */
10
+ export type CurveEditorButtonProps = {
11
+ /** The scene */
12
+ scene: Scene;
13
+ /** Target animatable */
14
+ target: Nullable<IAnimatable>;
15
+ /** Animations to edit */
16
+ animations: Nullable<Animation[] | TargetedAnimation[]>;
17
+ /** Root animation group if any */
18
+ rootAnimationGroup?: Nullable<AnimationGroup>;
19
+ /** Editor title */
20
+ title?: string;
21
+ /** Whether using targeted animations */
22
+ useTargetAnimations?: boolean;
23
+ /** Button label */
24
+ label?: string;
25
+ };
26
+ /**
27
+ * Button component that opens the Animation Curve Editor in a popup window
28
+ * @param props - The component props
29
+ * @returns The button component
30
+ */
31
+ export declare const CurveEditorButton: FunctionComponent<CurveEditorButtonProps>;
@@ -0,0 +1,56 @@
1
+ /**
2
+ * Color constants for the curve editor
3
+ * These colors are used consistently across the curve editor UI for
4
+ * representing different animation channels and UI elements.
5
+ */
6
+ /**
7
+ * Channel colors for multi-component animations (vectors, colors, quaternions)
8
+ */
9
+ export declare const ChannelColors: {
10
+ /** Red channel / X component */
11
+ readonly X: "#DB3E3E";
12
+ /** Green channel / Y component */
13
+ readonly Y: "#51E22D";
14
+ /** Blue channel / Z component */
15
+ readonly Z: "#00A3FF";
16
+ /** W component (quaternions) */
17
+ readonly W: "#8700FF";
18
+ /** Alpha channel */
19
+ readonly ALPHA: "#FFFFFF";
20
+ };
21
+ /**
22
+ * Aliases for color channels (R, G, B map to X, Y, Z)
23
+ */
24
+ export declare const ColorChannelColors: {
25
+ /** Red channel */
26
+ readonly R: "#DB3E3E";
27
+ /** Green channel */
28
+ readonly G: "#51E22D";
29
+ /** Blue channel */
30
+ readonly B: "#00A3FF";
31
+ /** Alpha channel */
32
+ readonly A: "#FFFFFF";
33
+ };
34
+ /**
35
+ * Default curve color for single-component (float) animations
36
+ */
37
+ export declare const DefaultCurveColor = "#ffffff";
38
+ /**
39
+ * Graph UI colors
40
+ */
41
+ export declare const GraphColors: {
42
+ /** Zero line color */
43
+ readonly zeroLine: "#666666";
44
+ /** Selection rectangle stroke */
45
+ readonly selectionStroke: "#ffffff";
46
+ /** Value axis label color */
47
+ readonly valueAxisLabel: "#555555";
48
+ /** Value axis background */
49
+ readonly valueAxisBackground: "#111111";
50
+ /** Selected keypoint color (gold) */
51
+ readonly selectedKeypoint: "#FFD700";
52
+ /** Default keypoint stroke color */
53
+ readonly keypointStroke: "#ffffff";
54
+ /** Tangent handle color */
55
+ readonly tangentHandle: "#FFD700";
56
+ };