melonjs 20.3.0 → 20.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +19 -19
- package/build/application/application.d.ts +0 -17
- package/build/application/application.d.ts.map +1 -1
- package/build/application/settings.d.ts +3 -0
- package/build/application/settings.d.ts.map +1 -1
- package/build/audio/audio.d.ts.map +1 -1
- package/build/audio/backend/engine.d.ts +0 -19
- package/build/audio/backend/engine.d.ts.map +1 -1
- package/build/audio/backend/sound.d.ts +1 -51
- package/build/audio/backend/sound.d.ts.map +1 -1
- package/build/audio/backend/spatial.d.ts.map +1 -1
- package/build/audio/backend/types.d.ts +11 -1
- package/build/audio/backend/types.d.ts.map +1 -1
- package/build/audio/backend/voice.d.ts +0 -25
- package/build/audio/backend/voice.d.ts.map +1 -1
- package/build/audio/playback.d.ts.map +1 -1
- package/build/audio/procedural.d.ts +7 -2
- package/build/audio/procedural.d.ts.map +1 -1
- package/build/audio/state.d.ts +6 -79
- package/build/audio/state.d.ts.map +1 -1
- package/build/audio/types.d.ts +22 -0
- package/build/audio/types.d.ts.map +1 -1
- package/build/camera/camera2d.d.ts +28 -68
- package/build/camera/camera2d.d.ts.map +1 -1
- package/build/camera/camera3d.d.ts +110 -82
- package/build/camera/camera3d.d.ts.map +1 -1
- package/build/camera/effects/fade_effect.d.ts +0 -5
- package/build/camera/effects/fade_effect.d.ts.map +1 -1
- package/build/camera/effects/mask_effect.d.ts +0 -5
- package/build/camera/effects/mask_effect.d.ts.map +1 -1
- package/build/camera/fog.d.ts +118 -0
- package/build/camera/fog.d.ts.map +1 -0
- package/build/geometries/box3d.d.ts +0 -28
- package/build/geometries/box3d.d.ts.map +1 -1
- package/build/geometries/ellipse.d.ts +0 -20
- package/build/geometries/ellipse.d.ts.map +1 -1
- package/build/geometries/observablePoint.d.ts +0 -3
- package/build/geometries/observablePoint.d.ts.map +1 -1
- package/build/geometries/path2d.d.ts +0 -19
- package/build/geometries/path2d.d.ts.map +1 -1
- package/build/geometries/polygon.d.ts +7 -13
- package/build/geometries/polygon.d.ts.map +1 -1
- package/build/geometries/roundrect.d.ts +0 -18
- package/build/geometries/roundrect.d.ts.map +1 -1
- package/build/geometries/sphere.d.ts +0 -9
- package/build/geometries/sphere.d.ts.map +1 -1
- package/build/geometries/toarccanvas.d.ts.map +1 -1
- package/build/index.d.ts +5 -0
- package/build/index.d.ts.map +1 -1
- package/build/index.js +3697 -563
- package/build/index.js.map +4 -4
- package/build/input/gamepad.d.ts.map +1 -1
- package/build/input/pointer.d.ts +0 -4
- package/build/input/pointer.d.ts.map +1 -1
- package/build/input/pointerevent.d.ts +0 -6
- package/build/input/pointerevent.d.ts.map +1 -1
- package/build/lang/deprecated.d.ts.map +1 -1
- package/build/level/gltf/GLTFModel.d.ts +44 -82
- package/build/level/gltf/GLTFModel.d.ts.map +1 -1
- package/build/level/gltf/GLTFScene.d.ts +1 -44
- package/build/level/gltf/GLTFScene.d.ts.map +1 -1
- package/build/level/gltf/gltf_sampler.d.ts +1 -48
- package/build/level/gltf/gltf_sampler.d.ts.map +1 -1
- package/build/level/level.d.ts +195 -113
- package/build/level/level.d.ts.map +1 -1
- package/build/level/tiled/TMXGroup.d.ts +1 -65
- package/build/level/tiled/TMXGroup.d.ts.map +1 -1
- package/build/level/tiled/TMXLayer.d.ts +0 -44
- package/build/level/tiled/TMXLayer.d.ts.map +1 -1
- package/build/level/tiled/TMXObject.d.ts +1 -136
- package/build/level/tiled/TMXObject.d.ts.map +1 -1
- package/build/level/tiled/TMXObjectFactory.d.ts +1 -40
- package/build/level/tiled/TMXObjectFactory.d.ts.map +1 -1
- package/build/level/tiled/TMXTile.d.ts +1 -30
- package/build/level/tiled/TMXTile.d.ts.map +1 -1
- package/build/level/tiled/TMXTileMap.d.ts +0 -10
- package/build/level/tiled/TMXTileMap.d.ts.map +1 -1
- package/build/level/tiled/TMXTileset.d.ts +0 -113
- package/build/level/tiled/TMXTileset.d.ts.map +1 -1
- package/build/level/tiled/TMXTilesetGroup.d.ts +0 -1
- package/build/level/tiled/TMXTilesetGroup.d.ts.map +1 -1
- package/build/level/tiled/TMXUtils.d.ts +1 -43
- package/build/level/tiled/TMXUtils.d.ts.map +1 -1
- package/build/level/tiled/factories/shape.d.ts +1 -7
- package/build/level/tiled/factories/shape.d.ts.map +1 -1
- package/build/level/tiled/factories/text.d.ts +1 -7
- package/build/level/tiled/factories/text.d.ts.map +1 -1
- package/build/level/tiled/factories/tile.d.ts +1 -7
- package/build/level/tiled/factories/tile.d.ts.map +1 -1
- package/build/level/tiled/renderer/TMXHexagonalRenderer.d.ts +0 -60
- package/build/level/tiled/renderer/TMXHexagonalRenderer.d.ts.map +1 -1
- package/build/level/tiled/renderer/TMXIsometricRenderer.d.ts +0 -42
- package/build/level/tiled/renderer/TMXIsometricRenderer.d.ts.map +1 -1
- package/build/level/tiled/renderer/TMXObliqueRenderer.d.ts +0 -5
- package/build/level/tiled/renderer/TMXObliqueRenderer.d.ts.map +1 -1
- package/build/level/tiled/renderer/TMXOrthogonalRenderer.d.ts +0 -31
- package/build/level/tiled/renderer/TMXOrthogonalRenderer.d.ts.map +1 -1
- package/build/level/tiled/renderer/TMXRenderer.d.ts +2 -2
- package/build/level/tiled/renderer/TMXRenderer.d.ts.map +1 -1
- package/build/level/tiled/renderer/TMXStaggeredRenderer.d.ts.map +1 -1
- package/build/level/tiled/renderer/autodetect.d.ts +1 -6
- package/build/level/tiled/renderer/autodetect.d.ts.map +1 -1
- package/build/lighting/light2d.d.ts +0 -25
- package/build/lighting/light2d.d.ts.map +1 -1
- package/build/lighting/light3d.d.ts +20 -63
- package/build/lighting/light3d.d.ts.map +1 -1
- package/build/loader/loader.d.ts +146 -37
- package/build/loader/loader.d.ts.map +1 -1
- package/build/loader/loadingscreen.d.ts +0 -33
- package/build/loader/loadingscreen.d.ts.map +1 -1
- package/build/loader/parsers/aseprite.d.ts +0 -13
- package/build/loader/parsers/aseprite.d.ts.map +1 -1
- package/build/loader/parsers/audio.d.ts +1 -30
- package/build/loader/parsers/audio.d.ts.map +1 -1
- package/build/loader/parsers/binary.d.ts +1 -10
- package/build/loader/parsers/binary.d.ts.map +1 -1
- package/build/loader/parsers/compressed_textures/compressed_image.d.ts.map +1 -1
- package/build/loader/parsers/compressed_textures/parseDDS.d.ts +1 -7
- package/build/loader/parsers/compressed_textures/parseDDS.d.ts.map +1 -1
- package/build/loader/parsers/compressed_textures/parseKTX.d.ts +1 -7
- package/build/loader/parsers/compressed_textures/parseKTX.d.ts.map +1 -1
- package/build/loader/parsers/compressed_textures/parseKTX2.d.ts +1 -7
- package/build/loader/parsers/compressed_textures/parseKTX2.d.ts.map +1 -1
- package/build/loader/parsers/compressed_textures/parsePKM.d.ts +1 -7
- package/build/loader/parsers/compressed_textures/parsePKM.d.ts.map +1 -1
- package/build/loader/parsers/compressed_textures/parsePVR.d.ts +1 -7
- package/build/loader/parsers/compressed_textures/parsePVR.d.ts.map +1 -1
- package/build/loader/parsers/fontface.d.ts +1 -13
- package/build/loader/parsers/fontface.d.ts.map +1 -1
- package/build/loader/parsers/gltf.d.ts +1 -70
- package/build/loader/parsers/gltf.d.ts.map +1 -1
- package/build/loader/parsers/image.d.ts +1 -22
- package/build/loader/parsers/image.d.ts.map +1 -1
- package/build/loader/parsers/json.d.ts +1 -10
- package/build/loader/parsers/json.d.ts.map +1 -1
- package/build/loader/parsers/mtl.d.ts +1 -28
- package/build/loader/parsers/mtl.d.ts.map +1 -1
- package/build/loader/parsers/obj.d.ts +1 -59
- package/build/loader/parsers/obj.d.ts.map +1 -1
- package/build/loader/parsers/pbr.d.ts +1 -62
- package/build/loader/parsers/pbr.d.ts.map +1 -1
- package/build/loader/parsers/script.d.ts +1 -10
- package/build/loader/parsers/script.d.ts.map +1 -1
- package/build/loader/parsers/shader.d.ts +1 -52
- package/build/loader/parsers/shader.d.ts.map +1 -1
- package/build/loader/parsers/tmx.d.ts +1 -10
- package/build/loader/parsers/tmx.d.ts.map +1 -1
- package/build/loader/parsers/video.d.ts +1 -10
- package/build/loader/parsers/video.d.ts.map +1 -1
- package/build/math/color.d.ts.map +1 -1
- package/build/math/noise.d.ts +0 -40
- package/build/math/noise.d.ts.map +1 -1
- package/build/math/observableVector2d.d.ts +0 -3
- package/build/math/observableVector2d.d.ts.map +1 -1
- package/build/math/observableVector3d.d.ts +0 -3
- package/build/math/observableVector3d.d.ts.map +1 -1
- package/build/math/vector2d.d.ts +0 -6
- package/build/math/vector2d.d.ts.map +1 -1
- package/build/math/vertex.d.ts +25 -0
- package/build/math/vertex.d.ts.map +1 -1
- package/build/particles/emitter.d.ts +0 -65
- package/build/particles/emitter.d.ts.map +1 -1
- package/build/particles/particle.d.ts +0 -81
- package/build/particles/particle.d.ts.map +1 -1
- package/build/physics/bounds.d.ts +0 -1
- package/build/physics/bounds.d.ts.map +1 -1
- package/build/physics/broadphase/broadphase.d.ts +0 -7
- package/build/physics/broadphase/broadphase.d.ts.map +1 -1
- package/build/physics/broadphase/octree.d.ts +0 -91
- package/build/physics/broadphase/octree.d.ts.map +1 -1
- package/build/physics/broadphase/quadtree.d.ts +0 -47
- package/build/physics/broadphase/quadtree.d.ts.map +1 -1
- package/build/physics/builtin/body.d.ts +2 -65
- package/build/physics/builtin/body.d.ts.map +1 -1
- package/build/physics/builtin/detector.d.ts +0 -312
- package/build/physics/builtin/detector.d.ts.map +1 -1
- package/build/physics/builtin/sat.d.ts +1 -48
- package/build/physics/builtin/sat.d.ts.map +1 -1
- package/build/physics/builtin/sat3d.d.ts +1 -56
- package/build/physics/builtin/sat3d.d.ts.map +1 -1
- package/build/physics/collision.d.ts +0 -2
- package/build/physics/collision.d.ts.map +1 -1
- package/build/physics/response.d.ts +0 -1
- package/build/physics/response.d.ts.map +1 -1
- package/build/physics/world.d.ts.map +1 -1
- package/build/renderable/anchorPoint.d.ts +1 -73
- package/build/renderable/anchorPoint.d.ts.map +1 -1
- package/build/renderable/animation.d.ts +21 -13
- package/build/renderable/animation.d.ts.map +1 -1
- package/build/renderable/colorlayer.d.ts +0 -5
- package/build/renderable/colorlayer.d.ts.map +1 -1
- package/build/renderable/container.d.ts +27 -60
- package/build/renderable/container.d.ts.map +1 -1
- package/build/renderable/draggable.d.ts +0 -5
- package/build/renderable/draggable.d.ts.map +1 -1
- package/build/renderable/dragndrop.d.ts +1 -12
- package/build/renderable/dragndrop.d.ts.map +1 -1
- package/build/renderable/entity/entity.d.ts +0 -8
- package/build/renderable/entity/entity.d.ts.map +1 -1
- package/build/renderable/frameAnimation.d.ts +0 -41
- package/build/renderable/frameAnimation.d.ts.map +1 -1
- package/build/renderable/groundshadow.d.ts +1 -91
- package/build/renderable/groundshadow.d.ts.map +1 -1
- package/build/renderable/imagelayer.d.ts +0 -29
- package/build/renderable/imagelayer.d.ts.map +1 -1
- package/build/renderable/instanced_mesh.d.ts +55 -108
- package/build/renderable/instanced_mesh.d.ts.map +1 -1
- package/build/renderable/mesh.d.ts +257 -231
- package/build/renderable/mesh.d.ts.map +1 -1
- package/build/renderable/nineslicesprite.d.ts +0 -4
- package/build/renderable/nineslicesprite.d.ts.map +1 -1
- package/build/renderable/renderable.d.ts +18 -44
- package/build/renderable/renderable.d.ts.map +1 -1
- package/build/renderable/sprite.d.ts +0 -45
- package/build/renderable/sprite.d.ts.map +1 -1
- package/build/renderable/sprite3d.d.ts +12 -97
- package/build/renderable/sprite3d.d.ts.map +1 -1
- package/build/renderable/text/bitmaptext.d.ts +32 -21
- package/build/renderable/text/bitmaptext.d.ts.map +1 -1
- package/build/renderable/text/bitmaptextdata.d.ts +0 -22
- package/build/renderable/text/bitmaptextdata.d.ts.map +1 -1
- package/build/renderable/text/glyph.d.ts +1 -39
- package/build/renderable/text/glyph.d.ts.map +1 -1
- package/build/renderable/text/text.d.ts +75 -20
- package/build/renderable/text/text.d.ts.map +1 -1
- package/build/renderable/text/textmetrics.d.ts +2 -0
- package/build/renderable/text/textmetrics.d.ts.map +1 -1
- package/build/renderable/text/textstyle.d.ts +1 -5
- package/build/renderable/text/textstyle.d.ts.map +1 -1
- package/build/renderable/trail.d.ts +0 -29
- package/build/renderable/trail.d.ts.map +1 -1
- package/build/renderable/trigger.d.ts +0 -6
- package/build/renderable/trigger.d.ts.map +1 -1
- package/build/renderable/ui/uibaseelement.d.ts +0 -40
- package/build/renderable/ui/uibaseelement.d.ts.map +1 -1
- package/build/renderable/ui/uispriteelement.d.ts +0 -35
- package/build/renderable/ui/uispriteelement.d.ts.map +1 -1
- package/build/state/stage.d.ts +5 -50
- package/build/state/stage.d.ts.map +1 -1
- package/build/state/state.d.ts.map +1 -1
- package/build/system/device.d.ts +1 -13
- package/build/system/device.d.ts.map +1 -1
- package/build/system/dom.d.ts +1 -8
- package/build/system/dom.d.ts.map +1 -1
- package/build/system/legacy_pool.d.ts +1 -6
- package/build/system/legacy_pool.d.ts.map +1 -1
- package/build/system/platform.d.ts +0 -1
- package/build/system/platform.d.ts.map +1 -1
- package/build/system/pool.d.ts +0 -9
- package/build/system/pool.d.ts.map +1 -1
- package/build/system/save.d.ts +44 -1
- package/build/system/save.d.ts.map +1 -1
- package/build/system/timer.d.ts +0 -20
- package/build/system/timer.d.ts.map +1 -1
- package/build/tweens/tween.d.ts +0 -62
- package/build/tweens/tween.d.ts.map +1 -1
- package/build/utils/array-multimap.d.ts +1 -13
- package/build/utils/array-multimap.d.ts.map +1 -1
- package/build/utils/decode.d.ts.map +1 -1
- package/build/utils/fetchdata.d.ts +1 -31
- package/build/utils/fetchdata.d.ts.map +1 -1
- package/build/utils/utils.d.ts +0 -13
- package/build/utils/utils.d.ts.map +1 -1
- package/build/video/blendmodes.d.ts +1 -106
- package/build/video/blendmodes.d.ts.map +1 -1
- package/build/video/buffer/index.d.ts +1 -39
- package/build/video/buffer/index.d.ts.map +1 -1
- package/build/video/buffer/vertex.d.ts +1 -82
- package/build/video/buffer/vertex.d.ts.map +1 -1
- package/build/video/canvas/canvas_renderer.d.ts +2 -23
- package/build/video/canvas/canvas_renderer.d.ts.map +1 -1
- package/build/video/canvas_factory.d.ts +1 -24
- package/build/video/canvas_factory.d.ts.map +1 -1
- package/build/video/effects/blendEffect.d.ts +0 -54
- package/build/video/effects/blendEffect.d.ts.map +1 -1
- package/build/video/effects/colorMatrix.d.ts +0 -10
- package/build/video/effects/colorMatrix.d.ts.map +1 -1
- package/build/video/effects/glsl_realization.d.ts +1 -17
- package/build/video/effects/glsl_realization.d.ts.map +1 -1
- package/build/video/effects/mesh_splice.d.ts +2 -0
- package/build/video/effects/mesh_splice.d.ts.map +1 -0
- package/build/video/effects/radialGradient.d.ts +0 -1
- package/build/video/effects/radialGradient.d.ts.map +1 -1
- package/build/video/effects/shadereffect.d.ts +12 -241
- package/build/video/effects/shadereffect.d.ts.map +1 -1
- package/build/video/effects/wgsl/layout.d.ts +1 -27
- package/build/video/effects/wgsl/layout.d.ts.map +1 -1
- package/build/video/effects/wgsl/parse.d.ts +1 -8
- package/build/video/effects/wgsl/parse.d.ts.map +1 -1
- package/build/video/effects/wgsl/scaffold.d.ts +1 -42
- package/build/video/effects/wgsl/scaffold.d.ts.map +1 -1
- package/build/video/effects/wgsl_realization.d.ts +1 -82
- package/build/video/effects/wgsl_realization.d.ts.map +1 -1
- package/build/video/gpu/batcher.d.ts +1 -13
- package/build/video/gpu/batcher.d.ts.map +1 -1
- package/build/video/gpu/instancerecord.d.ts +1 -163
- package/build/video/gpu/instancerecord.d.ts.map +1 -1
- package/build/video/gpu/meshchunk.d.ts +1 -48
- package/build/video/gpu/meshchunk.d.ts.map +1 -1
- package/build/video/gpu/meshvertex.d.ts +1 -53
- package/build/video/gpu/meshvertex.d.ts.map +1 -1
- package/build/video/gpu/primitives.d.ts +1 -59
- package/build/video/gpu/primitives.d.ts.map +1 -1
- package/build/video/gpu/quadcorners.d.ts +1 -10
- package/build/video/gpu/quadcorners.d.ts.map +1 -1
- package/build/video/gpu/textureslots.d.ts +1 -121
- package/build/video/gpu/textureslots.d.ts.map +1 -1
- package/build/video/gpu/texturestore.d.ts +1 -138
- package/build/video/gpu/texturestore.d.ts.map +1 -1
- package/build/video/gpu/topology.d.ts.map +1 -1
- package/build/video/gpu/vertexformat.d.ts +0 -28
- package/build/video/gpu/vertexformat.d.ts.map +1 -1
- package/build/video/gradient.d.ts +15 -77
- package/build/video/gradient.d.ts.map +1 -1
- package/build/video/renderer.d.ts +21 -102
- package/build/video/renderer.d.ts.map +1 -1
- package/build/video/renderstate.d.ts +0 -51
- package/build/video/renderstate.d.ts.map +1 -1
- package/build/video/rendertarget/canvasrendertarget.d.ts +0 -10
- package/build/video/rendertarget/canvasrendertarget.d.ts.map +1 -1
- package/build/video/rendertarget/render_target_pool.d.ts +1 -82
- package/build/video/rendertarget/render_target_pool.d.ts.map +1 -1
- package/build/video/rendertarget/webglrendertarget.d.ts +1 -64
- package/build/video/rendertarget/webglrendertarget.d.ts.map +1 -1
- package/build/video/rendertarget/webgpurendertarget.d.ts +0 -8
- package/build/video/rendertarget/webgpurendertarget.d.ts.map +1 -1
- package/build/video/texture/atlas.d.ts +1 -75
- package/build/video/texture/atlas.d.ts.map +1 -1
- package/build/video/texture/cache.d.ts +0 -136
- package/build/video/texture/cache.d.ts.map +1 -1
- package/build/video/texture/frametexture.d.ts +1 -71
- package/build/video/texture/frametexture.d.ts.map +1 -1
- package/build/video/texture/noise_texture2d.d.ts +101 -77
- package/build/video/texture/noise_texture2d.d.ts.map +1 -1
- package/build/video/texture/parser/aseprite.d.ts +1 -8
- package/build/video/texture/parser/aseprite.d.ts.map +1 -1
- package/build/video/texture/parser/spritesheet.d.ts +1 -8
- package/build/video/texture/parser/spritesheet.d.ts.map +1 -1
- package/build/video/texture/parser/texturepacker.d.ts +1 -8
- package/build/video/texture/parser/texturepacker.d.ts.map +1 -1
- package/build/video/texture/resource.d.ts +0 -9
- package/build/video/texture/resource.d.ts.map +1 -1
- package/build/video/texture/texture2d.d.ts +0 -11
- package/build/video/texture/texture2d.d.ts.map +1 -1
- package/build/video/utils/autodetect.d.ts +1 -5
- package/build/video/utils/autodetect.d.ts.map +1 -1
- package/build/video/webgl/batchers/batcher.d.ts +0 -55
- package/build/video/webgl/batchers/batcher.d.ts.map +1 -1
- package/build/video/webgl/batchers/lit_mesh_batcher.d.ts +0 -14
- package/build/video/webgl/batchers/lit_mesh_batcher.d.ts.map +1 -1
- package/build/video/webgl/batchers/lit_quad_batcher.d.ts +0 -72
- package/build/video/webgl/batchers/lit_quad_batcher.d.ts.map +1 -1
- package/build/video/webgl/batchers/material_batcher.d.ts +0 -89
- package/build/video/webgl/batchers/material_batcher.d.ts.map +1 -1
- package/build/video/webgl/batchers/mesh_batcher.d.ts +14 -343
- package/build/video/webgl/batchers/mesh_batcher.d.ts.map +1 -1
- package/build/video/webgl/batchers/primitive_batcher.d.ts +0 -10
- package/build/video/webgl/batchers/primitive_batcher.d.ts.map +1 -1
- package/build/video/webgl/batchers/quad_batcher.d.ts +0 -30
- package/build/video/webgl/batchers/quad_batcher.d.ts.map +1 -1
- package/build/video/webgl/buffer/index.d.ts +1 -36
- package/build/video/webgl/buffer/index.d.ts.map +1 -1
- package/build/video/webgl/buffer/instance_buffer.d.ts +1 -53
- package/build/video/webgl/buffer/instance_buffer.d.ts.map +1 -1
- package/build/video/webgl/buffer/retained_geometry.d.ts +1 -81
- package/build/video/webgl/buffer/retained_geometry.d.ts.map +1 -1
- package/build/video/webgl/buffer/uniformblock.d.ts +1 -80
- package/build/video/webgl/buffer/uniformblock.d.ts.map +1 -1
- package/build/video/webgl/buffer/vertexstate.d.ts +1 -100
- package/build/video/webgl/buffer/vertexstate.d.ts.map +1 -1
- package/build/video/webgl/glshader.d.ts +7 -51
- package/build/video/webgl/glshader.d.ts.map +1 -1
- package/build/video/webgl/lighting/pack3d.d.ts +1 -47
- package/build/video/webgl/lighting/pack3d.d.ts.map +1 -1
- package/build/video/webgl/lighting/std140.d.ts +1 -109
- package/build/video/webgl/lighting/std140.d.ts.map +1 -1
- package/build/video/webgl/renderers/tmxlayer/orthogonal.d.ts +1 -103
- package/build/video/webgl/renderers/tmxlayer/orthogonal.d.ts.map +1 -1
- package/build/video/webgl/shaders/multitexture-lit.d.ts +1 -26
- package/build/video/webgl/shaders/multitexture-lit.d.ts.map +1 -1
- package/build/video/webgl/shaders/multitexture.d.ts +1 -9
- package/build/video/webgl/shaders/multitexture.d.ts.map +1 -1
- package/build/video/webgl/texture/store.d.ts +1 -50
- package/build/video/webgl/texture/store.d.ts.map +1 -1
- package/build/video/webgl/utils/attributes.d.ts +1 -11
- package/build/video/webgl/utils/attributes.d.ts.map +1 -1
- package/build/video/webgl/utils/maxtextures.d.ts +1 -36
- package/build/video/webgl/utils/maxtextures.d.ts.map +1 -1
- package/build/video/webgl/utils/precision.d.ts +1 -14
- package/build/video/webgl/utils/precision.d.ts.map +1 -1
- package/build/video/webgl/utils/program.d.ts +1 -5
- package/build/video/webgl/utils/program.d.ts.map +1 -1
- package/build/video/webgl/utils/samplercache.d.ts +1 -68
- package/build/video/webgl/utils/samplercache.d.ts.map +1 -1
- package/build/video/webgl/utils/string.d.ts +1 -21
- package/build/video/webgl/utils/string.d.ts.map +1 -1
- package/build/video/webgl/utils/topology.d.ts +1 -23
- package/build/video/webgl/utils/topology.d.ts.map +1 -1
- package/build/video/webgl/utils/uniforms.d.ts +1 -25
- package/build/video/webgl/utils/uniforms.d.ts.map +1 -1
- package/build/video/webgl/utils/vertexformat.d.ts +1 -26
- package/build/video/webgl/utils/vertexformat.d.ts.map +1 -1
- package/build/video/webgl/webgl_renderer.d.ts +22 -285
- package/build/video/webgl/webgl_renderer.d.ts.map +1 -1
- package/build/video/webgpu/batchers/lit_mesh_batcher.d.ts +0 -6
- package/build/video/webgpu/batchers/lit_mesh_batcher.d.ts.map +1 -1
- package/build/video/webgpu/batchers/lit_quad_batcher.d.ts +0 -8
- package/build/video/webgpu/batchers/lit_quad_batcher.d.ts.map +1 -1
- package/build/video/webgpu/batchers/mesh_batcher.d.ts +7 -231
- package/build/video/webgpu/batchers/mesh_batcher.d.ts.map +1 -1
- package/build/video/webgpu/batchers/primitive_batcher.d.ts.map +1 -1
- package/build/video/webgpu/batchers/quad_batcher.d.ts +0 -82
- package/build/video/webgpu/batchers/quad_batcher.d.ts.map +1 -1
- package/build/video/webgpu/buffer/arena.d.ts +1 -63
- package/build/video/webgpu/buffer/arena.d.ts.map +1 -1
- package/build/video/webgpu/buffer/instance_buffer.d.ts +1 -64
- package/build/video/webgpu/buffer/instance_buffer.d.ts.map +1 -1
- package/build/video/webgpu/buffer/retained_geometry.d.ts +1 -54
- package/build/video/webgpu/buffer/retained_geometry.d.ts.map +1 -1
- package/build/video/webgpu/buffer/uniformring.d.ts +1 -67
- package/build/video/webgpu/buffer/uniformring.d.ts.map +1 -1
- package/build/video/webgpu/effect_binding.d.ts +1 -16
- package/build/video/webgpu/effect_binding.d.ts.map +1 -1
- package/build/video/webgpu/pipeline/bindgroups.d.ts +1 -32
- package/build/video/webgpu/pipeline/bindgroups.d.ts.map +1 -1
- package/build/video/webgpu/pipeline/cache.d.ts +1 -163
- package/build/video/webgpu/pipeline/cache.d.ts.map +1 -1
- package/build/video/webgpu/renderers/tmxlayer/orthogonal.d.ts +1 -87
- package/build/video/webgpu/renderers/tmxlayer/orthogonal.d.ts.map +1 -1
- package/build/video/webgpu/shaders/mesh-instanced.d.ts +1 -43
- package/build/video/webgpu/shaders/mesh-instanced.d.ts.map +1 -1
- package/build/video/webgpu/texture/compressed.d.ts +1 -32
- package/build/video/webgpu/texture/compressed.d.ts.map +1 -1
- package/build/video/webgpu/texture/frametexture.d.ts +1 -62
- package/build/video/webgpu/texture/frametexture.d.ts.map +1 -1
- package/build/video/webgpu/texture/store.d.ts +1 -147
- package/build/video/webgpu/texture/store.d.ts.map +1 -1
- package/build/video/webgpu/webgpu_renderer.d.ts +1 -88
- package/build/video/webgpu/webgpu_renderer.d.ts.map +1 -1
- package/package.json +5 -4
- package/skills/melonjs/SKILL.md +1 -1
- package/skills/melonjs-3d/SKILL.md +453 -5
- package/skills/melonjs-3d-assets/SKILL.md +164 -6
- package/skills/melonjs-audio/SKILL.md +38 -0
- package/skills/melonjs-camera-and-drawing/SKILL.md +49 -0
- package/skills/melonjs-effects-and-shaders/SKILL.md +95 -2
- package/skills/melonjs-loading-assets/SKILL.md +127 -2
- package/skills/melonjs-performance/SKILL.md +60 -1
- package/skills/melonjs-physics/SKILL.md +78 -0
- package/skills/melonjs-renderables/SKILL.md +63 -1
- package/skills/melonjs-renderer-backends/SKILL.md +19 -0
- package/skills/melonjs-scenes-and-state/SKILL.md +56 -0
- package/skills/melonjs-tilemaps/SKILL.md +31 -11
- package/skills/melonjs-ui-and-text/SKILL.md +131 -117
|
@@ -1,31 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
* parse/preload an Audio file
|
|
3
|
-
*
|
|
4
|
-
* Unlike the other parsers this one delegates rather than doing the work
|
|
5
|
-
* itself: audio assets are owned by the audio module, which decodes them
|
|
6
|
-
* through its own backend and tracks them for playback. Keeping that
|
|
7
|
-
* delegation here means every asset type is registered the same way — from a
|
|
8
|
-
* parser of the same shape in this directory — and the loader never reaches
|
|
9
|
-
* into the audio module directly, so replacing the audio backend cannot ripple
|
|
10
|
-
* into the loader.
|
|
11
|
-
* @param {loader.Asset} data - asset data
|
|
12
|
-
* @param {Function} [onload] - function to be called when the resource is loaded
|
|
13
|
-
* @param {Function} [onerror] - function to be called in case of error
|
|
14
|
-
* @param {Object} [settings] - Additional settings to be passed when loading the asset
|
|
15
|
-
* @returns {number} the amount of corresponding resource parsed/preloaded
|
|
16
|
-
* @ignore
|
|
17
|
-
*/
|
|
18
|
-
export function preloadAudio(data: loader.Asset, onload?: Function, onerror?: Function, settings?: Object): number;
|
|
19
|
-
/**
|
|
20
|
-
* unload the given audio asset
|
|
21
|
-
* @param {string} name - asset name
|
|
22
|
-
* @returns {boolean} true if unloaded
|
|
23
|
-
* @ignore
|
|
24
|
-
*/
|
|
25
|
-
export function unloadAudio(name: string): boolean;
|
|
26
|
-
/**
|
|
27
|
-
* unload all audio assets
|
|
28
|
-
* @ignore
|
|
29
|
-
*/
|
|
30
|
-
export function unloadAllAudio(): void;
|
|
1
|
+
|
|
31
2
|
//# sourceMappingURL=audio.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"audio.d.ts","sourceRoot":"","sources":["../../../src/loader/parsers/audio.js"],"names":[],"mappings":"AAGA
|
|
1
|
+
{"version":3,"file":"audio.d.ts","sourceRoot":"","sources":["../../../src/loader/parsers/audio.js"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;;;;GAiBG;AACH,mCARW,MAAM,CAAC,KAAK,oDAGZ,MAAM,GACJ,MAAM,CAMlB;AAED;;;;;;GAMG;AACH,kCALW,MAAM,GACJ,OAAO,CAMnB;AAED;;;;GAIG;AACH,uCAEC"}
|
|
@@ -1,11 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
* parse/preload a Binary file
|
|
3
|
-
* @param {loader.Asset} data - asset data
|
|
4
|
-
* @param {Function} [onload] - function to be called when the asset is loaded
|
|
5
|
-
* @param {Function} [onerror] - function to be called in case of error
|
|
6
|
-
* @param {Object} [settings] - Additional settings to be passed when loading the asset
|
|
7
|
-
* @returns {number} the amount of corresponding resource parsed/preloaded
|
|
8
|
-
* @ignore
|
|
9
|
-
*/
|
|
10
|
-
export function preloadBinary(data: loader.Asset, onload?: Function, onerror?: Function, settings?: Object): number;
|
|
1
|
+
|
|
11
2
|
//# sourceMappingURL=binary.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"binary.d.ts","sourceRoot":"","sources":["../../../src/loader/parsers/binary.js"],"names":[],"mappings":"AAGA
|
|
1
|
+
{"version":3,"file":"binary.d.ts","sourceRoot":"","sources":["../../../src/loader/parsers/binary.js"],"names":[],"mappings":"AAGA;;;;;;;;;GASG;AACH,oCARW,MAAM,CAAC,KAAK,oDAGZ,MAAM,GACJ,MAAM,CAuBlB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compressed_image.d.ts","sourceRoot":"","sources":["../../../../src/loader/parsers/compressed_textures/compressed_image.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"compressed_image.d.ts","sourceRoot":"","sources":["../../../../src/loader/parsers/compressed_textures/compressed_image.js"],"names":[],"mappings":"AAwEA,yEAgDC;;;;;UA/Ga,UAAU;;;;WACV,MAAM;;;;YACN,MAAM;;;;;;;;;aAMN,sBAAsB,EAAE;;;;WACxB,MAAM;;;;YACN,MAAM;;;;YACN,MAAM;;;;gBACN,OAAO;;;;oBACP,OAAO"}
|
|
@@ -1,8 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
* Parse a DDS compressed texture file.
|
|
3
|
-
* @param {ArrayBuffer} data - the DDS file data
|
|
4
|
-
* @returns {CompressedImage} a compressed texture object with mipmaps, width, height, format
|
|
5
|
-
* @ignore
|
|
6
|
-
*/
|
|
7
|
-
export function parseDDS(data: ArrayBuffer): CompressedImage;
|
|
1
|
+
|
|
8
2
|
//# sourceMappingURL=parseDDS.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parseDDS.d.ts","sourceRoot":"","sources":["../../../../src/loader/parsers/compressed_textures/parseDDS.js"],"names":[],"mappings":"AAsCA
|
|
1
|
+
{"version":3,"file":"parseDDS.d.ts","sourceRoot":"","sources":["../../../../src/loader/parsers/compressed_textures/parseDDS.js"],"names":[],"mappings":"AAsCA;;;;;;GAMG;AACH,+BALW,WAAW,GACT,eAAe,CAqE3B"}
|
|
@@ -1,8 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
* Parse a KTX v1 compressed texture file.
|
|
3
|
-
* @param {ArrayBuffer} data - the KTX file data
|
|
4
|
-
* @returns {CompressedImage} a compressed texture object with mipmaps, width, height, format
|
|
5
|
-
* @ignore
|
|
6
|
-
*/
|
|
7
|
-
export function parseKTX(data: ArrayBuffer): CompressedImage;
|
|
1
|
+
|
|
8
2
|
//# sourceMappingURL=parseKTX.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parseKTX.d.ts","sourceRoot":"","sources":["../../../../src/loader/parsers/compressed_textures/parseKTX.js"],"names":[],"mappings":"AAYA
|
|
1
|
+
{"version":3,"file":"parseKTX.d.ts","sourceRoot":"","sources":["../../../../src/loader/parsers/compressed_textures/parseKTX.js"],"names":[],"mappings":"AAYA;;;;;;GAMG;AACH,+BALW,WAAW,GACT,eAAe,CAgF3B"}
|
|
@@ -1,8 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
* Parse a KTX v2 compressed texture file.
|
|
3
|
-
* @param {ArrayBuffer} data - the KTX2 file data
|
|
4
|
-
* @returns {CompressedImage} a compressed texture object with mipmaps, width, height, format
|
|
5
|
-
* @ignore
|
|
6
|
-
*/
|
|
7
|
-
export function parseKTX2(data: ArrayBuffer): CompressedImage;
|
|
1
|
+
|
|
8
2
|
//# sourceMappingURL=parseKTX2.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parseKTX2.d.ts","sourceRoot":"","sources":["../../../../src/loader/parsers/compressed_textures/parseKTX2.js"],"names":[],"mappings":"AAsEA
|
|
1
|
+
{"version":3,"file":"parseKTX2.d.ts","sourceRoot":"","sources":["../../../../src/loader/parsers/compressed_textures/parseKTX2.js"],"names":[],"mappings":"AAsEA;;;;;;GAMG;AACH,gCALW,WAAW,GACT,eAAe,CA2E3B"}
|
|
@@ -1,8 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
* Parse a PKM compressed texture file.
|
|
3
|
-
* @param {ArrayBuffer} data - the raw PKM file data
|
|
4
|
-
* @returns {CompressedImage} a compressed texture object
|
|
5
|
-
* @ignore
|
|
6
|
-
*/
|
|
7
|
-
export function parsePKM(data: ArrayBuffer): CompressedImage;
|
|
1
|
+
|
|
8
2
|
//# sourceMappingURL=parsePKM.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parsePKM.d.ts","sourceRoot":"","sources":["../../../../src/loader/parsers/compressed_textures/parsePKM.js"],"names":[],"mappings":"AA0CA
|
|
1
|
+
{"version":3,"file":"parsePKM.d.ts","sourceRoot":"","sources":["../../../../src/loader/parsers/compressed_textures/parsePKM.js"],"names":[],"mappings":"AA0CA;;;;;;GAMG;AACH,+BALW,WAAW,GACT,eAAe,CAkD3B"}
|
|
@@ -1,8 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
* parse a PVR v3 compressed texture file
|
|
3
|
-
* @param {ArrayBuffer} data - the PVR file data
|
|
4
|
-
* @returns {CompressedImage} a compressed texture object with mipmaps, width, height, format
|
|
5
|
-
* @ignore
|
|
6
|
-
*/
|
|
7
|
-
export function parsePVR(data: ArrayBuffer): CompressedImage;
|
|
1
|
+
|
|
8
2
|
//# sourceMappingURL=parsePVR.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parsePVR.d.ts","sourceRoot":"","sources":["../../../../src/loader/parsers/compressed_textures/parsePVR.js"],"names":[],"mappings":"AAmEA
|
|
1
|
+
{"version":3,"file":"parsePVR.d.ts","sourceRoot":"","sources":["../../../../src/loader/parsers/compressed_textures/parsePVR.js"],"names":[],"mappings":"AAmEA;;;;;;GAMG;AACH,+BALW,WAAW,GACT,eAAe,CAsD3B"}
|
|
@@ -1,14 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
* parse/preload a font face
|
|
3
|
-
* @param {loader.Asset} data - asset data
|
|
4
|
-
* @param {Function} [onload] - function to be called when the asset is loaded
|
|
5
|
-
* @param {Function} [onerror] - function to be called in case of error
|
|
6
|
-
* @returns {number} the amount of corresponding resource parsed/preloaded
|
|
7
|
-
* @ignore
|
|
8
|
-
* @example
|
|
9
|
-
* preloadFontFace([
|
|
10
|
-
* { name: "'kenpixel'", type: "fontface", src: "data/font/kenvector_future.woff2" }
|
|
11
|
-
* ]);
|
|
12
|
-
*/
|
|
13
|
-
export function preloadFontFace(data: loader.Asset, onload?: Function, onerror?: Function): number;
|
|
1
|
+
|
|
14
2
|
//# sourceMappingURL=fontface.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fontface.d.ts","sourceRoot":"","sources":["../../../src/loader/parsers/fontface.js"],"names":[],"mappings":"AAEA
|
|
1
|
+
{"version":3,"file":"fontface.d.ts","sourceRoot":"","sources":["../../../src/loader/parsers/fontface.js"],"names":[],"mappings":"AAEA;;;;;;;;;;;;GAYG;AACH,sCAXW,MAAM,CAAC,KAAK,0CAGV,MAAM,CAgElB"}
|
|
@@ -1,71 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
* Split a GLB binary container into its JSON description and binary buffer.
|
|
3
|
-
* @param {ArrayBuffer} arrayBuffer
|
|
4
|
-
* @returns {{ json: object, bin: Uint8Array | null }}
|
|
5
|
-
* @ignore
|
|
6
|
-
*/
|
|
7
|
-
export function parseGLB(arrayBuffer: ArrayBuffer): {
|
|
8
|
-
json: object;
|
|
9
|
-
bin: Uint8Array | null;
|
|
10
|
-
};
|
|
11
|
-
/**
|
|
12
|
-
* Read an accessor into a flat TypedArray (stride-aware, non-interleaved
|
|
13
|
-
* fast-path covered as a subset).
|
|
14
|
-
* @ignore
|
|
15
|
-
*/
|
|
16
|
-
export function readAccessor(json: any, buffers: any, accessorIndex: any): any;
|
|
17
|
-
/**
|
|
18
|
-
* Compose a column-major 4x4 local matrix from translation / rotation
|
|
19
|
-
* (quaternion) / scale arrays — the glTF TRS convention — writing into `out`.
|
|
20
|
-
* In-place so the per-frame animation pose path allocates nothing.
|
|
21
|
-
* @param {number[]} out - 16-element destination (returned)
|
|
22
|
-
* @param {number[]} translation - [tx, ty, tz]
|
|
23
|
-
* @param {number[]} rotation - quaternion [qx, qy, qz, qw]
|
|
24
|
-
* @param {number[]} scale - [sx, sy, sz]
|
|
25
|
-
* @returns {number[]} `out`
|
|
26
|
-
* @ignore
|
|
27
|
-
*/
|
|
28
|
-
export function composeTRSInto(out: number[], translation: number[], rotation: number[], scale: number[]): number[];
|
|
29
|
-
/**
|
|
30
|
-
* Allocating form of {@link composeTRSInto} — returns a fresh 16-element array.
|
|
31
|
-
* @param {number[]} translation - [tx, ty, tz]
|
|
32
|
-
* @param {number[]} rotation - quaternion [qx, qy, qz, qw]
|
|
33
|
-
* @param {number[]} scale - [sx, sy, sz]
|
|
34
|
-
* @returns {number[]} 16-element column-major matrix
|
|
35
|
-
* @ignore
|
|
36
|
-
*/
|
|
37
|
-
export function composeTRS(translation: number[], rotation: number[], scale: number[]): number[];
|
|
38
|
-
/** Compose a node's local matrix from its `matrix` or TRS fields. @ignore */
|
|
39
|
-
export function nodeLocalMatrix(node: any): any;
|
|
40
|
-
/**
|
|
41
|
-
* Column-major 4x4 multiply `a * b`, writing into `out`. `out` must NOT alias
|
|
42
|
-
* `a` or `b` (results are written as they're computed). In-place so the
|
|
43
|
-
* per-frame pose path allocates nothing.
|
|
44
|
-
* @ignore
|
|
45
|
-
*/
|
|
46
|
-
export function multiplyMatrixInto(out: any, a: any, b: any): any;
|
|
47
|
-
/** Allocating form of {@link multiplyMatrixInto}: `a * b` → fresh array. @ignore */
|
|
48
|
-
export function multiplyMatrix(a: any, b: any): any;
|
|
49
|
-
/**
|
|
50
|
-
* Parse a glTF/GLB ArrayBuffer into a flat, instantiable scene descriptor.
|
|
51
|
-
* @param {ArrayBuffer} arrayBuffer - the .glb / .gltf bytes
|
|
52
|
-
* @param {string} [baseURI] - the asset's own URL, used to resolve external
|
|
53
|
-
* `.bin` buffers and image files referenced by relative `uri`. Omit for a fully
|
|
54
|
-
* self-contained GLB (embedded buffers + data-URI / bufferView images).
|
|
55
|
-
* @param {object} [settings] - loader settings forwarded to `fetchData` for
|
|
56
|
-
* external resources (crossOrigin / withCredentials / nocache).
|
|
57
|
-
* @returns {Promise<object>} `{ nodes, cameras, lights, bounds, graph, animations }`
|
|
58
|
-
* @ignore
|
|
59
|
-
*/
|
|
60
|
-
export function parseGLTF(arrayBuffer: ArrayBuffer, baseURI?: string, settings?: object): Promise<object>;
|
|
61
|
-
/**
|
|
62
|
-
* parse/preload a glTF/GLB file
|
|
63
|
-
* @param {loader.Asset} data - asset data
|
|
64
|
-
* @param {Function} [onload] - function to be called when the resource is loaded
|
|
65
|
-
* @param {Function} [onerror] - function to be called in case of error
|
|
66
|
-
* @param {Object} [settings] - Additional settings to be passed when loading the asset
|
|
67
|
-
* @returns {number} the amount of corresponding resource parsed/preloaded
|
|
68
|
-
* @ignore
|
|
69
|
-
*/
|
|
70
|
-
export function preloadGLTF(data: loader.Asset, onload?: Function, onerror?: Function, settings?: Object): number;
|
|
1
|
+
|
|
71
2
|
//# sourceMappingURL=gltf.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gltf.d.ts","sourceRoot":"","sources":["../../../src/loader/parsers/gltf.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"gltf.d.ts","sourceRoot":"","sources":["../../../src/loader/parsers/gltf.js"],"names":[],"mappings":"AA2CA;;;;;;GAMG;AACH,sCALW,WAAW,GACT;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,UAAU,GAAG,IAAI,CAAA;CAAE,CAmCpD;AAsED;;;;;GAKG;AACH,+EAgCC;AA8KD;;;;;;;;;;;GAWG;AACH,oCARW,MAAM,EAAE,eACR,MAAM,EAAE,YACR,MAAM,EAAE,SACR,MAAM,EAAE,GACN,MAAM,EAAE,CAqCpB;AAED;;;;;;;;GAQG;AACH,wCAPW,MAAM,EAAE,YACR,MAAM,EAAE,SACR,MAAM,EAAE,GACN,MAAM,EAAE,CAMpB;AAED;;;;GAIG;AACH,gDASC;AAsED;;;;;;GAMG;AACH,kEAWC;AAED;;;;GAIG;AACH,oDAEC;AAmID;;;;;;;;;;;GAWG;AACH,uCAVW,WAAW,YACX,MAAM,aAGN,MAAM,GAEJ,OAAO,CAAC,MAAM,CAAC,CAsa3B;AAED;;;;;;;;;GASG;AACH,kCARW,MAAM,CAAC,KAAK,oDAGZ,MAAM,GACJ,MAAM,CA8BlB"}
|
|
@@ -1,23 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
* parse/preload an image
|
|
3
|
-
* @param {loader.Asset} img
|
|
4
|
-
* @param {Function} [onload] - function to be called when the resource is loaded
|
|
5
|
-
* @param {Function} [onerror] - function to be called in case of error
|
|
6
|
-
* @param {Object} [settings] - Additional settings to be passed when loading the asset
|
|
7
|
-
* @returns {number} the amount of corresponding resource parsed/preloaded
|
|
8
|
-
* @ignore
|
|
9
|
-
* @example
|
|
10
|
-
* preloadImages([
|
|
11
|
-
* { name : 'image1', src : 'images/image1.png'},
|
|
12
|
-
* { name : 'image2', src : 'images/image2.png'},
|
|
13
|
-
* { name : 'image3', src : 'images/image3.png'},
|
|
14
|
-
* // compressed texture with fallback chain
|
|
15
|
-
* { name : 'image4', src : [
|
|
16
|
-
* 'images/image4.astc.ktx', // try ASTC first
|
|
17
|
-
* 'images/image4.dds', // then S3TC via DDS
|
|
18
|
-
* 'images/image4.png' // fallback to PNG
|
|
19
|
-
* ]}
|
|
20
|
-
* ]);
|
|
21
|
-
*/
|
|
22
|
-
export function preloadImage(img: loader.Asset, onload?: Function, onerror?: Function, settings?: Object): number;
|
|
1
|
+
|
|
23
2
|
//# sourceMappingURL=image.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"image.d.ts","sourceRoot":"","sources":["../../../src/loader/parsers/image.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"image.d.ts","sourceRoot":"","sources":["../../../src/loader/parsers/image.js"],"names":[],"mappings":"AAwDA;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,kCApBW,MAAM,CAAC,KAAK,oDAGZ,MAAM,GACJ,MAAM,CA6ClB"}
|
|
@@ -1,11 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
* parse/preload a JSON files
|
|
3
|
-
* @param {loader.Asset} data - asset data
|
|
4
|
-
* @param {Function} [onload] - function to be called when the resource is loaded
|
|
5
|
-
* @param {Function} [onerror] - function to be called in case of error
|
|
6
|
-
* @param {Object} [settings] - Additional settings to be passed when loading the asset
|
|
7
|
-
* @returns {number} the amount of corresponding resource parsed/preloaded
|
|
8
|
-
* @ignore
|
|
9
|
-
*/
|
|
10
|
-
export function preloadJSON(data: loader.Asset, onload?: Function, onerror?: Function, settings?: Object): number;
|
|
1
|
+
|
|
11
2
|
//# sourceMappingURL=json.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"json.d.ts","sourceRoot":"","sources":["../../../src/loader/parsers/json.js"],"names":[],"mappings":"AAGA
|
|
1
|
+
{"version":3,"file":"json.d.ts","sourceRoot":"","sources":["../../../src/loader/parsers/json.js"],"names":[],"mappings":"AAGA;;;;;;;;;GASG;AACH,kCARW,MAAM,CAAC,KAAK,oDAGZ,MAAM,GACJ,MAAM,CAyBlB"}
|
|
@@ -1,29 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
* Parse a Wavefront MTL file into material data.
|
|
3
|
-
* Supports: `newmtl`, `Kd` (diffuse color), `Ke` (emissive color), `Ks`/`Ns`
|
|
4
|
-
* (specular color and exponent), `Pr`/`Pm` (the PBR roughness/metalness
|
|
5
|
-
* extension, approximated onto the specular terms when `Ks`/`Ns` are absent),
|
|
6
|
-
* `map_Kd` (diffuse texture), `map_d` (alpha map), `d`/`Tr`
|
|
7
|
-
* (opacity/transparency).
|
|
8
|
-
*
|
|
9
|
-
* Limitations:
|
|
10
|
-
* - Ambient (`Ka`), optical density (`Ni`) and illumination model (`illum`) are parsed but ignored
|
|
11
|
-
* - Normal maps (`map_bump`, `bump`), specular maps (`map_Ks`), and other texture maps are not supported
|
|
12
|
-
*
|
|
13
|
-
* @param {string} text - raw MTL file contents
|
|
14
|
-
* @param {string} basePath - base URL path for resolving texture references
|
|
15
|
-
* @returns {object} map of material names to their properties
|
|
16
|
-
* @ignore
|
|
17
|
-
*/
|
|
18
|
-
export function parseMTL(text: string, basePath: string): object;
|
|
19
|
-
/**
|
|
20
|
-
* Parse/preload a Wavefront MTL material file.
|
|
21
|
-
* @param {loader.Asset} data - asset data
|
|
22
|
-
* @param {Function} [onload] - function to be called when the resource is loaded
|
|
23
|
-
* @param {Function} [onerror] - function to be called in case of error
|
|
24
|
-
* @param {Object} [settings] - Additional settings to be passed when loading the asset
|
|
25
|
-
* @returns {number} the amount of corresponding resource parsed/preloaded
|
|
26
|
-
* @ignore
|
|
27
|
-
*/
|
|
28
|
-
export function preloadMTL(data: loader.Asset, onload?: Function, onerror?: Function, settings?: Object): number;
|
|
1
|
+
|
|
29
2
|
//# sourceMappingURL=mtl.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mtl.d.ts","sourceRoot":"","sources":["../../../src/loader/parsers/mtl.js"],"names":[],"mappings":"AAqCA
|
|
1
|
+
{"version":3,"file":"mtl.d.ts","sourceRoot":"","sources":["../../../src/loader/parsers/mtl.js"],"names":[],"mappings":"AAqCA;;;;;;;;;;;;;;;;;GAiBG;AACH,+BANW,MAAM,YACN,MAAM,GACJ,MAAM,CAmJlB;AAED;;;;;;;;;GASG;AACH,iCARW,MAAM,CAAC,KAAK,oDAGZ,MAAM,GACJ,MAAM,CAyElB"}
|
|
@@ -1,60 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
* Parse a Wavefront OBJ file into geometry data.
|
|
3
|
-
* Supports: `v` (vertex positions), `vt` (texture coordinates),
|
|
4
|
-
* `f` (faces in `v`, `v/vt`, `v/vt/vn`, or `v//vn` format),
|
|
5
|
-
* `mtllib` (material library reference),
|
|
6
|
-
* `usemtl` (material group boundaries — emitted as `groups[]`).
|
|
7
|
-
*
|
|
8
|
-
* Features:
|
|
9
|
-
* - Quad and n-gon triangulation (fan from first vertex)
|
|
10
|
-
* - Automatic CW → CCW winding correction via signed volume test
|
|
11
|
-
* - V texture coordinate flipped for OpenGL convention (OBJ has origin at bottom-left)
|
|
12
|
-
* - Single-pass parsing with direct vertex unification (no intermediate arrays)
|
|
13
|
-
* - Material grouping: each `usemtl` switch emits a new `groups[]` entry
|
|
14
|
-
* pointing to a slice of the unified `indices` buffer, so callers
|
|
15
|
-
* (e.g. `Mesh`) can render each group with its own material without
|
|
16
|
-
* touching the geometry. A model with no `usemtl` directives produces
|
|
17
|
-
* a single group with `materialName: null`.
|
|
18
|
-
*
|
|
19
|
-
* `vn` (vertex normals) are consumed: a face referencing them
|
|
20
|
-
* (`v//vn` or `v/vt/vn`) produces unified vertices carrying the authored
|
|
21
|
-
* normal, so an OBJ model lights under `Light3d` exactly as the same model
|
|
22
|
-
* imported from glTF does. Every vertex WITHOUT a usable authored normal
|
|
23
|
-
* gets one GENERATED from face geometry — angle-weighted, accumulated per
|
|
24
|
-
* source position and normalized, i.e. smooth across UV and material seams
|
|
25
|
-
* — after the winding correction below, so the result follows the final
|
|
26
|
-
* triangle orientation rather than the authored one. That rule is
|
|
27
|
-
* per-vertex, so a file mixing normalled and un-normalled faces, or one
|
|
28
|
-
* carrying an out-of-range `vn`, still comes out fully normalled.
|
|
29
|
-
*
|
|
30
|
-
* Parsed but ignored: `g` (groups), `s` (smooth shading — generated normals
|
|
31
|
-
* are smooth across the whole mesh, so a model relying on hard edges from
|
|
32
|
-
* smoothing groups will read softer than authored),
|
|
33
|
-
* `o` (object name).
|
|
34
|
-
*
|
|
35
|
-
* @param {string} text - raw OBJ file contents
|
|
36
|
-
* @returns {object} parsed geometry with `vertices` (Float32Array),
|
|
37
|
-
* `uvs` (Float32Array), `normals` (Float32Array), `indices`
|
|
38
|
-
* (Uint16Array, widening to Uint32Array past 65 536 vertices),
|
|
39
|
-
* `vertexCount` (number),
|
|
40
|
-
* `mtllib` (string|null), and `groups`
|
|
41
|
-
* (Array<{materialName: string|null, start: number, count: number}>).
|
|
42
|
-
* `groups` follows the glTF convention — each entry is a
|
|
43
|
-
* contiguous slice of the shared `indices` buffer that draws as one
|
|
44
|
-
* submesh against a single material. Single-material models still
|
|
45
|
-
* produce a `groups` array of length 1, so consumers don't need a
|
|
46
|
-
* special case.
|
|
47
|
-
* @ignore
|
|
48
|
-
*/
|
|
49
|
-
export function parseOBJ(text: string): object;
|
|
50
|
-
/**
|
|
51
|
-
* parse/preload a Wavefront OBJ file
|
|
52
|
-
* @param {loader.Asset} data - asset data
|
|
53
|
-
* @param {Function} [onload] - function to be called when the resource is loaded
|
|
54
|
-
* @param {Function} [onerror] - function to be called in case of error
|
|
55
|
-
* @param {Object} [settings] - Additional settings to be passed when loading the asset
|
|
56
|
-
* @returns {number} the amount of corresponding resource parsed/preloaded
|
|
57
|
-
* @ignore
|
|
58
|
-
*/
|
|
59
|
-
export function preloadOBJ(data: loader.Asset, onload?: Function, onerror?: Function, settings?: Object): number;
|
|
1
|
+
|
|
60
2
|
//# sourceMappingURL=obj.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"obj.d.ts","sourceRoot":"","sources":["../../../src/loader/parsers/obj.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"obj.d.ts","sourceRoot":"","sources":["../../../src/loader/parsers/obj.js"],"names":[],"mappings":"AAuEA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgDG;AACH,+BAfW,MAAM,GACJ,MAAM,CAqZlB;AAED;;;;;;;;;GASG;AACH,iCARW,MAAM,CAAC,KAAK,oDAGZ,MAAM,GACJ,MAAM,CAwBlB"}
|
|
@@ -1,63 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
* Mapping authored metallic/roughness onto the lit mesh path's Blinn-Phong
|
|
3
|
-
* terms (#1575).
|
|
4
|
-
*
|
|
5
|
-
* Two formats describe the same material concept — glTF's
|
|
6
|
-
* `pbrMetallicRoughness` and MTL's `Pr` / `Pm` extension, both of which
|
|
7
|
-
* Blender writes by default — and both land here so the two cannot drift
|
|
8
|
-
* apart. What they land ON is a stylized half-Lambert shading model, not a
|
|
9
|
-
* microfacet BRDF, so this is deliberately an APPROXIMATION: the point is to
|
|
10
|
-
* recover the "is this surface glossy, and what colour does it glint"
|
|
11
|
-
* information the asset already carries, rather than to be energy-correct.
|
|
12
|
-
*
|
|
13
|
-
* An explicitly authored specular (`Ks` + `Ns`) always wins over this — it
|
|
14
|
-
* says exactly what the artist wanted, where metallic/roughness only implies
|
|
15
|
-
* it.
|
|
16
|
-
* @ignore
|
|
17
|
-
*/
|
|
18
|
-
/**
|
|
19
|
-
* The exponent a mirror-smooth surface is clamped to. The Blinn-Phong
|
|
20
|
-
* exponent runs away as roughness approaches 0, and a highlight narrower
|
|
21
|
-
* than a pixel only aliases.
|
|
22
|
-
* @ignore
|
|
23
|
-
*/
|
|
24
|
-
export declare const MAX_SHININESS = 256;
|
|
25
|
-
/**
|
|
26
|
-
* The specular reflectance of a non-metal, the standard value used by every
|
|
27
|
-
* metallic/roughness workflow. Metals reflect their own base colour instead.
|
|
28
|
-
* @ignore
|
|
29
|
-
*/
|
|
30
|
-
export declare const DIELECTRIC_F0 = 0.04;
|
|
31
|
-
/**
|
|
32
|
-
* The result of the mapping: a specular colour and exponent ready to hand to
|
|
33
|
-
* a {@link Mesh}, or `undefined` / `0` when the material implies no
|
|
34
|
-
* highlight at all.
|
|
35
|
-
* @ignore
|
|
36
|
-
*/
|
|
37
|
-
export interface SpecularTerms {
|
|
38
|
-
/** specular colour `[r, g, b]`, or `undefined` for none */
|
|
39
|
-
specular: number[] | undefined;
|
|
40
|
-
/** specular exponent; `0` disables the term outright */
|
|
41
|
-
shininess: number;
|
|
42
|
-
}
|
|
43
|
-
/**
|
|
44
|
-
* Map a metallic/roughness pair onto a Blinn-Phong specular colour and
|
|
45
|
-
* exponent.
|
|
46
|
-
*
|
|
47
|
-
* - **roughness → exponent** through the usual Blinn-Phong/GGX bridge,
|
|
48
|
-
* `2 / a^4 - 2` for `a = roughness^2`. A roughness of 1 — which is the
|
|
49
|
-
* glTF default, and what a matte material declares — lands on exactly 0,
|
|
50
|
-
* so a material that says nothing gets no highlight and shades exactly as
|
|
51
|
-
* it did before this existed.
|
|
52
|
-
* - **metallic → tint**, interpolating from the dielectric reflectance to
|
|
53
|
-
* the material's own base colour. Chrome glints in its own hue while
|
|
54
|
-
* plaster gets a faint neutral sheen, which is the visible half of the
|
|
55
|
-
* metal/non-metal distinction.
|
|
56
|
-
* @param roughness - authored roughness (0..1); absent or malformed reads as 1
|
|
57
|
-
* @param metallic - authored metalness (0..1); absent or malformed reads as 1
|
|
58
|
-
* @param baseColor - the material's base colour, `[r, g, b, a?]`
|
|
59
|
-
* @returns the specular terms, inert when the material implies no highlight
|
|
60
|
-
* @ignore
|
|
61
|
-
*/
|
|
62
|
-
export declare function specularFromMetallicRoughness(roughness: unknown, metallic: unknown, baseColor?: number[]): SpecularTerms;
|
|
1
|
+
|
|
63
2
|
//# sourceMappingURL=pbr.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pbr.d.ts","sourceRoot":"","sources":["../../../src/loader/parsers/pbr.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"pbr.d.ts","sourceRoot":"","sources":["../../../src/loader/parsers/pbr.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG"}
|
|
@@ -1,11 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
* parse/preload a Javascript files
|
|
3
|
-
* @param {loader.Asset} data - asset data
|
|
4
|
-
* @param {Function} [onload] - function to be called when the resource is loaded
|
|
5
|
-
* @param {Function} [onerror] - function to be called in case of error
|
|
6
|
-
* @param {Object} [settings] - Additional settings to be passed when loading the asset
|
|
7
|
-
* @returns {number} the amount of corresponding resource parsed/preloaded
|
|
8
|
-
* @ignore
|
|
9
|
-
*/
|
|
10
|
-
export function preloadJavascript(data: loader.Asset, onload?: Function, onerror?: Function, settings?: Object): number;
|
|
1
|
+
|
|
11
2
|
//# sourceMappingURL=script.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"script.d.ts","sourceRoot":"","sources":["../../../src/loader/parsers/script.js"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"script.d.ts","sourceRoot":"","sources":["../../../src/loader/parsers/script.js"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,wCARW,MAAM,CAAC,KAAK,oDAGZ,MAAM,GACJ,MAAM,CA+BlB"}
|
|
@@ -1,55 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
* compile a shader asset's source into its shared, loader-owned instance:
|
|
3
|
-
* a fragment body (the `apply()` convention) compiles into a
|
|
4
|
-
* {@link ShaderEffect}; a complete program — a `{vertex, fragment}` GLSL
|
|
5
|
-
* pair and/or a `wgsl` full module, either omittable — compiles into a
|
|
6
|
-
* {@link GLShader} carrying whichever realizations were declared, for the
|
|
7
|
-
* hosted paths that take one (a `Mesh` custom shader,
|
|
8
|
-
* `renderer.customShader`, a custom batcher). The active renderer hosts
|
|
9
|
-
* the realization it speaks; a shader without one for this backend is
|
|
10
|
-
* inert — assigning it degrades to built-in shading, never fails.
|
|
11
|
-
* @param {string|object} source - the fragment body (or `{glsl, wgsl}`
|
|
12
|
-
* bodies), or a complete program: `{vertex, fragment, wgsl?, precision?}`
|
|
13
|
-
* @returns {ShaderEffect|GLShader} the compiled asset, flagged `shared`
|
|
14
|
-
* @throws if called before any `app.init()` resolved (no renderer to compile against)
|
|
15
|
-
* @ignore
|
|
16
|
-
*/
|
|
17
|
-
export function compileShaderAsset(source: string | object): ShaderEffect | GLShader;
|
|
18
|
-
/**
|
|
19
|
-
* parse/preload a shader asset, from a `src` URL (or data: URI) or inline
|
|
20
|
-
* source via the `data` field. Three source shapes are accepted:
|
|
21
|
-
*
|
|
22
|
-
* - a GLSL **fragment body** following the ShaderEffect convention (uniform
|
|
23
|
-
* declarations + `vec4 apply(vec4, vec2)`) → compiles into a shared
|
|
24
|
-
* {@link ShaderEffect};
|
|
25
|
-
* - a **dual-language body** — `src: {glsl: url, wgsl: url}` or
|
|
26
|
-
* `data: {glsl: source, wgsl: source}`, either language omittable — →
|
|
27
|
-
* a shared {@link ShaderEffect} carrying one body per shading language;
|
|
28
|
-
* the renderer compiles the matching one, and when none matches the
|
|
29
|
-
* preload still succeeds with an inert (`enabled === false`) effect;
|
|
30
|
-
* - a complete **program** — `src: {vertex: url, fragment: url}` (GLSL
|
|
31
|
-
* pair), `src: {wgsl: url}` where the WGSL declares its own `@vertex`
|
|
32
|
-
* entry point (a complete module), or both together for a dual-backend
|
|
33
|
-
* asset — → compiles into a shared raw {@link GLShader} carrying the
|
|
34
|
-
* declared realizations (`isWebGL` / `isWebGPU`), for the hosted paths
|
|
35
|
-
* that take one (a `Mesh` custom shader, `renderer.customShader`, a
|
|
36
|
-
* custom batcher); the active renderer hosts the realization it speaks
|
|
37
|
-
* and a missing one degrades to built-in shading.
|
|
38
|
-
*
|
|
39
|
-
* Always compiled AT LOAD TIME, so the GLSL compile cost lands in the
|
|
40
|
-
* loading screen and compile errors carry the asset name. An initialized
|
|
41
|
-
* Application (`await app.init()`) is an inherent precondition of the
|
|
42
|
-
* preload flow (the loading screen itself needs the renderer, and a failed
|
|
43
|
-
* init rejects and halts) — loading a shader without it fails with a clear
|
|
44
|
-
* error.
|
|
45
|
-
* @param {loader.Asset} data - asset data
|
|
46
|
-
* @param {Function} [onload] - function to be called when the resource is loaded
|
|
47
|
-
* @param {Function} [onerror] - function to be called in case of error
|
|
48
|
-
* @param {Object} [settings] - Additional settings to be passed when loading the asset
|
|
49
|
-
* @returns {number} the amount of corresponding resource parsed/preloaded
|
|
50
|
-
* @ignore
|
|
51
|
-
*/
|
|
52
|
-
export function preloadShader(data: loader.Asset, onload?: Function, onerror?: Function, settings?: Object): number;
|
|
1
|
+
|
|
53
2
|
import ShaderEffect from "../../video/effects/shadereffect.js";
|
|
54
3
|
import GLShader from "../../video/webgl/glshader.js";
|
|
55
4
|
//# sourceMappingURL=shader.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shader.d.ts","sourceRoot":"","sources":["../../../src/loader/parsers/shader.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"shader.d.ts","sourceRoot":"","sources":["../../../src/loader/parsers/shader.js"],"names":[],"mappings":"AAiCA;;;;;;;;;;;;;;;;GAgBG;AACH,2CAPW,MAAM,GAAC,MAAM,GAEX,YAAY,GAAC,QAAQ,CAsDjC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,oCARW,MAAM,CAAC,KAAK,oDAGZ,MAAM,GACJ,MAAM,CAiHlB;yBAnPwB,qCAAqC;qBACzC,+BAA+B"}
|
|
@@ -1,11 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
* parse/preload a TMX file
|
|
3
|
-
* @param {loader.Asset} data - asset data
|
|
4
|
-
* @param {Function} [onload] - function to be called when the asset is loaded
|
|
5
|
-
* @param {Function} [onerror] - function to be called in case of error
|
|
6
|
-
* @param {Object} [settings] - Additional settings to be passed when loading the asset
|
|
7
|
-
* @returns {number} the amount of corresponding resource parsed/preloaded
|
|
8
|
-
* @ignore
|
|
9
|
-
*/
|
|
10
|
-
export function preloadTMX(tmxData: any, onload?: Function, onerror?: Function, settings?: Object): number;
|
|
1
|
+
|
|
11
2
|
//# sourceMappingURL=tmx.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tmx.d.ts","sourceRoot":"","sources":["../../../src/loader/parsers/tmx.js"],"names":[],"mappings":"AAMA
|
|
1
|
+
{"version":3,"file":"tmx.d.ts","sourceRoot":"","sources":["../../../src/loader/parsers/tmx.js"],"names":[],"mappings":"AAMA;;;;;;;;;GASG;AACH,2FALW,MAAM,GACJ,MAAM,CAoFlB"}
|
|
@@ -1,11 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
* parse/preload a Video file
|
|
3
|
-
* @param {loader.Asset} data - asset data
|
|
4
|
-
* @param {Function} [onload] - function to be called when the resource is loaded
|
|
5
|
-
* @param {Function} [onerror] - function to be called in case of error
|
|
6
|
-
* @param {Object} [settings] - Additional settings to be passed when loading the asset
|
|
7
|
-
* @returns {number} the amount of corresponding resource parsed/preloaded
|
|
8
|
-
* @ignore
|
|
9
|
-
*/
|
|
10
|
-
export function preloadVideo(data: loader.Asset, onload?: Function, onerror?: Function, settings?: Object): number;
|
|
1
|
+
|
|
11
2
|
//# sourceMappingURL=video.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"video.d.ts","sourceRoot":"","sources":["../../../src/loader/parsers/video.js"],"names":[],"mappings":"AAMA
|
|
1
|
+
{"version":3,"file":"video.d.ts","sourceRoot":"","sources":["../../../src/loader/parsers/video.js"],"names":[],"mappings":"AAMA;;;;;;;;;GASG;AACH,mCARW,MAAM,CAAC,KAAK,oDAGZ,MAAM,GACJ,MAAM,CAmGlB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"color.d.ts","sourceRoot":"","sources":["../../src/math/color.ts"],"names":[],"mappings":"AA+MA;;;GAGG;AACH,qBAAa,KAAK;IACjB,OAAO,CAAC,cAAc,CAAe;IAErC;;;;;;OAMG;gBACS,CAAC,GAAE,KAAK,GAAG,MAAM,GAAG,MAAU,EAAE,CAAC,SAAI,EAAE,CAAC,SAAI,EAAE,KAAK,SAAM;IAcrE;;;OAGG;IACH,IAAI,CAAC,WAEJ;IAED;;;OAGG;IACH,IAAI,CAAC,CAAC,KAAK,QAAA,EAEV;IAED;;;OAGG;IACH,IAAI,CAAC,WAEJ;IAED;;;OAGG;IACH,IAAI,CAAC,CAAC,KAAK,QAAA,EAEV;IAED;;;OAGG;IACH,IAAI,CAAC,WAEJ;IAED;;;OAGG;IACH,IAAI,CAAC,CAAC,KAAK,QAAA,EAEV;IAED;;;OAGG;IACH,IAAI,KAAK,WAER;IAED;;;OAGG;IACH,IAAI,KAAK,CAAC,KAAK,QAAA,EAEd;IAED;;;;;;;OAOG;IACH,QAAQ,CAAC,CAAC,GAAE,MAAU,EAAE,CAAC,GAAE,MAAU,EAAE,CAAC,GAAE,MAAU,EAAE,KAAK,SAAM;IASjE;;;;;;;OAOG;IACH,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,KAAK,SAAM;IASrD;;;;;;OAMG;IACH,MAAM,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM;IA8CtC;;;;;;;;;;;;;;;;;;;;;OAqBG;IACH,MAAM,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM;IAmBtC;;;;;;;;;;;;;;;;;;;;;OAqBG;IACH,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM;IAY5C;;;OAGG;IACH,KAAK;IAIL;;;;OAIG;IACH,IAAI,CAAC,KAAK,EAAE,KAAK,GAAG,MAAM;IAS1B;;;;OAIG;IACH,GAAG,CAAC,KAAK,EAAE,KAAK;IAsBhB;;;;OAIG;IACH,MAAM,CAAC,KAAK,EAAE,MAAM;IASpB;;;;;OAKG;IACH,IAAI,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM;IAYhC;;;;OAIG;IACH,OAAO,CAAC,KAAK,EAAE,MAAM;IAqBrB;;;;;OAKG;IACH,MAAM,CAAC,GAAG,SAAI,EAAE,GAAG,SAAM;IAgBzB;;;;OAIG;IACH,MAAM,CAAC,KAAK,EAAE,KAAK;IASnB;;;;OAIG;IACH,QAAQ,CAAC,QAAQ,EAAE,MAAM;IAQzB;;;;OAIG;IACH,QAAQ,CAAC,QAAQ,EAAE,MAAM;IAazB;;;;;;OAMG;IACH,QAAQ,CAAC,QAAQ,EAAE,IAAI,MAAM,EAAE,EAAE,IAAI,UAAQ;IAmD7C;;;;OAIG;IACH,QAAQ,CAAC,KAAK,SAAM;
|
|
1
|
+
{"version":3,"file":"color.d.ts","sourceRoot":"","sources":["../../src/math/color.ts"],"names":[],"mappings":"AA+MA;;;GAGG;AACH,qBAAa,KAAK;IACjB,OAAO,CAAC,cAAc,CAAe;IAErC;;;;;;OAMG;gBACS,CAAC,GAAE,KAAK,GAAG,MAAM,GAAG,MAAU,EAAE,CAAC,SAAI,EAAE,CAAC,SAAI,EAAE,KAAK,SAAM;IAcrE;;;OAGG;IACH,IAAI,CAAC,WAEJ;IAED;;;OAGG;IACH,IAAI,CAAC,CAAC,KAAK,QAAA,EAEV;IAED;;;OAGG;IACH,IAAI,CAAC,WAEJ;IAED;;;OAGG;IACH,IAAI,CAAC,CAAC,KAAK,QAAA,EAEV;IAED;;;OAGG;IACH,IAAI,CAAC,WAEJ;IAED;;;OAGG;IACH,IAAI,CAAC,CAAC,KAAK,QAAA,EAEV;IAED;;;OAGG;IACH,IAAI,KAAK,WAER;IAED;;;OAGG;IACH,IAAI,KAAK,CAAC,KAAK,QAAA,EAEd;IAED;;;;;;;OAOG;IACH,QAAQ,CAAC,CAAC,GAAE,MAAU,EAAE,CAAC,GAAE,MAAU,EAAE,CAAC,GAAE,MAAU,EAAE,KAAK,SAAM;IASjE;;;;;;;OAOG;IACH,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,KAAK,SAAM;IASrD;;;;;;OAMG;IACH,MAAM,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM;IA8CtC;;;;;;;;;;;;;;;;;;;;;OAqBG;IACH,MAAM,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM;IAmBtC;;;;;;;;;;;;;;;;;;;;;OAqBG;IACH,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM;IAY5C;;;OAGG;IACH,KAAK;IAIL;;;;OAIG;IACH,IAAI,CAAC,KAAK,EAAE,KAAK,GAAG,MAAM;IAS1B;;;;OAIG;IACH,GAAG,CAAC,KAAK,EAAE,KAAK;IAsBhB;;;;OAIG;IACH,MAAM,CAAC,KAAK,EAAE,MAAM;IASpB;;;;;OAKG;IACH,IAAI,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM;IAYhC;;;;OAIG;IACH,OAAO,CAAC,KAAK,EAAE,MAAM;IAqBrB;;;;;OAKG;IACH,MAAM,CAAC,GAAG,SAAI,EAAE,GAAG,SAAM;IAgBzB;;;;OAIG;IACH,MAAM,CAAC,KAAK,EAAE,KAAK;IASnB;;;;OAIG;IACH,QAAQ,CAAC,QAAQ,EAAE,MAAM;IAQzB;;;;OAIG;IACH,QAAQ,CAAC,QAAQ,EAAE,MAAM;IAazB;;;;;;OAMG;IACH,QAAQ,CAAC,QAAQ,EAAE,IAAI,MAAM,EAAE,EAAE,IAAI,UAAQ;IAmD7C;;;;OAIG;IACH,QAAQ,CAAC,KAAK,SAAM;IAgBpB;;;OAGG;IACH,OAAO;IAIP;;;OAGG;IACH,KAAK;IAKL;;;;OAIG;IACH,MAAM,CAAC,KAAK,SAAyB;IAKrC;;;OAGG;IACH,KAAK;IAIL;;;;OAIG;IACH,MAAM,CAAC,KAAK,SAAa;CAGzB;AAED,eAAO,MAAM,SAAS,gKAwBpB,CAAC"}
|