babylonjs-editor 4.4.0 → 5.2.4

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 (401) hide show
  1. package/build/src/index.js +142 -0
  2. package/declaration/src/dashboard/create.d.ts +6 -0
  3. package/declaration/src/dashboard/item.d.ts +8 -0
  4. package/declaration/src/dashboard/main.d.ts +19 -0
  5. package/declaration/src/dashboard/menu.d.ts +1 -0
  6. package/declaration/src/dashboard/preload.d.ts +0 -0
  7. package/declaration/src/dashboard/progress.d.ts +17 -0
  8. package/declaration/src/dashboard/window-controls.d.ts +1 -0
  9. package/declaration/src/dashboard/window.d.ts +2 -0
  10. package/declaration/src/editor/dialogs/command-palette/camera.d.ts +4 -0
  11. package/declaration/src/editor/dialogs/command-palette/command-palette.d.ts +27 -0
  12. package/declaration/src/editor/dialogs/command-palette/light.d.ts +4 -0
  13. package/declaration/src/editor/dialogs/command-palette/material.d.ts +4 -0
  14. package/declaration/src/editor/dialogs/command-palette/mesh.d.ts +4 -0
  15. package/declaration/src/editor/dialogs/command-palette/node.d.ts +4 -0
  16. package/declaration/src/editor/dialogs/command-palette/particle-systems.d.ts +3 -0
  17. package/declaration/src/editor/dialogs/command-palette/project.d.ts +3 -0
  18. package/declaration/src/editor/dialogs/command-palette/shared-commands.d.ts +31 -0
  19. package/declaration/src/editor/dialogs/command-palette/sprite.d.ts +4 -0
  20. package/declaration/src/editor/dialogs/edit-preferences/edit-preferences.d.ts +24 -0
  21. package/declaration/src/editor/dialogs/edit-project/edit-project.d.ts +17 -0
  22. package/declaration/src/editor/dialogs/edit-project/plugins/component.d.ts +18 -0
  23. package/declaration/src/editor/dialogs/edit-project/plugins/item.d.ts +7 -0
  24. package/declaration/src/editor/dialogs/edit-project/textures/component.d.ts +9 -0
  25. package/declaration/src/editor/layout/animation/inspector/inspector.d.ts +21 -0
  26. package/declaration/src/editor/layout/animation/timeline/key.d.ts +24 -0
  27. package/declaration/src/editor/layout/animation/timeline/timeline.d.ts +68 -0
  28. package/declaration/src/editor/layout/animation/timeline/track.d.ts +29 -0
  29. package/declaration/src/editor/layout/animation/timeline/tracker.d.ts +17 -0
  30. package/declaration/src/editor/layout/animation/toolbar.d.ts +11 -0
  31. package/declaration/src/editor/layout/animation/tools/export.d.ts +2 -0
  32. package/declaration/src/editor/layout/animation/tools/import.d.ts +3 -0
  33. package/declaration/src/editor/layout/animation/tools/properties.d.ts +6 -0
  34. package/declaration/src/editor/layout/animation/tracks/add.d.ts +7 -0
  35. package/declaration/src/editor/layout/animation/tracks/item.d.ts +11 -0
  36. package/declaration/src/editor/layout/animation/tracks/tracks.d.ts +18 -0
  37. package/declaration/src/editor/layout/animation.d.ts +53 -0
  38. package/declaration/src/editor/layout/assets-browser/events/gui.d.ts +2 -0
  39. package/declaration/src/editor/layout/assets-browser/events/material.d.ts +2 -0
  40. package/declaration/src/editor/layout/assets-browser/events/particles.d.ts +2 -0
  41. package/declaration/src/editor/layout/assets-browser/events/scene.d.ts +2 -0
  42. package/declaration/src/editor/layout/assets-browser/items/cinematic-item.d.ts +12 -0
  43. package/declaration/src/editor/layout/assets-browser/items/gui-item.d.ts +14 -0
  44. package/declaration/src/editor/layout/assets-browser/items/hdr-item.d.ts +13 -0
  45. package/declaration/src/editor/layout/assets-browser/items/image-item.d.ts +27 -0
  46. package/declaration/src/editor/layout/assets-browser/items/item.d.ts +91 -0
  47. package/declaration/src/editor/layout/assets-browser/items/json-item.d.ts +14 -0
  48. package/declaration/src/editor/layout/assets-browser/items/material-item.d.ts +26 -0
  49. package/declaration/src/editor/layout/assets-browser/items/mesh-item.d.ts +20 -0
  50. package/declaration/src/editor/layout/assets-browser/items/navmesh-item.d.ts +12 -0
  51. package/declaration/src/editor/layout/assets-browser/items/particle-system-item.d.ts +12 -0
  52. package/declaration/src/editor/layout/assets-browser/items/scene-item.d.ts +16 -0
  53. package/declaration/src/editor/layout/assets-browser/label.d.ts +7 -0
  54. package/declaration/src/editor/layout/assets-browser/viewers/env-viewer.d.ts +1 -0
  55. package/declaration/src/editor/layout/assets-browser/viewers/material-viewer.d.ts +6 -0
  56. package/declaration/src/editor/layout/assets-browser/viewers/model-viewer.d.ts +10 -0
  57. package/declaration/src/editor/layout/assets-browser.d.ts +106 -0
  58. package/declaration/src/editor/layout/cinematic/curves/curve.d.ts +23 -0
  59. package/declaration/src/editor/layout/cinematic/curves/handle.d.ts +20 -0
  60. package/declaration/src/editor/layout/cinematic/curves/point.d.ts +16 -0
  61. package/declaration/src/editor/layout/cinematic/curves/root.d.ts +27 -0
  62. package/declaration/src/editor/layout/cinematic/curves/ticks.d.ts +9 -0
  63. package/declaration/src/editor/layout/cinematic/curves/tools/animation-group.d.ts +3 -0
  64. package/declaration/src/editor/layout/cinematic/curves/tools/property.d.ts +8 -0
  65. package/declaration/src/editor/layout/cinematic/curves/tools/sound.d.ts +2 -0
  66. package/declaration/src/editor/layout/cinematic/curves/tools/tools.d.ts +34 -0
  67. package/declaration/src/editor/layout/cinematic/curves.d.ts +21 -0
  68. package/declaration/src/editor/layout/cinematic/editor.d.ts +76 -0
  69. package/declaration/src/editor/layout/cinematic/inspector/animation-group.d.ts +8 -0
  70. package/declaration/src/editor/layout/cinematic/inspector/events/apply-impulse.d.ts +7 -0
  71. package/declaration/src/editor/layout/cinematic/inspector/events/base.d.ts +8 -0
  72. package/declaration/src/editor/layout/cinematic/inspector/events/event.d.ts +5 -0
  73. package/declaration/src/editor/layout/cinematic/inspector/events/set-enabled.d.ts +7 -0
  74. package/declaration/src/editor/layout/cinematic/inspector/key-cut.d.ts +8 -0
  75. package/declaration/src/editor/layout/cinematic/inspector/key.d.ts +9 -0
  76. package/declaration/src/editor/layout/cinematic/inspector/sound.d.ts +8 -0
  77. package/declaration/src/editor/layout/cinematic/inspector/tools.d.ts +13 -0
  78. package/declaration/src/editor/layout/cinematic/inspector.d.ts +16 -0
  79. package/declaration/src/editor/layout/cinematic/render/convert.d.ts +21 -0
  80. package/declaration/src/editor/layout/cinematic/render/dialog.d.ts +19 -0
  81. package/declaration/src/editor/layout/cinematic/render/render.d.ts +18 -0
  82. package/declaration/src/editor/layout/cinematic/render/renderer.d.ts +16 -0
  83. package/declaration/src/editor/layout/cinematic/render/tools.d.ts +21 -0
  84. package/declaration/src/editor/layout/cinematic/serialization/parse.d.ts +21 -0
  85. package/declaration/src/editor/layout/cinematic/serialization/serialize.d.ts +4 -0
  86. package/declaration/src/editor/layout/cinematic/timelines/add.d.ts +6 -0
  87. package/declaration/src/editor/layout/cinematic/timelines/keys/animation-group.d.ts +9 -0
  88. package/declaration/src/editor/layout/cinematic/timelines/keys/base.d.ts +22 -0
  89. package/declaration/src/editor/layout/cinematic/timelines/keys/event.d.ts +9 -0
  90. package/declaration/src/editor/layout/cinematic/timelines/keys/property.d.ts +9 -0
  91. package/declaration/src/editor/layout/cinematic/timelines/keys/sound.d.ts +9 -0
  92. package/declaration/src/editor/layout/cinematic/timelines/move.d.ts +18 -0
  93. package/declaration/src/editor/layout/cinematic/timelines/options.d.ts +5 -0
  94. package/declaration/src/editor/layout/cinematic/timelines/remove.d.ts +6 -0
  95. package/declaration/src/editor/layout/cinematic/timelines/tools.d.ts +4 -0
  96. package/declaration/src/editor/layout/cinematic/timelines.d.ts +25 -0
  97. package/declaration/src/editor/layout/cinematic/toolbar.d.ts +6 -0
  98. package/declaration/src/editor/layout/cinematic/tools/state.d.ts +3 -0
  99. package/declaration/src/editor/layout/cinematic/tools/sync.d.ts +6 -0
  100. package/declaration/src/editor/layout/cinematic/tracker.d.ts +10 -0
  101. package/declaration/src/editor/layout/cinematic/tracks/add.d.ts +5 -0
  102. package/declaration/src/editor/layout/cinematic/tracks/animation-group.d.ts +7 -0
  103. package/declaration/src/editor/layout/cinematic/tracks/event.d.ts +7 -0
  104. package/declaration/src/editor/layout/cinematic/tracks/property.d.ts +7 -0
  105. package/declaration/src/editor/layout/cinematic/tracks/remove.d.ts +7 -0
  106. package/declaration/src/editor/layout/cinematic/tracks/sound.d.ts +7 -0
  107. package/declaration/src/editor/layout/cinematic/tracks.d.ts +20 -0
  108. package/declaration/src/editor/layout/console/progress-log.d.ts +21 -0
  109. package/declaration/src/editor/layout/console.d.ts +40 -0
  110. package/declaration/src/editor/layout/graph/export.d.ts +19 -0
  111. package/declaration/src/editor/layout/graph/graph.d.ts +18 -0
  112. package/declaration/src/editor/layout/graph/label.d.ts +7 -0
  113. package/declaration/src/editor/layout/graph/remove.d.ts +6 -0
  114. package/declaration/src/editor/layout/graph.d.ts +100 -0
  115. package/declaration/src/editor/layout/inspector/camera/arc-rotate.d.ts +12 -0
  116. package/declaration/src/editor/layout/inspector/camera/editor.d.ts +12 -0
  117. package/declaration/src/editor/layout/inspector/camera/free.d.ts +15 -0
  118. package/declaration/src/editor/layout/inspector/camera/utils/focal.d.ts +5 -0
  119. package/declaration/src/editor/layout/inspector/camera/utils/mode.d.ts +6 -0
  120. package/declaration/src/editor/layout/inspector/decals/configuration.d.ts +6 -0
  121. package/declaration/src/editor/layout/inspector/decals/decals.d.ts +36 -0
  122. package/declaration/src/editor/layout/inspector/fields/asset.d.ts +8 -0
  123. package/declaration/src/editor/layout/inspector/fields/block.d.ts +2 -0
  124. package/declaration/src/editor/layout/inspector/fields/color.d.ts +9 -0
  125. package/declaration/src/editor/layout/inspector/fields/dimensions.d.ts +10 -0
  126. package/declaration/src/editor/layout/inspector/fields/entity.d.ts +8 -0
  127. package/declaration/src/editor/layout/inspector/fields/field.d.ts +14 -0
  128. package/declaration/src/editor/layout/inspector/fields/key.d.ts +7 -0
  129. package/declaration/src/editor/layout/inspector/fields/list.d.ts +14 -0
  130. package/declaration/src/editor/layout/inspector/fields/number.d.ts +11 -0
  131. package/declaration/src/editor/layout/inspector/fields/section.d.ts +21 -0
  132. package/declaration/src/editor/layout/inspector/fields/slider.d.ts +8 -0
  133. package/declaration/src/editor/layout/inspector/fields/string.d.ts +6 -0
  134. package/declaration/src/editor/layout/inspector/fields/switch.d.ts +5 -0
  135. package/declaration/src/editor/layout/inspector/fields/texture.d.ts +36 -0
  136. package/declaration/src/editor/layout/inspector/fields/vector.d.ts +11 -0
  137. package/declaration/src/editor/layout/inspector/file/image.d.ts +5 -0
  138. package/declaration/src/editor/layout/inspector/file/markdown.d.ts +5 -0
  139. package/declaration/src/editor/layout/inspector/file/sound.d.ts +5 -0
  140. package/declaration/src/editor/layout/inspector/file.d.ts +18 -0
  141. package/declaration/src/editor/layout/inspector/gui/gui.d.ts +12 -0
  142. package/declaration/src/editor/layout/inspector/inspector.d.ts +5 -0
  143. package/declaration/src/editor/layout/inspector/light/directional.d.ts +12 -0
  144. package/declaration/src/editor/layout/inspector/light/hemispheric.d.ts +12 -0
  145. package/declaration/src/editor/layout/inspector/light/point.d.ts +12 -0
  146. package/declaration/src/editor/layout/inspector/light/shadows.d.ts +28 -0
  147. package/declaration/src/editor/layout/inspector/light/spot.d.ts +12 -0
  148. package/declaration/src/editor/layout/inspector/material/cell.d.ts +11 -0
  149. package/declaration/src/editor/layout/inspector/material/components/alpha.d.ts +6 -0
  150. package/declaration/src/editor/layout/inspector/material/components/transparency.d.ts +7 -0
  151. package/declaration/src/editor/layout/inspector/material/components/utils.d.ts +11 -0
  152. package/declaration/src/editor/layout/inspector/material/fire.d.ts +11 -0
  153. package/declaration/src/editor/layout/inspector/material/gradient.d.ts +11 -0
  154. package/declaration/src/editor/layout/inspector/material/grid.d.ts +11 -0
  155. package/declaration/src/editor/layout/inspector/material/lava.d.ts +11 -0
  156. package/declaration/src/editor/layout/inspector/material/multi.d.ts +15 -0
  157. package/declaration/src/editor/layout/inspector/material/node.d.ts +19 -0
  158. package/declaration/src/editor/layout/inspector/material/normal.d.ts +11 -0
  159. package/declaration/src/editor/layout/inspector/material/pbr.d.ts +10 -0
  160. package/declaration/src/editor/layout/inspector/material/sky.d.ts +11 -0
  161. package/declaration/src/editor/layout/inspector/material/standard.d.ts +7 -0
  162. package/declaration/src/editor/layout/inspector/material/tri-planar.d.ts +11 -0
  163. package/declaration/src/editor/layout/inspector/material/water.d.ts +15 -0
  164. package/declaration/src/editor/layout/inspector/mesh/collision.d.ts +17 -0
  165. package/declaration/src/editor/layout/inspector/mesh/decal.d.ts +15 -0
  166. package/declaration/src/editor/layout/inspector/mesh/geometry/box.d.ts +7 -0
  167. package/declaration/src/editor/layout/inspector/mesh/geometry/capsule.d.ts +7 -0
  168. package/declaration/src/editor/layout/inspector/mesh/geometry/cylinder.d.ts +7 -0
  169. package/declaration/src/editor/layout/inspector/mesh/geometry/ground.d.ts +7 -0
  170. package/declaration/src/editor/layout/inspector/mesh/geometry/plane.d.ts +7 -0
  171. package/declaration/src/editor/layout/inspector/mesh/geometry/proxy.d.ts +1 -0
  172. package/declaration/src/editor/layout/inspector/mesh/geometry/sphere.d.ts +7 -0
  173. package/declaration/src/editor/layout/inspector/mesh/geometry/torus-knot.d.ts +7 -0
  174. package/declaration/src/editor/layout/inspector/mesh/geometry/torus.d.ts +7 -0
  175. package/declaration/src/editor/layout/inspector/mesh/geometry.d.ts +7 -0
  176. package/declaration/src/editor/layout/inspector/mesh/mesh.d.ts +32 -0
  177. package/declaration/src/editor/layout/inspector/mesh/physics.d.ts +12 -0
  178. package/declaration/src/editor/layout/inspector/mesh/skeleton.d.ts +12 -0
  179. package/declaration/src/editor/layout/inspector/metadata/custom-metadata.d.ts +14 -0
  180. package/declaration/src/editor/layout/inspector/particles/gpu-particle-system.d.ts +26 -0
  181. package/declaration/src/editor/layout/inspector/particles/gradient.d.ts +6 -0
  182. package/declaration/src/editor/layout/inspector/particles/particle-system.d.ts +22 -0
  183. package/declaration/src/editor/layout/inspector/particles/property-gradient.d.ts +13 -0
  184. package/declaration/src/editor/layout/inspector/scene/animation-groups.d.ts +7 -0
  185. package/declaration/src/editor/layout/inspector/scene/scene.d.ts +27 -0
  186. package/declaration/src/editor/layout/inspector/script/field.d.ts +9 -0
  187. package/declaration/src/editor/layout/inspector/script/script.d.ts +18 -0
  188. package/declaration/src/editor/layout/inspector/script/tools.d.ts +20 -0
  189. package/declaration/src/editor/layout/inspector/sound/sound.d.ts +17 -0
  190. package/declaration/src/editor/layout/inspector/sound/spatial.d.ts +14 -0
  191. package/declaration/src/editor/layout/inspector/sprites/sprite-manager.d.ts +27 -0
  192. package/declaration/src/editor/layout/inspector/sprites/sprite-map.d.ts +29 -0
  193. package/declaration/src/editor/layout/inspector/sprites/sprite.d.ts +27 -0
  194. package/declaration/src/editor/layout/inspector/transform.d.ts +16 -0
  195. package/declaration/src/editor/layout/inspector.d.ts +24 -0
  196. package/declaration/src/editor/layout/navmesh/components/list.d.ts +10 -0
  197. package/declaration/src/editor/layout/navmesh/components/search.d.ts +5 -0
  198. package/declaration/src/editor/layout/navmesh/editor.d.ts +34 -0
  199. package/declaration/src/editor/layout/navmesh/inspector.d.ts +7 -0
  200. package/declaration/src/editor/layout/navmesh/meshes.d.ts +7 -0
  201. package/declaration/src/editor/layout/navmesh/obstacles.d.ts +7 -0
  202. package/declaration/src/editor/layout/navmesh/toolbar.d.ts +5 -0
  203. package/declaration/src/editor/layout/navmesh/tools.d.ts +10 -0
  204. package/declaration/src/editor/layout/navmesh/types.d.ts +20 -0
  205. package/declaration/src/editor/layout/preview/axis.d.ts +30 -0
  206. package/declaration/src/editor/layout/preview/camera.d.ts +8 -0
  207. package/declaration/src/editor/layout/preview/gizmo.d.ts +45 -0
  208. package/declaration/src/editor/layout/preview/icons.d.ts +35 -0
  209. package/declaration/src/editor/layout/preview/import/gui.d.ts +8 -0
  210. package/declaration/src/editor/layout/preview/import/import.d.ts +9 -0
  211. package/declaration/src/editor/layout/preview/import/material.d.ts +16 -0
  212. package/declaration/src/editor/layout/preview/import/particles.d.ts +2 -0
  213. package/declaration/src/editor/layout/preview/import/progress.d.ts +11 -0
  214. package/declaration/src/editor/layout/preview/import/sound.d.ts +2 -0
  215. package/declaration/src/editor/layout/preview/import/texture.d.ts +17 -0
  216. package/declaration/src/editor/layout/preview/play.d.ts +92 -0
  217. package/declaration/src/editor/layout/preview/stats/row.d.ts +5 -0
  218. package/declaration/src/editor/layout/preview/stats/stats.d.ts +17 -0
  219. package/declaration/src/editor/layout/preview/stats/types.d.ts +28 -0
  220. package/declaration/src/editor/layout/preview.d.ts +140 -0
  221. package/declaration/src/editor/layout/toolbar.d.ts +17 -0
  222. package/declaration/src/editor/layout.d.ts +72 -0
  223. package/declaration/src/editor/main.d.ts +94 -0
  224. package/declaration/src/editor/menu.d.ts +1 -0
  225. package/declaration/src/editor/nodes/camera-pan-input.d.ts +30 -0
  226. package/declaration/src/editor/nodes/camera.d.ts +50 -0
  227. package/declaration/src/editor/nodes/collision.d.ts +36 -0
  228. package/declaration/src/editor/nodes/scene-link.d.ts +28 -0
  229. package/declaration/src/editor/nodes/sprite-manager.d.ts +36 -0
  230. package/declaration/src/editor/nodes/sprite-map.d.ts +38 -0
  231. package/declaration/src/editor/overrides.d.ts +1 -0
  232. package/declaration/src/editor/preload.d.ts +1 -0
  233. package/declaration/src/editor/rendering/default-pipeline.d.ts +14 -0
  234. package/declaration/src/editor/rendering/ibl-shadows.d.ts +11 -0
  235. package/declaration/src/editor/rendering/motion-blur.d.ts +11 -0
  236. package/declaration/src/editor/rendering/ssao.d.ts +11 -0
  237. package/declaration/src/editor/rendering/ssr.d.ts +11 -0
  238. package/declaration/src/editor/rendering/tools.d.ts +7 -0
  239. package/declaration/src/editor/rendering/vls.d.ts +11 -0
  240. package/declaration/src/editor/window.d.ts +23 -0
  241. package/declaration/src/editor/windows/ge/index.d.ts +13 -0
  242. package/declaration/src/editor/windows/nme/index.d.ts +15 -0
  243. package/declaration/src/editor/windows/npe/index.d.ts +15 -0
  244. package/declaration/src/editor/windows/preload.d.ts +1 -0
  245. package/declaration/src/editor/windows/scene/index.d.ts +12 -0
  246. package/declaration/src/electron/assimp/assimpjs-worker.d.ts +1 -0
  247. package/declaration/src/electron/assimp/assimpjs.d.ts +1 -0
  248. package/declaration/src/electron/events/dialog.d.ts +1 -0
  249. package/declaration/src/electron/events/editor.d.ts +1 -0
  250. package/declaration/src/electron/events/export.d.ts +1 -0
  251. package/declaration/src/electron/events/shell.d.ts +1 -0
  252. package/declaration/src/electron/events/window.d.ts +1 -0
  253. package/declaration/src/electron/node-pty.d.ts +6 -0
  254. package/declaration/src/export.d.ts +86 -0
  255. package/declaration/src/index.d.ts +7 -0
  256. package/declaration/src/loader/animation.d.ts +2 -0
  257. package/declaration/src/loader/assimpjs.d.ts +42 -0
  258. package/declaration/src/loader/maps.d.ts +4 -0
  259. package/declaration/src/loader/material.d.ts +3 -0
  260. package/declaration/src/loader/mesh.d.ts +3 -0
  261. package/declaration/src/loader/node.d.ts +4 -0
  262. package/declaration/src/loader/texture.d.ts +2 -0
  263. package/declaration/src/loader/types.d.ts +64 -0
  264. package/declaration/src/project/add/camera.d.ts +4 -0
  265. package/declaration/src/project/add/configure.d.ts +3 -0
  266. package/declaration/src/project/add/light.d.ts +6 -0
  267. package/declaration/src/project/add/material.d.ts +14 -0
  268. package/declaration/src/project/add/mesh.d.ts +12 -0
  269. package/declaration/src/project/add/node.d.ts +3 -0
  270. package/declaration/src/project/add/particles.d.ts +4 -0
  271. package/declaration/src/project/add/sprite.d.ts +6 -0
  272. package/declaration/src/project/configuration.d.ts +11 -0
  273. package/declaration/src/project/export/assets.d.ts +9 -0
  274. package/declaration/src/project/export/dialog.d.ts +23 -0
  275. package/declaration/src/project/export/export.d.ts +7 -0
  276. package/declaration/src/project/export/ktx.d.ts +29 -0
  277. package/declaration/src/project/export/lod.d.ts +7 -0
  278. package/declaration/src/project/export/materials.d.ts +1 -0
  279. package/declaration/src/project/export/physics.d.ts +7 -0
  280. package/declaration/src/project/export/progress.d.ts +11 -0
  281. package/declaration/src/project/export/scripts.d.ts +2 -0
  282. package/declaration/src/project/export/texture.d.ts +6 -0
  283. package/declaration/src/project/load/default.d.ts +3 -0
  284. package/declaration/src/project/load/install.d.ts +15 -0
  285. package/declaration/src/project/load/load.d.ts +16 -0
  286. package/declaration/src/project/load/prepare.d.ts +4 -0
  287. package/declaration/src/project/load/progress.d.ts +20 -0
  288. package/declaration/src/project/load/scene.d.ts +24 -0
  289. package/declaration/src/project/load/texture.d.ts +3 -0
  290. package/declaration/src/project/run.d.ts +3 -0
  291. package/declaration/src/project/save/dialog.d.ts +23 -0
  292. package/declaration/src/project/save/progress.d.ts +4 -0
  293. package/declaration/src/project/save/save.d.ts +4 -0
  294. package/declaration/src/project/save/scene.d.ts +2 -0
  295. package/declaration/src/project/tools/geometry.d.ts +7 -0
  296. package/declaration/src/project/tools/morph-target.d.ts +1 -0
  297. package/declaration/src/project/typings.d.ts +34 -0
  298. package/declaration/src/splash/main.d.ts +6 -0
  299. package/declaration/src/splash/preload.d.ts +0 -0
  300. package/declaration/src/tools/animation/group.d.ts +7 -0
  301. package/declaration/src/tools/animation/tools.d.ts +27 -0
  302. package/declaration/src/tools/animation/tween.d.ts +95 -0
  303. package/declaration/src/tools/augmentations.d.ts +10 -0
  304. package/declaration/src/tools/camera/focus.d.ts +7 -0
  305. package/declaration/src/tools/dialog.d.ts +14 -0
  306. package/declaration/src/tools/dom.d.ts +17 -0
  307. package/declaration/src/tools/fs.d.ts +30 -0
  308. package/declaration/src/tools/guards/material.d.ts +21 -0
  309. package/declaration/src/tools/guards/math.d.ts +26 -0
  310. package/declaration/src/tools/guards/nodes.d.ts +103 -0
  311. package/declaration/src/tools/guards/particles.d.ts +16 -0
  312. package/declaration/src/tools/guards/scene.d.ts +12 -0
  313. package/declaration/src/tools/guards/shadows.d.ts +11 -0
  314. package/declaration/src/tools/guards/sound.d.ts +6 -0
  315. package/declaration/src/tools/guards/sprites.d.ts +18 -0
  316. package/declaration/src/tools/guards/texture.d.ts +22 -0
  317. package/declaration/src/tools/ipc.d.ts +14 -0
  318. package/declaration/src/tools/light/ibl.d.ts +2 -0
  319. package/declaration/src/tools/light/shadows.d.ts +19 -0
  320. package/declaration/src/tools/local-storage.d.ts +29 -0
  321. package/declaration/src/tools/material/extract.d.ts +6 -0
  322. package/declaration/src/tools/material/material.d.ts +11 -0
  323. package/declaration/src/tools/maths/projection.d.ts +2 -0
  324. package/declaration/src/tools/maths/scalar.d.ts +8 -0
  325. package/declaration/src/tools/mesh/augmentations.d.ts +7 -0
  326. package/declaration/src/tools/mesh/collision.d.ts +7 -0
  327. package/declaration/src/tools/mesh/ground.d.ts +10 -0
  328. package/declaration/src/tools/mesh/instance.d.ts +3 -0
  329. package/declaration/src/tools/node/clone.d.ts +10 -0
  330. package/declaration/src/tools/node/metadata.d.ts +55 -0
  331. package/declaration/src/tools/node-pty.d.ts +43 -0
  332. package/declaration/src/tools/observables.d.ts +41 -0
  333. package/declaration/src/tools/os.d.ts +10 -0
  334. package/declaration/src/tools/particles/augmentations.d.ts +16 -0
  335. package/declaration/src/tools/particles/extract.d.ts +9 -0
  336. package/declaration/src/tools/particles/texture.d.ts +8 -0
  337. package/declaration/src/tools/physics/init.d.ts +5 -0
  338. package/declaration/src/tools/physics/serialization/aggregate.d.ts +33 -0
  339. package/declaration/src/tools/physics/shape.d.ts +7 -0
  340. package/declaration/src/tools/plugins/require.d.ts +7 -0
  341. package/declaration/src/tools/plugins/watch.d.ts +5 -0
  342. package/declaration/src/tools/process.d.ts +36 -0
  343. package/declaration/src/tools/project.d.ts +27 -0
  344. package/declaration/src/tools/property.d.ts +15 -0
  345. package/declaration/src/tools/recast/init.d.ts +2 -0
  346. package/declaration/src/tools/scene/materials.d.ts +7 -0
  347. package/declaration/src/tools/scene/play/compile.d.ts +4 -0
  348. package/declaration/src/tools/scene/play/override.d.ts +7 -0
  349. package/declaration/src/tools/scene/rename.d.ts +7 -0
  350. package/declaration/src/tools/scene/scene-link.d.ts +17 -0
  351. package/declaration/src/tools/scene/screenshot.d.ts +11 -0
  352. package/declaration/src/tools/sound/augmentations.d.ts +7 -0
  353. package/declaration/src/tools/sound/tools.d.ts +15 -0
  354. package/declaration/src/tools/sprite/augmentations.d.ts +8 -0
  355. package/declaration/src/tools/sprite/preview.d.ts +6 -0
  356. package/declaration/src/tools/sprite/tools.d.ts +4 -0
  357. package/declaration/src/tools/tools.d.ts +55 -0
  358. package/declaration/src/tools/undoredo.d.ts +24 -0
  359. package/declaration/src/tools/worker.d.ts +17 -0
  360. package/declaration/src/tools/workers/md5.d.ts +2 -0
  361. package/declaration/src/tools/workers/script.d.ts +9 -0
  362. package/declaration/src/tools/workers/thumbnail/main.d.ts +2 -0
  363. package/declaration/src/tools/workers/thumbnail/material.d.ts +2 -0
  364. package/declaration/src/tools/workers/thumbnail/mesh.d.ts +2 -0
  365. package/declaration/src/ui/color-picker.d.ts +15 -0
  366. package/declaration/src/ui/dialog.d.ts +13 -0
  367. package/declaration/src/ui/scene-asset-browser.d.ts +88 -0
  368. package/declaration/src/ui/shadcn/ui/alert-dialog.d.ts +20 -0
  369. package/declaration/src/ui/shadcn/ui/badge.d.ts +9 -0
  370. package/declaration/src/ui/shadcn/ui/breadcrumb.d.ts +19 -0
  371. package/declaration/src/ui/shadcn/ui/button.d.ts +11 -0
  372. package/declaration/src/ui/shadcn/ui/checkbox.d.ts +4 -0
  373. package/declaration/src/ui/shadcn/ui/command.d.ts +82 -0
  374. package/declaration/src/ui/shadcn/ui/context-menu.d.ts +27 -0
  375. package/declaration/src/ui/shadcn/ui/dialog.d.ts +19 -0
  376. package/declaration/src/ui/shadcn/ui/dropdown-menu.d.ts +27 -0
  377. package/declaration/src/ui/shadcn/ui/hover-card.d.ts +6 -0
  378. package/declaration/src/ui/shadcn/ui/input.d.ts +5 -0
  379. package/declaration/src/ui/shadcn/ui/label.d.ts +5 -0
  380. package/declaration/src/ui/shadcn/ui/menubar.d.ts +31 -0
  381. package/declaration/src/ui/shadcn/ui/popover.d.ts +7 -0
  382. package/declaration/src/ui/shadcn/ui/progress.d.ts +4 -0
  383. package/declaration/src/ui/shadcn/ui/radio-group.d.ts +5 -0
  384. package/declaration/src/ui/shadcn/ui/resizable.d.ts +23 -0
  385. package/declaration/src/ui/shadcn/ui/select.d.ts +13 -0
  386. package/declaration/src/ui/shadcn/ui/separator.d.ts +4 -0
  387. package/declaration/src/ui/shadcn/ui/slider.d.ts +4 -0
  388. package/declaration/src/ui/shadcn/ui/sonner.d.ts +4 -0
  389. package/declaration/src/ui/shadcn/ui/switch.d.ts +4 -0
  390. package/declaration/src/ui/shadcn/ui/table.d.ts +10 -0
  391. package/declaration/src/ui/shadcn/ui/tabs.d.ts +7 -0
  392. package/declaration/src/ui/shadcn/ui/textarea.d.ts +3 -0
  393. package/declaration/src/ui/shadcn/ui/toggle-group.d.ts +12 -0
  394. package/declaration/src/ui/shadcn/ui/toggle.d.ts +12 -0
  395. package/declaration/src/ui/shadcn/ui/toolbar-radio-group.d.ts +5 -0
  396. package/declaration/src/ui/shadcn/ui/tooltip.d.ts +7 -0
  397. package/declaration/src/ui/spinner.d.ts +2 -0
  398. package/declaration/src/ui/toolbar.d.ts +4 -0
  399. package/declaration/src/ui/utils.d.ts +2 -0
  400. package/package.json +122 -38
  401. package/index.d.ts +0 -6106
