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
|
File without changes
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Scene, AnimationGroup, TargetedAnimation } from "babylonjs";
|
|
2
|
+
/**
|
|
3
|
+
* Gets a new map containing for each animation group the targeted animations that are linked to the given targets.
|
|
4
|
+
* @param targets defines the array of targets to check for linked animations (meshes, transform nodes, etc.).
|
|
5
|
+
* @param scene defines the reference to the scene to check for animation groups.
|
|
6
|
+
*/
|
|
7
|
+
export declare function getLinkedAnimationGroupsFor(targets: any[], scene: Scene): Map<AnimationGroup, TargetedAnimation[]>;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { Tween } from "./tween";
|
|
2
|
+
/**
|
|
3
|
+
* Defines the reference to the map that contains, for each target object, a list of tweens.
|
|
4
|
+
*/
|
|
5
|
+
export declare const tweensMap: Map<any, Tween[]>;
|
|
6
|
+
/**
|
|
7
|
+
* Registers the given target object that is being animated by tweens.
|
|
8
|
+
* @param target defines the reference to the target object to register.
|
|
9
|
+
*/
|
|
10
|
+
export declare function registerTarget<T>(target: T): void;
|
|
11
|
+
/**
|
|
12
|
+
* Registers the given tween that animates the given target.
|
|
13
|
+
* @param target defines the reference to the animated target object.
|
|
14
|
+
* @param tween defines the reference to the tween to register that animates the given target object.
|
|
15
|
+
*/
|
|
16
|
+
export declare function registerTween<T>(target: T, tween: Tween): void;
|
|
17
|
+
/**
|
|
18
|
+
* Checks for the given target to delete or keep active tweens array from the cache.
|
|
19
|
+
* @param target defines the reference to the target to check its attached tweens.
|
|
20
|
+
*/
|
|
21
|
+
export declare function checkTargetTweens<T>(target: T): void;
|
|
22
|
+
/**
|
|
23
|
+
* Removes the given tween from the attached tweens of the given target object once the tween ended.
|
|
24
|
+
* @param target defines the reference to the target to check its array of tweens.
|
|
25
|
+
* @param tween defines the reference to the tween to check its "ended" event.
|
|
26
|
+
*/
|
|
27
|
+
export declare function registerTweenEnded<T>(target: T, tween: Tween): void;
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { Animatable, EasingFunction, Nullable, Scene } from "babylonjs";
|
|
2
|
+
export interface ITweenEasingConfiguration {
|
|
3
|
+
mode: number;
|
|
4
|
+
type: EasingFunction;
|
|
5
|
+
}
|
|
6
|
+
export interface ITweenPropertyConfiguration {
|
|
7
|
+
from: any;
|
|
8
|
+
to: any;
|
|
9
|
+
duration?: number;
|
|
10
|
+
delay?: number;
|
|
11
|
+
easing?: ITweenEasingConfiguration;
|
|
12
|
+
value: any;
|
|
13
|
+
}
|
|
14
|
+
export interface ITweenConfiguration {
|
|
15
|
+
scene?: Scene;
|
|
16
|
+
delay?: number;
|
|
17
|
+
easing?: ITweenEasingConfiguration;
|
|
18
|
+
loop?: boolean;
|
|
19
|
+
properties?: {
|
|
20
|
+
[propertyPath: string]: ITweenPropertyConfiguration | any;
|
|
21
|
+
};
|
|
22
|
+
onStart?: () => void;
|
|
23
|
+
onUpdate?: () => void;
|
|
24
|
+
onComplete?: () => void;
|
|
25
|
+
[propertyPath: string]: ITweenPropertyConfiguration | any;
|
|
26
|
+
noOptimize?: boolean;
|
|
27
|
+
killAllTweensOfTarget?: boolean;
|
|
28
|
+
}
|
|
29
|
+
export declare class Tween {
|
|
30
|
+
animatables: Animatable[];
|
|
31
|
+
/**
|
|
32
|
+
* Defines the reference to the promise resolved on the tween ended.
|
|
33
|
+
*/
|
|
34
|
+
promise: Promise<void[]>;
|
|
35
|
+
/**
|
|
36
|
+
* Constructor.
|
|
37
|
+
* @param animatable defines the reference to the animatable that is being played.
|
|
38
|
+
*/
|
|
39
|
+
constructor(animatables: Animatable[]);
|
|
40
|
+
/**
|
|
41
|
+
* Pauses the tween animation.
|
|
42
|
+
*/
|
|
43
|
+
pause(): void;
|
|
44
|
+
/**
|
|
45
|
+
* Restarts the animation.
|
|
46
|
+
*/
|
|
47
|
+
reset(): void;
|
|
48
|
+
/**
|
|
49
|
+
* Stops the tween animation. Resolves the promise.
|
|
50
|
+
*/
|
|
51
|
+
stop(): void;
|
|
52
|
+
/**
|
|
53
|
+
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
54
|
+
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
55
|
+
* @param onrejected The callback to execute when the Promise is rejected.
|
|
56
|
+
* @returns A Promise for the completion of which ever callback is executed.
|
|
57
|
+
*/
|
|
58
|
+
then<T1 = void, T2 = never>(onfulfilled?: ((value: any) => T1 | PromiseLike<T1>) | undefined | null, onrejected?: ((reason: any) => T2 | PromiseLike<T2>) | undefined | null): PromiseLike<T1 | T2>;
|
|
59
|
+
/**
|
|
60
|
+
* Defines the reference to the scene where to play the tweens.
|
|
61
|
+
*/
|
|
62
|
+
static Scene: Nullable<Scene>;
|
|
63
|
+
/**
|
|
64
|
+
* Defines the default easing function used when playing tweens.
|
|
65
|
+
*/
|
|
66
|
+
static DefaultEasing: Nullable<ITweenEasingConfiguration>;
|
|
67
|
+
/**
|
|
68
|
+
* Kills (stops) all the tweens that animate to given target.
|
|
69
|
+
* @param target defines the reference to the target to kill all its attached tweens.
|
|
70
|
+
* @returns true if at least one tween has been killed.
|
|
71
|
+
*/
|
|
72
|
+
static killTweensOf<T>(target: T | T[]): boolean;
|
|
73
|
+
static killAllTweens(): void;
|
|
74
|
+
/**
|
|
75
|
+
* Creates a new tween reference to anmate CSS properties of the given HTML element for the given duration.
|
|
76
|
+
* @param target defines the target HTML object to animate its properties.
|
|
77
|
+
* @param duration defines the duration of the animation(s) expressed in seconds.
|
|
78
|
+
* @param properties defines the dictionary of all animated properties.
|
|
79
|
+
* @returns a reference to a tween.
|
|
80
|
+
*/
|
|
81
|
+
static createForCSS(target: HTMLElement, duration: number, options: ITweenConfiguration): Tween;
|
|
82
|
+
private static _configureOptions;
|
|
83
|
+
/**
|
|
84
|
+
* Creates a new tween reference to animate properties of the given target for the given duration.
|
|
85
|
+
* @param target defines the target object to animate its properties.
|
|
86
|
+
* @param duration defines the duration of the animation(s) expressed in seconds.
|
|
87
|
+
* @param options defines the options the tween (easing, delay, etc.).
|
|
88
|
+
* @returns a reference to a tween.
|
|
89
|
+
*/
|
|
90
|
+
static create<T>(target: Nullable<T> | Nullable<T>[], duration: number, options: ITweenConfiguration): Tween;
|
|
91
|
+
/**
|
|
92
|
+
* Given a path to a property, return the effective property by deconstructing the path.
|
|
93
|
+
*/
|
|
94
|
+
private static _getEffectiveTarget;
|
|
95
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Camera, Vector3 } from "babylonjs";
|
|
2
|
+
export interface ICameraFocusPositionOptions {
|
|
3
|
+
minimum: Vector3;
|
|
4
|
+
maximum: Vector3;
|
|
5
|
+
distance?: number;
|
|
6
|
+
}
|
|
7
|
+
export declare function getCameraFocusPositionFor(target: Vector3, camera: Camera, options: ICameraFocusPositionOptions): Vector3;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { FileFilter } from "electron";
|
|
2
|
+
export type OpenFileDialogOptions = {
|
|
3
|
+
title?: string;
|
|
4
|
+
filters?: FileFilter[];
|
|
5
|
+
};
|
|
6
|
+
export declare function openSingleFileDialog(options?: OpenFileDialogOptions): string;
|
|
7
|
+
export declare function openMultipleFilesDialog(options?: OpenFileDialogOptions): string[];
|
|
8
|
+
export declare function openSingleFolderDialog(title?: string): string;
|
|
9
|
+
export type SaveFileDialogOptions = {
|
|
10
|
+
title?: string;
|
|
11
|
+
defaultPath?: string;
|
|
12
|
+
filters?: FileFilter[];
|
|
13
|
+
};
|
|
14
|
+
export declare function saveSingleFileDialog(options?: SaveFileDialogOptions): string;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Returns wether or not the given DOM element is focusable.
|
|
3
|
+
* Aka `input`, `select`, `button`, `textarea` etc.
|
|
4
|
+
* @param element defines the reference to the DOM element to check.
|
|
5
|
+
* @returns wether or not the given DOM element is focusable.
|
|
6
|
+
*/
|
|
7
|
+
export declare function isDomElementFocusable(element: Element | null | undefined): boolean;
|
|
8
|
+
/**
|
|
9
|
+
* Returns wether or not the given DOM element is a descendant of the given parent.
|
|
10
|
+
* @param element defines the reference to the DOM element to check.
|
|
11
|
+
* @param parent defines the reference to the parent DOM element to check against.
|
|
12
|
+
*/
|
|
13
|
+
export declare function isDomElementDescendantOf(element: HTMLElement, parent: HTMLElement): boolean;
|
|
14
|
+
/**
|
|
15
|
+
* Returns wether or not the currently focused DOM element is any text input.
|
|
16
|
+
*/
|
|
17
|
+
export declare function isDomTextInputFocused(): boolean;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { glob } from "glob";
|
|
2
|
+
/**
|
|
3
|
+
* Creates a directory if it doesn't exist.
|
|
4
|
+
* @param absolutePath the absolute path of the directory to create.
|
|
5
|
+
*/
|
|
6
|
+
export declare function createDirectoryIfNotExist(absolutePath: string): Promise<void>;
|
|
7
|
+
/**
|
|
8
|
+
* Normalizes the paths of the files returned by glob.
|
|
9
|
+
*/
|
|
10
|
+
export declare function normalizedGlob(...args: Parameters<typeof glob>): ReturnType<typeof glob>;
|
|
11
|
+
/**
|
|
12
|
+
* Creates a new FS watcher and returns its reference. Takes care of waiting enought time in order
|
|
13
|
+
* to notify the "change" event only once.
|
|
14
|
+
* @param absolutePath defines the absolute path to the file to watch.
|
|
15
|
+
* @param onChange defines the callback called when the file changed.
|
|
16
|
+
*/
|
|
17
|
+
export declare function watchFile(absolutePath: string, onChange: () => void): import("chokidar").FSWatcher;
|
|
18
|
+
/**
|
|
19
|
+
* Finds an available filename for the given filename and extension in the specified directory.
|
|
20
|
+
* @param absoluteDirname defines the absolute path of the directory to search in
|
|
21
|
+
* @param originalName defines the original name of the file
|
|
22
|
+
* @param extension defines the file extension (without dot)
|
|
23
|
+
*/
|
|
24
|
+
export declare function findAvailableFilename(absoluteDirname: string, originalName: string, extension: string): Promise<string>;
|
|
25
|
+
/**
|
|
26
|
+
* Tries to read a directory and returns its content if the directory exists.
|
|
27
|
+
* If not, returns an empty array.
|
|
28
|
+
* @param path defines the absolute path to read directory.
|
|
29
|
+
*/
|
|
30
|
+
export declare function tryReadDir(path: string): Promise<string[]>;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { MultiMaterial, NodeMaterial, PBRMaterial, StandardMaterial } from "babylonjs";
|
|
2
|
+
/**
|
|
3
|
+
* Returns wether or not the given object is a StandardMaterial.
|
|
4
|
+
* @param object defines the reference to the object to test its class name.
|
|
5
|
+
*/
|
|
6
|
+
export declare function isStandardMaterial(object: any): object is StandardMaterial;
|
|
7
|
+
/**
|
|
8
|
+
* Returns wether or not the given object is a PBRMaterial.
|
|
9
|
+
* @param object defines the reference to the object to test its class name.
|
|
10
|
+
*/
|
|
11
|
+
export declare function isPBRMaterial(object: any): object is PBRMaterial;
|
|
12
|
+
/**
|
|
13
|
+
* Returns wether or not the given object is a NodeMaterial.
|
|
14
|
+
* @param object defines the reference to the object to test its class name.
|
|
15
|
+
*/
|
|
16
|
+
export declare function isNodeMaterial(object: any): object is NodeMaterial;
|
|
17
|
+
/**
|
|
18
|
+
* Returns wether or not the given object is a MultiMaterial.
|
|
19
|
+
* @param object defines the reference to the object to test its class name.
|
|
20
|
+
*/
|
|
21
|
+
export declare function isMultiMaterial(object: any): object is MultiMaterial;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { Quaternion, Vector2, Vector3, Color3, Color4 } from "babylonjs";
|
|
2
|
+
/**
|
|
3
|
+
* Returns wether or not the given object is a Vector2.
|
|
4
|
+
* @param object defines the reference to the object to test its class name.
|
|
5
|
+
*/
|
|
6
|
+
export declare function isVector2(object: any): object is Vector2;
|
|
7
|
+
/**
|
|
8
|
+
* Returns wether or not the given object is a Vector3.
|
|
9
|
+
* @param object defines the reference to the object to test its class name.
|
|
10
|
+
*/
|
|
11
|
+
export declare function isVector3(object: any): object is Vector3;
|
|
12
|
+
/**
|
|
13
|
+
* Returns wether or not the given object is a Quaternion.
|
|
14
|
+
* @param object defines the reference to the object to test its class name.
|
|
15
|
+
*/
|
|
16
|
+
export declare function isQuaternion(object: any): object is Quaternion;
|
|
17
|
+
/**
|
|
18
|
+
* Returns wether or not the given object is a Color3.
|
|
19
|
+
* @param object defines the reference to the object to test its class name.
|
|
20
|
+
*/
|
|
21
|
+
export declare function isColor3(object: any): object is Color3;
|
|
22
|
+
/**
|
|
23
|
+
* Returns wether or not the given object is a Color4.
|
|
24
|
+
* @param object defines the reference to the object to test its class name.
|
|
25
|
+
*/
|
|
26
|
+
export declare function isColor4(object: any): object is Color4;
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import { Bone, Camera, GroundMesh, Light, Mesh, Node, PointLight, TransformNode, DirectionalLight, InstancedMesh, FreeCamera, ArcRotateCamera, SpotLight, HemisphericLight, Skeleton } from "babylonjs";
|
|
2
|
+
import { EditorCamera } from "../../editor/nodes/camera";
|
|
3
|
+
import { CollisionMesh } from "../../editor/nodes/collision";
|
|
4
|
+
/**
|
|
5
|
+
* Returns wether or not the given object is an AbstractMesh.
|
|
6
|
+
* @param object defines the reference to the object to test its class name.
|
|
7
|
+
*/
|
|
8
|
+
export declare function isAbstractMesh(object: any): object is Mesh;
|
|
9
|
+
/**
|
|
10
|
+
* Returns wether or not the given object is a Mesh.
|
|
11
|
+
* @param object defines the reference to the object to test its class name.
|
|
12
|
+
*/
|
|
13
|
+
export declare function isMesh(object: any): object is Mesh;
|
|
14
|
+
/**
|
|
15
|
+
* Returns wether or not the given object is a InstancedMesh.
|
|
16
|
+
* @param object defines the reference to the object to test its class name.
|
|
17
|
+
*/
|
|
18
|
+
export declare function isInstancedMesh(object: any): object is InstancedMesh;
|
|
19
|
+
/**
|
|
20
|
+
* Returns wether or not the given object is a Bone.
|
|
21
|
+
* @param object defines the reference to the object to test its class name.
|
|
22
|
+
*/
|
|
23
|
+
export declare function isBone(object: any): object is Bone;
|
|
24
|
+
/**
|
|
25
|
+
* Returns wether or not the given object is a GroundMesh.
|
|
26
|
+
* @param object defines the reference to the object to test its class name.
|
|
27
|
+
*/
|
|
28
|
+
export declare function isGroundMesh(object: any): object is GroundMesh;
|
|
29
|
+
/**
|
|
30
|
+
* Returns wether or not the given object is a CollisionMesh.
|
|
31
|
+
* @param object defines the reference to the object to test its class name.
|
|
32
|
+
*/
|
|
33
|
+
export declare function isCollisionMesh(object: any): object is CollisionMesh;
|
|
34
|
+
/**
|
|
35
|
+
* Returns wether or not the given object is an InstancedMesh of CollisionMesh.
|
|
36
|
+
* @param object defines the reference to the object to test its class name.
|
|
37
|
+
*/
|
|
38
|
+
export declare function isCollisionInstancedMesh(object: any): object is InstancedMesh;
|
|
39
|
+
/**
|
|
40
|
+
* Returns wether or not the given object is a TransformNode.
|
|
41
|
+
* @param object defines the reference to the object to test its class name.
|
|
42
|
+
*/
|
|
43
|
+
export declare function isTransformNode(object: any): object is TransformNode;
|
|
44
|
+
/**
|
|
45
|
+
* Returns wether or not the given object is a Skeleton.
|
|
46
|
+
* @param object defines the reference to the object to test its class name.
|
|
47
|
+
*/
|
|
48
|
+
export declare function isSkeleton(object: any): object is Skeleton;
|
|
49
|
+
/**
|
|
50
|
+
* Returns wether or not the given object is a Any TransformNode.
|
|
51
|
+
* @param object defines the reference to the object to test its class name.
|
|
52
|
+
*/
|
|
53
|
+
export declare function isAnyTransformNode(object: any): object is TransformNode;
|
|
54
|
+
/**
|
|
55
|
+
* Returns wether or not the given object is a Camera.
|
|
56
|
+
* @param object defines the reference to the object to test its class name.
|
|
57
|
+
*/
|
|
58
|
+
export declare function isCamera(object: any): object is Camera;
|
|
59
|
+
/**
|
|
60
|
+
* Returns wether or not the given object is a EditorCamera.
|
|
61
|
+
* @param object defines the reference to the object to test its class name.
|
|
62
|
+
*/
|
|
63
|
+
export declare function isEditorCamera(object: any): object is EditorCamera;
|
|
64
|
+
/**
|
|
65
|
+
* Returns wether or not the given object is a FreeCamera.
|
|
66
|
+
* @param object defines the reference to the object to test its class name.
|
|
67
|
+
*/
|
|
68
|
+
export declare function isFreeCamera(object: any): object is FreeCamera;
|
|
69
|
+
/**
|
|
70
|
+
* Returns wether or not the given object is a ArcRotateCamera.
|
|
71
|
+
* @param object defines the reference to the object to test its class name.
|
|
72
|
+
*/
|
|
73
|
+
export declare function isArcRotateCamera(object: any): object is ArcRotateCamera;
|
|
74
|
+
/**
|
|
75
|
+
* Returns wether or not the given object is a PointLight.
|
|
76
|
+
* @param object defines the reference to the object to test its class name.
|
|
77
|
+
*/
|
|
78
|
+
export declare function isPointLight(object: any): object is PointLight;
|
|
79
|
+
/**
|
|
80
|
+
* Returns wether or not the given object is a DirectionalLight.
|
|
81
|
+
* @param object defines the reference to the object to test its class name.
|
|
82
|
+
*/
|
|
83
|
+
export declare function isDirectionalLight(object: any): object is DirectionalLight;
|
|
84
|
+
/**
|
|
85
|
+
* Returns wether or not the given object is a SpotLight.
|
|
86
|
+
* @param object defines the reference to the object to test its class name.
|
|
87
|
+
*/
|
|
88
|
+
export declare function isSpotLight(object: any): object is SpotLight;
|
|
89
|
+
/**
|
|
90
|
+
* Returns wether or not the given object is a HemisphericLight.
|
|
91
|
+
* @param object defines the reference to the object to test its class name.
|
|
92
|
+
*/
|
|
93
|
+
export declare function isHemisphericLight(object: any): object is HemisphericLight;
|
|
94
|
+
/**
|
|
95
|
+
* Returns wether or not the given object is a Light.
|
|
96
|
+
* @param object defines the reference to the object to test its class name.
|
|
97
|
+
*/
|
|
98
|
+
export declare function isLight(object: any): object is Light;
|
|
99
|
+
/**
|
|
100
|
+
* Returns wether or not the given object is a Node.
|
|
101
|
+
* @param object defines the reference to the object to test its class name.
|
|
102
|
+
*/
|
|
103
|
+
export declare function isNode(object: any): object is Node;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ParticleSystem, GPUParticleSystem, IParticleSystem } from "babylonjs";
|
|
2
|
+
/**
|
|
3
|
+
* Returns wether or not the given object is a ParticleSystem.
|
|
4
|
+
* @param object defines the reference to the object to test its class name.
|
|
5
|
+
*/
|
|
6
|
+
export declare function isParticleSystem(object: any): object is ParticleSystem;
|
|
7
|
+
/**
|
|
8
|
+
* Returns wether or not the given object is a GPUParticleSystem.
|
|
9
|
+
* @param object defines the reference to the object to test its class name.
|
|
10
|
+
*/
|
|
11
|
+
export declare function isGPUParticleSystem(object: any): object is GPUParticleSystem;
|
|
12
|
+
/**
|
|
13
|
+
* Returns wether or not the given object is a IParticleSystem.
|
|
14
|
+
* @param object defines the reference to the object to test its class name.
|
|
15
|
+
*/
|
|
16
|
+
export declare function isAnyParticleSystem(object: any): object is IParticleSystem;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Scene } from "babylonjs";
|
|
2
|
+
import { SceneLinkNode } from "../../editor/nodes/scene-link";
|
|
3
|
+
/**
|
|
4
|
+
* Returns wether or not the given object is a Scene.
|
|
5
|
+
* @param object defines the reference to the object to test its class name.
|
|
6
|
+
*/
|
|
7
|
+
export declare function isScene(object: any): object is Scene;
|
|
8
|
+
/**
|
|
9
|
+
* Returns wether or not the given object is a SceneLinkNode.
|
|
10
|
+
* @param object defines the reference to the object to test its class name.
|
|
11
|
+
*/
|
|
12
|
+
export declare function isSceneLinkNode(object: any): object is SceneLinkNode;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { CascadedShadowGenerator, ShadowGenerator } from "babylonjs";
|
|
2
|
+
/**
|
|
3
|
+
* Returns wether or not the given object is a ShadowGenerator.
|
|
4
|
+
* @param object defines the reference to the object to test its class name.
|
|
5
|
+
*/
|
|
6
|
+
export declare function isShadowGenerator(object: any): object is ShadowGenerator;
|
|
7
|
+
/**
|
|
8
|
+
* Returns wether or not the given object is a CascadedShadowGenerator.
|
|
9
|
+
* @param object defines the reference to the object to test its class name.
|
|
10
|
+
*/
|
|
11
|
+
export declare function isCascadedShadowGenerator(object: any): object is CascadedShadowGenerator;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { SpriteMapNode } from "../../editor/nodes/sprite-map";
|
|
2
|
+
import { SpriteManagerNode } from "../../editor/nodes/sprite-manager";
|
|
3
|
+
import { Sprite } from "babylonjs";
|
|
4
|
+
/**
|
|
5
|
+
* Returns wether or not the given object is a Sprite.
|
|
6
|
+
* @param object defines the reference to the object to test its class name.
|
|
7
|
+
*/
|
|
8
|
+
export declare function isSprite(object: any): object is Sprite;
|
|
9
|
+
/**
|
|
10
|
+
* Returns wether or not the given object is a SpriteMapNode.
|
|
11
|
+
* @param object defines the reference to the object to test its class name.
|
|
12
|
+
*/
|
|
13
|
+
export declare function isSpriteMapNode(object: any): object is SpriteMapNode;
|
|
14
|
+
/**
|
|
15
|
+
* Returns wether or not the given object is a SpriteManagerNode.
|
|
16
|
+
* @param object defines the reference to the object to test its class name.
|
|
17
|
+
*/
|
|
18
|
+
export declare function isSpriteManagerNode(object: any): object is SpriteManagerNode;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { AdvancedDynamicTexture } from "babylonjs-gui";
|
|
2
|
+
import { CubeTexture, Texture, ColorGradingTexture } from "babylonjs";
|
|
3
|
+
/**
|
|
4
|
+
* Returns wether or not the given object is a Texture.
|
|
5
|
+
* @param object defines the reference to the object to test its class name.
|
|
6
|
+
*/
|
|
7
|
+
export declare function isTexture(object: any): object is Texture;
|
|
8
|
+
/**
|
|
9
|
+
* Returns wether or not the given object is a CubeTexture.
|
|
10
|
+
* @param object defines the reference to the object to test its class name.
|
|
11
|
+
*/
|
|
12
|
+
export declare function isCubeTexture(object: any): object is CubeTexture;
|
|
13
|
+
/**
|
|
14
|
+
* Returns wether or not the given object is a AdvancedDynamicTexture.
|
|
15
|
+
* @param object defines the reference to the object to test its class name.
|
|
16
|
+
*/
|
|
17
|
+
export declare function isAdvancedDynamicTexture(object: any): object is AdvancedDynamicTexture;
|
|
18
|
+
/**
|
|
19
|
+
* Returns wether or not the given object is a ColorGradingTexture.
|
|
20
|
+
* @param object defines the reference to the object to test its class name.
|
|
21
|
+
*/
|
|
22
|
+
export declare function isColorGradingTexture(object: any): object is ColorGradingTexture;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Sends an IPC message to the main process and waits for a response.
|
|
3
|
+
* @param id The id of the IPC message.
|
|
4
|
+
* @param args The arguments to pass to the IPC message.
|
|
5
|
+
* @returns A promise that resolves with the response from the main process.
|
|
6
|
+
*/
|
|
7
|
+
export declare function ipcSendAsync<T>(id: string, ...args: any[]): Promise<T>;
|
|
8
|
+
/**
|
|
9
|
+
* Sends an IPC message to the main process and waits for a response.
|
|
10
|
+
* @param id The id of the IPC message.
|
|
11
|
+
* @param args The arguments to pass to the IPC message.
|
|
12
|
+
* @returns A promise that resolves with the response from the main process.
|
|
13
|
+
*/
|
|
14
|
+
export declare function ipcSendAsyncWithMessageId<T>(id: string, ...args: any[]): Promise<T>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Light, Scene } from "babylonjs";
|
|
2
|
+
/**
|
|
3
|
+
* Updates the shadow map render list predicate of the given point light.
|
|
4
|
+
* Will basically filter out meshes that are too far from the light according to
|
|
5
|
+
* the current light's `range` value.
|
|
6
|
+
* @param light defines the reference to the point light to configure.
|
|
7
|
+
*/
|
|
8
|
+
export declare function updatePointLightShadowMapRenderListPredicate(light: Light): void;
|
|
9
|
+
/**
|
|
10
|
+
* In case the light has a refresh rate of 0, let's update them to reset refresh rate to
|
|
11
|
+
* 0 in order to re-trigger a render of the shadow map. This is typically used when a light is moved in the editor.
|
|
12
|
+
* @param light defines the reference to the light to configure.
|
|
13
|
+
*/
|
|
14
|
+
export declare function updateLightShadowMapRefreshRate(light: Light): void;
|
|
15
|
+
/**
|
|
16
|
+
* Updates all the lights properties (shadow maps, list predicates etc.).
|
|
17
|
+
* @param scene defines the reference to the scene that contains all lights to update.
|
|
18
|
+
*/
|
|
19
|
+
export declare function updateAllLights(scene: Scene): void;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { ProjectType } from "./project";
|
|
2
|
+
/**
|
|
3
|
+
* Returns the list of projects that were stored in the local storage in order to display them in the dashboard.
|
|
4
|
+
* Those projects are sorted by the last updated date.
|
|
5
|
+
*/
|
|
6
|
+
export declare function tryGetProjectsFromLocalStorage(): ProjectType[];
|
|
7
|
+
/**
|
|
8
|
+
* Adds the project located at the given absolute path to the local storage in order to display them in the dashboard.
|
|
9
|
+
* @param absolutePath defines the absolute path to the project file to add to the local storage.
|
|
10
|
+
*/
|
|
11
|
+
export declare function tryAddProjectToLocalStorage(absolutePath: string): void;
|
|
12
|
+
/**
|
|
13
|
+
* Returns wether or not experimental features are enabled in the editor.
|
|
14
|
+
*/
|
|
15
|
+
export declare function tryGetExperimentalFeaturesEnabledFromLocalStorage(): boolean;
|
|
16
|
+
/**
|
|
17
|
+
* Sets whether or not experimental features are enabled in the local storage.
|
|
18
|
+
* @param enabled defines wether or not experimental features are enabled.
|
|
19
|
+
*/
|
|
20
|
+
export declare function trySetExperimentalFeaturesEnabledInLocalStorage(enabled: boolean): void;
|
|
21
|
+
/**
|
|
22
|
+
* Returns wether or not the dashboard should be closed when a project is opened.
|
|
23
|
+
*/
|
|
24
|
+
export declare function tryGetCloseDashboardOnProjectOpenFromLocalStorage(): boolean;
|
|
25
|
+
/**
|
|
26
|
+
* Sets whether or not the dashboard should be closed when a project is opened.
|
|
27
|
+
* @param enabled defines whether or not the dashboard should be closed when a project is opened.
|
|
28
|
+
*/
|
|
29
|
+
export declare function trySetCloseDashboardOnProjectOpenInLocalStorage(enabled: boolean): void;
|
|
@@ -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<void>;
|
|
@@ -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,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 { 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,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;
|