babylonjs-editor 4.5.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.
- package/build/src/index.js +142 -0
- package/declaration/src/dashboard/create.d.ts +6 -0
- package/declaration/src/dashboard/item.d.ts +8 -0
- package/declaration/src/dashboard/main.d.ts +19 -0
- package/declaration/src/dashboard/menu.d.ts +1 -0
- package/declaration/src/dashboard/preload.d.ts +0 -0
- package/declaration/src/dashboard/progress.d.ts +17 -0
- package/declaration/src/dashboard/window-controls.d.ts +1 -0
- package/declaration/src/dashboard/window.d.ts +2 -0
- package/declaration/src/editor/dialogs/command-palette/camera.d.ts +4 -0
- package/declaration/src/editor/dialogs/command-palette/command-palette.d.ts +27 -0
- package/declaration/src/editor/dialogs/command-palette/light.d.ts +4 -0
- package/declaration/src/editor/dialogs/command-palette/material.d.ts +4 -0
- package/declaration/src/editor/dialogs/command-palette/mesh.d.ts +4 -0
- package/declaration/src/editor/dialogs/command-palette/node.d.ts +4 -0
- package/declaration/src/editor/dialogs/command-palette/particle-systems.d.ts +3 -0
- package/declaration/src/editor/dialogs/command-palette/project.d.ts +3 -0
- package/declaration/src/editor/dialogs/command-palette/shared-commands.d.ts +31 -0
- package/declaration/src/editor/dialogs/command-palette/sprite.d.ts +4 -0
- package/declaration/src/editor/dialogs/edit-preferences/edit-preferences.d.ts +24 -0
- package/declaration/src/editor/dialogs/edit-project/edit-project.d.ts +17 -0
- package/declaration/src/editor/dialogs/edit-project/plugins/component.d.ts +18 -0
- package/declaration/src/editor/dialogs/edit-project/plugins/item.d.ts +7 -0
- package/declaration/src/editor/dialogs/edit-project/textures/component.d.ts +9 -0
- package/declaration/src/editor/layout/animation/inspector/inspector.d.ts +21 -0
- package/declaration/src/editor/layout/animation/timeline/key.d.ts +24 -0
- package/declaration/src/editor/layout/animation/timeline/timeline.d.ts +68 -0
- package/declaration/src/editor/layout/animation/timeline/track.d.ts +29 -0
- package/declaration/src/editor/layout/animation/timeline/tracker.d.ts +17 -0
- package/declaration/src/editor/layout/animation/toolbar.d.ts +11 -0
- package/declaration/src/editor/layout/animation/tools/export.d.ts +2 -0
- package/declaration/src/editor/layout/animation/tools/import.d.ts +3 -0
- package/declaration/src/editor/layout/animation/tools/properties.d.ts +6 -0
- package/declaration/src/editor/layout/animation/tracks/add.d.ts +7 -0
- package/declaration/src/editor/layout/animation/tracks/item.d.ts +11 -0
- package/declaration/src/editor/layout/animation/tracks/tracks.d.ts +18 -0
- package/declaration/src/editor/layout/animation.d.ts +53 -0
- package/declaration/src/editor/layout/assets-browser/events/gui.d.ts +2 -0
- package/declaration/src/editor/layout/assets-browser/events/material.d.ts +2 -0
- package/declaration/src/editor/layout/assets-browser/events/particles.d.ts +2 -0
- package/declaration/src/editor/layout/assets-browser/events/scene.d.ts +2 -0
- package/declaration/src/editor/layout/assets-browser/items/cinematic-item.d.ts +12 -0
- package/declaration/src/editor/layout/assets-browser/items/gui-item.d.ts +14 -0
- package/declaration/src/editor/layout/assets-browser/items/hdr-item.d.ts +13 -0
- package/declaration/src/editor/layout/assets-browser/items/image-item.d.ts +27 -0
- package/declaration/src/editor/layout/assets-browser/items/item.d.ts +91 -0
- package/declaration/src/editor/layout/assets-browser/items/json-item.d.ts +14 -0
- package/declaration/src/editor/layout/assets-browser/items/material-item.d.ts +26 -0
- package/declaration/src/editor/layout/assets-browser/items/mesh-item.d.ts +20 -0
- package/declaration/src/editor/layout/assets-browser/items/navmesh-item.d.ts +12 -0
- package/declaration/src/editor/layout/assets-browser/items/particle-system-item.d.ts +12 -0
- package/declaration/src/editor/layout/assets-browser/items/scene-item.d.ts +16 -0
- package/declaration/src/editor/layout/assets-browser/label.d.ts +7 -0
- package/declaration/src/editor/layout/assets-browser/viewers/env-viewer.d.ts +1 -0
- package/declaration/src/editor/layout/assets-browser/viewers/material-viewer.d.ts +6 -0
- package/declaration/src/editor/layout/assets-browser/viewers/model-viewer.d.ts +10 -0
- package/declaration/src/editor/layout/assets-browser.d.ts +106 -0
- package/declaration/src/editor/layout/cinematic/curves/curve.d.ts +23 -0
- package/declaration/src/editor/layout/cinematic/curves/handle.d.ts +20 -0
- package/declaration/src/editor/layout/cinematic/curves/point.d.ts +16 -0
- package/declaration/src/editor/layout/cinematic/curves/root.d.ts +27 -0
- package/declaration/src/editor/layout/cinematic/curves/ticks.d.ts +9 -0
- package/declaration/src/editor/layout/cinematic/curves/tools/animation-group.d.ts +3 -0
- package/declaration/src/editor/layout/cinematic/curves/tools/property.d.ts +8 -0
- package/declaration/src/editor/layout/cinematic/curves/tools/sound.d.ts +2 -0
- package/declaration/src/editor/layout/cinematic/curves/tools/tools.d.ts +34 -0
- package/declaration/src/editor/layout/cinematic/curves.d.ts +21 -0
- package/declaration/src/editor/layout/cinematic/editor.d.ts +76 -0
- package/declaration/src/editor/layout/cinematic/inspector/animation-group.d.ts +8 -0
- package/declaration/src/editor/layout/cinematic/inspector/events/apply-impulse.d.ts +7 -0
- package/declaration/src/editor/layout/cinematic/inspector/events/base.d.ts +8 -0
- package/declaration/src/editor/layout/cinematic/inspector/events/event.d.ts +5 -0
- package/declaration/src/editor/layout/cinematic/inspector/events/set-enabled.d.ts +7 -0
- package/declaration/src/editor/layout/cinematic/inspector/key-cut.d.ts +8 -0
- package/declaration/src/editor/layout/cinematic/inspector/key.d.ts +9 -0
- package/declaration/src/editor/layout/cinematic/inspector/sound.d.ts +8 -0
- package/declaration/src/editor/layout/cinematic/inspector/tools.d.ts +13 -0
- package/declaration/src/editor/layout/cinematic/inspector.d.ts +16 -0
- package/declaration/src/editor/layout/cinematic/render/convert.d.ts +21 -0
- package/declaration/src/editor/layout/cinematic/render/dialog.d.ts +19 -0
- package/declaration/src/editor/layout/cinematic/render/render.d.ts +18 -0
- package/declaration/src/editor/layout/cinematic/render/renderer.d.ts +16 -0
- package/declaration/src/editor/layout/cinematic/render/tools.d.ts +21 -0
- package/declaration/src/editor/layout/cinematic/serialization/parse.d.ts +21 -0
- package/declaration/src/editor/layout/cinematic/serialization/serialize.d.ts +4 -0
- package/declaration/src/editor/layout/cinematic/timelines/add.d.ts +6 -0
- package/declaration/src/editor/layout/cinematic/timelines/keys/animation-group.d.ts +9 -0
- package/declaration/src/editor/layout/cinematic/timelines/keys/base.d.ts +22 -0
- package/declaration/src/editor/layout/cinematic/timelines/keys/event.d.ts +9 -0
- package/declaration/src/editor/layout/cinematic/timelines/keys/property.d.ts +9 -0
- package/declaration/src/editor/layout/cinematic/timelines/keys/sound.d.ts +9 -0
- package/declaration/src/editor/layout/cinematic/timelines/move.d.ts +18 -0
- package/declaration/src/editor/layout/cinematic/timelines/options.d.ts +5 -0
- package/declaration/src/editor/layout/cinematic/timelines/remove.d.ts +6 -0
- package/declaration/src/editor/layout/cinematic/timelines/tools.d.ts +4 -0
- package/declaration/src/editor/layout/cinematic/timelines.d.ts +25 -0
- package/declaration/src/editor/layout/cinematic/toolbar.d.ts +6 -0
- package/declaration/src/editor/layout/cinematic/tools/state.d.ts +3 -0
- package/declaration/src/editor/layout/cinematic/tools/sync.d.ts +6 -0
- package/declaration/src/editor/layout/cinematic/tracker.d.ts +10 -0
- package/declaration/src/editor/layout/cinematic/tracks/add.d.ts +5 -0
- package/declaration/src/editor/layout/cinematic/tracks/animation-group.d.ts +7 -0
- package/declaration/src/editor/layout/cinematic/tracks/event.d.ts +7 -0
- package/declaration/src/editor/layout/cinematic/tracks/property.d.ts +7 -0
- package/declaration/src/editor/layout/cinematic/tracks/remove.d.ts +7 -0
- package/declaration/src/editor/layout/cinematic/tracks/sound.d.ts +7 -0
- package/declaration/src/editor/layout/cinematic/tracks.d.ts +20 -0
- package/declaration/src/editor/layout/console/progress-log.d.ts +21 -0
- package/declaration/src/editor/layout/console.d.ts +40 -0
- package/declaration/src/editor/layout/graph/export.d.ts +19 -0
- package/declaration/src/editor/layout/graph/graph.d.ts +18 -0
- package/declaration/src/editor/layout/graph/label.d.ts +7 -0
- package/declaration/src/editor/layout/graph/remove.d.ts +6 -0
- package/declaration/src/editor/layout/graph.d.ts +100 -0
- package/declaration/src/editor/layout/inspector/camera/arc-rotate.d.ts +12 -0
- package/declaration/src/editor/layout/inspector/camera/editor.d.ts +12 -0
- package/declaration/src/editor/layout/inspector/camera/free.d.ts +15 -0
- package/declaration/src/editor/layout/inspector/camera/utils/focal.d.ts +5 -0
- package/declaration/src/editor/layout/inspector/camera/utils/mode.d.ts +6 -0
- package/declaration/src/editor/layout/inspector/decals/configuration.d.ts +6 -0
- package/declaration/src/editor/layout/inspector/decals/decals.d.ts +36 -0
- package/declaration/src/editor/layout/inspector/fields/asset.d.ts +8 -0
- package/declaration/src/editor/layout/inspector/fields/block.d.ts +2 -0
- package/declaration/src/editor/layout/inspector/fields/color.d.ts +9 -0
- package/declaration/src/editor/layout/inspector/fields/dimensions.d.ts +10 -0
- package/declaration/src/editor/layout/inspector/fields/entity.d.ts +8 -0
- package/declaration/src/editor/layout/inspector/fields/field.d.ts +14 -0
- package/declaration/src/editor/layout/inspector/fields/key.d.ts +7 -0
- package/declaration/src/editor/layout/inspector/fields/list.d.ts +14 -0
- package/declaration/src/editor/layout/inspector/fields/number.d.ts +11 -0
- package/declaration/src/editor/layout/inspector/fields/section.d.ts +21 -0
- package/declaration/src/editor/layout/inspector/fields/slider.d.ts +8 -0
- package/declaration/src/editor/layout/inspector/fields/string.d.ts +6 -0
- package/declaration/src/editor/layout/inspector/fields/switch.d.ts +5 -0
- package/declaration/src/editor/layout/inspector/fields/texture.d.ts +36 -0
- package/declaration/src/editor/layout/inspector/fields/vector.d.ts +11 -0
- package/declaration/src/editor/layout/inspector/file/image.d.ts +5 -0
- package/declaration/src/editor/layout/inspector/file/markdown.d.ts +5 -0
- package/declaration/src/editor/layout/inspector/file/sound.d.ts +5 -0
- package/declaration/src/editor/layout/inspector/file.d.ts +18 -0
- package/declaration/src/editor/layout/inspector/gui/gui.d.ts +12 -0
- package/declaration/src/editor/layout/inspector/inspector.d.ts +5 -0
- package/declaration/src/editor/layout/inspector/light/directional.d.ts +12 -0
- package/declaration/src/editor/layout/inspector/light/hemispheric.d.ts +12 -0
- package/declaration/src/editor/layout/inspector/light/point.d.ts +12 -0
- package/declaration/src/editor/layout/inspector/light/shadows.d.ts +28 -0
- package/declaration/src/editor/layout/inspector/light/spot.d.ts +12 -0
- package/declaration/src/editor/layout/inspector/material/cell.d.ts +11 -0
- package/declaration/src/editor/layout/inspector/material/components/alpha.d.ts +6 -0
- package/declaration/src/editor/layout/inspector/material/components/transparency.d.ts +7 -0
- package/declaration/src/editor/layout/inspector/material/components/utils.d.ts +11 -0
- package/declaration/src/editor/layout/inspector/material/fire.d.ts +11 -0
- package/declaration/src/editor/layout/inspector/material/gradient.d.ts +11 -0
- package/declaration/src/editor/layout/inspector/material/grid.d.ts +11 -0
- package/declaration/src/editor/layout/inspector/material/lava.d.ts +11 -0
- package/declaration/src/editor/layout/inspector/material/multi.d.ts +15 -0
- package/declaration/src/editor/layout/inspector/material/node.d.ts +19 -0
- package/declaration/src/editor/layout/inspector/material/normal.d.ts +11 -0
- package/declaration/src/editor/layout/inspector/material/pbr.d.ts +10 -0
- package/declaration/src/editor/layout/inspector/material/sky.d.ts +11 -0
- package/declaration/src/editor/layout/inspector/material/standard.d.ts +7 -0
- package/declaration/src/editor/layout/inspector/material/tri-planar.d.ts +11 -0
- package/declaration/src/editor/layout/inspector/material/water.d.ts +15 -0
- package/declaration/src/editor/layout/inspector/mesh/collision.d.ts +17 -0
- package/declaration/src/editor/layout/inspector/mesh/decal.d.ts +15 -0
- package/declaration/src/editor/layout/inspector/mesh/geometry/box.d.ts +7 -0
- package/declaration/src/editor/layout/inspector/mesh/geometry/capsule.d.ts +7 -0
- package/declaration/src/editor/layout/inspector/mesh/geometry/cylinder.d.ts +7 -0
- package/declaration/src/editor/layout/inspector/mesh/geometry/ground.d.ts +7 -0
- package/declaration/src/editor/layout/inspector/mesh/geometry/plane.d.ts +7 -0
- package/declaration/src/editor/layout/inspector/mesh/geometry/proxy.d.ts +1 -0
- package/declaration/src/editor/layout/inspector/mesh/geometry/sphere.d.ts +7 -0
- package/declaration/src/editor/layout/inspector/mesh/geometry/torus-knot.d.ts +7 -0
- package/declaration/src/editor/layout/inspector/mesh/geometry/torus.d.ts +7 -0
- package/declaration/src/editor/layout/inspector/mesh/geometry.d.ts +7 -0
- package/declaration/src/editor/layout/inspector/mesh/mesh.d.ts +32 -0
- package/declaration/src/editor/layout/inspector/mesh/physics.d.ts +12 -0
- package/declaration/src/editor/layout/inspector/mesh/skeleton.d.ts +12 -0
- package/declaration/src/editor/layout/inspector/metadata/custom-metadata.d.ts +14 -0
- package/declaration/src/editor/layout/inspector/particles/gpu-particle-system.d.ts +26 -0
- package/declaration/src/editor/layout/inspector/particles/gradient.d.ts +6 -0
- package/declaration/src/editor/layout/inspector/particles/particle-system.d.ts +22 -0
- package/declaration/src/editor/layout/inspector/particles/property-gradient.d.ts +13 -0
- package/declaration/src/editor/layout/inspector/scene/animation-groups.d.ts +7 -0
- package/declaration/src/editor/layout/inspector/scene/scene.d.ts +27 -0
- package/declaration/src/editor/layout/inspector/script/field.d.ts +9 -0
- package/declaration/src/editor/layout/inspector/script/script.d.ts +18 -0
- package/declaration/src/editor/layout/inspector/script/tools.d.ts +20 -0
- package/declaration/src/editor/layout/inspector/sound/sound.d.ts +17 -0
- package/declaration/src/editor/layout/inspector/sound/spatial.d.ts +14 -0
- package/declaration/src/editor/layout/inspector/sprites/sprite-manager.d.ts +27 -0
- package/declaration/src/editor/layout/inspector/sprites/sprite-map.d.ts +29 -0
- package/declaration/src/editor/layout/inspector/sprites/sprite.d.ts +27 -0
- package/declaration/src/editor/layout/inspector/transform.d.ts +16 -0
- package/declaration/src/editor/layout/inspector.d.ts +24 -0
- package/declaration/src/editor/layout/navmesh/components/list.d.ts +10 -0
- package/declaration/src/editor/layout/navmesh/components/search.d.ts +5 -0
- package/declaration/src/editor/layout/navmesh/editor.d.ts +34 -0
- package/declaration/src/editor/layout/navmesh/inspector.d.ts +7 -0
- package/declaration/src/editor/layout/navmesh/meshes.d.ts +7 -0
- package/declaration/src/editor/layout/navmesh/obstacles.d.ts +7 -0
- package/declaration/src/editor/layout/navmesh/toolbar.d.ts +5 -0
- package/declaration/src/editor/layout/navmesh/tools.d.ts +10 -0
- package/declaration/src/editor/layout/navmesh/types.d.ts +20 -0
- package/declaration/src/editor/layout/preview/axis.d.ts +30 -0
- package/declaration/src/editor/layout/preview/camera.d.ts +8 -0
- package/declaration/src/editor/layout/preview/gizmo.d.ts +45 -0
- package/declaration/src/editor/layout/preview/icons.d.ts +35 -0
- package/declaration/src/editor/layout/preview/import/gui.d.ts +8 -0
- package/declaration/src/editor/layout/preview/import/import.d.ts +9 -0
- package/declaration/src/editor/layout/preview/import/material.d.ts +16 -0
- package/declaration/src/editor/layout/preview/import/particles.d.ts +2 -0
- package/declaration/src/editor/layout/preview/import/progress.d.ts +11 -0
- package/declaration/src/editor/layout/preview/import/sound.d.ts +2 -0
- package/declaration/src/editor/layout/preview/import/texture.d.ts +17 -0
- package/declaration/src/editor/layout/preview/play.d.ts +92 -0
- package/declaration/src/editor/layout/preview/stats/row.d.ts +5 -0
- package/declaration/src/editor/layout/preview/stats/stats.d.ts +17 -0
- package/declaration/src/editor/layout/preview/stats/types.d.ts +28 -0
- package/declaration/src/editor/layout/preview.d.ts +140 -0
- package/declaration/src/editor/layout/toolbar.d.ts +17 -0
- package/declaration/src/editor/layout.d.ts +72 -0
- package/declaration/src/editor/main.d.ts +94 -0
- package/declaration/src/editor/menu.d.ts +1 -0
- package/declaration/src/editor/nodes/camera-pan-input.d.ts +30 -0
- package/declaration/src/editor/nodes/camera.d.ts +50 -0
- package/declaration/src/editor/nodes/collision.d.ts +36 -0
- package/declaration/src/editor/nodes/scene-link.d.ts +28 -0
- package/declaration/src/editor/nodes/sprite-manager.d.ts +36 -0
- package/declaration/src/editor/nodes/sprite-map.d.ts +38 -0
- package/declaration/src/editor/overrides.d.ts +1 -0
- package/declaration/src/editor/preload.d.ts +1 -0
- package/declaration/src/editor/rendering/default-pipeline.d.ts +14 -0
- package/declaration/src/editor/rendering/ibl-shadows.d.ts +11 -0
- package/declaration/src/editor/rendering/motion-blur.d.ts +11 -0
- package/declaration/src/editor/rendering/ssao.d.ts +11 -0
- package/declaration/src/editor/rendering/ssr.d.ts +11 -0
- package/declaration/src/editor/rendering/tools.d.ts +7 -0
- package/declaration/src/editor/rendering/vls.d.ts +11 -0
- package/declaration/src/editor/window.d.ts +23 -0
- package/declaration/src/editor/windows/ge/index.d.ts +13 -0
- package/declaration/src/editor/windows/nme/index.d.ts +15 -0
- package/declaration/src/editor/windows/npe/index.d.ts +15 -0
- package/declaration/src/editor/windows/preload.d.ts +1 -0
- package/declaration/src/editor/windows/scene/index.d.ts +12 -0
- package/declaration/src/electron/assimp/assimpjs-worker.d.ts +1 -0
- package/declaration/src/electron/assimp/assimpjs.d.ts +1 -0
- package/declaration/src/electron/events/dialog.d.ts +1 -0
- package/declaration/src/electron/events/editor.d.ts +1 -0
- package/declaration/src/electron/events/export.d.ts +1 -0
- package/declaration/src/electron/events/shell.d.ts +1 -0
- package/declaration/src/electron/events/window.d.ts +1 -0
- package/declaration/src/electron/node-pty.d.ts +6 -0
- package/declaration/src/export.d.ts +86 -0
- package/declaration/src/index.d.ts +7 -0
- package/declaration/src/loader/animation.d.ts +2 -0
- package/declaration/src/loader/assimpjs.d.ts +42 -0
- package/declaration/src/loader/maps.d.ts +4 -0
- package/declaration/src/loader/material.d.ts +3 -0
- package/declaration/src/loader/mesh.d.ts +3 -0
- package/declaration/src/loader/node.d.ts +4 -0
- package/declaration/src/loader/texture.d.ts +2 -0
- package/declaration/src/loader/types.d.ts +64 -0
- package/declaration/src/project/add/camera.d.ts +4 -0
- package/declaration/src/project/add/configure.d.ts +3 -0
- package/declaration/src/project/add/light.d.ts +6 -0
- package/declaration/src/project/add/material.d.ts +14 -0
- package/declaration/src/project/add/mesh.d.ts +12 -0
- package/declaration/src/project/add/node.d.ts +3 -0
- package/declaration/src/project/add/particles.d.ts +4 -0
- package/declaration/src/project/add/sprite.d.ts +6 -0
- package/declaration/src/project/configuration.d.ts +11 -0
- package/declaration/src/project/export/assets.d.ts +9 -0
- package/declaration/src/project/export/dialog.d.ts +23 -0
- package/declaration/src/project/export/export.d.ts +7 -0
- package/declaration/src/project/export/ktx.d.ts +29 -0
- package/declaration/src/project/export/lod.d.ts +7 -0
- package/declaration/src/project/export/materials.d.ts +1 -0
- package/declaration/src/project/export/physics.d.ts +7 -0
- package/declaration/src/project/export/progress.d.ts +11 -0
- package/declaration/src/project/export/scripts.d.ts +2 -0
- package/declaration/src/project/export/texture.d.ts +6 -0
- package/declaration/src/project/load/default.d.ts +3 -0
- package/declaration/src/project/load/install.d.ts +15 -0
- package/declaration/src/project/load/load.d.ts +16 -0
- package/declaration/src/project/load/prepare.d.ts +4 -0
- package/declaration/src/project/load/progress.d.ts +20 -0
- package/declaration/src/project/load/scene.d.ts +24 -0
- package/declaration/src/project/load/texture.d.ts +3 -0
- package/declaration/src/project/run.d.ts +3 -0
- package/declaration/src/project/save/dialog.d.ts +23 -0
- package/declaration/src/project/save/progress.d.ts +4 -0
- package/declaration/src/project/save/save.d.ts +4 -0
- package/declaration/src/project/save/scene.d.ts +2 -0
- package/declaration/src/project/tools/geometry.d.ts +7 -0
- package/declaration/src/project/tools/morph-target.d.ts +1 -0
- package/declaration/src/project/typings.d.ts +34 -0
- package/declaration/src/splash/main.d.ts +6 -0
- package/declaration/src/splash/preload.d.ts +0 -0
- package/declaration/src/tools/animation/group.d.ts +7 -0
- package/declaration/src/tools/animation/tools.d.ts +27 -0
- package/declaration/src/tools/animation/tween.d.ts +95 -0
- package/declaration/src/tools/augmentations.d.ts +10 -0
- package/declaration/src/tools/camera/focus.d.ts +7 -0
- package/declaration/src/tools/dialog.d.ts +14 -0
- package/declaration/src/tools/dom.d.ts +17 -0
- package/declaration/src/tools/fs.d.ts +30 -0
- package/declaration/src/tools/guards/material.d.ts +21 -0
- package/declaration/src/tools/guards/math.d.ts +26 -0
- package/declaration/src/tools/guards/nodes.d.ts +103 -0
- package/declaration/src/tools/guards/particles.d.ts +16 -0
- package/declaration/src/tools/guards/scene.d.ts +12 -0
- package/declaration/src/tools/guards/shadows.d.ts +11 -0
- package/declaration/src/tools/guards/sound.d.ts +6 -0
- package/declaration/src/tools/guards/sprites.d.ts +18 -0
- package/declaration/src/tools/guards/texture.d.ts +22 -0
- package/declaration/src/tools/ipc.d.ts +14 -0
- package/declaration/src/tools/light/ibl.d.ts +2 -0
- package/declaration/src/tools/light/shadows.d.ts +19 -0
- package/declaration/src/tools/local-storage.d.ts +29 -0
- package/declaration/src/tools/material/extract.d.ts +6 -0
- package/declaration/src/tools/material/material.d.ts +11 -0
- package/declaration/src/tools/maths/projection.d.ts +2 -0
- package/declaration/src/tools/maths/scalar.d.ts +8 -0
- package/declaration/src/tools/mesh/augmentations.d.ts +7 -0
- package/declaration/src/tools/mesh/collision.d.ts +7 -0
- package/declaration/src/tools/mesh/ground.d.ts +10 -0
- package/declaration/src/tools/mesh/instance.d.ts +3 -0
- package/declaration/src/tools/node/clone.d.ts +10 -0
- package/declaration/src/tools/node/metadata.d.ts +55 -0
- package/declaration/src/tools/node-pty.d.ts +43 -0
- package/declaration/src/tools/observables.d.ts +41 -0
- package/declaration/src/tools/os.d.ts +10 -0
- package/declaration/src/tools/particles/augmentations.d.ts +16 -0
- package/declaration/src/tools/particles/extract.d.ts +9 -0
- package/declaration/src/tools/particles/texture.d.ts +8 -0
- package/declaration/src/tools/physics/init.d.ts +5 -0
- package/declaration/src/tools/physics/serialization/aggregate.d.ts +33 -0
- package/declaration/src/tools/physics/shape.d.ts +7 -0
- package/declaration/src/tools/plugins/require.d.ts +7 -0
- package/declaration/src/tools/plugins/watch.d.ts +5 -0
- package/declaration/src/tools/process.d.ts +36 -0
- package/declaration/src/tools/project.d.ts +27 -0
- package/declaration/src/tools/property.d.ts +15 -0
- package/declaration/src/tools/recast/init.d.ts +2 -0
- package/declaration/src/tools/scene/materials.d.ts +7 -0
- package/declaration/src/tools/scene/play/compile.d.ts +4 -0
- package/declaration/src/tools/scene/play/override.d.ts +7 -0
- package/declaration/src/tools/scene/rename.d.ts +7 -0
- package/declaration/src/tools/scene/scene-link.d.ts +17 -0
- package/declaration/src/tools/scene/screenshot.d.ts +11 -0
- package/declaration/src/tools/sound/augmentations.d.ts +7 -0
- package/declaration/src/tools/sound/tools.d.ts +15 -0
- package/declaration/src/tools/sprite/augmentations.d.ts +8 -0
- package/declaration/src/tools/sprite/preview.d.ts +6 -0
- package/declaration/src/tools/sprite/tools.d.ts +4 -0
- package/declaration/src/tools/tools.d.ts +55 -0
- package/declaration/src/tools/undoredo.d.ts +24 -0
- package/declaration/src/tools/worker.d.ts +17 -0
- package/declaration/src/tools/workers/md5.d.ts +2 -0
- package/declaration/src/tools/workers/script.d.ts +9 -0
- package/declaration/src/tools/workers/thumbnail/main.d.ts +2 -0
- package/declaration/src/tools/workers/thumbnail/material.d.ts +2 -0
- package/declaration/src/tools/workers/thumbnail/mesh.d.ts +2 -0
- package/declaration/src/ui/color-picker.d.ts +15 -0
- package/declaration/src/ui/dialog.d.ts +13 -0
- package/declaration/src/ui/scene-asset-browser.d.ts +88 -0
- package/declaration/src/ui/shadcn/ui/alert-dialog.d.ts +20 -0
- package/declaration/src/ui/shadcn/ui/badge.d.ts +9 -0
- package/declaration/src/ui/shadcn/ui/breadcrumb.d.ts +19 -0
- package/declaration/src/ui/shadcn/ui/button.d.ts +11 -0
- package/declaration/src/ui/shadcn/ui/checkbox.d.ts +4 -0
- package/declaration/src/ui/shadcn/ui/command.d.ts +82 -0
- package/declaration/src/ui/shadcn/ui/context-menu.d.ts +27 -0
- package/declaration/src/ui/shadcn/ui/dialog.d.ts +19 -0
- package/declaration/src/ui/shadcn/ui/dropdown-menu.d.ts +27 -0
- package/declaration/src/ui/shadcn/ui/hover-card.d.ts +6 -0
- package/declaration/src/ui/shadcn/ui/input.d.ts +5 -0
- package/declaration/src/ui/shadcn/ui/label.d.ts +5 -0
- package/declaration/src/ui/shadcn/ui/menubar.d.ts +31 -0
- package/declaration/src/ui/shadcn/ui/popover.d.ts +7 -0
- package/declaration/src/ui/shadcn/ui/progress.d.ts +4 -0
- package/declaration/src/ui/shadcn/ui/radio-group.d.ts +5 -0
- package/declaration/src/ui/shadcn/ui/resizable.d.ts +23 -0
- package/declaration/src/ui/shadcn/ui/select.d.ts +13 -0
- package/declaration/src/ui/shadcn/ui/separator.d.ts +4 -0
- package/declaration/src/ui/shadcn/ui/slider.d.ts +4 -0
- package/declaration/src/ui/shadcn/ui/sonner.d.ts +4 -0
- package/declaration/src/ui/shadcn/ui/switch.d.ts +4 -0
- package/declaration/src/ui/shadcn/ui/table.d.ts +10 -0
- package/declaration/src/ui/shadcn/ui/tabs.d.ts +7 -0
- package/declaration/src/ui/shadcn/ui/textarea.d.ts +3 -0
- package/declaration/src/ui/shadcn/ui/toggle-group.d.ts +12 -0
- package/declaration/src/ui/shadcn/ui/toggle.d.ts +12 -0
- package/declaration/src/ui/shadcn/ui/toolbar-radio-group.d.ts +5 -0
- package/declaration/src/ui/shadcn/ui/tooltip.d.ts +7 -0
- package/declaration/src/ui/spinner.d.ts +2 -0
- package/declaration/src/ui/toolbar.d.ts +4 -0
- package/declaration/src/ui/utils.d.ts +2 -0
- package/package.json +122 -38
- package/index.d.ts +0 -6126
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
export { Editor, createEditor } from "./editor/main";
|
|
2
|
+
export { EditorLayout } from "./editor/layout";
|
|
3
|
+
export { EditorGraph } from "./editor/layout/graph";
|
|
4
|
+
export { EditorToolbar } from "./editor/layout/toolbar";
|
|
5
|
+
export { EditorConsole } from "./editor/layout/console";
|
|
6
|
+
export { EditorPreview } from "./editor/layout/preview";
|
|
7
|
+
export * from "./editor/layout/preview/import/import";
|
|
8
|
+
export * from "./editor/layout/preview/import/material";
|
|
9
|
+
export * from "./editor/layout/preview/import/texture";
|
|
10
|
+
export * from "./editor/layout/preview/import/sound";
|
|
11
|
+
export { EditorInspector } from "./editor/layout/inspector";
|
|
12
|
+
export * from "./editor/layout/inspector/inspector";
|
|
13
|
+
export { EditorAssetsBrowser } from "./editor/layout/assets-browser";
|
|
14
|
+
export * from "./editor/layout/assets-browser/items/item";
|
|
15
|
+
export * from "./editor/layout/assets-browser/viewers/env-viewer";
|
|
16
|
+
export * from "./editor/layout/assets-browser/viewers/material-viewer";
|
|
17
|
+
export * from "./editor/layout/assets-browser/viewers/model-viewer";
|
|
18
|
+
export * from "./tools/os";
|
|
19
|
+
export * from "./tools/fs";
|
|
20
|
+
export * from "./tools/tools";
|
|
21
|
+
export * from "./tools/dialog";
|
|
22
|
+
export * from "./tools/process";
|
|
23
|
+
export * from "./tools/node-pty";
|
|
24
|
+
export * from "./tools/undoredo";
|
|
25
|
+
export * from "./tools/observables";
|
|
26
|
+
export * from "./tools/assets/ktx";
|
|
27
|
+
export * from "./tools/assets/thumbnail";
|
|
28
|
+
export * from "./tools/assets/extensions";
|
|
29
|
+
export * from "./tools/maths/scalar";
|
|
30
|
+
export * from "./tools/maths/projection";
|
|
31
|
+
export * from "./tools/light/shadows";
|
|
32
|
+
export * from "./tools/node/metadata";
|
|
33
|
+
export * from "./tools/material/material";
|
|
34
|
+
export * from "./tools/material/extract";
|
|
35
|
+
export * from "./tools/mesh/collision";
|
|
36
|
+
export * from "./tools/scene/materials";
|
|
37
|
+
export * from "./tools/sound/tools";
|
|
38
|
+
export * from "./tools/guards/material";
|
|
39
|
+
export * from "./tools/guards/math";
|
|
40
|
+
export * from "./tools/guards/nodes";
|
|
41
|
+
export * from "./tools/guards/particles";
|
|
42
|
+
export * from "./tools/guards/scene";
|
|
43
|
+
export * from "./tools/guards/shadows";
|
|
44
|
+
export * from "./tools/guards/sound";
|
|
45
|
+
export * from "./tools/guards/texture";
|
|
46
|
+
export * from "./tools/animation/tools";
|
|
47
|
+
export * from "./tools/animation/tween";
|
|
48
|
+
export * from "./editor/rendering/ssr";
|
|
49
|
+
export * from "./editor/rendering/vls";
|
|
50
|
+
export * from "./editor/rendering/ssao";
|
|
51
|
+
export * from "./editor/rendering/motion-blur";
|
|
52
|
+
export * from "./editor/rendering/default-pipeline";
|
|
53
|
+
export * from "./ui/spinner";
|
|
54
|
+
export * from "./ui/color-picker";
|
|
55
|
+
export * from "./ui/dialog";
|
|
56
|
+
export * from "./ui/shadcn/ui/alert-dialog";
|
|
57
|
+
export * from "./ui/shadcn/ui/badge";
|
|
58
|
+
export * from "./ui/shadcn/ui/breadcrumb";
|
|
59
|
+
export * from "./ui/shadcn/ui/button";
|
|
60
|
+
export * from "./ui/shadcn/ui/checkbox";
|
|
61
|
+
export * from "./ui/shadcn/ui/command";
|
|
62
|
+
export * from "./ui/shadcn/ui/context-menu";
|
|
63
|
+
export * from "./ui/shadcn/ui/dialog";
|
|
64
|
+
export * from "./ui/shadcn/ui/dropdown-menu";
|
|
65
|
+
export * from "./ui/shadcn/ui/hover-card";
|
|
66
|
+
export * from "./ui/shadcn/ui/input";
|
|
67
|
+
export * from "./ui/shadcn/ui/label";
|
|
68
|
+
export * from "./ui/shadcn/ui/menubar";
|
|
69
|
+
export * from "./ui/shadcn/ui/popover";
|
|
70
|
+
export * from "./ui/shadcn/ui/progress";
|
|
71
|
+
export * from "./ui/shadcn/ui/radio-group";
|
|
72
|
+
export * from "./ui/shadcn/ui/resizable";
|
|
73
|
+
export * from "./ui/shadcn/ui/select";
|
|
74
|
+
export * from "./ui/shadcn/ui/separator";
|
|
75
|
+
export * from "./ui/shadcn/ui/slider";
|
|
76
|
+
export * from "./ui/shadcn/ui/sonner";
|
|
77
|
+
export * from "./ui/shadcn/ui/switch";
|
|
78
|
+
export * from "./ui/shadcn/ui/table";
|
|
79
|
+
export * from "./ui/shadcn/ui/tabs";
|
|
80
|
+
export * from "./ui/shadcn/ui/textarea";
|
|
81
|
+
export * from "./ui/shadcn/ui/toggle-group";
|
|
82
|
+
export * from "./ui/shadcn/ui/toggle";
|
|
83
|
+
export * from "./ui/shadcn/ui/toolbar-radio-group";
|
|
84
|
+
export * from "./ui/shadcn/ui/tooltip";
|
|
85
|
+
export * from "./project/configuration";
|
|
86
|
+
export * as AiIcons from "react-icons/ai";
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { ISceneLoaderPluginAsync, ISceneLoaderPluginExtensions, ISceneLoaderProgressEvent, ISceneLoaderAsyncResult, Scene, AssetContainer } from "babylonjs";
|
|
2
|
+
import { IAssimpJSRootData } from "./types";
|
|
3
|
+
export declare class AssimpJSLoader implements ISceneLoaderPluginAsync {
|
|
4
|
+
private _useWorker;
|
|
5
|
+
name: string;
|
|
6
|
+
extensions: ISceneLoaderPluginExtensions;
|
|
7
|
+
constructor(_useWorker: boolean);
|
|
8
|
+
/**
|
|
9
|
+
* Import meshes into a scene.
|
|
10
|
+
* @param meshesNames An array of mesh names, a single mesh name, or empty string for all meshes that filter what meshes are imported
|
|
11
|
+
* @param scene The scene to import into
|
|
12
|
+
* @param data The data to import
|
|
13
|
+
* @param rootUrl The root url for scene and resources
|
|
14
|
+
* @param onProgress The callback when the load progresses
|
|
15
|
+
* @param fileName Defines the name of the file to load
|
|
16
|
+
* @returns The loaded objects (e.g. meshes, particle systems, skeletons, animation groups, etc.)
|
|
17
|
+
*/
|
|
18
|
+
importMeshAsync(meshesNames: any, scene: Scene, data: any, rootUrl: string, onProgress?: (event: ISceneLoaderProgressEvent) => void, fileName?: string): Promise<ISceneLoaderAsyncResult>;
|
|
19
|
+
/**
|
|
20
|
+
* Load into a scene.
|
|
21
|
+
* @param scene The scene to load into.
|
|
22
|
+
* @param data The data to import.
|
|
23
|
+
* @param rootUrl The root url for scene and resources.
|
|
24
|
+
* @param onProgress The callback when the load progresses.
|
|
25
|
+
* @param fileName Defines the name of the file to load.
|
|
26
|
+
*/
|
|
27
|
+
loadAsync(scene: Scene, data: any, rootUrl: string, onProgress?: (event: ISceneLoaderProgressEvent) => void, fileName?: string): Promise<void>;
|
|
28
|
+
/**
|
|
29
|
+
* Load into an asset container.
|
|
30
|
+
* @param scene The scene to load into
|
|
31
|
+
* @param data The data to import
|
|
32
|
+
* @param rootUrl The root url for scene and resources
|
|
33
|
+
* @param onProgress The callback when the load progresses
|
|
34
|
+
* @param fileName Defines the name of the file to load
|
|
35
|
+
* @returns The loaded asset container
|
|
36
|
+
*/
|
|
37
|
+
loadAssetContainerAsync(scene: Scene, data: IAssimpJSRootData[], rootUrl: string, _?: (event: ISceneLoaderProgressEvent) => void, fileName?: string): Promise<AssetContainer>;
|
|
38
|
+
private _parseRoot;
|
|
39
|
+
appPath: string;
|
|
40
|
+
private _assimpjs;
|
|
41
|
+
private _locallyLoadFile;
|
|
42
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { Bone, TransformNode } from "babylonjs";
|
|
2
|
+
import { AssimpJSRuntime, IAssimpJSNodeData } from "./types";
|
|
3
|
+
export declare function parseNodes(runtime: AssimpJSRuntime, nodes: IAssimpJSNodeData[], parent: TransformNode | null): void;
|
|
4
|
+
export declare function parseNodeTransform(node: TransformNode | Bone, transformation: number[]): void;
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { AssetContainer, PBRMaterial, Scene, VertexData } from "babylonjs";
|
|
2
|
+
export type AssimpJSRuntime = {
|
|
3
|
+
data: IAssimpJSRootData;
|
|
4
|
+
scene: Scene;
|
|
5
|
+
rootUrl: string;
|
|
6
|
+
container: AssetContainer;
|
|
7
|
+
geometries: Record<number, VertexData>;
|
|
8
|
+
materials: Record<number, PBRMaterial>;
|
|
9
|
+
};
|
|
10
|
+
export interface IAssimpJSNodeData {
|
|
11
|
+
name: string;
|
|
12
|
+
meshes?: number[];
|
|
13
|
+
transformation: number[];
|
|
14
|
+
children?: IAssimpJSNodeData[];
|
|
15
|
+
}
|
|
16
|
+
export interface IAssimpJSBoneData {
|
|
17
|
+
name: string;
|
|
18
|
+
offsetmatrix: number[];
|
|
19
|
+
weights: [number, number][];
|
|
20
|
+
}
|
|
21
|
+
export interface IAssimpJSMeshData {
|
|
22
|
+
vertices: number[];
|
|
23
|
+
faces: number[][];
|
|
24
|
+
materialindex?: number;
|
|
25
|
+
name?: string;
|
|
26
|
+
normals?: number[];
|
|
27
|
+
texturecoords?: number[][];
|
|
28
|
+
bones?: IAssimpJSBoneData[];
|
|
29
|
+
}
|
|
30
|
+
export interface IAssimpJSMaterialData {
|
|
31
|
+
properties: IAssimpJSMaterialPropertyData[];
|
|
32
|
+
}
|
|
33
|
+
export interface IAssimpJSMaterialPropertyData {
|
|
34
|
+
key: string;
|
|
35
|
+
type: number;
|
|
36
|
+
index: number;
|
|
37
|
+
semantic: number;
|
|
38
|
+
value: string | number | number[];
|
|
39
|
+
}
|
|
40
|
+
export interface IAssimpJSTextureData {
|
|
41
|
+
data: unknown;
|
|
42
|
+
formathint: string;
|
|
43
|
+
}
|
|
44
|
+
export interface IAssimpJSAnimationChannelData {
|
|
45
|
+
name: string;
|
|
46
|
+
scalingkeys: [number, number[]][];
|
|
47
|
+
rotationkeys: [number, number[]][];
|
|
48
|
+
positionkeys: [number, number[]][];
|
|
49
|
+
poststate?: number;
|
|
50
|
+
prestate?: number;
|
|
51
|
+
}
|
|
52
|
+
export interface IAssimpJSAnimationData {
|
|
53
|
+
name: string;
|
|
54
|
+
duration: number;
|
|
55
|
+
tickspersecond: number;
|
|
56
|
+
channels: IAssimpJSAnimationChannelData[];
|
|
57
|
+
}
|
|
58
|
+
export interface IAssimpJSRootData {
|
|
59
|
+
meshes?: IAssimpJSMeshData[];
|
|
60
|
+
textures?: IAssimpJSTextureData[];
|
|
61
|
+
materials?: IAssimpJSMaterialData[];
|
|
62
|
+
animations?: IAssimpJSAnimationData[];
|
|
63
|
+
rootnode: IAssimpJSNodeData;
|
|
64
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { ArcRotateCamera, FreeCamera, Node } from "babylonjs";
|
|
2
|
+
import { Editor } from "../../editor/main";
|
|
3
|
+
export declare function addFreeCamera(editor: Editor, parent?: Node): FreeCamera;
|
|
4
|
+
export declare function addArcRotateCamera(editor: Editor, parent?: Node): ArcRotateCamera;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { DirectionalLight, HemisphericLight, Node, PointLight, SpotLight } from "babylonjs";
|
|
2
|
+
import { Editor } from "../../editor/main";
|
|
3
|
+
export declare function addPointLight(editor: Editor, parent?: Node): PointLight;
|
|
4
|
+
export declare function addDirectionalLight(editor: Editor, parent?: Node): DirectionalLight;
|
|
5
|
+
export declare function addSpotLight(editor: Editor, parent?: Node): SpotLight;
|
|
6
|
+
export declare function addHemisphericLight(editor: Editor, parent?: Node): HemisphericLight;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Scene, PBRMaterial, StandardMaterial, NodeMaterial } from "babylonjs";
|
|
2
|
+
import { SkyMaterial, GridMaterial, NormalMaterial, WaterMaterial, LavaMaterial, TriPlanarMaterial, CellMaterial, FireMaterial, GradientMaterial } from "babylonjs-materials";
|
|
3
|
+
export declare function addPBRMaterial(scene: Scene): PBRMaterial;
|
|
4
|
+
export declare function addStandardMaterial(scene: Scene): StandardMaterial;
|
|
5
|
+
export declare function addNodeMaterial(scene: Scene): NodeMaterial;
|
|
6
|
+
export declare function addSkyMaterial(scene: Scene): SkyMaterial;
|
|
7
|
+
export declare function addGridMaterial(scene: Scene): GridMaterial;
|
|
8
|
+
export declare function addNormalMaterial(scene: Scene): NormalMaterial;
|
|
9
|
+
export declare function addWaterMaterial(scene: Scene): WaterMaterial;
|
|
10
|
+
export declare function addLavaMaterial(scene: Scene): LavaMaterial;
|
|
11
|
+
export declare function addTriPlanarMaterial(scene: Scene): TriPlanarMaterial;
|
|
12
|
+
export declare function addCellMaterial(scene: Scene): CellMaterial;
|
|
13
|
+
export declare function addFireMaterial(scene: Scene): FireMaterial;
|
|
14
|
+
export declare function addGradientMaterial(scene: Scene): GradientMaterial;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Node } from "babylonjs";
|
|
2
|
+
import { Editor } from "../../editor/main";
|
|
3
|
+
export declare function addBoxMesh(editor: Editor, parent?: Node): import("babylonjs").AbstractMesh;
|
|
4
|
+
export declare function addPlaneMesh(editor: Editor, parent?: Node): import("babylonjs").AbstractMesh;
|
|
5
|
+
export declare function addGroundMesh(editor: Editor, parent?: Node): import("babylonjs").AbstractMesh;
|
|
6
|
+
export declare function addSphereMesh(editor: Editor, parent?: Node): import("babylonjs").AbstractMesh;
|
|
7
|
+
export declare function addCapsuleMesh(editor: Editor, parent?: Node): import("babylonjs").AbstractMesh;
|
|
8
|
+
export declare function addTorusMesh(editor: Editor, parent?: Node): import("babylonjs").AbstractMesh;
|
|
9
|
+
export declare function addTorusKnotMesh(editor: Editor, parent?: Node): import("babylonjs").AbstractMesh;
|
|
10
|
+
export declare function addCylinderMesh(editor: Editor, parent?: Node): import("babylonjs").AbstractMesh;
|
|
11
|
+
export declare function addSkyboxMesh(editor: Editor, parent?: Node): import("babylonjs").AbstractMesh;
|
|
12
|
+
export declare function addEmptyMesh(editor: Editor, parent?: Node): import("babylonjs").AbstractMesh;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Node } from "babylonjs";
|
|
2
|
+
import { Editor } from "../../editor/main";
|
|
3
|
+
import { SpriteMapNode } from "../../editor/nodes/sprite-map";
|
|
4
|
+
import { SpriteManagerNode } from "../../editor/nodes/sprite-manager";
|
|
5
|
+
export declare function addSpriteManager(editor: Editor, parent?: Node): SpriteManagerNode;
|
|
6
|
+
export declare function addSpriteMapNode(editor: Editor, parent?: Node): SpriteMapNode;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Observable } from "babylonjs";
|
|
2
|
+
export interface IProjectConfiguration {
|
|
3
|
+
path: string | null;
|
|
4
|
+
compressedTexturesEnabled: boolean;
|
|
5
|
+
}
|
|
6
|
+
export declare const projectConfiguration: IProjectConfiguration;
|
|
7
|
+
export declare const onProjectConfigurationChangedObservable: Observable<IProjectConfiguration>;
|
|
8
|
+
/**
|
|
9
|
+
* Returns the rootUrl for assets for the current project.
|
|
10
|
+
*/
|
|
11
|
+
export declare function getProjectAssetsRootUrl(): string | null;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Editor } from "../../editor/main";
|
|
2
|
+
export type ProcessFileOptions = {
|
|
3
|
+
optimize: boolean;
|
|
4
|
+
scenePath: string;
|
|
5
|
+
projectDir: string;
|
|
6
|
+
exportedAssets: string[];
|
|
7
|
+
cache: Record<string, string>;
|
|
8
|
+
};
|
|
9
|
+
export declare function processAssetFile(editor: Editor, file: string, options: ProcessFileOptions): Promise<void>;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { Component, ReactNode } from "react";
|
|
2
|
+
import { Root } from "react-dom/client";
|
|
3
|
+
import { Editor } from "../../editor/main";
|
|
4
|
+
export declare function showExportSceneProgressDialog(editor: Editor, name: string): Promise<ExportSceneProgressComponent>;
|
|
5
|
+
export interface IExportSceneProgressComponentProps {
|
|
6
|
+
name: string;
|
|
7
|
+
editor: Editor;
|
|
8
|
+
root: Root;
|
|
9
|
+
container: HTMLDivElement;
|
|
10
|
+
}
|
|
11
|
+
export interface IExportSceneProgressComponentState {
|
|
12
|
+
name: string;
|
|
13
|
+
progress: number;
|
|
14
|
+
}
|
|
15
|
+
export declare class ExportSceneProgressComponent extends Component<IExportSceneProgressComponentProps, IExportSceneProgressComponentState> {
|
|
16
|
+
private _step;
|
|
17
|
+
constructor(props: IExportSceneProgressComponentProps);
|
|
18
|
+
render(): ReactNode;
|
|
19
|
+
componentDidMount(): void;
|
|
20
|
+
step(step: number): void;
|
|
21
|
+
setName(name: string): void;
|
|
22
|
+
dispose(): void;
|
|
23
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { Editor } from "../../editor/main";
|
|
2
|
+
export type KTXToolsType = "-astc.ktx" | "-dxt.ktx" | "-pvrtc.ktx" | "-etc1.ktx" | "-etc2.ktx";
|
|
3
|
+
export declare const allKtxFormats: KTXToolsType[];
|
|
4
|
+
export declare const ktxSupportedextensions: string[];
|
|
5
|
+
/**
|
|
6
|
+
* Returns the absolute path to the compressed textures CLI path (PVRTexTool).
|
|
7
|
+
* The value is retrieved from the local storage so it's per computer and not per project.
|
|
8
|
+
*/
|
|
9
|
+
export declare function getCompressedTexturesCliPath(): string | null;
|
|
10
|
+
/**
|
|
11
|
+
* Sets the absolute path to the compressed textures CLI path (PVRTexTool).
|
|
12
|
+
* The value is stored in the local storage so it's per computer and not per project.
|
|
13
|
+
*/
|
|
14
|
+
export declare function setCompressedTexturesCliPath(absolutePath: string): void;
|
|
15
|
+
/**
|
|
16
|
+
* Returns the filename of the compressed texture according to the given path and the destination format.
|
|
17
|
+
* @param path defines the path of the texture to get its final name.
|
|
18
|
+
* @param format defines the destination format of the texture.
|
|
19
|
+
* @example image.png -> image-asct.ktx
|
|
20
|
+
*/
|
|
21
|
+
export declare function getCompressedTextureFilename(path: string, format: KTXToolsType): string;
|
|
22
|
+
export type CompressFileToKtxOptions = {
|
|
23
|
+
format: KTXToolsType;
|
|
24
|
+
force?: boolean;
|
|
25
|
+
exportedAssets?: string[];
|
|
26
|
+
destinationFolder?: string;
|
|
27
|
+
};
|
|
28
|
+
export declare function compressFileToKtx(editor: Editor, absolutePath: string, options: Partial<CompressFileToKtxOptions>): Promise<void>;
|
|
29
|
+
export declare function compressFileToKtxFormat(editor: Editor, absolutePath: string, options: CompressFileToKtxOptions): Promise<string | null>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Scene } from "babylonjs";
|
|
2
|
+
/**
|
|
3
|
+
* Configures the given data from scene serializer to support LOD meshes.
|
|
4
|
+
* @param data defines the JSON data coming from the scene serializer.
|
|
5
|
+
* @param scene defines the scene that contains the source meshes.
|
|
6
|
+
*/
|
|
7
|
+
export declare function configureMeshesLODs(data: any, scene: Scene): void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function configureMaterials(data: any): void;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Scene } from "babylonjs";
|
|
2
|
+
/**
|
|
3
|
+
* Configures the given data from scene serializer to support physics.
|
|
4
|
+
* @param data defines the JSON data coming from the scene serializer.
|
|
5
|
+
* @param scene defines the scene that contains the source meshes.
|
|
6
|
+
*/
|
|
7
|
+
export declare function configureMeshesPhysics(data: any, scene: Scene): void;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Component, ReactNode } from "react";
|
|
2
|
+
export interface IEditorExportProjectProgressComponentState {
|
|
3
|
+
progress: number;
|
|
4
|
+
}
|
|
5
|
+
export declare class EditorExportProjectProgressComponent extends Component<{}, IEditorExportProjectProgressComponentState> {
|
|
6
|
+
private _step;
|
|
7
|
+
constructor(props: {});
|
|
8
|
+
render(): ReactNode;
|
|
9
|
+
componentWillUnmount(): void;
|
|
10
|
+
step(step: number): void;
|
|
11
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Editor } from "../../editor/main";
|
|
2
|
+
export type ComputeExportedTextureOptions = {
|
|
3
|
+
force: boolean;
|
|
4
|
+
exportedAssets: string[];
|
|
5
|
+
};
|
|
6
|
+
export declare function processExportedTexture(editor: Editor, absolutePath: string, options: ComputeExportedTextureOptions): Promise<void>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { EditorProjectPackageManager } from "../typings";
|
|
2
|
+
/**
|
|
3
|
+
* Install the dependencies of the project located at the given working directory.
|
|
4
|
+
* @param packageManager defines the package manager to use for installation.
|
|
5
|
+
* @param cwd defines absolute path to the working directory where to install the dependencies.
|
|
6
|
+
*/
|
|
7
|
+
export declare function installDependencies(packageManager: EditorProjectPackageManager, cwd: string): Promise<number>;
|
|
8
|
+
/**
|
|
9
|
+
* Installs the babylonjs-editor-tools package that matches the given version.
|
|
10
|
+
* The given version is mostly the current version of the editor.
|
|
11
|
+
* @param packageManager defines the package manager to use for installation.
|
|
12
|
+
* @param cwd defines absolute path to the working directory where to install the dependencies.
|
|
13
|
+
* @param version defines the version of babylonjs-editor-tools to install.
|
|
14
|
+
*/
|
|
15
|
+
export declare function installBabylonJSEditorTools(packageManager: EditorProjectPackageManager, cwd: string, version: string): Promise<number>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Editor } from "../../editor/main";
|
|
2
|
+
import { EditorProjectPackageManager, IEditorProject } from "../typings";
|
|
3
|
+
/**
|
|
4
|
+
* Loads an editor project located at the given path. Typically called at startup when opening
|
|
5
|
+
* a project from the dashboard.
|
|
6
|
+
* @param editor defines the reference to the editor.
|
|
7
|
+
* @param path defines the absolute path to the project file.
|
|
8
|
+
*/
|
|
9
|
+
export declare function loadProject(editor: Editor, path: string): Promise<void>;
|
|
10
|
+
export declare function checkDependencies(editor: Editor, { directory, path, project, packageManager, }: {
|
|
11
|
+
directory: string;
|
|
12
|
+
path: string;
|
|
13
|
+
project: IEditorProject;
|
|
14
|
+
packageManager: EditorProjectPackageManager;
|
|
15
|
+
}): Promise<void>;
|
|
16
|
+
export declare function loadProjectPlugins(editor: Editor, path: string, project: IEditorProject): Promise<void>;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Component, ReactNode } from "react";
|
|
2
|
+
import { Root } from "react-dom/client";
|
|
3
|
+
export declare function showLoadSceneProgressDialog(name: string): Promise<LoadSceneProgressComponent>;
|
|
4
|
+
export interface ILoadSceneProgressComponentProps {
|
|
5
|
+
name: string;
|
|
6
|
+
root: Root;
|
|
7
|
+
container: HTMLDivElement;
|
|
8
|
+
}
|
|
9
|
+
export interface ILoadSceneProgressComponentState {
|
|
10
|
+
name: string;
|
|
11
|
+
progress: number;
|
|
12
|
+
}
|
|
13
|
+
export declare class LoadSceneProgressComponent extends Component<ILoadSceneProgressComponentProps, ILoadSceneProgressComponentState> {
|
|
14
|
+
private _step;
|
|
15
|
+
constructor(props: ILoadSceneProgressComponentProps);
|
|
16
|
+
render(): ReactNode;
|
|
17
|
+
step(step: number): void;
|
|
18
|
+
setName(name: string): void;
|
|
19
|
+
dispose(): void;
|
|
20
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { AbstractMesh, AnimationGroup, Camera, Light, TransformNode, IParticleSystem } from "babylonjs";
|
|
2
|
+
import { Editor } from "../../editor/main";
|
|
3
|
+
import { SceneLinkNode } from "../../editor/nodes/scene-link";
|
|
4
|
+
import { SpriteMapNode } from "../../editor/nodes/sprite-map";
|
|
5
|
+
import { SpriteManagerNode } from "../../editor/nodes/sprite-manager";
|
|
6
|
+
import "./texture";
|
|
7
|
+
export type SceneLoaderOptions = {
|
|
8
|
+
/**
|
|
9
|
+
* Defines wether or not the scene is being loaded as link.
|
|
10
|
+
*/
|
|
11
|
+
asLink?: boolean;
|
|
12
|
+
};
|
|
13
|
+
export type SceneLoadResult = {
|
|
14
|
+
lights: Light[];
|
|
15
|
+
cameras: Camera[];
|
|
16
|
+
meshes: AbstractMesh[];
|
|
17
|
+
sceneLinks: SceneLinkNode[];
|
|
18
|
+
transformNodes: TransformNode[];
|
|
19
|
+
animationGroups: AnimationGroup[];
|
|
20
|
+
particleSystems: IParticleSystem[];
|
|
21
|
+
spriteMaps: SpriteMapNode[];
|
|
22
|
+
spriteManagers: SpriteManagerNode[];
|
|
23
|
+
};
|
|
24
|
+
export declare function loadScene(editor: Editor, projectPath: string, scenePath: string, options?: SceneLoaderOptions): Promise<SceneLoadResult>;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { Scene, BaseTexture } from "babylonjs";
|
|
2
|
+
export declare const originalTextureParser: (sourceProperty: any, scene: Scene, rootUrl: string) => import("babylonjs").Nullable<BaseTexture>;
|
|
3
|
+
export declare function textureParser(source: any, scene: Scene, rootUrl: string): BaseTexture | null;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { Component, ReactNode } from "react";
|
|
2
|
+
import { Root } from "react-dom/client";
|
|
3
|
+
import { Editor } from "../../editor/main";
|
|
4
|
+
export declare function showSaveSceneProgressDialog(editor: Editor, name: string): Promise<SaveSceneProgressComponent>;
|
|
5
|
+
export interface ISaveSceneProgressComponentProps {
|
|
6
|
+
name: string;
|
|
7
|
+
editor: Editor;
|
|
8
|
+
root: Root;
|
|
9
|
+
container: HTMLDivElement;
|
|
10
|
+
}
|
|
11
|
+
export interface ISaveSceneProgressComponentState {
|
|
12
|
+
name: string;
|
|
13
|
+
progress: number;
|
|
14
|
+
}
|
|
15
|
+
export declare class SaveSceneProgressComponent extends Component<ISaveSceneProgressComponentProps, ISaveSceneProgressComponentState> {
|
|
16
|
+
private _step;
|
|
17
|
+
constructor(props: ISaveSceneProgressComponentProps);
|
|
18
|
+
render(): ReactNode;
|
|
19
|
+
componentDidMount(): void;
|
|
20
|
+
step(step: number): void;
|
|
21
|
+
setName(name: string): void;
|
|
22
|
+
dispose(): void;
|
|
23
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function writeBinaryMorphTarget(path: string, morphTarget: any): Promise<void>;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export interface IEditorProject {
|
|
2
|
+
/**
|
|
3
|
+
* The version of the editor that saved this project.
|
|
4
|
+
*/
|
|
5
|
+
version: string;
|
|
6
|
+
/**
|
|
7
|
+
* The path to the last opened scene.
|
|
8
|
+
*/
|
|
9
|
+
lastOpenedScene: string | null;
|
|
10
|
+
/**
|
|
11
|
+
* The plugins of the project.
|
|
12
|
+
*/
|
|
13
|
+
plugins: IEditorProjectPlugin[];
|
|
14
|
+
/**
|
|
15
|
+
* If the compressed textures are enabled using PVRTexTool.
|
|
16
|
+
*/
|
|
17
|
+
compressedTexturesEnabled: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* If the compressed textures are enabled in the preview.
|
|
20
|
+
*/
|
|
21
|
+
compressedTexturesEnabledInPreview: boolean;
|
|
22
|
+
/**
|
|
23
|
+
* The package manager being used by the project.
|
|
24
|
+
*/
|
|
25
|
+
packageManager?: EditorProjectPackageManager;
|
|
26
|
+
}
|
|
27
|
+
export interface IEditorProjectPlugin {
|
|
28
|
+
/**
|
|
29
|
+
* The name or path of the plugin.
|
|
30
|
+
*/
|
|
31
|
+
nameOrPath: string;
|
|
32
|
+
}
|
|
33
|
+
export type EditorProjectPackageManager = "npm" | "yarn" | "pnpm" | "bun";
|
|
34
|
+
export type EditorProjectTemplate = "nextjs" | "solidjs" | "vanillajs" | "electron";
|