@@ -0,0 +1,142 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const os_1 = require("os");
4
+ const electron_updater_1 = require("electron-updater");
5
+ const posix_1 = require("path/posix");
6
+ const electron_1 = require("electron");
7
+ const process_1 = require("./tools/process");
8
+ const menu_1 = require("./editor/menu");
9
+ const menu_2 = require("./dashboard/menu");
10
+ const window_1 = require("./dashboard/window");
11
+ const window_2 = require("./editor/window");
12
+ require("./electron/node-pty");
13
+ require("./electron/events/shell");
14
+ require("./electron/events/dialog");
15
+ require("./electron/events/editor");
16
+ require("./electron/events/window");
17
+ require("./electron/assimp/assimpjs");
18
+ require("./electron/events/export");
19
+ try {
20
+ if (!electron_1.app.isPackaged) {
21
+ process.env.DEBUG ??= "true";
22
+ }
23
+ if (process.env.DEBUG) {
24
+ require("electron-reloader")(module);
25
+ }
26
+ }
27
+ catch (_) {
28
+ /* Catch silently */
29
+ }
30
+ // Enable remote debugging of both the Editor and the edited Project.
31
+ electron_1.app.commandLine.appendSwitch("remote-debugging-port", "8315");
32
+ // Force dedicated GPU on systems with dual graphics cards (typically laptops).
33
+ electron_1.app.commandLine.appendSwitch("force_high_performance_gpu");
34
+ electron_1.app.addListener("ready", async () => {
35
+ electron_1.nativeTheme.themeSource = "system";
36
+ electron_1.globalShortcut.register("CommandOrControl+ALT+I", () => {
37
+ electron_1.BrowserWindow.getFocusedWindow()?.webContents.openDevTools({
38
+ mode: "right",
39
+ });
40
+ });
41
+ const filePath = (0, process_1.getFilePathArgument)(process.argv);
42
+ if (filePath) {
43
+ await openProject(filePath);
44
+ }
45
+ else {
46
+ await openDashboard();
47
+ }
48
+ electron_updater_1.autoUpdater.checkForUpdatesAndNotify();
49
+ });
50
+ electron_1.app.on("window-all-closed", () => {
51
+ if (process.platform !== "darwin") {
52
+ electron_1.app.quit();
53
+ }
54
+ });
55
+ electron_1.app.on("activate", () => {
56
+ if (electron_1.BrowserWindow.getAllWindows().length === 0) {
57
+ openDashboard();
58
+ }
59
+ });
60
+ electron_1.app.on("second-instance", async () => {
61
+ if ((0, os_1.platform)() === "darwin") {
62
+ const window = await openDashboard();
63
+ console.log(window); // TODO: setup new window (aka new project).
64
+ }
65
+ });
66
+ let shouldAppQuit = false;
67
+ electron_1.ipcMain.on("app:quit", () => {
68
+ for (const window of window_2.editorWindows.slice()) {
69
+ window.close();
70
+ if (window_2.editorWindows.includes(window)) {
71
+ return;
72
+ }
73
+ }
74
+ if (!window_2.editorWindows.length) {
75
+ shouldAppQuit = true;
76
+ electron_1.app.quit();
77
+ }
78
+ });
79
+ let dashboardWindow = null;
80
+ async function openDashboard() {
81
+ if (!dashboardWindow) {
82
+ (0, menu_2.setupDashboardMenu)();
83
+ dashboardWindow = await (0, window_1.createDashboardWindow)();
84
+ dashboardWindow.setTitle("Dashboard");
85
+ dashboardWindow.on("focus", () => (0, menu_2.setupDashboardMenu)());
86
+ dashboardWindow.on("closed", () => (dashboardWindow = null));
87
+ }
88
+ dashboardWindow.show();
89
+ dashboardWindow.focus();
90
+ }
91
+ function closeDashboard() {
92
+ if (dashboardWindow) {
93
+ dashboardWindow.close();
94
+ dashboardWindow = null;
95
+ }
96
+ }
97
+ electron_1.ipcMain.on("dashboard:open-project", (_, file, shouldCloseDashboard) => {
98
+ openProject(file);
99
+ dashboardWindow?.minimize();
100
+ if (shouldCloseDashboard) {
101
+ closeDashboard();
102
+ }
103
+ });
104
+ electron_1.ipcMain.on("dashboard:update-projects", () => {
105
+ dashboardWindow?.webContents.send("dashboard:update-projects");
106
+ });
107
+ const openedProjects = [];
108
+ async function openProject(filePath) {
109
+ if (openedProjects.includes(filePath)) {
110
+ return;
111
+ }
112
+ openedProjects.push(filePath);
113
+ notifyWindows("dashboard:opened-projects", openedProjects);
114
+ (0, menu_1.setupEditorMenu)();
115
+ const window = await (0, window_2.createEditorWindow)();
116
+ window.setTitle((0, posix_1.basename)((0, posix_1.dirname)(filePath)));
117
+ window.on("focus", () => (0, menu_1.setupEditorMenu)());
118
+ window.once("closed", () => {
119
+ openedProjects.splice(openedProjects.indexOf(filePath), 1);
120
+ notifyWindows("dashboard:opened-projects", openedProjects);
121
+ if (openedProjects.length === 0 && !shouldAppQuit) {
122
+ openDashboard();
123
+ }
124
+ });
125
+ if (filePath) {
126
+ window.maximize();
127
+ }
128
+ if (filePath) {
129
+ window.webContents.send("editor:open", filePath);
130
+ window.webContents.send("editor:path", (0, posix_1.join)(electron_1.app.getAppPath()));
131
+ window.webContents.on("did-finish-load", () => {
132
+ window.webContents.send("editor:open", filePath);
133
+ window.webContents.send("editor:path", (0, posix_1.join)(electron_1.app.getAppPath()));
134
+ });
135
+ }
136
+ }
137
+ function notifyWindows(event, data) {
138
+ electron_1.BrowserWindow.getAllWindows().forEach((window) => {
139
+ window.webContents.send(event, data);
140
+ });
141
+ }
142
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,6 @@
1
+ export interface IDashboardCreateProjectDialogProps {
2
+ isOpened: boolean;
3
+ closeDashboardOnProjectOpen: boolean;
4
+ onClose: () => void;
5
+ }
6
+ export declare function DashboardCreateProjectDialog(props: IDashboardCreateProjectDialogProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,8 @@
1
+ import { ProjectType } from "../tools/project";
2
+ export interface IDashboardProjectItemProps {
3
+ isOpened: boolean;
4
+ project: ProjectType;
5
+ closeDashboardOnProjectOpen: boolean;
6
+ onRemove: () => void;
7
+ }
8
+ export declare function DashboardProjectItem(props: IDashboardProjectItemProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,19 @@
1
+ import { Component, ReactNode } from "react";
2
+ import { ProjectType } from "../tools/project";
3
+ export declare function createDashboard(): void;
4
+ export interface IDashboardProps {
5
+ }
6
+ export interface IDashboardState {
7
+ projects: ProjectType[];
8
+ openedProjects: string[];
9
+ createProject: boolean;
10
+ closeDashboardOnProjectOpen: boolean;
11
+ }
12
+ export declare class Dashboard extends Component<IDashboardProps, IDashboardState> {
13
+ constructor(props: IDashboardProps);
14
+ render(): ReactNode;
15
+ componentDidMount(): Promise<void>;
16
+ private _checkSystemAvailabilities;
17
+ private _handleImportProject;
18
+ private _tryRemoveProjectFromLocalStorage;
19
+ }
@@ -0,0 +1 @@
1
+ export declare function setupDashboardMenu(): void;
File without changes
@@ -0,0 +1,17 @@
1
+ import { Component, ReactNode } from "react";
2
+ import { NodePtyInstance } from "../tools/node-pty";
3
+ export interface IDashboardProgressComponentProps {
4
+ name: string;
5
+ }
6
+ export interface IDashboardProgressComponentState {
7
+ message: ReactNode;
8
+ }
9
+ export declare class DashboardProgressComponent extends Component<IDashboardProgressComponentProps, IDashboardProgressComponentState> {
10
+ private _terminal;
11
+ private _fitAddon;
12
+ private _terminalData;
13
+ constructor(props: IDashboardProgressComponentProps);
14
+ render(): ReactNode;
15
+ private _onTerminalDivChanged;
16
+ setProcess(process: NodePtyInstance): void;
17
+ }
@@ -0,0 +1 @@
1
+ export declare function DashboardWindowControls(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { BrowserWindow } from "electron";
2
+ export declare function createDashboardWindow(): Promise<BrowserWindow>;
@@ -0,0 +1,4 @@
1
+ import { Node } from "babylonjs";
2
+ import { Editor } from "../../main";
3
+ import { ICommandPaletteType } from "./command-palette";
4
+ export declare function getCameraCommands(editor?: Editor, parent?: Node): ICommandPaletteType[];
@@ -0,0 +1,27 @@
1
+ import { Component, ReactNode } from "react";
2
+ import { Editor } from "../../main";
3
+ export interface ICommandPaletteProps {
4
+ editor: Editor;
5
+ }
6
+ export interface ICommandPaletteState {
7
+ open: boolean;
8
+ query: string;
9
+ files: ICommandPaletteType[];
10
+ entities: ICommandPaletteType[];
11
+ }
12
+ export interface ICommandPaletteType {
13
+ text: string;
14
+ key: string;
15
+ label: string;
16
+ disabled?: boolean;
17
+ ipcRendererChannelKey?: string;
18
+ action: () => unknown;
19
+ }
20
+ export declare class CommandPalette extends Component<ICommandPaletteProps, ICommandPaletteState> {
21
+ constructor(props: ICommandPaletteProps);
22
+ render(): ReactNode;
23
+ setOpen(open: boolean): void;
24
+ private _executeCommand;
25
+ private _refreshEntities;
26
+ private _refreshAssetFiles;
27
+ }
@@ -0,0 +1,4 @@
1
+ import { Node } from "babylonjs";
2
+ import { Editor } from "../../main";
3
+ import { ICommandPaletteType } from "./command-palette";
4
+ export declare function getLightCommands(editor?: Editor, parent?: Node): ICommandPaletteType[];
@@ -0,0 +1,4 @@
1
+ import { Editor } from "../../main";
2
+ import { ICommandPaletteType } from "./command-palette";
3
+ export declare function getMaterialCommands(editor?: Editor): ICommandPaletteType[];
4
+ export declare function getMaterialsLibraryCommands(editor?: Editor): ICommandPaletteType[];
@@ -0,0 +1,4 @@
1
+ import { Node } from "babylonjs";
2
+ import { Editor } from "../../main";
3
+ import { ICommandPaletteType } from "./command-palette";
4
+ export declare function getMeshCommands(editor?: Editor, parent?: Node): ICommandPaletteType[];
@@ -0,0 +1,4 @@
1
+ import { Node } from "babylonjs";
2
+ import { Editor } from "../../main";
3
+ import { ICommandPaletteType } from "./command-palette";
4
+ export declare function getNodeCommands(editor?: Editor, parent?: Node): ICommandPaletteType[];
@@ -0,0 +1,3 @@
1
+ import { Editor } from "../../main";
2
+ import { ICommandPaletteType } from "./command-palette";
3
+ export declare function getParticleSystemsCommands(editor: Editor): ICommandPaletteType[];
@@ -0,0 +1,3 @@
1
+ import { Editor } from "../../main";
2
+ import { ICommandPaletteType } from "./command-palette";
3
+ export declare function getProjectCommands(editor: Editor): ICommandPaletteType[];
@@ -0,0 +1,31 @@
1
+ import { ICommandPaletteType } from "./command-palette";
2
+ export type CommandItem = Omit<ICommandPaletteType, "action">;
3
+ export declare const cameraCommandItems: {
4
+ freeCamera: CommandItem;
5
+ arcRotateCamera: CommandItem;
6
+ };
7
+ export declare const lightCommandItems: {
8
+ pointLight: CommandItem;
9
+ directionalLight: CommandItem;
10
+ spotLight: CommandItem;
11
+ hemisphericLight: CommandItem;
12
+ };
13
+ export declare const nodeCommandItems: {
14
+ transformNode: CommandItem;
15
+ };
16
+ export declare const meshCommandItems: {
17
+ box: CommandItem;
18
+ plane: CommandItem;
19
+ ground: CommandItem;
20
+ sphere: CommandItem;
21
+ capsule: CommandItem;
22
+ cylinder: CommandItem;
23
+ torus: CommandItem;
24
+ torusKnot: CommandItem;
25
+ skybox: CommandItem;
26
+ emptyMesh: CommandItem;
27
+ };
28
+ export declare const spriteCommandItems: {
29
+ spriteManager: CommandItem;
30
+ spriteMap: CommandItem;
31
+ };
@@ -0,0 +1,4 @@
1
+ import { Node } from "babylonjs";
2
+ import { Editor } from "../../main";
3
+ import { ICommandPaletteType } from "./command-palette";
4
+ export declare function getSpriteCommands(editor?: Editor, parent?: Node): ICommandPaletteType[];
@@ -0,0 +1,24 @@
1
+ import { Component, ReactNode } from "react";
2
+ import { Editor } from "../../main";
3
+ export interface IEditorEditPreferencesComponentProps {
4
+ /**
5
+ * Defines the editor reference.
6
+ */
7
+ editor: Editor;
8
+ /**
9
+ * Defines if the dialog is open.
10
+ */
11
+ open: boolean;
12
+ onClose: () => void;
13
+ }
14
+ export interface IEditorEditPreferencesComponentState {
15
+ theme: "light" | "dark";
16
+ }
17
+ export declare class EditorEditPreferencesComponent extends Component<IEditorEditPreferencesComponentProps, IEditorEditPreferencesComponentState> {
18
+ constructor(props: IEditorEditPreferencesComponentProps);
19
+ render(): ReactNode;
20
+ private _getThemesComponent;
21
+ private _getCameraControlPreferences;
22
+ private _saveCameraControls;
23
+ private _getExperimentalComponent;
24
+ }
@@ -0,0 +1,17 @@
1
+ import { Component, ReactNode } from "react";
2
+ import { Editor } from "../../main";
3
+ export interface IEditorEditProjectComponentProps {
4
+ /**
5
+ * Defines the editor reference.
6
+ */
7
+ editor: Editor;
8
+ /**
9
+ * Defines if the dialog is open.
10
+ */
11
+ open: boolean;
12
+ onClose: () => void;
13
+ }
14
+ export declare class EditorEditProjectComponent extends Component<IEditorEditProjectComponentProps> {
15
+ render(): ReactNode;
16
+ private _handleSave;
17
+ }
@@ -0,0 +1,18 @@
1
+ import { Component, ReactNode } from "react";
2
+ import { Editor } from "../../../main";
3
+ export interface IEditorEditProjectPluginComponentProps {
4
+ /**
5
+ * Defines the editor reference.
6
+ */
7
+ editor: Editor;
8
+ }
9
+ export interface IEditorEditProjectPluginComponentState {
10
+ installing: boolean;
11
+ }
12
+ export declare class EditorEditProjectPluginComponent extends Component<IEditorEditProjectPluginComponentProps, IEditorEditProjectPluginComponentState> {
13
+ constructor(props: IEditorEditProjectPluginComponentProps);
14
+ render(): ReactNode;
15
+ private _handleAddPluginFromNpm;
16
+ private _handleAddPluginFromLocalDisk;
17
+ private _handlePluginRemoved;
18
+ }
@@ -0,0 +1,7 @@
1
+ import { Editor } from "../../../main";
2
+ export interface IEditorEditProjectPluginComponentProps {
3
+ editor: Editor;
4
+ pathOrName: string;
5
+ onRemoved: () => void;
6
+ }
7
+ export declare function EditorEditProjectPluginItemComponent(props: IEditorEditProjectPluginComponentProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,9 @@
1
+ import { Component, ReactNode } from "react";
2
+ import { Editor } from "../../../main";
3
+ export interface IEditorEditProjectTextureComponentProps {
4
+ editor: Editor;
5
+ }
6
+ export declare class EditorEditProjectTextureComponent extends Component<IEditorEditProjectTextureComponentProps> {
7
+ render(): ReactNode;
8
+ private _handleBrowsePVRTexToolCliPath;
9
+ }
@@ -0,0 +1,21 @@
1
+ import { Component, ReactNode } from "react";
2
+ import { IAnimationKey } from "babylonjs";
3
+ import { EditorAnimation } from "../../animation";
4
+ export interface IEditorAnimationInspectorProps {
5
+ animationEditor: EditorAnimation;
6
+ }
7
+ export interface IEditorAnimationInspectorState {
8
+ key: IAnimationKey | null;
9
+ }
10
+ export declare class EditorAnimationInspector extends Component<IEditorAnimationInspectorProps, IEditorAnimationInspectorState> {
11
+ constructor(props: IEditorAnimationInspectorProps);
12
+ render(): ReactNode;
13
+ /**
14
+ * Sets the rerefence to the key to edit.
15
+ * @param key defines the reference to the key to edit.
16
+ */
17
+ setEditedKey(key: IAnimationKey | null): void;
18
+ private _getKeyInspector;
19
+ private _getTangentDefaultValue;
20
+ private _getTangentInspector;
21
+ }
@@ -0,0 +1,24 @@
1
+ import { Component, ReactNode } from "react";
2
+ import { IAnimatable, IAnimationKey } from "babylonjs";
3
+ import { EditorAnimation } from "../../animation";
4
+ export interface IEditorAnimationTimelineKeyProps {
5
+ scale: number;
6
+ animatable: IAnimatable;
7
+ animationKey: IAnimationKey;
8
+ animationEditor: EditorAnimation;
9
+ onClicked: (key: IAnimationKey) => void;
10
+ onRemoved: (key: IAnimationKey) => void;
11
+ onMoved: (movedKeys: IAnimationKeyConfigurationToMove[][]) => void;
12
+ }
13
+ export interface IEditorAnimationTimelineKeyState {
14
+ moving: boolean | undefined;
15
+ }
16
+ export interface IAnimationKeyConfigurationToMove {
17
+ key: IAnimationKey;
18
+ startPosition: number;
19
+ }
20
+ export declare class EditorAnimationTimelineKey extends Component<IEditorAnimationTimelineKeyProps, IEditorAnimationTimelineKeyState> {
21
+ constructor(props: IEditorAnimationTimelineKeyProps);
22
+ render(): ReactNode;
23
+ private _handlePointerDown;
24
+ }
@@ -0,0 +1,68 @@
1
+ import { Component, ReactNode } from "react";
2
+ import { Animation, IAnimatable } from "babylonjs";
3
+ import { Editor } from "../../../main";
4
+ import { EditorAnimation } from "../../animation";
5
+ import { EditorAnimationTimelineItem } from "./track";
6
+ export interface IEditorAnimationTimelinePanelProps {
7
+ editor: Editor;
8
+ animatable: IAnimatable | null;
9
+ animationEditor: EditorAnimation;
10
+ }
11
+ export interface IEditorAnimationTimelinePanelState {
12
+ scale: number;
13
+ moving: boolean;
14
+ currentTime: number;
15
+ }
16
+ export declare class EditorAnimationTimelinePanel extends Component<IEditorAnimationTimelinePanelProps, IEditorAnimationTimelinePanelState> {
17
+ /**
18
+ * This class acts as an IAnimatable. This is used to animate the currentTime value on the state
19
+ * and be synchronized with the animations being edited and played by Babylon.js.
20
+ */
21
+ animations: Animation[];
22
+ /**
23
+ * Defines the list of all available track items in the timeline.
24
+ */
25
+ tracks: (EditorAnimationTimelineItem | null)[];
26
+ private _animation;
27
+ private _animatedCurrentTime;
28
+ private _renderLoop;
29
+ private _divRef;
30
+ constructor(props: IEditorAnimationTimelinePanelProps);
31
+ render(): ReactNode;
32
+ componentDidMount(): void;
33
+ private _getEmpty;
34
+ private _getEmptyAnimations;
35
+ private _getAnimationsList;
36
+ private _getMaxWidthForTimeline;
37
+ private _getMaxFrameForTimeline;
38
+ private _onWheelEvent;
39
+ /**
40
+ * Updates all the track using the current time as reference.
41
+ */
42
+ updateTracksAtCurrentTime(): void;
43
+ /**
44
+ * Sets the current time being edited in the timeline.
45
+ * @param currentTime defines the current time expressed in frame.
46
+ */
47
+ setCurrentTime(currentTime: number): void;
48
+ /**
49
+ * Sets the new scale of the timeline.
50
+ * @param scale defines the new scale value to apply on the timeline.
51
+ */
52
+ setScale(scale: number): void;
53
+ /**
54
+ * Adds a key at the current time for all tracks in the timeline.
55
+ * Checks for each track if a key already exists at the current time and if not, adds a new key.
56
+ * For the value, sets the current value of the animatable object property being animated.
57
+ */
58
+ addKeysAtCurrentTime(): void;
59
+ /**
60
+ * Plays the current timeline starting from the current tracker position.
61
+ */
62
+ play(): void;
63
+ /**
64
+ * Stops the current timeline being played
65
+ */
66
+ stop(): void;
67
+ private _handlePointerDown;
68
+ }
@@ -0,0 +1,29 @@
1
+ import { Component, ReactNode } from "react";
2
+ import { Animation, IAnimatable } from "babylonjs";
3
+ import { EditorAnimation } from "../../animation";
4
+ import { EditorAnimationTimelineKey } from "./key";
5
+ export interface IEditorAnimationTimelineItemProps {
6
+ scale: number;
7
+ currentTime: number;
8
+ animation: Animation;
9
+ animatable: IAnimatable | null;
10
+ animationEditor: EditorAnimation;
11
+ }
12
+ export interface IEditorAnimationTimelineItemState {
13
+ rightClickPositionX: number | null;
14
+ }
15
+ export declare class EditorAnimationTimelineItem extends Component<IEditorAnimationTimelineItemProps, IEditorAnimationTimelineItemState> {
16
+ /**
17
+ * Defines the list of all available key frames in the track.
18
+ */
19
+ keyFrames: (EditorAnimationTimelineKey | null)[];
20
+ constructor(props: IEditorAnimationTimelineItemProps);
21
+ render(): ReactNode;
22
+ /**
23
+ * Adds a new animation key for this track located at the current time selected in
24
+ * the animation editor using the time tracker.
25
+ */
26
+ addAnimationKey(positionX?: number | null): void;
27
+ private _onAnimationKeyMoved;
28
+ private _onAnimationKeyRemoved;
29
+ }
@@ -0,0 +1,17 @@
1
+ import { Component, ReactNode } from "react";
2
+ export interface IEditorAnimationTrackerProps {
3
+ width: number;
4
+ scale: number;
5
+ currentTime: number;
6
+ onTimeChange: (currentTime: number) => void;
7
+ }
8
+ export interface IEditorAnimationTrackerState {
9
+ moving: boolean;
10
+ }
11
+ export declare class EditorAnimationTracker extends Component<IEditorAnimationTrackerProps, IEditorAnimationTrackerState> {
12
+ constructor(props: IEditorAnimationTrackerProps);
13
+ render(): ReactNode;
14
+ private _handleClick;
15
+ private _handlePointerDown;
16
+ private _getTooltipContent;
17
+ }
@@ -0,0 +1,11 @@
1
+ import { Component, ReactNode } from "react";
2
+ import { IAnimatable } from "babylonjs";
3
+ import { EditorAnimation } from "../animation";
4
+ export interface IEditorAnimationToolbarProps {
5
+ playing: boolean;
6
+ animatable: IAnimatable | null;
7
+ animationEditor: EditorAnimation;
8
+ }
9
+ export declare class EditorAnimationToolbar extends Component<IEditorAnimationToolbarProps> {
10
+ render(): ReactNode;
11
+ }
@@ -0,0 +1,2 @@
1
+ import { IAnimatable } from "babylonjs";
2
+ export declare function exportAnimationsAs(animatable: IAnimatable | null): Promise<import("../../../../ui/dialog").DialogReturnType | undefined>;
@@ -0,0 +1,3 @@
1
+ import { IAnimatable } from "babylonjs";
2
+ import { EditorAnimation } from "../../animation";
3
+ export declare function importAnimationsFrom(animationEditor: EditorAnimation, animatable: IAnimatable | null): Promise<void>;
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Returns all the possible animatable properties for the given object.
3
+ * @param object defines the root object to check keys for animatable properties.
4
+ * @param deep defines how deep the search should traverse objects to get properties (a.b.c.d.etc.).
5
+ */
6
+ export declare function getAllAnimatableProperties(object: any, deep?: number, _processedObjects?: any[]): string[];
@@ -0,0 +1,7 @@
1
+ import { IAnimatable } from "babylonjs";
2
+ export interface IEditorAnimationAddTrackPromptProps {
3
+ animatable: IAnimatable;
4
+ onSelectProperty: (property: string | null) => void;
5
+ }
6
+ export declare function showAddTrackPrompt(animatable: IAnimatable): Promise<string | null>;
7
+ export declare function EditorAnimationAddTrackPrompt(props: IEditorAnimationAddTrackPromptProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,11 @@
1
+ import { Component, ReactNode } from "react";
2
+ import { Animation } from "babylonjs";
3
+ import { EditorAnimation } from "../../animation";
4
+ export interface IEditorAnimationTrackItemProps {
5
+ animation: Animation;
6
+ animationEditor: EditorAnimation;
7
+ onRemove: (animation: Animation) => void;
8
+ }
9
+ export declare class EditorAnimationTrackItem extends Component<IEditorAnimationTrackItemProps> {
10
+ render(): ReactNode;
11
+ }
@@ -0,0 +1,18 @@
1
+ import { Component, ReactNode } from "react";
2
+ import { IAnimatable } from "babylonjs";
3
+ import { EditorAnimation } from "../../animation";
4
+ export interface IEditorAnimationTracksPanelProps {
5
+ animatable: IAnimatable | null;
6
+ animationEditor: EditorAnimation;
7
+ }
8
+ export declare class EditorAnimationTracksPanel extends Component<IEditorAnimationTracksPanelProps> {
9
+ render(): ReactNode;
10
+ private _getEmpty;
11
+ private _getAnimationsList;
12
+ /**
13
+ * Shows a prompt to add a new track to the animatable object.
14
+ * Aka. animate a property on the currently selected animatable.
15
+ */
16
+ addTrack(): Promise<unknown>;
17
+ private _handleRemoveTrack;
18
+ }