babylonjs-editor 4.5.0 → 5.4.0-alpha.2

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 (456) hide show
  1. package/.env +1 -0
  2. package/build/src/index.js +150 -0
  3. package/declaration/src/dashboard/create.d.ts +6 -0
  4. package/declaration/src/dashboard/item.d.ts +8 -0
  5. package/declaration/src/dashboard/main.d.ts +19 -0
  6. package/declaration/src/dashboard/menu.d.ts +1 -0
  7. package/declaration/src/dashboard/preload.d.ts +0 -0
  8. package/declaration/src/dashboard/progress.d.ts +17 -0
  9. package/declaration/src/dashboard/window-controls.d.ts +1 -0
  10. package/declaration/src/dashboard/window.d.ts +2 -0
  11. package/declaration/src/editor/dialogs/command-palette/camera.d.ts +4 -0
  12. package/declaration/src/editor/dialogs/command-palette/command-palette.d.ts +27 -0
  13. package/declaration/src/editor/dialogs/command-palette/light.d.ts +4 -0
  14. package/declaration/src/editor/dialogs/command-palette/material.d.ts +4 -0
  15. package/declaration/src/editor/dialogs/command-palette/mesh.d.ts +4 -0
  16. package/declaration/src/editor/dialogs/command-palette/node.d.ts +4 -0
  17. package/declaration/src/editor/dialogs/command-palette/particle-systems.d.ts +3 -0
  18. package/declaration/src/editor/dialogs/command-palette/project.d.ts +3 -0
  19. package/declaration/src/editor/dialogs/command-palette/shared-commands.d.ts +31 -0
  20. package/declaration/src/editor/dialogs/command-palette/sprite.d.ts +4 -0
  21. package/declaration/src/editor/dialogs/edit-preferences/edit-preferences.d.ts +24 -0
  22. package/declaration/src/editor/dialogs/edit-project/edit-project.d.ts +17 -0
  23. package/declaration/src/editor/dialogs/edit-project/plugins/component.d.ts +18 -0
  24. package/declaration/src/editor/dialogs/edit-project/plugins/item.d.ts +7 -0
  25. package/declaration/src/editor/dialogs/edit-project/textures/component.d.ts +9 -0
  26. package/declaration/src/editor/dialogs/generate/complete.d.ts +5 -0
  27. package/declaration/src/editor/dialogs/generate/generate-project.d.ts +24 -0
  28. package/declaration/src/editor/dialogs/generate/generate.d.ts +10 -0
  29. package/declaration/src/editor/dialogs/generate/options.d.ts +5 -0
  30. package/declaration/src/editor/layout/animation/inspector/inspector.d.ts +21 -0
  31. package/declaration/src/editor/layout/animation/timeline/key.d.ts +24 -0
  32. package/declaration/src/editor/layout/animation/timeline/timeline.d.ts +68 -0
  33. package/declaration/src/editor/layout/animation/timeline/track.d.ts +29 -0
  34. package/declaration/src/editor/layout/animation/timeline/tracker.d.ts +17 -0
  35. package/declaration/src/editor/layout/animation/toolbar.d.ts +11 -0
  36. package/declaration/src/editor/layout/animation/tools/export.d.ts +2 -0
  37. package/declaration/src/editor/layout/animation/tools/import.d.ts +3 -0
  38. package/declaration/src/editor/layout/animation/tools/properties.d.ts +6 -0
  39. package/declaration/src/editor/layout/animation/tracks/add.d.ts +7 -0
  40. package/declaration/src/editor/layout/animation/tracks/item.d.ts +11 -0
  41. package/declaration/src/editor/layout/animation/tracks/tracks.d.ts +18 -0
  42. package/declaration/src/editor/layout/animation.d.ts +53 -0
  43. package/declaration/src/editor/layout/assets-browser/events/gui.d.ts +2 -0
  44. package/declaration/src/editor/layout/assets-browser/events/material.d.ts +2 -0
  45. package/declaration/src/editor/layout/assets-browser/events/particles.d.ts +2 -0
  46. package/declaration/src/editor/layout/assets-browser/events/scene.d.ts +2 -0
  47. package/declaration/src/editor/layout/assets-browser/items/cinematic-item.d.ts +12 -0
  48. package/declaration/src/editor/layout/assets-browser/items/gui-item.d.ts +14 -0
  49. package/declaration/src/editor/layout/assets-browser/items/hdr-item.d.ts +13 -0
  50. package/declaration/src/editor/layout/assets-browser/items/image-item.d.ts +27 -0
  51. package/declaration/src/editor/layout/assets-browser/items/item.d.ts +91 -0
  52. package/declaration/src/editor/layout/assets-browser/items/json-item.d.ts +14 -0
  53. package/declaration/src/editor/layout/assets-browser/items/material-item.d.ts +26 -0
  54. package/declaration/src/editor/layout/assets-browser/items/mesh-item.d.ts +20 -0
  55. package/declaration/src/editor/layout/assets-browser/items/navmesh-item.d.ts +12 -0
  56. package/declaration/src/editor/layout/assets-browser/items/particle-system-item.d.ts +12 -0
  57. package/declaration/src/editor/layout/assets-browser/items/ragdoll.d.ts +12 -0
  58. package/declaration/src/editor/layout/assets-browser/items/scene-item.d.ts +16 -0
  59. package/declaration/src/editor/layout/assets-browser/label.d.ts +7 -0
  60. package/declaration/src/editor/layout/assets-browser/viewers/env-viewer.d.ts +1 -0
  61. package/declaration/src/editor/layout/assets-browser/viewers/material-viewer.d.ts +6 -0
  62. package/declaration/src/editor/layout/assets-browser/viewers/model-viewer.d.ts +10 -0
  63. package/declaration/src/editor/layout/assets-browser.d.ts +107 -0
  64. package/declaration/src/editor/layout/cinematic/curves/curve.d.ts +23 -0
  65. package/declaration/src/editor/layout/cinematic/curves/handle.d.ts +20 -0
  66. package/declaration/src/editor/layout/cinematic/curves/point.d.ts +16 -0
  67. package/declaration/src/editor/layout/cinematic/curves/root.d.ts +27 -0
  68. package/declaration/src/editor/layout/cinematic/curves/ticks.d.ts +9 -0
  69. package/declaration/src/editor/layout/cinematic/curves/tools/animation-group.d.ts +3 -0
  70. package/declaration/src/editor/layout/cinematic/curves/tools/property.d.ts +8 -0
  71. package/declaration/src/editor/layout/cinematic/curves/tools/sound.d.ts +2 -0
  72. package/declaration/src/editor/layout/cinematic/curves/tools/tools.d.ts +34 -0
  73. package/declaration/src/editor/layout/cinematic/curves.d.ts +21 -0
  74. package/declaration/src/editor/layout/cinematic/editor.d.ts +78 -0
  75. package/declaration/src/editor/layout/cinematic/inspector/animation-group.d.ts +8 -0
  76. package/declaration/src/editor/layout/cinematic/inspector/events/apply-impulse.d.ts +7 -0
  77. package/declaration/src/editor/layout/cinematic/inspector/events/base.d.ts +8 -0
  78. package/declaration/src/editor/layout/cinematic/inspector/events/event.d.ts +5 -0
  79. package/declaration/src/editor/layout/cinematic/inspector/events/set-enabled.d.ts +7 -0
  80. package/declaration/src/editor/layout/cinematic/inspector/key-cut.d.ts +8 -0
  81. package/declaration/src/editor/layout/cinematic/inspector/key.d.ts +9 -0
  82. package/declaration/src/editor/layout/cinematic/inspector/sound.d.ts +8 -0
  83. package/declaration/src/editor/layout/cinematic/inspector/tools.d.ts +13 -0
  84. package/declaration/src/editor/layout/cinematic/inspector.d.ts +16 -0
  85. package/declaration/src/editor/layout/cinematic/render/convert.d.ts +21 -0
  86. package/declaration/src/editor/layout/cinematic/render/dialog.d.ts +19 -0
  87. package/declaration/src/editor/layout/cinematic/render/render.d.ts +18 -0
  88. package/declaration/src/editor/layout/cinematic/render/renderer.d.ts +16 -0
  89. package/declaration/src/editor/layout/cinematic/render/tools.d.ts +21 -0
  90. package/declaration/src/editor/layout/cinematic/serialization/parse.d.ts +21 -0
  91. package/declaration/src/editor/layout/cinematic/serialization/serialize.d.ts +4 -0
  92. package/declaration/src/editor/layout/cinematic/timelines/add.d.ts +6 -0
  93. package/declaration/src/editor/layout/cinematic/timelines/keys/animation-group.d.ts +9 -0
  94. package/declaration/src/editor/layout/cinematic/timelines/keys/base.d.ts +22 -0
  95. package/declaration/src/editor/layout/cinematic/timelines/keys/event.d.ts +9 -0
  96. package/declaration/src/editor/layout/cinematic/timelines/keys/property.d.ts +9 -0
  97. package/declaration/src/editor/layout/cinematic/timelines/keys/sound.d.ts +9 -0
  98. package/declaration/src/editor/layout/cinematic/timelines/move.d.ts +18 -0
  99. package/declaration/src/editor/layout/cinematic/timelines/options.d.ts +5 -0
  100. package/declaration/src/editor/layout/cinematic/timelines/remove.d.ts +6 -0
  101. package/declaration/src/editor/layout/cinematic/timelines/tools.d.ts +4 -0
  102. package/declaration/src/editor/layout/cinematic/timelines.d.ts +26 -0
  103. package/declaration/src/editor/layout/cinematic/toolbar.d.ts +6 -0
  104. package/declaration/src/editor/layout/cinematic/tools/state.d.ts +3 -0
  105. package/declaration/src/editor/layout/cinematic/tools/sync.d.ts +6 -0
  106. package/declaration/src/editor/layout/cinematic/tools/tracks.d.ts +2 -0
  107. package/declaration/src/editor/layout/cinematic/tracker.d.ts +11 -0
  108. package/declaration/src/editor/layout/cinematic/tracks/add.d.ts +5 -0
  109. package/declaration/src/editor/layout/cinematic/tracks/animation-group.d.ts +7 -0
  110. package/declaration/src/editor/layout/cinematic/tracks/event.d.ts +7 -0
  111. package/declaration/src/editor/layout/cinematic/tracks/property.d.ts +7 -0
  112. package/declaration/src/editor/layout/cinematic/tracks/remove.d.ts +7 -0
  113. package/declaration/src/editor/layout/cinematic/tracks/sound.d.ts +7 -0
  114. package/declaration/src/editor/layout/cinematic/tracks.d.ts +21 -0
  115. package/declaration/src/editor/layout/console/progress-log.d.ts +21 -0
  116. package/declaration/src/editor/layout/console.d.ts +40 -0
  117. package/declaration/src/editor/layout/graph/export.d.ts +19 -0
  118. package/declaration/src/editor/layout/graph/graph.d.ts +18 -0
  119. package/declaration/src/editor/layout/graph/label.d.ts +7 -0
  120. package/declaration/src/editor/layout/graph/remove.d.ts +6 -0
  121. package/declaration/src/editor/layout/graph.d.ts +100 -0
  122. package/declaration/src/editor/layout/inspector/camera/arc-rotate.d.ts +12 -0
  123. package/declaration/src/editor/layout/inspector/camera/editor.d.ts +12 -0
  124. package/declaration/src/editor/layout/inspector/camera/free.d.ts +15 -0
  125. package/declaration/src/editor/layout/inspector/camera/utils/focal.d.ts +5 -0
  126. package/declaration/src/editor/layout/inspector/camera/utils/mode.d.ts +6 -0
  127. package/declaration/src/editor/layout/inspector/decals/configuration.d.ts +6 -0
  128. package/declaration/src/editor/layout/inspector/decals/decals.d.ts +36 -0
  129. package/declaration/src/editor/layout/inspector/fields/asset.d.ts +8 -0
  130. package/declaration/src/editor/layout/inspector/fields/block.d.ts +2 -0
  131. package/declaration/src/editor/layout/inspector/fields/color.d.ts +9 -0
  132. package/declaration/src/editor/layout/inspector/fields/dimensions.d.ts +10 -0
  133. package/declaration/src/editor/layout/inspector/fields/entity.d.ts +8 -0
  134. package/declaration/src/editor/layout/inspector/fields/field.d.ts +14 -0
  135. package/declaration/src/editor/layout/inspector/fields/key.d.ts +7 -0
  136. package/declaration/src/editor/layout/inspector/fields/list.d.ts +15 -0
  137. package/declaration/src/editor/layout/inspector/fields/number.d.ts +11 -0
  138. package/declaration/src/editor/layout/inspector/fields/section.d.ts +21 -0
  139. package/declaration/src/editor/layout/inspector/fields/slider.d.ts +8 -0
  140. package/declaration/src/editor/layout/inspector/fields/string.d.ts +6 -0
  141. package/declaration/src/editor/layout/inspector/fields/switch.d.ts +5 -0
  142. package/declaration/src/editor/layout/inspector/fields/texture.d.ts +37 -0
  143. package/declaration/src/editor/layout/inspector/fields/vector.d.ts +11 -0
  144. package/declaration/src/editor/layout/inspector/file/image.d.ts +5 -0
  145. package/declaration/src/editor/layout/inspector/file/markdown.d.ts +5 -0
  146. package/declaration/src/editor/layout/inspector/file/sound.d.ts +5 -0
  147. package/declaration/src/editor/layout/inspector/file.d.ts +18 -0
  148. package/declaration/src/editor/layout/inspector/gui/gui.d.ts +12 -0
  149. package/declaration/src/editor/layout/inspector/inspector.d.ts +5 -0
  150. package/declaration/src/editor/layout/inspector/light/directional.d.ts +12 -0
  151. package/declaration/src/editor/layout/inspector/light/hemispheric.d.ts +12 -0
  152. package/declaration/src/editor/layout/inspector/light/point.d.ts +12 -0
  153. package/declaration/src/editor/layout/inspector/light/shadows.d.ts +28 -0
  154. package/declaration/src/editor/layout/inspector/light/spot.d.ts +12 -0
  155. package/declaration/src/editor/layout/inspector/marketplace-asset.d.ts +40 -0
  156. package/declaration/src/editor/layout/inspector/material/cell.d.ts +11 -0
  157. package/declaration/src/editor/layout/inspector/material/components/alpha.d.ts +6 -0
  158. package/declaration/src/editor/layout/inspector/material/components/transparency.d.ts +7 -0
  159. package/declaration/src/editor/layout/inspector/material/components/utils.d.ts +11 -0
  160. package/declaration/src/editor/layout/inspector/material/fire.d.ts +11 -0
  161. package/declaration/src/editor/layout/inspector/material/gradient.d.ts +11 -0
  162. package/declaration/src/editor/layout/inspector/material/grid.d.ts +11 -0
  163. package/declaration/src/editor/layout/inspector/material/lava.d.ts +11 -0
  164. package/declaration/src/editor/layout/inspector/material/multi.d.ts +15 -0
  165. package/declaration/src/editor/layout/inspector/material/node.d.ts +19 -0
  166. package/declaration/src/editor/layout/inspector/material/normal.d.ts +11 -0
  167. package/declaration/src/editor/layout/inspector/material/pbr.d.ts +10 -0
  168. package/declaration/src/editor/layout/inspector/material/sky.d.ts +11 -0
  169. package/declaration/src/editor/layout/inspector/material/standard.d.ts +7 -0
  170. package/declaration/src/editor/layout/inspector/material/tri-planar.d.ts +11 -0
  171. package/declaration/src/editor/layout/inspector/material/water.d.ts +15 -0
  172. package/declaration/src/editor/layout/inspector/mesh/collision.d.ts +17 -0
  173. package/declaration/src/editor/layout/inspector/mesh/decal.d.ts +15 -0
  174. package/declaration/src/editor/layout/inspector/mesh/geometry/box.d.ts +7 -0
  175. package/declaration/src/editor/layout/inspector/mesh/geometry/capsule.d.ts +7 -0
  176. package/declaration/src/editor/layout/inspector/mesh/geometry/cylinder.d.ts +7 -0
  177. package/declaration/src/editor/layout/inspector/mesh/geometry/ground.d.ts +7 -0
  178. package/declaration/src/editor/layout/inspector/mesh/geometry/plane.d.ts +7 -0
  179. package/declaration/src/editor/layout/inspector/mesh/geometry/proxy.d.ts +1 -0
  180. package/declaration/src/editor/layout/inspector/mesh/geometry/sphere.d.ts +7 -0
  181. package/declaration/src/editor/layout/inspector/mesh/geometry/torus-knot.d.ts +7 -0
  182. package/declaration/src/editor/layout/inspector/mesh/geometry/torus.d.ts +7 -0
  183. package/declaration/src/editor/layout/inspector/mesh/geometry.d.ts +7 -0
  184. package/declaration/src/editor/layout/inspector/mesh/mesh.d.ts +32 -0
  185. package/declaration/src/editor/layout/inspector/mesh/physics.d.ts +12 -0
  186. package/declaration/src/editor/layout/inspector/mesh/skeleton.d.ts +12 -0
  187. package/declaration/src/editor/layout/inspector/metadata/custom-metadata.d.ts +14 -0
  188. package/declaration/src/editor/layout/inspector/particles/gpu-particle-system.d.ts +26 -0
  189. package/declaration/src/editor/layout/inspector/particles/gradient.d.ts +6 -0
  190. package/declaration/src/editor/layout/inspector/particles/node-particle-system-set.d.ts +17 -0
  191. package/declaration/src/editor/layout/inspector/particles/particle-system.d.ts +22 -0
  192. package/declaration/src/editor/layout/inspector/particles/property-gradient.d.ts +13 -0
  193. package/declaration/src/editor/layout/inspector/scene/animation-groups.d.ts +7 -0
  194. package/declaration/src/editor/layout/inspector/scene/scene.d.ts +28 -0
  195. package/declaration/src/editor/layout/inspector/script/field.d.ts +9 -0
  196. package/declaration/src/editor/layout/inspector/script/script.d.ts +18 -0
  197. package/declaration/src/editor/layout/inspector/script/tools.d.ts +20 -0
  198. package/declaration/src/editor/layout/inspector/sound/sound.d.ts +17 -0
  199. package/declaration/src/editor/layout/inspector/sound/spatial.d.ts +14 -0
  200. package/declaration/src/editor/layout/inspector/sprites/sprite-manager.d.ts +27 -0
  201. package/declaration/src/editor/layout/inspector/sprites/sprite-map.d.ts +29 -0
  202. package/declaration/src/editor/layout/inspector/sprites/sprite.d.ts +27 -0
  203. package/declaration/src/editor/layout/inspector/transform.d.ts +17 -0
  204. package/declaration/src/editor/layout/inspector.d.ts +24 -0
  205. package/declaration/src/editor/layout/marketplace-browser/footer.d.ts +11 -0
  206. package/declaration/src/editor/layout/marketplace-browser/grid.d.ts +9 -0
  207. package/declaration/src/editor/layout/marketplace-browser/import-progress.d.ts +11 -0
  208. package/declaration/src/editor/layout/marketplace-browser/item.d.ts +7 -0
  209. package/declaration/src/editor/layout/marketplace-browser/settings-dialog.d.ts +21 -0
  210. package/declaration/src/editor/layout/marketplace-browser/sidebar.d.ts +19 -0
  211. package/declaration/src/editor/layout/marketplace-browser/toolbar.d.ts +17 -0
  212. package/declaration/src/editor/layout/marketplace-browser.d.ts +36 -0
  213. package/declaration/src/editor/layout/navmesh/components/list.d.ts +10 -0
  214. package/declaration/src/editor/layout/navmesh/components/search.d.ts +5 -0
  215. package/declaration/src/editor/layout/navmesh/editor.d.ts +34 -0
  216. package/declaration/src/editor/layout/navmesh/inspector.d.ts +7 -0
  217. package/declaration/src/editor/layout/navmesh/meshes.d.ts +7 -0
  218. package/declaration/src/editor/layout/navmesh/obstacles.d.ts +7 -0
  219. package/declaration/src/editor/layout/navmesh/preview.d.ts +7 -0
  220. package/declaration/src/editor/layout/navmesh/toolbar.d.ts +5 -0
  221. package/declaration/src/editor/layout/navmesh/tools.d.ts +10 -0
  222. package/declaration/src/editor/layout/navmesh/types.d.ts +20 -0
  223. package/declaration/src/editor/layout/preview/axis.d.ts +30 -0
  224. package/declaration/src/editor/layout/preview/camera.d.ts +8 -0
  225. package/declaration/src/editor/layout/preview/gizmo.d.ts +45 -0
  226. package/declaration/src/editor/layout/preview/icons.d.ts +35 -0
  227. package/declaration/src/editor/layout/preview/import/gui.d.ts +8 -0
  228. package/declaration/src/editor/layout/preview/import/import.d.ts +9 -0
  229. package/declaration/src/editor/layout/preview/import/material.d.ts +16 -0
  230. package/declaration/src/editor/layout/preview/import/particles.d.ts +3 -0
  231. package/declaration/src/editor/layout/preview/import/progress.d.ts +11 -0
  232. package/declaration/src/editor/layout/preview/import/sound.d.ts +2 -0
  233. package/declaration/src/editor/layout/preview/import/texture.d.ts +17 -0
  234. package/declaration/src/editor/layout/preview/play.d.ts +91 -0
  235. package/declaration/src/editor/layout/preview/stats/row.d.ts +5 -0
  236. package/declaration/src/editor/layout/preview/stats/stats.d.ts +17 -0
  237. package/declaration/src/editor/layout/preview/stats/types.d.ts +28 -0
  238. package/declaration/src/editor/layout/preview.d.ts +140 -0
  239. package/declaration/src/editor/layout/ragdoll/editor.d.ts +23 -0
  240. package/declaration/src/editor/layout/ragdoll/empty.d.ts +5 -0
  241. package/declaration/src/editor/layout/ragdoll/inspector.d.ts +28 -0
  242. package/declaration/src/editor/layout/ragdoll/preview.d.ts +27 -0
  243. package/declaration/src/editor/layout/ragdoll/toolbar.d.ts +5 -0
  244. package/declaration/src/editor/layout/toolbar.d.ts +18 -0
  245. package/declaration/src/editor/layout.d.ts +84 -0
  246. package/declaration/src/editor/main.d.ts +102 -0
  247. package/declaration/src/editor/menu.d.ts +4 -0
  248. package/declaration/src/editor/nodes/camera-pan-input.d.ts +30 -0
  249. package/declaration/src/editor/nodes/camera.d.ts +50 -0
  250. package/declaration/src/editor/nodes/collision.d.ts +36 -0
  251. package/declaration/src/editor/nodes/node-particle-system.d.ts +30 -0
  252. package/declaration/src/editor/nodes/scene-link.d.ts +28 -0
  253. package/declaration/src/editor/nodes/sprite-manager.d.ts +36 -0
  254. package/declaration/src/editor/nodes/sprite-map.d.ts +38 -0
  255. package/declaration/src/editor/overrides.d.ts +1 -0
  256. package/declaration/src/editor/preload.d.ts +1 -0
  257. package/declaration/src/editor/rendering/default-pipeline.d.ts +14 -0
  258. package/declaration/src/editor/rendering/ibl-shadows.d.ts +11 -0
  259. package/declaration/src/editor/rendering/motion-blur.d.ts +11 -0
  260. package/declaration/src/editor/rendering/ssao.d.ts +11 -0
  261. package/declaration/src/editor/rendering/ssr.d.ts +11 -0
  262. package/declaration/src/editor/rendering/taa.d.ts +11 -0
  263. package/declaration/src/editor/rendering/tools.d.ts +7 -0
  264. package/declaration/src/editor/rendering/vls.d.ts +11 -0
  265. package/declaration/src/editor/window.d.ts +23 -0
  266. package/declaration/src/editor/windows/ge/index.d.ts +13 -0
  267. package/declaration/src/editor/windows/nme/index.d.ts +15 -0
  268. package/declaration/src/editor/windows/npe/index.d.ts +15 -0
  269. package/declaration/src/editor/windows/preload.d.ts +1 -0
  270. package/declaration/src/editor/windows/scene/index.d.ts +12 -0
  271. package/declaration/src/electron/assimp/assimpjs-worker.d.ts +1 -0
  272. package/declaration/src/electron/assimp/assimpjs.d.ts +1 -0
  273. package/declaration/src/electron/events/dialog.d.ts +1 -0
  274. package/declaration/src/electron/events/editor.d.ts +1 -0
  275. package/declaration/src/electron/events/export.d.ts +1 -0
  276. package/declaration/src/electron/events/shell.d.ts +1 -0
  277. package/declaration/src/electron/events/window.d.ts +1 -0
  278. package/declaration/src/electron/node-pty.d.ts +6 -0
  279. package/declaration/src/electron/oauth.d.ts +1 -0
  280. package/declaration/src/electron/protocol.d.ts +1 -0
  281. package/declaration/src/export.d.ts +85 -0
  282. package/declaration/src/index.d.ts +10 -0
  283. package/declaration/src/loader/animation.d.ts +2 -0
  284. package/declaration/src/loader/assimpjs.d.ts +42 -0
  285. package/declaration/src/loader/maps.d.ts +4 -0
  286. package/declaration/src/loader/material.d.ts +3 -0
  287. package/declaration/src/loader/mesh.d.ts +3 -0
  288. package/declaration/src/loader/node.d.ts +4 -0
  289. package/declaration/src/loader/texture.d.ts +2 -0
  290. package/declaration/src/loader/types.d.ts +64 -0
  291. package/declaration/src/project/add/camera.d.ts +4 -0
  292. package/declaration/src/project/add/configure.d.ts +3 -0
  293. package/declaration/src/project/add/light.d.ts +6 -0
  294. package/declaration/src/project/add/material.d.ts +14 -0
  295. package/declaration/src/project/add/mesh.d.ts +12 -0
  296. package/declaration/src/project/add/node.d.ts +3 -0
  297. package/declaration/src/project/add/particles.d.ts +4 -0
  298. package/declaration/src/project/add/sprite.d.ts +6 -0
  299. package/declaration/src/project/configuration.d.ts +11 -0
  300. package/declaration/src/project/export/assets.d.ts +9 -0
  301. package/declaration/src/project/export/dialog.d.ts +23 -0
  302. package/declaration/src/project/export/export.d.ts +7 -0
  303. package/declaration/src/project/export/ktx.d.ts +29 -0
  304. package/declaration/src/project/export/lod.d.ts +7 -0
  305. package/declaration/src/project/export/materials.d.ts +8 -0
  306. package/declaration/src/project/export/particles.d.ts +9 -0
  307. package/declaration/src/project/export/physics.d.ts +7 -0
  308. package/declaration/src/project/export/progress.d.ts +11 -0
  309. package/declaration/src/project/export/scripts.d.ts +2 -0
  310. package/declaration/src/project/export/texture.d.ts +6 -0
  311. package/declaration/src/project/load/default.d.ts +3 -0
  312. package/declaration/src/project/load/install.d.ts +23 -0
  313. package/declaration/src/project/load/load.d.ts +16 -0
  314. package/declaration/src/project/load/plugins/animation-groups.d.ts +4 -0
  315. package/declaration/src/project/load/plugins/cameras.d.ts +4 -0
  316. package/declaration/src/project/load/plugins/gui.d.ts +3 -0
  317. package/declaration/src/project/load/plugins/lights.d.ts +4 -0
  318. package/declaration/src/project/load/plugins/meshes.d.ts +3 -0
  319. package/declaration/src/project/load/plugins/morph-targets.d.ts +4 -0
  320. package/declaration/src/project/load/plugins/node-particle-system-sets.d.ts +4 -0
  321. package/declaration/src/project/load/plugins/particle-systems.d.ts +4 -0
  322. package/declaration/src/project/load/plugins/shadow-generators.d.ts +4 -0
  323. package/declaration/src/project/load/plugins/skeletons.d.ts +4 -0
  324. package/declaration/src/project/load/plugins/sounds.d.ts +4 -0
  325. package/declaration/src/project/load/plugins/sprite-managers.d.ts +4 -0
  326. package/declaration/src/project/load/plugins/sprite-maps.d.ts +4 -0
  327. package/declaration/src/project/load/plugins/transform-nodes.d.ts +4 -0
  328. package/declaration/src/project/load/prepare.d.ts +4 -0
  329. package/declaration/src/project/load/progress.d.ts +20 -0
  330. package/declaration/src/project/load/scene.d.ts +34 -0
  331. package/declaration/src/project/load/texture.d.ts +2 -0
  332. package/declaration/src/project/run.d.ts +3 -0
  333. package/declaration/src/project/save/dialog.d.ts +23 -0
  334. package/declaration/src/project/save/progress.d.ts +4 -0
  335. package/declaration/src/project/save/save.d.ts +4 -0
  336. package/declaration/src/project/save/scene.d.ts +2 -0
  337. package/declaration/src/project/tools/geometry.d.ts +7 -0
  338. package/declaration/src/project/tools/morph-target.d.ts +1 -0
  339. package/declaration/src/project/typings.d.ts +34 -0
  340. package/declaration/src/splash/main.d.ts +6 -0
  341. package/declaration/src/splash/preload.d.ts +0 -0
  342. package/declaration/src/tools/animation/group.d.ts +7 -0
  343. package/declaration/src/tools/animation/tools.d.ts +27 -0
  344. package/declaration/src/tools/animation/tween.d.ts +95 -0
  345. package/declaration/src/tools/augmentations.d.ts +10 -0
  346. package/declaration/src/tools/camera/focus.d.ts +7 -0
  347. package/declaration/src/tools/dialog.d.ts +14 -0
  348. package/declaration/src/tools/dom.d.ts +17 -0
  349. package/declaration/src/tools/fs.d.ts +30 -0
  350. package/declaration/src/tools/guards/material.d.ts +21 -0
  351. package/declaration/src/tools/guards/math.d.ts +26 -0
  352. package/declaration/src/tools/guards/nodes.d.ts +103 -0
  353. package/declaration/src/tools/guards/particles.d.ts +22 -0
  354. package/declaration/src/tools/guards/scene.d.ts +12 -0
  355. package/declaration/src/tools/guards/shadows.d.ts +11 -0
  356. package/declaration/src/tools/guards/sound.d.ts +6 -0
  357. package/declaration/src/tools/guards/sprites.d.ts +18 -0
  358. package/declaration/src/tools/guards/texture.d.ts +22 -0
  359. package/declaration/src/tools/ipc.d.ts +14 -0
  360. package/declaration/src/tools/light/ibl.d.ts +2 -0
  361. package/declaration/src/tools/light/shadows.d.ts +19 -0
  362. package/declaration/src/tools/local-storage.d.ts +29 -0
  363. package/declaration/src/tools/marketplaces/ambientcg.d.ts +12 -0
  364. package/declaration/src/tools/marketplaces/polyhaven.d.ts +16 -0
  365. package/declaration/src/tools/marketplaces/provider.d.ts +37 -0
  366. package/declaration/src/tools/marketplaces/registrations.d.ts +3 -0
  367. package/declaration/src/tools/marketplaces/sketchfab/settings.d.ts +8 -0
  368. package/declaration/src/tools/marketplaces/sketchfab.d.ts +29 -0
  369. package/declaration/src/tools/marketplaces/types.d.ts +79 -0
  370. package/declaration/src/tools/material/extract.d.ts +6 -0
  371. package/declaration/src/tools/material/material.d.ts +11 -0
  372. package/declaration/src/tools/material/texture.d.ts +2 -0
  373. package/declaration/src/tools/maths/projection.d.ts +2 -0
  374. package/declaration/src/tools/maths/scalar.d.ts +8 -0
  375. package/declaration/src/tools/mesh/augmentations.d.ts +7 -0
  376. package/declaration/src/tools/mesh/collision.d.ts +7 -0
  377. package/declaration/src/tools/mesh/ground.d.ts +10 -0
  378. package/declaration/src/tools/mesh/instance.d.ts +3 -0
  379. package/declaration/src/tools/node/clone.d.ts +10 -0
  380. package/declaration/src/tools/node/metadata.d.ts +55 -0
  381. package/declaration/src/tools/node/parenting.d.ts +11 -0
  382. package/declaration/src/tools/node-pty.d.ts +43 -0
  383. package/declaration/src/tools/observables.d.ts +45 -0
  384. package/declaration/src/tools/os.d.ts +10 -0
  385. package/declaration/src/tools/particles/augmentations.d.ts +7 -0
  386. package/declaration/src/tools/particles/extract.d.ts +10 -0
  387. package/declaration/src/tools/particles/metadata.d.ts +39 -0
  388. package/declaration/src/tools/particles/particle.d.ts +6 -0
  389. package/declaration/src/tools/particles/texture.d.ts +8 -0
  390. package/declaration/src/tools/physics/init.d.ts +5 -0
  391. package/declaration/src/tools/physics/serialization/aggregate.d.ts +33 -0
  392. package/declaration/src/tools/physics/shape.d.ts +7 -0
  393. package/declaration/src/tools/plugins/require.d.ts +7 -0
  394. package/declaration/src/tools/plugins/watch.d.ts +5 -0
  395. package/declaration/src/tools/process.d.ts +36 -0
  396. package/declaration/src/tools/project.d.ts +27 -0
  397. package/declaration/src/tools/property.d.ts +15 -0
  398. package/declaration/src/tools/recast/init.d.ts +2 -0
  399. package/declaration/src/tools/scene/materials.d.ts +7 -0
  400. package/declaration/src/tools/scene/play/compile.d.ts +4 -0
  401. package/declaration/src/tools/scene/play/override.d.ts +7 -0
  402. package/declaration/src/tools/scene/rename.d.ts +7 -0
  403. package/declaration/src/tools/scene/scene-link.d.ts +17 -0
  404. package/declaration/src/tools/scene/screenshot.d.ts +11 -0
  405. package/declaration/src/tools/sound/augmentations.d.ts +7 -0
  406. package/declaration/src/tools/sound/tools.d.ts +15 -0
  407. package/declaration/src/tools/sprite/augmentations.d.ts +8 -0
  408. package/declaration/src/tools/sprite/preview.d.ts +6 -0
  409. package/declaration/src/tools/sprite/tools.d.ts +4 -0
  410. package/declaration/src/tools/tools.d.ts +55 -0
  411. package/declaration/src/tools/undoredo.d.ts +24 -0
  412. package/declaration/src/tools/worker.d.ts +17 -0
  413. package/declaration/src/tools/workers/md5.d.ts +2 -0
  414. package/declaration/src/tools/workers/script.d.ts +9 -0
  415. package/declaration/src/tools/workers/thumbnail/main.d.ts +2 -0
  416. package/declaration/src/tools/workers/thumbnail/material.d.ts +2 -0
  417. package/declaration/src/tools/workers/thumbnail/mesh.d.ts +2 -0
  418. package/declaration/src/ui/color-picker.d.ts +15 -0
  419. package/declaration/src/ui/dialog.d.ts +13 -0
  420. package/declaration/src/ui/scene-asset-browser.d.ts +88 -0
  421. package/declaration/src/ui/shadcn/ui/alert-dialog.d.ts +20 -0
  422. package/declaration/src/ui/shadcn/ui/alert.d.ts +9 -0
  423. package/declaration/src/ui/shadcn/ui/badge.d.ts +9 -0
  424. package/declaration/src/ui/shadcn/ui/breadcrumb.d.ts +19 -0
  425. package/declaration/src/ui/shadcn/ui/button.d.ts +11 -0
  426. package/declaration/src/ui/shadcn/ui/checkbox.d.ts +4 -0
  427. package/declaration/src/ui/shadcn/ui/command.d.ts +82 -0
  428. package/declaration/src/ui/shadcn/ui/context-menu.d.ts +27 -0
  429. package/declaration/src/ui/shadcn/ui/dialog.d.ts +19 -0
  430. package/declaration/src/ui/shadcn/ui/dropdown-menu.d.ts +27 -0
  431. package/declaration/src/ui/shadcn/ui/field.d.ts +24 -0
  432. package/declaration/src/ui/shadcn/ui/hover-card.d.ts +6 -0
  433. package/declaration/src/ui/shadcn/ui/input.d.ts +5 -0
  434. package/declaration/src/ui/shadcn/ui/label.d.ts +5 -0
  435. package/declaration/src/ui/shadcn/ui/menubar.d.ts +31 -0
  436. package/declaration/src/ui/shadcn/ui/popover.d.ts +7 -0
  437. package/declaration/src/ui/shadcn/ui/progress.d.ts +4 -0
  438. package/declaration/src/ui/shadcn/ui/radio-group.d.ts +5 -0
  439. package/declaration/src/ui/shadcn/ui/resizable.d.ts +23 -0
  440. package/declaration/src/ui/shadcn/ui/select.d.ts +13 -0
  441. package/declaration/src/ui/shadcn/ui/separator.d.ts +4 -0
  442. package/declaration/src/ui/shadcn/ui/slider.d.ts +4 -0
  443. package/declaration/src/ui/shadcn/ui/sonner.d.ts +4 -0
  444. package/declaration/src/ui/shadcn/ui/switch.d.ts +4 -0
  445. package/declaration/src/ui/shadcn/ui/table.d.ts +10 -0
  446. package/declaration/src/ui/shadcn/ui/tabs.d.ts +7 -0
  447. package/declaration/src/ui/shadcn/ui/textarea.d.ts +3 -0
  448. package/declaration/src/ui/shadcn/ui/toggle-group.d.ts +12 -0
  449. package/declaration/src/ui/shadcn/ui/toggle.d.ts +12 -0
  450. package/declaration/src/ui/shadcn/ui/toolbar-radio-group.d.ts +5 -0
  451. package/declaration/src/ui/shadcn/ui/tooltip.d.ts +7 -0
  452. package/declaration/src/ui/spinner.d.ts +2 -0
  453. package/declaration/src/ui/toolbar.d.ts +4 -0
  454. package/declaration/src/ui/utils.d.ts +2 -0
  455. package/package.json +135 -38
  456. package/index.d.ts +0 -6126
@@ -0,0 +1,79 @@
1
+ export interface IDownloadOptions {
2
+ [quality: string]: {
3
+ [fileType: string]: {
4
+ include: {
5
+ [path: string]: {
6
+ size: number;
7
+ url: string;
8
+ md5: string;
9
+ };
10
+ };
11
+ size: number;
12
+ url: string;
13
+ md5: string;
14
+ extension?: string;
15
+ };
16
+ };
17
+ }
18
+ export interface IMarketplaceAsset {
19
+ id: string;
20
+ name: string;
21
+ thumbnailUrl: string;
22
+ description?: string;
23
+ author?: string;
24
+ license?: string;
25
+ tags?: string[];
26
+ marketplaceUrl?: string;
27
+ marketplaceActionLabel?: string;
28
+ isDownloadable?: boolean;
29
+ downloadOptions?: IDownloadOptions;
30
+ }
31
+ export interface IMarketplaceSearchResult {
32
+ assets: IMarketplaceAsset[];
33
+ totalCount?: number;
34
+ nextPageToken?: string;
35
+ }
36
+ export type MarketplaceFilterValue = string | number | boolean | string[];
37
+ export interface IMarketplaceFilterOption {
38
+ label: string;
39
+ value: string;
40
+ }
41
+ export interface IMarketplaceFilterDefinition {
42
+ id: string;
43
+ label: string;
44
+ type: "boolean" | "select" | "multi-select" | "number" | "text";
45
+ options?: IMarketplaceFilterOption[];
46
+ defaultValue?: MarketplaceFilterValue;
47
+ placeholder?: string;
48
+ min?: number;
49
+ max?: number;
50
+ step?: number;
51
+ }
52
+ export interface IMarketplaceSearchFilters {
53
+ [id: string]: MarketplaceFilterValue | undefined;
54
+ }
55
+ export interface IFileToDownload {
56
+ url: string;
57
+ path: string;
58
+ size?: number;
59
+ md5?: string;
60
+ extract?: boolean;
61
+ }
62
+ export interface IMarketplaceProgress {
63
+ progress?: number;
64
+ loaded?: number;
65
+ total?: number;
66
+ speed?: number;
67
+ extraStatus?: string;
68
+ }
69
+ export interface IMarketplaceOAuth {
70
+ authorizeUrl: string;
71
+ redirectUrl: string;
72
+ onRedirect(url: string): Promise<void>;
73
+ }
74
+ export interface IMarketplaceSettings {
75
+ }
76
+ export interface IMarketplaceDownloadItem {
77
+ id: string;
78
+ abortController: AbortController;
79
+ }
@@ -0,0 +1,6 @@
1
+ import { Editor } from "../../editor/main";
2
+ export interface IExtractNodeMaterialTexturesOptions {
3
+ materialData: any;
4
+ assetsDirectory: string;
5
+ }
6
+ export declare function extractNodeMaterialTextures(editor: Editor, options: IExtractNodeMaterialTexturesOptions): Promise<string[]>;
@@ -0,0 +1,11 @@
1
+ import { Material, NodeMaterial } from "babylonjs";
2
+ /**
3
+ * Configures the given material to receive up to 32 lights simultaneously.
4
+ * @param material defines the reference to the material to configure.
5
+ */
6
+ export declare function configureSimultaneousLightsForMaterial(material: Material): void;
7
+ /**
8
+ * Normalizes the unique IDs of the nodes in the given Node Material based on the provided material data.
9
+ * This allows to get ids not modified after reloading the material to be git-compliant.
10
+ */
11
+ export declare function normalizeNodeMaterialUniqueIds(material: NodeMaterial, materialData: any): void;
@@ -0,0 +1,2 @@
1
+ import { Scene } from "babylonjs";
2
+ export declare function storeTexturesBaseSize(scene: Scene): void;
@@ -0,0 +1,2 @@
1
+ import { Scene, Vector2, Vector3 } from "babylonjs";
2
+ export declare function projectVectorOnScreen(vector: Vector3, scene: Scene): Vector2;
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Returns the power of two sizes until the given limit.
3
+ * @param limit The limit size.
4
+ * @param from The starting size. Default is 1.
5
+ * @returns An array of power of two sizes.
6
+ */
7
+ export declare function getPowerOfTwoSizesUntil(limit?: number, from?: number): number[];
8
+ export declare function getPowerOfTwoUntil(limit: number): number;
@@ -0,0 +1,7 @@
1
+ import { PhysicsAggregate } from "babylonjs";
2
+ export { AbstractMesh } from "babylonjs";
3
+ declare module "babylonjs" {
4
+ interface AbstractMesh {
5
+ physicsAggregate?: PhysicsAggregate | null;
6
+ }
7
+ }
@@ -0,0 +1,7 @@
1
+ import { Mesh } from "babylonjs";
2
+ import { CollisionMesh } from "../../editor/nodes/collision";
3
+ /**
4
+ * Looking for descendants of the given mesh, returns the reference to the first collision
5
+ * mesh found. A collision mesh is unique per mesh.
6
+ */
7
+ export declare function getCollisionMeshFor(mesh: Mesh): CollisionMesh | null;
@@ -0,0 +1,10 @@
1
+ import { Mesh, FloatArray, IndicesArray } from "babylonjs";
2
+ export interface ISmoothGroundGeometryOptions {
3
+ ground: Mesh;
4
+ smoothFactor: number;
5
+ subdivisions: number;
6
+ indices?: IndicesArray | null;
7
+ normals?: FloatArray | null;
8
+ positions?: FloatArray | null;
9
+ }
10
+ export declare function smoothGroundGeometry(options: ISmoothGroundGeometryOptions): void;
@@ -0,0 +1,3 @@
1
+ import { Mesh } from "babylonjs";
2
+ import { Editor } from "../../editor/main";
3
+ export declare function createMeshInstance(editor: Editor, mesh: Mesh): import("babylonjs").InstancedMesh;
@@ -0,0 +1,10 @@
1
+ import { Node, Sprite, ParticleSystem, GPUParticleSystem } from "babylonjs";
2
+ import { Editor } from "../../editor/main";
3
+ import { SpriteManagerNode } from "../../editor/nodes/sprite-manager";
4
+ export interface ICloneNodeOptions {
5
+ shareGeometry?: boolean;
6
+ shareSkeleton?: boolean;
7
+ cloneMaterial?: boolean;
8
+ cloneThinInstances?: boolean;
9
+ }
10
+ export declare function cloneNode(editor: Editor, node: Node | Sprite | ParticleSystem | GPUParticleSystem, options?: ICloneNodeOptions): Node | SpriteManagerNode | Sprite | GPUParticleSystem | null;
@@ -0,0 +1,55 @@
1
+ import { Node } from "babylonjs";
2
+ export interface INodeMetadata {
3
+ /**
4
+ * Defines wether or not the object is locked.
5
+ */
6
+ isLocked?: boolean;
7
+ /**
8
+ * Defines wether or not the object should be serialized when the scene is exported.
9
+ */
10
+ doNotSerialize?: boolean;
11
+ /**
12
+ * Defines wether or not the object is visible in the graph panel in the editor.
13
+ */
14
+ notVisibleInGraph?: boolean;
15
+ }
16
+ /**
17
+ * Ensures that metadata exists for the given node.
18
+ * @param node defines the node to ensure metadata for.
19
+ * @returns the metadata of the node, creating it if does not exist.
20
+ */
21
+ export declare function ensureNodeMetadata(node: Node): INodeMetadata;
22
+ /**
23
+ * Gets wether or not the given node is locked in the editor.
24
+ * @param node defines the node to check.
25
+ * @returns true if the node is locked, false otherwise.
26
+ */
27
+ export declare function isNodeLocked(node: Node): boolean;
28
+ /**
29
+ * Sets wether or not the given node is locked in the editor.
30
+ * @param node defines the node to configure.
31
+ * @param locked defines the value to set.
32
+ */
33
+ export declare function setNodeLocked(node: Node, locked: boolean): void;
34
+ /**
35
+ * Gets wether or not the given node is not serializable.
36
+ * @param node defines the reference to the node to get the metadata to.
37
+ */
38
+ export declare function isNodeSerializable(node: Node): boolean;
39
+ /**
40
+ * Sets wether or not the given node is not serializable.
41
+ * @param node defines the reference to the node to set configuration.
42
+ * @param value defines the value to set.
43
+ */
44
+ export declare function setNodeSerializable(node: Node, value: boolean): void;
45
+ /**
46
+ * Gets wether or not the given node is visible in the graph panel of the editor.
47
+ * @param node defines the reference to the node to check.
48
+ */
49
+ export declare function isNodeVisibleInGraph(node: Node): boolean;
50
+ /**
51
+ * Sets wether or not the given node is visible in the graph panel of the editor.
52
+ * @param node defines the reference to the node to set configuration.
53
+ * @param value defines the value to set.
54
+ */
55
+ export declare function setNodeVisibleInGraph(node: Node, value: boolean): void;
@@ -0,0 +1,11 @@
1
+ import { Node, Vector3, Quaternion, TransformNode } from "babylonjs";
2
+ export interface IOldNodeHierarchyConfiguration {
3
+ parent: Node | null;
4
+ position?: Vector3;
5
+ rotation?: Vector3;
6
+ scaling?: Vector3;
7
+ rotationQuaternion?: Quaternion;
8
+ }
9
+ export declare function getNodeParentingConfiguration(node: Node): IOldNodeHierarchyConfiguration;
10
+ export declare function applyNodeParentingConfiguration(node: Node, config: IOldNodeHierarchyConfiguration): void;
11
+ export declare function applyTransformNodeParentingConfiguration(node: Node, newParent: Node | null, tempTransfromNode: TransformNode): void;
@@ -0,0 +1,43 @@
1
+ import { IPtyForkOptions, IWindowsPtyForkOptions } from "node-pty";
2
+ import { Observable } from "babylonjs";
3
+ /**
4
+ * Creates a new node-pty instance.
5
+ * @param command The command to run in the pty process.
6
+ * @param options The options to pass to the pty process.
7
+ * @returns A promise that resolves with the node-pty instance.
8
+ */
9
+ export declare function execNodePty(command: string, options?: IPtyForkOptions | IWindowsPtyForkOptions): Promise<NodePtyInstance>;
10
+ export declare class NodePtyInstance {
11
+ /**
12
+ * The id of the node-pty instance.
13
+ */
14
+ readonly id: string;
15
+ /**
16
+ * An observable that is triggered when data is received from the pty.
17
+ */
18
+ onGetDataObservable: Observable<string>;
19
+ private _exited;
20
+ private _exitCode;
21
+ /**
22
+ * Constructor.
23
+ * @param id The id of the node-pty instance.
24
+ */
25
+ constructor(id: string);
26
+ /**
27
+ * Writes data to the pty.
28
+ * @param data The data to write.
29
+ */
30
+ write(data: string): void;
31
+ /**
32
+ * Kills the pty process.
33
+ */
34
+ kill(): void;
35
+ /**
36
+ * Waits until the
37
+ */
38
+ wait(): Promise<number>;
39
+ /**
40
+ * Resizes the node-pty process in case it is used using xterm.
41
+ */
42
+ resize(cols: number, rows: number): void;
43
+ }
@@ -0,0 +1,45 @@
1
+ import { BaseTexture, Node, Observable, IParticleSystem, Sprite, Skeleton } from "babylonjs";
2
+ /**
3
+ * Observable for when the project has been saved.
4
+ */
5
+ export declare const onProjectSavedObservable: Observable<void>;
6
+ /**
7
+ * Observable for when new nodes have been added to the scene.
8
+ */
9
+ export declare const onNodesAddedObservable: Observable<void>;
10
+ /**
11
+ * Observable for when a node has been modified in the editor.
12
+ */
13
+ export declare const onNodeModifiedObservable: Observable<Node>;
14
+ /**
15
+ * Observable for when a skeleton has been modified in the editor.
16
+ */
17
+ export declare const onSkeletonModifiedObservable: Observable<Skeleton>;
18
+ /**
19
+ * Observable for when a sprite has been modified in the editor.
20
+ */
21
+ export declare const onSpriteModifiedObservable: Observable<Sprite>;
22
+ /**
23
+ * Observable for when new textures have been added to the scene.
24
+ */
25
+ export declare const onTextureAddedObservable: Observable<BaseTexture>;
26
+ /**
27
+ * Observable for when a texture has been modified in the editor.
28
+ */
29
+ export declare const onTextureModifiedObservable: Observable<BaseTexture>;
30
+ /**
31
+ * Observable for when new particle systems have been added to the scene.
32
+ */
33
+ export declare const onParticleSystemAddedObservable: Observable<IParticleSystem>;
34
+ /**
35
+ * Observable for when a particle system has been modified in the editor.
36
+ */
37
+ export declare const onParticleSystemModifiedObservable: Observable<IParticleSystem>;
38
+ /**
39
+ * Observable used for when the path browsed by "Assets Browser" has changed.
40
+ */
41
+ export declare const onAssetsBrowsedPathChanged: Observable<string>;
42
+ /**
43
+ * Observable used for when the selected asset in "Assets Browser" has changed.
44
+ */
45
+ export declare const onSelectedAssetChanged: Observable<string>;
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Returns true if the current platform is macOS.
3
+ * @returns True if the current platform is macOS.
4
+ */
5
+ export declare function isDarwin(): boolean;
6
+ /**
7
+ * Returns true if the current platform is Windows.
8
+ * @returns True if the current platform is Windows.
9
+ */
10
+ export declare function isWindows(): boolean;
@@ -0,0 +1,7 @@
1
+ export { NodeParticleSystemSet } from "babylonjs";
2
+ declare module "babylonjs" {
3
+ interface NodeParticleSystemSet {
4
+ id?: string;
5
+ uniqueId?: number;
6
+ }
7
+ }
@@ -0,0 +1,10 @@
1
+ import { Editor } from "../../editor/main";
2
+ import { IExtractTextureAssetFromDataStringResult } from "../assets/extract";
3
+ export interface IExtractParticleSystemTexturesOptions {
4
+ assetsDirectory: string;
5
+ }
6
+ export declare function extractParticleSystemTextures(editor: Editor, particleSystemData: any, options: IExtractParticleSystemTexturesOptions): Promise<IExtractTextureAssetFromDataStringResult | null>;
7
+ export interface IExtractNodeParticleSystemSetTexturesOptions extends IExtractParticleSystemTexturesOptions {
8
+ particlesData: any;
9
+ }
10
+ export declare function extractNodeParticleSystemSetTextures(editor: Editor, options: IExtractNodeParticleSystemSetTexturesOptions): Promise<string[]>;
@@ -0,0 +1,39 @@
1
+ import { ParticleSystem, GPUParticleSystem } from "babylonjs";
2
+ export interface IParticleSystemMetadata {
3
+ /**
4
+ * Defines wether or not the object should be serialized when the scene is exported.
5
+ */
6
+ doNotSerialize?: boolean;
7
+ /**
8
+ * Defines wether or not the object is visible in the graph panel in the editor.
9
+ */
10
+ notVisibleInGraph?: boolean;
11
+ }
12
+ /**
13
+ * Ensures that metadata exists for the given node.
14
+ * @param node defines the node to ensure metadata for.
15
+ * @returns the metadata of the node, creating it if does not exist.
16
+ */
17
+ export declare function ensureParticleSystemMetadata(node: ParticleSystem | GPUParticleSystem): IParticleSystemMetadata;
18
+ /**
19
+ * Gets wether or not the given node is not serializable.
20
+ * @param node defines the reference to the node to get the metadata to.
21
+ */
22
+ export declare function isParticleSystemSerializable(node: ParticleSystem | GPUParticleSystem): boolean;
23
+ /**
24
+ * Sets wether or not the given node is not serializable.
25
+ * @param node defines the reference to the node to set configuration.
26
+ * @param value defines the value to set.
27
+ */
28
+ export declare function setParticleSystemSerializable(node: ParticleSystem | GPUParticleSystem, value: boolean): void;
29
+ /**
30
+ * Gets wether or not the given node is visible in the graph panel of the editor.
31
+ * @param node defines the reference to the node to check.
32
+ */
33
+ export declare function isParticleSystemVisibleInGraph(node: ParticleSystem | GPUParticleSystem): boolean;
34
+ /**
35
+ * Sets wether or not the given node is visible in the graph panel of the editor.
36
+ * @param node defines the reference to the node to set configuration.
37
+ * @param value defines the value to set.
38
+ */
39
+ export declare function setParticleSystemVisibleInGraph(node: ParticleSystem | GPUParticleSystem, value: boolean): void;
@@ -0,0 +1,6 @@
1
+ import { NodeParticleSystemSet } from "babylonjs";
2
+ /**
3
+ * Normalizes the unique IDs of the nodes in the given Node Particle System Set based on the provided node particle system set data.
4
+ * This allows to get ids not modified after reloading the node particle system set to be git-compliant.
5
+ */
6
+ export declare function normalizeNodeParticleSystemSetUniqueIds(nodeParticleSystem: NodeParticleSystemSet, nodeParticleSystemSetData: any): void;
@@ -0,0 +1,8 @@
1
+ import { RawTexture, Scene } from "babylonjs";
2
+ /**
3
+ * Creates a raw texture composed of random values for RGBA in order to be used by GPU particle systems.
4
+ * This is useful in case the random textures of a GPU particle system must be changed dynamically.
5
+ * @param textureSize defines the size of the texture (size x size).
6
+ * @param scene defines the reference to the scene where to add the texture.
7
+ */
8
+ export declare function createGpuParticleSystemRandomTexture(textureSize: number, scene: Scene): RawTexture;
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Initializes the Havok physics engine for being used in the Editor with Babylon.js.
3
+ * @param appPath defines the absolute path to the Editor application.
4
+ */
5
+ export declare function initializeHavok(appPath: string): Promise<void>;
@@ -0,0 +1,33 @@
1
+ import { TransformNode, PhysicsAggregate } from "babylonjs";
2
+ /**
3
+ * Returns the JSON representation of the given physics aggregate.
4
+ * @param aggregate defines the reference to the physics aggregate object to serialize.
5
+ */
6
+ export declare function serializePhysicsAggregate(aggregate: PhysicsAggregate): {
7
+ shape: {
8
+ type: import("babylonjs").PhysicsShapeType;
9
+ density: number;
10
+ };
11
+ body: {
12
+ motionType: import("babylonjs").PhysicsMotionType;
13
+ };
14
+ massProperties: {
15
+ mass: number | undefined;
16
+ inertia: [number, number, number] | undefined;
17
+ centerOfMass: [number, number, number] | undefined;
18
+ inertiaOrientation: [number, number, number, number] | undefined;
19
+ };
20
+ material: {
21
+ friction: number | undefined;
22
+ restitution: number | undefined;
23
+ staticFriction: number | undefined;
24
+ frictionCombine: import("babylonjs").PhysicsMaterialCombineMode | undefined;
25
+ restitutionCombine: import("babylonjs").PhysicsMaterialCombineMode | undefined;
26
+ };
27
+ };
28
+ /**
29
+ * Returns a new instance of PhysicsAggregate from the given JSON representation.
30
+ * @param transformNode defines the reference to the transform node to setup the physics aggregate.
31
+ * @param data defines the JSON representation of the physics aggregate to parse.
32
+ */
33
+ export declare function parsePhysicsAggregate(transformNode: TransformNode, data: any): PhysicsAggregate;
@@ -0,0 +1,7 @@
1
+ import { AbstractMesh, PhysicsShapeType } from "babylonjs";
2
+ /**
3
+ * Returns the type of shape that should be applied by default for the given mesh.
4
+ * Will check its metadata and collisions to determine the best shape.
5
+ * @param mesh defines the reference to the mesh to check its nature and determine the physics shape.
6
+ */
7
+ export declare function getPhysicsShapeForMesh(mesh: AbstractMesh): PhysicsShapeType;
@@ -0,0 +1,7 @@
1
+ import { Editor } from "../../editor/main";
2
+ export interface IRequirePluginOptions {
3
+ projectPath: string;
4
+ pluginNameOrPath: string;
5
+ noWatch?: boolean;
6
+ }
7
+ export declare function requirePlugin(editor: Editor, options: IRequirePluginOptions): Promise<void>;
@@ -0,0 +1,5 @@
1
+ import { FSWatcher } from "chokidar";
2
+ import { Editor } from "../../editor/main";
3
+ import { IRequirePluginOptions } from "./require";
4
+ export declare const pluginWatchers: Map<string, FSWatcher>;
5
+ export declare function watchPlugin(editor: Editor, requireId: string, options: IRequirePluginOptions): void;
@@ -0,0 +1,36 @@
1
+ import { EditorProjectPackageManager } from "../project/typings";
2
+ /**
3
+ * Get the file path argument from the command line arguments.
4
+ * @param argv The command line arguments.
5
+ * @returns The file path argument or null if none was found.
6
+ */
7
+ export declare function getFilePathArgument(argv?: string[] | null): string | null;
8
+ /**
9
+ * Executes the given command asynchronously using `child_process`
10
+ * @param command defines the command to execute.
11
+ */
12
+ export declare function executeAsync(command: string): Promise<void>;
13
+ export declare let nodeJSAvailable: boolean;
14
+ export declare let packageManagerAvailable: boolean;
15
+ export declare let visualStudioCodeAvailable: boolean;
16
+ /**
17
+ * Checks wether or not Node.js is available on the system.
18
+ * Updates the `nodeJSAvailable` variable that can be imported from this file.
19
+ */
20
+ export declare function checkNodeJSAvailable(): Promise<void>;
21
+ /**
22
+ * Checks wether or not Visual Studio Code is available on the system.
23
+ * Updates the `visualStudioCodeAvailable` variable that can be imported from this file.
24
+ */
25
+ export declare function checkVisualStudioCodeAvailable(): Promise<void>;
26
+ /**
27
+ * Checks wether or not the used package manager (yarn, npm, etc.) is available on the system.
28
+ * Updates the `packageManagerAvailable` variable that can be imported from this file.
29
+ * @param packageManager The package manager to check for availability.
30
+ */
31
+ export declare function checkPackageManagerAvailable(packageManager: EditorProjectPackageManager): Promise<void>;
32
+ /**
33
+ * Returns wether or not the given package manager is available on the system.
34
+ * @param packageManager The package manager to check for availability.
35
+ */
36
+ export declare function isPackageManagerAvailable(packageManager: EditorProjectPackageManager): Promise<boolean>;
@@ -0,0 +1,27 @@
1
+ export type ProjectType = {
2
+ /**
3
+ * Defines the base64 encoded preview of the project.
4
+ */
5
+ preview?: string;
6
+ /**
7
+ * Defines the absolute path on the hard drive of the project.
8
+ */
9
+ absolutePath: string;
10
+ /**
11
+ * Defines the date when the project was created or imported in the dashboard.
12
+ */
13
+ createdAt: Date;
14
+ /**
15
+ * Defines the date when the project was updated (aka. saved).
16
+ */
17
+ updatedAt: Date;
18
+ };
19
+ export declare const temporaryDirectoryName = ".bjseditor";
20
+ export declare const projectsKey: string;
21
+ /**
22
+ * Ensures that the temporary directory exists for the given project.
23
+ * This temporary directory is used to store compiled scripts, compressed textures etc.
24
+ * It is not intended to be pushed to the git repository or packed with the game at the end.
25
+ * @param projectAbsolutePath defines the aboslute path to the project being edited in the editor.
26
+ */
27
+ export declare function ensureTemporaryDirectoryExists(projectAbsolutePath: string): Promise<string>;
@@ -0,0 +1,15 @@
1
+ /**
2
+ * Sets the given value (`newValue`) to the property located in the given object.
3
+ * @param object defines the root object where to parse the property and set its value.
4
+ * @param property defines the path of the property to set its value.
5
+ * @param newValue defines the new value to set to the property.
6
+ */
7
+ export declare function setInspectorEffectivePropertyValue(object: any, property: string, newValue: any): void;
8
+ /**
9
+ * Returns the current value of the given property of the given object.
10
+ * @param object defines the root object where to parse the property and return its value.
11
+ * @param property defines the path of the property to get its value.
12
+ * @example getInspectorPropertyValue(scene, "ambientColor");
13
+ * @example getInspectorPropertyValue(scene, "ambientColor.r");
14
+ */
15
+ export declare function getInspectorPropertyValue(object: any, property: string): any;
@@ -0,0 +1,2 @@
1
+ import { Editor } from "../../editor/main";
2
+ export declare function initializeRecast(editor: Editor): Promise<boolean | undefined>;
@@ -0,0 +1,7 @@
1
+ import { Scene } from "babylonjs";
2
+ /**
3
+ * Force compile all materials of the given scene.
4
+ * This is useful to ensure that all materials are compiled and ready to use to avoid lag in the editor.
5
+ * @param scene The scene to force compile all materials
6
+ */
7
+ export declare function forceCompileAllSceneMaterials(scene: Scene): Promise<void[]>;
@@ -0,0 +1,4 @@
1
+ export interface ICompilePlayScriptOptions {
2
+ onTransformSource?: (path: string) => void;
3
+ }
4
+ export declare function compilePlayScript(temporaryDirectory: string, options?: ICompilePlayScriptOptions): Promise<void>;
@@ -0,0 +1,7 @@
1
+ import { Editor } from "../../../editor/main";
2
+ /**
3
+ * To play scene inline in the editor, we need to override some methods.
4
+ * This function restores all the orignal methods for all object that have been overridden.
5
+ */
6
+ export declare function restorePlayOverrides(editor: Editor): void;
7
+ export declare function applyOverrides(editor: Editor): void;
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Called on a scene has been renamed. This function will update all the references to the old scene
3
+ * name to the new scene name. Especially the references in the meshes and lods geometry files.
4
+ * @param oldAbsolutePath defines the old absolute path of the scene folder.
5
+ * @param newAbsolutePath defines the new absolute path of the scene folder.
6
+ */
7
+ export declare function renameScene(oldAbsolutePath: string, newAbsolutePath: string): Promise<void>;
@@ -0,0 +1,17 @@
1
+ import { Node, AnimationGroup } from "babylonjs";
2
+ import { Editor } from "../../editor/main";
3
+ import { SceneLinkNode } from "../../editor/nodes/scene-link";
4
+ export declare function createSceneLink(editor: Editor, absolutePath: string): Promise<SceneLinkNode | undefined>;
5
+ /**
6
+ * Returns wether or not the given node is a descendant of a SceneLinkNode instance.
7
+ */
8
+ export declare function isFromSceneLink(node: Node): boolean;
9
+ /**
10
+ * Returns whether or not the given animation group comes from a SceneLinkNode instance.
11
+ */
12
+ export declare function isAnimationGroupFromSceneLink(animationGroup: AnimationGroup): boolean;
13
+ /**
14
+ * Returns the firt root SceneLinkNode found for the given node.
15
+ * In case the node is not from a scene link, "null" is returned.
16
+ */
17
+ export declare function getRootSceneLink(node: Node): SceneLinkNode | null;
@@ -0,0 +1,11 @@
1
+ import { Scene } from "babylonjs";
2
+ /**
3
+ * Takes a screenshot of the scene and returns its base64 value.
4
+ * @param scene defines the reference to the scene to take a screenshot.
5
+ */
6
+ export declare function getBase64SceneScreenshot(scene: Scene): Promise<string | undefined>;
7
+ /**
8
+ * Takes a screenshot of the scene and returns its buffer value.
9
+ * @param scene defines the reference to the scene to take a screenshot.
10
+ */
11
+ export declare function getBufferSceneScreenshot(scene: Scene): Promise<Buffer<ArrayBuffer> | null>;
@@ -0,0 +1,7 @@
1
+ export { Sound } from "babylonjs";
2
+ declare module "babylonjs" {
3
+ interface Sound {
4
+ id: string;
5
+ uniqueId: number;
6
+ }
7
+ }