melonjs 20.3.0 → 20.4.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.map +1 -1
- package/build/audio/state.d.ts +6 -79
- package/build/audio/state.d.ts.map +1 -1
- package/build/camera/camera2d.d.ts +0 -68
- package/build/camera/camera2d.d.ts.map +1 -1
- package/build/camera/camera3d.d.ts +86 -79
- 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 +0 -12
- 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 +1 -0
- package/build/index.d.ts.map +1 -1
- package/build/index.js +2652 -413
- package/build/index.js.map +3 -3
- 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 +0 -81
- 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 +0 -16
- package/build/lighting/light3d.d.ts.map +1 -1
- package/build/loader/loader.d.ts +42 -33
- 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 +0 -7
- 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 +0 -55
- 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 +26 -104
- package/build/renderable/instanced_mesh.d.ts.map +1 -1
- package/build/renderable/mesh.d.ts +130 -141
- 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 +1 -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 +0 -95
- package/build/renderable/sprite3d.d.ts.map +1 -1
- package/build/renderable/text/bitmaptext.d.ts +0 -14
- 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 +0 -20
- package/build/renderable/text/text.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 +0 -66
- package/build/state/stage.d.ts.map +1 -1
- package/build/state/state.d.ts.map +1 -1
- package/build/system/device.d.ts +0 -12
- 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.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/radialGradient.d.ts +0 -1
- package/build/video/effects/radialGradient.d.ts.map +1 -1
- package/build/video/effects/shadereffect.d.ts +0 -113
- 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 +0 -81
- 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 +0 -43
- 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 +0 -49
- 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 +1 -230
- 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 +0 -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 +301 -2
- package/skills/melonjs-3d-assets/SKILL.md +25 -6
- package/skills/melonjs-audio/SKILL.md +21 -0
- package/skills/melonjs-camera-and-drawing/SKILL.md +4 -0
- package/skills/melonjs-effects-and-shaders/SKILL.md +2 -1
- package/skills/melonjs-loading-assets/SKILL.md +30 -1
- package/skills/melonjs-performance/SKILL.md +5 -0
- package/skills/melonjs-tilemaps/SKILL.md +31 -11
- package/skills/melonjs-ui-and-text/SKILL.md +17 -127
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stage.d.ts","sourceRoot":"","sources":["../../src/state/stage.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,WAAW,MAAM,iCAAiC,CAAC;AAC/D,OAAO,QAAQ,MAAM,yBAAyB,CAAC;AAC/C,OAAO,KAAK,OAAO,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"stage.d.ts","sourceRoot":"","sources":["../../src/state/stage.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,WAAW,MAAM,iCAAiC,CAAC;AAC/D,OAAO,QAAQ,MAAM,yBAAyB,CAAC;AAC/C,OAAO,KAAK,OAAO,MAAM,0BAA0B,CAAC;AAEpD,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAG3C,OAAO,KAAK,QAAQ,MAAM,wBAAwB,CAAC;AAEnD,UAAU,aAAa;IACtB,OAAO,EAAE,QAAQ,EAAE,CAAC;IACpB;;;;;;OAMG;IACH,WAAW,CAAC,EAAE,KACb,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,MAAM,KACR,QAAQ,CAAC;IACd,YAAY,CAAC,EAAE,CAAC,GAAG,EAAE,WAAW,EAAE,GAAG,IAAI,EAAE,OAAO,EAAE,KAAK,IAAI,CAAC;IAC9D,cAAc,CAAC,EAAE,CAAC,GAAG,EAAE,WAAW,KAAK,IAAI,CAAC;CAC5C;AAUD;;;;;;GAMG;AACH,MAAM,CAAC,OAAO,OAAO,KAAK;IACzB;;;;OAIG;IACH,OAAO,EAAE,GAAG,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;IAE/B;;;;;;;;;;;;;;;;;;;;;OAqBG;IACH,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAoB7B;;;;;;OAMG;IACH,YAAY,EAAE,KAAK,CAAC;IAEpB;;;;;;;;OAQG;IACH,oBAAoB,EAAE,KAAK,CAAC;IAE5B;;OAEG;IACH,QAAQ,EAAE,aAAa,CAAC;IAExB;;;;;OAKG;gBACS,QAAQ,CAAC,EAAE,OAAO,CAAC,aAAa,CAAC;IAmN7C;;;;;;;;;;;;;;;;;OAiBG;IACH,YAAY,CACX,QAAQ,EAAE,QAAQ,EAClB,MAAM,EAAE,QAAQ,EAChB,UAAU,GAAE,MAAuC,EACnD,UAAU,GAAE,MAAuC,GACjD,IAAI;IAuEP;;;;;;;OAOG;IACH,YAAY,CAAC,GAAG,EAAE,WAAW,EAAE,GAAG,IAAI,EAAE,OAAO,EAAE,GAAG,IAAI;IAOxD;;;;OAIG;IACH,cAAc,CAAC,GAAG,EAAE,WAAW,GAAG,IAAI;CAMtC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"state.d.ts","sourceRoot":"","sources":["../../src/state/state.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"state.d.ts","sourceRoot":"","sources":["../../src/state/state.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,MAAM,qBAAqB,CAAC;AA4QxC;;GAEG;AACH,QAAA,MAAM,KAAK;IACV;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;IAGH;;;OAGG;;IAGH;;;;;;;OAOG;;IAGH;;;OAGG;4BACoB,OAAO,GAAW,IAAI;IAqB7C;;;OAGG;kBACU,OAAO,GAAW,IAAI;IAkBnC;;;OAGG;oBACY,OAAO,GAAW,IAAI;IAiBrC;;;OAGG;mBACW,OAAO,GAAW,IAAI;IAmBpC;;;;;;;;;;;;;;;;;;;;;;;;;;;OA2BG;qBACc,MAAM,UAAS,OAAO,GAAW,OAAO,CAAC,IAAI,CAAC;IAkC/D;;;OAGG;iBACU,OAAO;IAIpB;;;OAGG;gBACS,OAAO;IAInB;;;;;;;;;;;;;;;;;;;;;;;;;;;OA2BG;iBACU,MAAM,SAAS,KAAK,UAAS,OAAO,GAAW,IAAI;IAchE;;;;;OAKG;kBACU,MAAM,GAAY,KAAK,GAAG,SAAS;IAQhD;;;;OAIG;eACQ,KAAK,GAAG,SAAS;IAI5B;;;;;;;;;;;;;;;;;;OAkBG;uBAEM,MAAM,GAAG,MAAM,SAChB,MAAM,aACH,MAAM,UAEb,OAAO,0BAA0B,EAAE,OAAO,GAC1C,OAAO,0BAA0B,EAAE,OAAO,GAC3C,IAAI;IAOP;;;;OAIG;2BACoB,MAAM,UAAU,OAAO,GAAG,IAAI;IAIrD;;;;;;;;;OASG;oBAEO,MAAM,gBACF,OAAO,gBACN,OAAO,EAAE,GACrB,IAAI;IA4FP;;;;OAIG;uBACgB,MAAM,GAAG,OAAO;CAGnC,CAAC;AACF,eAAe,KAAK,CAAC"}
|
package/build/system/device.d.ts
CHANGED
|
@@ -1,9 +1,4 @@
|
|
|
1
1
|
import * as device_platform from "./platform.ts";
|
|
2
|
-
/**
|
|
3
|
-
* used by [un]watchDeviceOrientation()
|
|
4
|
-
* @ignore
|
|
5
|
-
*/
|
|
6
|
-
export declare function onDeviceRotate(e: DeviceOrientationEvent): void;
|
|
7
2
|
/**
|
|
8
3
|
* the device platform type
|
|
9
4
|
*/
|
|
@@ -160,13 +155,6 @@ export declare function setAutoFocus(enable: boolean): void;
|
|
|
160
155
|
* @category Application
|
|
161
156
|
*/
|
|
162
157
|
export declare function onReady(fn: () => void): void;
|
|
163
|
-
/**
|
|
164
|
-
* Register blur/focus and visibility change event handlers.
|
|
165
|
-
* Called once during boot to emit BLUR/FOCUS events when the
|
|
166
|
-
* window or tab gains/loses focus.
|
|
167
|
-
* @ignore
|
|
168
|
-
*/
|
|
169
|
-
export declare function initVisibilityEvents(): void;
|
|
170
158
|
/**
|
|
171
159
|
* enable/disable swipe on WebView.
|
|
172
160
|
* @param [enable=true] - enable or disable swipe.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"device.d.ts","sourceRoot":"","sources":["../../src/system/device.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,eAAe,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"device.d.ts","sourceRoot":"","sources":["../../src/system/device.ts"],"names":[],"mappings":"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"}
|
package/build/system/dom.d.ts
CHANGED
|
@@ -1,9 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
* Execute a callback when the DOM is ready.
|
|
3
|
-
* In Node.js, when there is no DOM, or when the DOM is already parsed,
|
|
4
|
-
* the callback is deferred to the next microtask.
|
|
5
|
-
* @param fn - callback to execute when the DOM is ready
|
|
6
|
-
* @ignore
|
|
7
|
-
*/
|
|
8
|
-
export declare const DOMContentLoaded: (fn: () => void) => void;
|
|
1
|
+
export {};
|
|
9
2
|
//# sourceMappingURL=dom.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dom.d.ts","sourceRoot":"","sources":["../../src/system/dom.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"dom.d.ts","sourceRoot":"","sources":["../../src/system/dom.ts"],"names":[],"mappings":""}
|
|
@@ -1,9 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
* Set a callback to be invoked whenever pool.register() is called.
|
|
3
|
-
* @param {Function} callback - function(className, classObj, poolInstance) called on each registration
|
|
4
|
-
* @ignore
|
|
5
|
-
*/
|
|
6
|
-
export function setPoolRegisterCallback(callback: Function): void;
|
|
1
|
+
|
|
7
2
|
export default pool;
|
|
8
3
|
/**
|
|
9
4
|
* a default global ObjectPool instance
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"legacy_pool.d.ts","sourceRoot":"","sources":["../../src/system/legacy_pool.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"legacy_pool.d.ts","sourceRoot":"","sources":["../../src/system/legacy_pool.js"],"names":[],"mappings":"AASA;;;;;GAKG;AACH,kEAEC;;AAmND;;;;;;;;;;;;;;GAcG;AACH,+BAA8B;AAhO9B;;;;;;;;;;;;GAYG;AACH;IAEE,gBAAqB;IACrB,yBAAyB;IAEzB;;;;;;;;;;;;;;OAcG;IACH,mBARU,OAAO,CAQY;IAG9B;;;;;;;;;;;;;;;;;;;;;;;OAuBG;IACH,oBAhBW,MAAM,YACN,MAAM,cACN,OAAO,QAsCjB;IAED;;;;;;;;;;;;;;;;;;;;OAoBG;IACH,WAnBW,MAAM,YACH,GAAC,EAAA,GACF,MAAM,CAsClB;IAED;;;;OAIG;IACH,cAOC;IAED;;;;;;;;;OASG;IACH,UAJW,MAAM,iBACN,OAAO,GACL,OAAO,CAgBnB;IAED;;;;OAIG;IACH,aAHW,MAAM,GACJ,OAAO,CAInB;IAED;;;;;;;;;;OAUG;IACH,cAPW,MAAM,GACJ,OAAO,CAcnB;IAED;;;OAGG;IACH,oBAFa,MAAM,CAIlB;CACD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"platform.d.ts","sourceRoot":"","sources":["../../src/system/platform.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"platform.d.ts","sourceRoot":"","sources":["../../src/system/platform.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,eAAO,MAAM,EAAE,QAGT,CAAC;AA0DP,eAAO,MAAM,GAAG,SAAsD,CAAC;AACvE;;;;;GAKG;AACH,eAAO,MAAM,WAAW,SAAyB,CAAC;AAClD,eAAO,MAAM,OAAO,SAAsB,CAAC;AAC3C;;GAEG;AACH,eAAO,MAAM,QAAQ,SAAwB,CAAC;AAC9C,eAAO,MAAM,KAAK,SAAoB,CAAC;AACvC,eAAO,MAAM,QAAQ,SAAkB,CAAC;AACxC;;GAEG;AACH,eAAO,MAAM,EAAE,SAA4B,CAAC;AAC5C;;GAEG;AACH,eAAO,MAAM,UAAU,SAAyB,CAAC;AACjD;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,MAAM,SAA4B,CAAC;AAChD,eAAO,MAAM,MAAM,SAAyB,CAAC;AAC7C,eAAO,MAAM,QAAQ,SAA6B,CAAC;AAOnD,eAAO,MAAM,MAAM,SAGW,CAAC;AAO/B,eAAO,MAAM,QAAQ,SAAqC,CAAC;AAC3D,eAAO,MAAM,MAAM,SAK2C,CAAC"}
|
package/build/system/pool.d.ts
CHANGED
|
@@ -12,15 +12,6 @@ export interface CreatePoolOptions<T, A extends unknown[]> {
|
|
|
12
12
|
reset?: Reset<A>;
|
|
13
13
|
release?: Release;
|
|
14
14
|
}
|
|
15
|
-
/**
|
|
16
|
-
* Register a pool instance to the pool registry.
|
|
17
|
-
* @ignore
|
|
18
|
-
*/
|
|
19
|
-
export declare const registerPool: (key: string, pool: Pool<any, any[]>) => void;
|
|
20
|
-
/**
|
|
21
|
-
* @ignore
|
|
22
|
-
*/
|
|
23
|
-
export declare const getRegisteredPools: () => Record<string, Pool<any, any[]>>;
|
|
24
15
|
export declare const createPool: <T, A extends unknown[]>(options: (...args: A) => CreatePoolOptions<T, A>) => Pool<T, A>;
|
|
25
16
|
export {};
|
|
26
17
|
//# sourceMappingURL=pool.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pool.d.ts","sourceRoot":"","sources":["../../src/system/pool.ts"],"names":[],"mappings":"AAOA,MAAM,WAAW,IAAI,CAAC,CAAC,EAAE,CAAC,SAAS,OAAO,EAAE;IAC3C,GAAG,CAAC,GAAG,IAAI,EAAE,CAAC,GAAG,CAAC,CAAC;IACnB,OAAO,CAAC,MAAM,EAAE,CAAC,GAAG,IAAI,CAAC;IACzB,KAAK,IAAI,IAAI,CAAC;IACd,IAAI,IAAI,MAAM,CAAC;IACf,IAAI,IAAI,MAAM,CAAC;CACf;AAED,KAAK,KAAK,CAAC,CAAC,SAAS,OAAO,EAAE,IAAI,CAAC,CAAC,GAAG,IAAI,EAAE,CAAC,KAAK,IAAI,CAAC,GAAG,SAAS,CAAC;AACrE,KAAK,OAAO,GAAG,CAAC,MAAM,IAAI,CAAC,GAAG,SAAS,CAAC;AAExC,MAAM,WAAW,iBAAiB,CAAC,CAAC,EAAE,CAAC,SAAS,OAAO,EAAE;IACxD,QAAQ,EAAE,CAAC,CAAC;IACZ,KAAK,CAAC,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC;IACjB,OAAO,CAAC,EAAE,OAAO,CAAC;CAClB;
|
|
1
|
+
{"version":3,"file":"pool.d.ts","sourceRoot":"","sources":["../../src/system/pool.ts"],"names":[],"mappings":"AAOA,MAAM,WAAW,IAAI,CAAC,CAAC,EAAE,CAAC,SAAS,OAAO,EAAE;IAC3C,GAAG,CAAC,GAAG,IAAI,EAAE,CAAC,GAAG,CAAC,CAAC;IACnB,OAAO,CAAC,MAAM,EAAE,CAAC,GAAG,IAAI,CAAC;IACzB,KAAK,IAAI,IAAI,CAAC;IACd,IAAI,IAAI,MAAM,CAAC;IACf,IAAI,IAAI,MAAM,CAAC;CACf;AAED,KAAK,KAAK,CAAC,CAAC,SAAS,OAAO,EAAE,IAAI,CAAC,CAAC,GAAG,IAAI,EAAE,CAAC,KAAK,IAAI,CAAC,GAAG,SAAS,CAAC;AACrE,KAAK,OAAO,GAAG,CAAC,MAAM,IAAI,CAAC,GAAG,SAAS,CAAC;AAExC,MAAM,WAAW,iBAAiB,CAAC,CAAC,EAAE,CAAC,SAAS,OAAO,EAAE;IACxD,QAAQ,EAAE,CAAC,CAAC;IACZ,KAAK,CAAC,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC;IACjB,OAAO,CAAC,EAAE,OAAO,CAAC;CAClB;AAoBD,eAAO,MAAM,UAAU,GAAI,CAAC,EAAE,CAAC,SAAS,OAAO,EAAE,EAChD,SAAS,CAAC,GAAG,IAAI,EAAE,CAAC,KAAK,iBAAiB,CAAC,CAAC,EAAE,CAAC,CAAC,KAC9C,IAAI,CAAC,CAAC,EAAE,CAAC,CA2DX,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"save.d.ts","sourceRoot":"","sources":["../../src/system/save.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"save.d.ts","sourceRoot":"","sources":["../../src/system/save.ts"],"names":[],"mappings":"AAqFA,QAAA,MAAM,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAgEjC,CAAC;AAEF,eAAe,IAAI,CAAC"}
|
package/build/system/timer.d.ts
CHANGED
|
@@ -25,11 +25,6 @@ declare class Timer {
|
|
|
25
25
|
}[];
|
|
26
26
|
timerId: number;
|
|
27
27
|
constructor();
|
|
28
|
-
/**
|
|
29
|
-
* reset time (e.g. usefull in case of pause)
|
|
30
|
-
* @ignore
|
|
31
|
-
*/
|
|
32
|
-
reset(): void;
|
|
33
28
|
/**
|
|
34
29
|
* Calls a function once after a specified delay. See me.timer.setInterval to repeativly call a function.
|
|
35
30
|
* @param fn - the function you want to execute after delay milliseconds.
|
|
@@ -79,21 +74,6 @@ declare class Timer {
|
|
|
79
74
|
* @returns elapsed time
|
|
80
75
|
*/
|
|
81
76
|
getDelta(): number;
|
|
82
|
-
/**
|
|
83
|
-
* update
|
|
84
|
-
* @ignore
|
|
85
|
-
*/
|
|
86
|
-
update(time: number): void;
|
|
87
|
-
/**
|
|
88
|
-
* clear Timers
|
|
89
|
-
* @ignore
|
|
90
|
-
*/
|
|
91
|
-
clearTimer(timerId: number): void;
|
|
92
|
-
/**
|
|
93
|
-
* update timers
|
|
94
|
-
* @ignore
|
|
95
|
-
*/
|
|
96
|
-
updateTimers(): void;
|
|
97
77
|
}
|
|
98
78
|
declare const timer: Timer;
|
|
99
79
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"timer.d.ts","sourceRoot":"","sources":["../../src/system/timer.ts"],"names":[],"mappings":"AAaA;;;GAGG;AACH,cAAM,KAAK;IACV,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,EAAE,MAAM,CAAC;IACf,aAAa,EAAE,OAAO,CAAC;IACvB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE;QACP,EAAE,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,CAAC;QAC5B,KAAK,EAAE,MAAM,CAAC;QACd,OAAO,EAAE,MAAM,CAAC;QAChB,MAAM,EAAE,OAAO,CAAC;QAChB,OAAO,EAAE,MAAM,CAAC;QAChB,SAAS,EAAE,OAAO,CAAC;QACnB,IAAI,EAAE,GAAG,EAAE,CAAC;KACZ,EAAE,CAAC;IACJ,OAAO,EAAE,MAAM,CAAC;;
|
|
1
|
+
{"version":3,"file":"timer.d.ts","sourceRoot":"","sources":["../../src/system/timer.ts"],"names":[],"mappings":"AAaA;;;GAGG;AACH,cAAM,KAAK;IACV,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,EAAE,MAAM,CAAC;IACf,aAAa,EAAE,OAAO,CAAC;IACvB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE;QACP,EAAE,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,CAAC;QAC5B,KAAK,EAAE,MAAM,CAAC;QACd,OAAO,EAAE,MAAM,CAAC;QAChB,MAAM,EAAE,OAAO,CAAC;QAChB,OAAO,EAAE,MAAM,CAAC;QAChB,SAAS,EAAE,OAAO,CAAC;QACnB,IAAI,EAAE,GAAG,EAAE,CAAC;KACZ,EAAE,CAAC;IACJ,OAAO,EAAE,MAAM,CAAC;;IAsFhB;;;;;;;;;;;;OAYG;IACH,UAAU,CACT,EAAE,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,EAC3B,KAAK,EAAE,MAAM,EACb,SAAS,CAAC,EAAE,OAAO,EACnB,GAAG,IAAI,EAAE,GAAG,EAAE;IAcf;;;;;;;;;;;;OAYG;IACH,WAAW,CACV,EAAE,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,EAC3B,KAAK,EAAE,MAAM,EACb,SAAS,CAAC,EAAE,OAAO,EACnB,GAAG,IAAI,EAAE,GAAG,EAAE;IAcf;;;OAGG;IACH,YAAY,CAAC,SAAS,EAAE,MAAM;IAQ9B;;;OAGG;IACH,aAAa,CAAC,UAAU,EAAE,MAAM;IAQhC;;;;OAIG;IACH,OAAO;IAIP;;;OAGG;IACH,QAAQ;CA0FR;AAED,QAAA,MAAM,KAAK,OAAc,CAAC;AAE1B;;;;;;;;;;;;GAYG;AACH,eAAe,KAAK,CAAC"}
|
package/build/tweens/tween.d.ts
CHANGED
|
@@ -1,11 +1,5 @@
|
|
|
1
1
|
import { EasingFunction } from "./easing.js";
|
|
2
2
|
import { InterpolationFunction } from "./interpolation.js";
|
|
3
|
-
/** @ignore */
|
|
4
|
-
type OnStartCallback<T> = (this: T) => void;
|
|
5
|
-
/** @ignore */
|
|
6
|
-
type OnUpdateCallback<T> = (this: T, value: number) => void;
|
|
7
|
-
/** @ignore */
|
|
8
|
-
type OnCompleteCallback<T> = (this: T) => void;
|
|
9
3
|
/**
|
|
10
4
|
* A tweening engine for smoothly interpolating object properties over time.
|
|
11
5
|
* Based on <a href="https://github.com/sole/Tween.js">tween.js</a> with
|
|
@@ -34,29 +28,6 @@ type OnCompleteCallback<T> = (this: T) => void;
|
|
|
34
28
|
* @category Tweens
|
|
35
29
|
*/
|
|
36
30
|
export default class Tween {
|
|
37
|
-
_object: object;
|
|
38
|
-
_valuesStart: Record<string, unknown>;
|
|
39
|
-
_valuesEnd: Record<string, unknown>;
|
|
40
|
-
_valuesStartRepeat: Record<string, unknown>;
|
|
41
|
-
_duration: number;
|
|
42
|
-
_repeat: number;
|
|
43
|
-
_yoyo: boolean;
|
|
44
|
-
_reversed: boolean;
|
|
45
|
-
_delayTime: number;
|
|
46
|
-
_repeatDelayTime: number | undefined;
|
|
47
|
-
_startTime: number | null;
|
|
48
|
-
_easingFunction: EasingFunction;
|
|
49
|
-
_interpolationFunction: InterpolationFunction;
|
|
50
|
-
_chainedTweens: Array<Tween>;
|
|
51
|
-
_onStartCallback: OnStartCallback<object> | null;
|
|
52
|
-
_onStartCallbackFired: boolean;
|
|
53
|
-
_onUpdateCallback: OnUpdateCallback<object> | null;
|
|
54
|
-
_onCompleteCallback: OnCompleteCallback<object> | null;
|
|
55
|
-
_tweenTimeTracker: number;
|
|
56
|
-
_lastUpdate: number;
|
|
57
|
-
_isRunning: boolean;
|
|
58
|
-
_isPaused: boolean;
|
|
59
|
-
_lastTick: number;
|
|
60
31
|
/**
|
|
61
32
|
* whether the tween should persist across state changes (not auto-stopped on game reset)
|
|
62
33
|
* @default false
|
|
@@ -71,36 +42,6 @@ export default class Tween {
|
|
|
71
42
|
* @param object - the object whose properties will be tweened
|
|
72
43
|
*/
|
|
73
44
|
constructor(object: object);
|
|
74
|
-
/**
|
|
75
|
-
* @ignore
|
|
76
|
-
*/
|
|
77
|
-
onResetEvent(object: object): void;
|
|
78
|
-
/**
|
|
79
|
-
* @ignore
|
|
80
|
-
*/
|
|
81
|
-
setProperties(object: object): void;
|
|
82
|
-
/**
|
|
83
|
-
* @ignore
|
|
84
|
-
*/
|
|
85
|
-
_resumeCallback(elapsed: number): void;
|
|
86
|
-
/** @ignore */
|
|
87
|
-
_onAfterUpdate(lastUpdate: number): void;
|
|
88
|
-
/** @ignore */
|
|
89
|
-
_onTick(timestamp: number): void;
|
|
90
|
-
/** @ignore */
|
|
91
|
-
_onPause(): void;
|
|
92
|
-
/** @ignore */
|
|
93
|
-
_onReset(): void;
|
|
94
|
-
/**
|
|
95
|
-
* Subscribe to the game loop events
|
|
96
|
-
* @ignore
|
|
97
|
-
*/
|
|
98
|
-
_subscribe(): void;
|
|
99
|
-
/**
|
|
100
|
-
* Unsubscribe from the game loop events
|
|
101
|
-
* @ignore
|
|
102
|
-
*/
|
|
103
|
-
_unsubscribe(): void;
|
|
104
45
|
/**
|
|
105
46
|
* Define the target property values and tween options.
|
|
106
47
|
* @param properties - target property values to tween to (e.g. `{ x: 200, y: 100 }`)
|
|
@@ -197,8 +138,6 @@ export default class Tween {
|
|
|
197
138
|
* @returns this instance for object chaining
|
|
198
139
|
*/
|
|
199
140
|
onComplete(onCompleteCallback: OnCompleteCallback<object>): this;
|
|
200
|
-
/** @ignore */
|
|
201
|
-
update(dt: number): boolean;
|
|
202
141
|
/**
|
|
203
142
|
* Available easing functions, accessed via `Tween.Easing`.
|
|
204
143
|
* Each family provides `In`, `Out`, and `InOut` variants.
|
|
@@ -278,5 +217,4 @@ export default class Tween {
|
|
|
278
217
|
};
|
|
279
218
|
}
|
|
280
219
|
export declare const tweenPool: import("../system/pool.ts").Pool<Tween, [obj: object]>;
|
|
281
|
-
export {};
|
|
282
220
|
//# sourceMappingURL=tween.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tween.d.ts","sourceRoot":"","sources":["../../src/tweens/tween.ts"],"names":[],"mappings":"AAWA,OAAO,EAAU,cAAc,EAAE,MAAM,aAAa,CAAC;AACrD,OAAO,EAAiB,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"tween.d.ts","sourceRoot":"","sources":["../../src/tweens/tween.ts"],"names":[],"mappings":"AAWA,OAAO,EAAU,cAAc,EAAE,MAAM,aAAa,CAAC;AACrD,OAAO,EAAiB,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAuB1E;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,MAAM,CAAC,OAAO,OAAO,KAAK;IAqHzB;;;OAGG;IACH,YAAY,EAAE,OAAO,CAAC;IAEtB;;;OAGG;IACH,gBAAgB,EAAE,OAAO,CAAC;IAE1B;;OAEG;gBACS,MAAM,EAAE,MAAM;IA+I1B;;;;;;;;;;;;;OAaG;IACH,EAAE,CACD,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EACnC,OAAO,CAAC,EAAE;QACT,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;QAC9B,MAAM,CAAC,EAAE,cAAc,GAAG,SAAS,CAAC;QACpC,IAAI,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;QAC3B,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;QAC5B,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;QAC3B,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;QACjC,aAAa,CAAC,EAAE,qBAAqB,GAAG,SAAS,CAAC;QAClD,SAAS,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;KAChC;IAkCF;;;;OAIG;IACH,KAAK,CAAC,IAAI,SAAkB;IA4C5B;;;OAGG;IACH,IAAI;IAKJ;;;;OAIG;IACH,KAAK,CAAC,MAAM,EAAE,MAAM;IAKpB;;;;OAIG;IACH,MAAM,CAAC,KAAK,EAAE,MAAM;IAKpB;;;;OAIG;IACH,WAAW,CAAC,MAAM,EAAE,MAAM;IAK1B;;;;;OAKG;IACH,IAAI,CAAC,IAAI,EAAE,OAAO;IAKlB;;;;OAIG;IACH,MAAM,CAAC,MAAM,EAAE,cAAc;IAK7B;;;;OAIG;IACH,aAAa,CAAC,aAAa,EAAE,qBAAqB;IAKlD;;;;OAIG;IACH,KAAK,CAAC,GAAG,MAAM,EAAE,KAAK,EAAE;IAKxB;;;;OAIG;IACH,OAAO,CAAC,eAAe,EAAE,eAAe,CAAC,MAAM,CAAC;IAKhD;;;;OAIG;IACH,QAAQ,CAAC,gBAAgB,EAAE,gBAAgB,CAAC,MAAM,CAAC;IAKnD;;;;OAIG;IACH,UAAU,CAAC,kBAAkB,EAAE,kBAAkB,CAAC,MAAM,CAAC;IA0HzD;;;;;;;;OAQG;IACH,MAAM,KAAK,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAEhB;IAED;;;;;;;OAOG;IACH,MAAM,KAAK,aAAa;;;;MAEvB;CACD;AAED,eAAO,MAAM,SAAS,wDASpB,CAAC"}
|
|
@@ -1,14 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
* A simple multimap that stores multiple values per key using arrays.
|
|
3
|
-
* @ignore
|
|
4
|
-
*/
|
|
5
|
-
export class ArrayMultimap {
|
|
6
|
-
_map: Map<any, any>;
|
|
7
|
-
put(key: any, value: any): void;
|
|
8
|
-
get(key: any): any;
|
|
9
|
-
has(key: any): boolean;
|
|
10
|
-
delete(key: any): void;
|
|
11
|
-
forEach(callback: any): void;
|
|
12
|
-
clear(): void;
|
|
13
|
-
}
|
|
1
|
+
|
|
14
2
|
//# sourceMappingURL=array-multimap.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"array-multimap.d.ts","sourceRoot":"","sources":["../../src/utils/array-multimap.js"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"array-multimap.d.ts","sourceRoot":"","sources":["../../src/utils/array-multimap.js"],"names":[],"mappings":"AAAA;;;;GAIG;AACH;IAEE;;;OAGG;IACH,oBAAqB;IAEtB,gCAOC;IACD,mBAEC;IACD,uBAEC;IACD,uBAEC;IACD,6BAMC;IACD,cAEC;CACD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"decode.d.ts","sourceRoot":"","sources":["../../src/utils/decode.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"decode.d.ts","sourceRoot":"","sources":["../../src/utils/decode.ts"],"names":[],"mappings":"AASA;;;GAGG;AACH,wBAAgB,kBAAkB,CACjC,EAAE,EAAE,CAAC,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,KAAK,WAAW,CAAC,GAAG,SAAS,QAG/D;AAED;;;;;GAKG;AACH,wBAAgB,UAAU,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,WAAW,CAQpE;AAED;;;;GAIG;AACH,wBAAgB,SAAS,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE,CA8BjD;AAED;;;;;GAKG;AACH,wBAAgB,mBAAmB,CAClC,KAAK,EAAE,MAAM,EACb,KAAK,GAAE,MAAU,GACf,WAAW,CA0Bb;AAgBD,wBAAgB,iBAAiB,CAChC,MAAM,EAAE,MAAM,EACd,MAAM,GAAE,MAAc,EACtB,KAAK,CAAC,EAAE,MAAM,EACd,MAAM,CAAC,EAAE,MAAM,GACb,gBAAgB,CAWlB;AAED;;;;;;GAMG;AACH,wBAAgB,MAAM,CACrB,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,EACvB,QAAQ,CAAC,EAAE,MAAM,EACjB,WAAW,CAAC,EAAE,MAAM,GAClB,MAAM,EAAE,GAAG,WAAW,CAwBxB"}
|
|
@@ -1,32 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
* Whether `url` must be loaded over the `file:` scheme — either an absolute
|
|
3
|
-
* `file://` URL, or a relative URL resolved against a `file:` document (the
|
|
4
|
-
* case for a Cordova/Capacitor build packaged into an APK, where the app runs
|
|
5
|
-
* from `file://`). `fetch()` cannot load such URLs in several WebView contexts
|
|
6
|
-
* (it rejects with an opaque network error), whereas `XMLHttpRequest` can. The
|
|
7
|
-
* document `protocol` is injectable so the relative-URL branch is unit-testable
|
|
8
|
-
* (`location` is non-configurable in a real browser).
|
|
9
|
-
* @param {string} url
|
|
10
|
-
* @param {string} [protocol] - the hosting document's protocol
|
|
11
|
-
* @returns {boolean}
|
|
12
|
-
* @ignore
|
|
13
|
-
*/
|
|
14
|
-
export function isFileProtocol(url: string, protocol?: string): boolean;
|
|
15
|
-
/**
|
|
16
|
-
* Fetches data from the specified URL.
|
|
17
|
-
* @param {string} url - The URL to fetch the data from.
|
|
18
|
-
* @param {string} responseType - The type of response expected ('json', 'text', 'blob', 'arrayBuffer').
|
|
19
|
-
* @param {Object} [settings] - custom settings to apply to the request (@link https://developer.mozilla.org/en-US/docs/Web/API/fetch#options)
|
|
20
|
-
* @returns {Promise} A promise that resolves with the fetched data or rejects with an error.
|
|
21
|
-
* @ignore
|
|
22
|
-
* @example
|
|
23
|
-
* fetchData('https://api.example.com/data', 'json')
|
|
24
|
-
* .then(data => {
|
|
25
|
-
* // Handle the fetched JSON data
|
|
26
|
-
* })
|
|
27
|
-
* .catch(error => {
|
|
28
|
-
* // Handle the error
|
|
29
|
-
* });
|
|
30
|
-
*/
|
|
31
|
-
export function fetchData(url: string, responseType: string, settings?: Object): Promise<any>;
|
|
1
|
+
|
|
32
2
|
//# sourceMappingURL=fetchdata.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fetchdata.d.ts","sourceRoot":"","sources":["../../src/utils/fetchdata.js"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"fetchdata.d.ts","sourceRoot":"","sources":["../../src/utils/fetchdata.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AACH,oCANW,MAAM,aACN,MAAM,GACJ,OAAO,CAMnB;AA4DD;;;;;;;;;;;;;;;;GAgBG;AACH,+BAfW,MAAM,gBACN,MAAM,aACN,MAAM,gBAmDhB"}
|
package/build/utils/utils.d.ts
CHANGED
|
@@ -34,18 +34,5 @@ export declare function checkVersion(v1: string, v2: string): 0 | 1 | -1;
|
|
|
34
34
|
* console.log(UriFragment["mytag"]); //> "value"
|
|
35
35
|
*/
|
|
36
36
|
export declare function getUriFragment(url?: string): Record<string, string | boolean>;
|
|
37
|
-
/**
|
|
38
|
-
* reset the GUID Base Name
|
|
39
|
-
* the idea here being to have a unique ID
|
|
40
|
-
* per level / object
|
|
41
|
-
* @ignore
|
|
42
|
-
*/
|
|
43
|
-
export declare function resetGUID(base: string, index?: number): void;
|
|
44
|
-
/**
|
|
45
|
-
* create and return a very simple GUID
|
|
46
|
-
* Game Unique ID
|
|
47
|
-
* @ignore
|
|
48
|
-
*/
|
|
49
|
-
export declare function createGUID(index?: number): string;
|
|
50
37
|
export declare const isStringArray: (value: unknown) => value is string[];
|
|
51
38
|
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/utils/utils.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,KAAK,MAAM,YAAY,CAAC;AACpC,OAAO,KAAK,KAAK,MAAM,YAAY,CAAC;AACpC,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAClC,OAAO,KAAK,QAAQ,MAAM,eAAe,CAAC;AAC1C,OAAO,KAAK,MAAM,MAAM,aAAa,CAAC;AAWtC;;;;;;;;;;;GAWG;AACH,wBAAgB,YAAY,CAAC,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,cAalD;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,cAAc,CAAC,GAAG,CAAC,EAAE,MAAM,oCA2C1C;
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/utils/utils.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,KAAK,MAAM,YAAY,CAAC;AACpC,OAAO,KAAK,KAAK,MAAM,YAAY,CAAC;AACpC,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAClC,OAAO,KAAK,QAAQ,MAAM,eAAe,CAAC;AAC1C,OAAO,KAAK,MAAM,MAAM,aAAa,CAAC;AAWtC;;;;;;;;;;;GAWG;AACH,wBAAgB,YAAY,CAAC,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,cAalD;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,cAAc,CAAC,GAAG,CAAC,EAAE,MAAM,oCA2C1C;AA8CD,eAAO,MAAM,aAAa,GAAI,OAAO,OAAO,KAAG,KAAK,IAAI,MAAM,EAO7D,CAAC"}
|
|
@@ -1,107 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
* Whether a blend mode needs the shader path rather than fixed-function state.
|
|
3
|
-
* @param {string} mode - the blend mode to test
|
|
4
|
-
* @returns {boolean} true when the mode needs the shader path
|
|
5
|
-
* @ignore
|
|
6
|
-
*/
|
|
7
|
-
export function isAdvancedBlendMode(mode: string): boolean;
|
|
8
|
-
/**
|
|
9
|
-
* The `uBlendMode` uniform value for an advanced blend mode.
|
|
10
|
-
* @param {string} mode - the blend mode
|
|
11
|
-
* @returns {number} the shader's mode index, or -1 when not an advanced mode
|
|
12
|
-
* @ignore
|
|
13
|
-
*/
|
|
14
|
-
export function advancedBlendModeIndex(mode: string): number;
|
|
15
|
-
/**
|
|
16
|
-
* Normalize a user-facing blend-mode string to its canonical token: `add` and
|
|
17
|
-
* `lighter` are spellings of `additive`, and anything unrecognized collapses
|
|
18
|
-
* to `normal`.
|
|
19
|
-
*
|
|
20
|
-
* The advanced modes normalize to `"normal"` on purpose — that is their
|
|
21
|
-
* PIPELINE state, since the geometry really does rasterize under ordinary
|
|
22
|
-
* source-over before the shader composites it. Use {@link isAdvancedBlendMode}
|
|
23
|
-
* to ask the other question, and {@link reportedBlendMode} for what
|
|
24
|
-
* `setBlendMode` should tell the caller.
|
|
25
|
-
* @param {string} mode - blend mode as set through `setBlendMode`
|
|
26
|
-
* @returns {string} the canonical token
|
|
27
|
-
* @ignore
|
|
28
|
-
*/
|
|
29
|
-
export function normalizeBlendMode(mode: string): string;
|
|
30
|
-
/**
|
|
31
|
-
* Whether the engine can honour this blend mode at all, by either route.
|
|
32
|
-
* @param {string} mode - the blend mode to test
|
|
33
|
-
* @returns {boolean} false only for a mode no backend implements
|
|
34
|
-
* @ignore
|
|
35
|
-
*/
|
|
36
|
-
export function isSupportedBlendMode(mode: string): boolean;
|
|
37
|
-
/**
|
|
38
|
-
* What `setBlendMode` reports back as applied.
|
|
39
|
-
*
|
|
40
|
-
* The return value is a capability probe: callers compare it against their
|
|
41
|
-
* request, and a mismatch means the renderer could not honour the mode. So a
|
|
42
|
-
* mode that WAS honoured must report itself verbatim — including an alias
|
|
43
|
-
* like `add`, which shares a pipeline with `additive` but must not come back
|
|
44
|
-
* under that name — while anything unimplemented reports `"normal"`.
|
|
45
|
-
* @param {string} mode - the requested blend mode
|
|
46
|
-
* @returns {string} the mode actually applied
|
|
47
|
-
* @ignore
|
|
48
|
-
*/
|
|
49
|
-
export function reportedBlendMode(mode: string): string;
|
|
50
|
-
/**
|
|
51
|
-
* The blend state for a mode, in WebGPU's vocabulary — the neutral form each
|
|
52
|
-
* backend translates from.
|
|
53
|
-
*
|
|
54
|
-
* `srcFactor` depends on whether sources carry premultiplied alpha: a
|
|
55
|
-
* premultiplied source has already been scaled, so it takes `one` where a
|
|
56
|
-
* straight one takes `src-alpha`.
|
|
57
|
-
*
|
|
58
|
-
* Every mode here is EXACT for a translucent source as well as an opaque one
|
|
59
|
-
* — `multiply`, `screen` and `exclusion` were long commented as
|
|
60
|
-
* "approximate", but the algebra works out and measurement agrees. The two
|
|
61
|
-
* that genuinely could not be expressed this way, `darken` and `lighten`,
|
|
62
|
-
* moved to the shader path instead of staying approximate.
|
|
63
|
-
* @param {string} mode - a canonical mode from {@link normalizeBlendMode}
|
|
64
|
-
* @param {boolean} premultipliedAlpha - whether sources are premultiplied
|
|
65
|
-
* @returns {{operation: string, srcFactor: string, dstFactor: string}|undefined} the
|
|
66
|
-
* blend state, or `undefined` for `"none"`, which means replace (no blending)
|
|
67
|
-
* @ignore
|
|
68
|
-
*/
|
|
69
|
-
export function blendStateFor(mode: string, premultipliedAlpha: boolean): {
|
|
70
|
-
operation: string;
|
|
71
|
-
srcFactor: string;
|
|
72
|
-
dstFactor: string;
|
|
73
|
-
} | undefined;
|
|
74
|
-
/**
|
|
75
|
-
* The engine's blend-mode registry — one definition of every mode, shared by
|
|
76
|
-
* all three renderers.
|
|
77
|
-
*
|
|
78
|
-
* Blending is described here in **backend-neutral** terms and translated by
|
|
79
|
-
* each backend: WebGPU consumes these tokens directly (they are its own
|
|
80
|
-
* vocabulary), WebGL maps them onto `gl.*` enums, and Canvas ignores them
|
|
81
|
-
* entirely in favour of `globalCompositeOperation`.
|
|
82
|
-
*
|
|
83
|
-
* Keeping the table in one place is not tidiness. The two GPU backends
|
|
84
|
-
* previously each carried their own copy — a `switch` of `blendEquation` /
|
|
85
|
-
* `blendFunc` calls on one side and a `GPUBlendState` table on the other —
|
|
86
|
-
* which meant a mode added, removed or corrected on one backend could
|
|
87
|
-
* silently disagree with the other, and `video.AUTO` would then render the
|
|
88
|
-
* same scene differently depending on which backend it happened to pick.
|
|
89
|
-
*/
|
|
90
|
-
/**
|
|
91
|
-
* The CSS blend modes that cannot be expressed as `src * sfactor + dst * dfactor`.
|
|
92
|
-
*
|
|
93
|
-
* Fixed-function blending computes one multiply-add per channel, which covers
|
|
94
|
-
* `multiply`, `screen`, `additive` and `exclusion` — exactly, translucent
|
|
95
|
-
* sources included. The modes below cannot be reached that way: most need a
|
|
96
|
-
* per-pixel branch, a division or a `sqrt` on the DESTINATION, and `darken` /
|
|
97
|
-
* `lighten` need a term the `min` / `max` operations leave no room for.
|
|
98
|
-
* Neither GPU backend can read the destination in a fragment shader, so all of
|
|
99
|
-
* them are implemented by capturing the destination to a texture and
|
|
100
|
-
* compositing in `BlendEffect`.
|
|
101
|
-
*
|
|
102
|
-
* The array ORDER is the wire format: the index is the `uBlendMode` uniform
|
|
103
|
-
* value the shader branches on, so reordering it silently remaps every mode.
|
|
104
|
-
* @ignore
|
|
105
|
-
*/
|
|
106
|
-
export const ADVANCED_BLEND_MODES: string[];
|
|
1
|
+
|
|
107
2
|
//# sourceMappingURL=blendmodes.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"blendmodes.d.ts","sourceRoot":"","sources":["../../src/video/blendmodes.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"blendmodes.d.ts","sourceRoot":"","sources":["../../src/video/blendmodes.js"],"names":[],"mappings":"AAmDA;;;;;;GAMG;AACH,0CALW,MAAM,GACJ,OAAO,CAMnB;AAED;;;;;;GAMG;AACH,6CALW,MAAM,GACJ,MAAM,CAMlB;AAED;;;;;;;;;;;;;;GAcG;AACH,yCALW,MAAM,GACJ,MAAM,CAmBlB;AAED;;;;;;GAMG;AACH,2CALW,MAAM,GACJ,OAAO,CAUnB;AAED;;;;;;;;;;;;GAYG;AACH,wCALW,MAAM,GACJ,MAAM,CAMlB;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,oCAPW,MAAM,sBACN,OAAO,GACL;IAAC,SAAS,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,MAAM,CAAA;CAAC,GAAC,SAAS,CAyC/E;AAjMD;;;;;;;;;;;;;;;GAeG;AAEH;;;;;;;;;;;;;;;;GAgBG;AACH,4CAeE"}
|
|
@@ -1,40 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
* A renderer-agnostic index buffer.
|
|
3
|
-
* Manages a typed array of vertex indices for indexed drawing.
|
|
4
|
-
* {@link WebGLIndexBuffer} extends this with GL-specific bind/upload operations.
|
|
5
|
-
* @ignore
|
|
6
|
-
*/
|
|
7
|
-
export default class IndexBuffer {
|
|
8
|
-
/**
|
|
9
|
-
* @param {number} maxIndices - maximum number of indices this buffer can hold
|
|
10
|
-
* @param {boolean} [useUint32=false] - use Uint32 indices instead of Uint16
|
|
11
|
-
*/
|
|
12
|
-
constructor(maxIndices: number, useUint32?: boolean);
|
|
13
|
-
data: Uint16Array<ArrayBuffer> | Uint32Array<ArrayBuffer>;
|
|
14
|
-
/**
|
|
15
|
-
* the current number of indices in the buffer
|
|
16
|
-
* @type {number}
|
|
17
|
-
*/
|
|
18
|
-
length: number;
|
|
19
|
-
/**
|
|
20
|
-
* Fill the buffer with a repeating quad index pattern [0,1,2, 2,1,3, 4,5,6, ...]
|
|
21
|
-
* @param {number} maxQuads - number of quads to generate indices for
|
|
22
|
-
*/
|
|
23
|
-
fillQuadPattern(maxQuads: number): void;
|
|
24
|
-
/**
|
|
25
|
-
* Reset the index count
|
|
26
|
-
*/
|
|
27
|
-
clear(): void;
|
|
28
|
-
/**
|
|
29
|
-
* Add indices to the buffer, rebased by the given vertex offset
|
|
30
|
-
* @param {number[]} indices - source indices to add
|
|
31
|
-
* @param {number} vertexOffset - value to add to each index
|
|
32
|
-
*/
|
|
33
|
-
add(indices: number[], vertexOffset: number): void;
|
|
34
|
-
/**
|
|
35
|
-
* Add pre-computed absolute indices to the buffer (no rebasing)
|
|
36
|
-
* @param {number[]} indices - absolute index values to add
|
|
37
|
-
*/
|
|
38
|
-
addRaw(indices: number[]): void;
|
|
39
|
-
}
|
|
1
|
+
|
|
40
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/video/buffer/index.js"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/video/buffer/index.js"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH;IACC;;;OAGG;IACH,wBAHW,MAAM,cACN,OAAO,EAYjB;IATA,0DAE8B;IAE9B;;;OAGG;IACH,QAFU,MAAM,CAED;IAGhB;;;OAGG;IACH,0BAFW,MAAM,QAYhB;IAED;;OAEG;IACH,cAEC;IAED;;;;OAIG;IACH,aAHW,MAAM,EAAE,gBACR,MAAM,QAOhB;IAED;;;OAGG;IACH,gBAFW,MAAM,EAAE,QAOlB;CACD"}
|
|
@@ -1,83 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
* A fixed-size vertex array buffer for batching vertex data.
|
|
3
|
-
* Renderer-agnostic — stores vertex data in typed arrays (Float32/Uint32).
|
|
4
|
-
* Batchers must check isFull() and flush before the buffer overflows.
|
|
5
|
-
* @ignore
|
|
6
|
-
*/
|
|
7
|
-
export default class VertexArrayBuffer {
|
|
8
|
-
constructor(vertexSize: any, maxVertex: any);
|
|
9
|
-
vertexSize: any;
|
|
10
|
-
maxVertex: any;
|
|
11
|
-
vertexCount: number;
|
|
12
|
-
buffer: ArrayBuffer;
|
|
13
|
-
bufferF32: Float32Array<ArrayBuffer>;
|
|
14
|
-
bufferU32: Uint32Array<ArrayBuffer>;
|
|
15
|
-
bufferU8: Uint8Array<ArrayBuffer>;
|
|
16
|
-
/**
|
|
17
|
-
* clear the vertex array buffer
|
|
18
|
-
* @ignore
|
|
19
|
-
*/
|
|
20
|
-
clear(): void;
|
|
21
|
-
/**
|
|
22
|
-
* return true if full
|
|
23
|
-
* @ignore
|
|
24
|
-
*/
|
|
25
|
-
isFull(vertex: any): boolean;
|
|
26
|
-
/**
|
|
27
|
-
* push a new vertex to the buffer
|
|
28
|
-
* @param {number} x - x position
|
|
29
|
-
* @param {number} y - y position
|
|
30
|
-
* @param {number} z - z position (per-renderable depth; 0 under ortho)
|
|
31
|
-
* @param {number} u - texture U coordinate (or aNormal.x for primitives)
|
|
32
|
-
* @param {number} v - texture V coordinate (or aNormal.y for primitives)
|
|
33
|
-
* @param {number} tint - tint color in UINT32 (argb) format
|
|
34
|
-
* @param {number} [textureId] - texture unit index for multi-texture batching
|
|
35
|
-
* @param {number} [normalTextureId] - paired normal-map texture unit index, or `-1` for unlit quads
|
|
36
|
-
* @ignore
|
|
37
|
-
*/
|
|
38
|
-
push(x: number, y: number, z: number, u: number, v: number, tint: number, textureId?: number, normalTextureId?: number): this;
|
|
39
|
-
/**
|
|
40
|
-
* push a new vertex with all-float data to the buffer
|
|
41
|
-
* @param {ArrayLike<number>} data - float values for one vertex
|
|
42
|
-
* @param {number} srcOffset - start index in the source data
|
|
43
|
-
* @param {number} count - number of floats to copy (should equal vertexSize)
|
|
44
|
-
* @ignore
|
|
45
|
-
*/
|
|
46
|
-
pushFloats(data: ArrayLike<number>, srcOffset: number, count: number): this;
|
|
47
|
-
/**
|
|
48
|
-
* push a new vertex to the buffer (mesh format: x, y, z, u, v, tint).
|
|
49
|
-
* Color is unpacked from the ARGB Uint32 input into 4 normalized
|
|
50
|
-
* `[0, 1]` floats — the mesh batcher's `aColor` attribute is
|
|
51
|
-
* `FLOAT × 4` rather than `UNSIGNED_BYTE × 4` to avoid NaN-pattern
|
|
52
|
-
* bit values getting canonicalized on Metal-backed WebGL drivers.
|
|
53
|
-
* See `mesh_batcher.init` for the rationale.
|
|
54
|
-
* @ignore
|
|
55
|
-
*/
|
|
56
|
-
pushMesh(x: any, y: any, z: any, u: any, v: any, tint: any): this;
|
|
57
|
-
/**
|
|
58
|
-
* push a new lit-mesh vertex (mesh format + a world-space normal):
|
|
59
|
-
* x, y, z, u, v, tint, nx, ny, nz. Used by the lit mesh batcher, whose
|
|
60
|
-
* vertex layout is 12 floats (the 9 of {@link pushMesh} plus `aNormal`).
|
|
61
|
-
* @ignore
|
|
62
|
-
*/
|
|
63
|
-
pushMeshLit(x: any, y: any, z: any, u: any, v: any, tint: any, nx: any, ny: any, nz: any): this;
|
|
64
|
-
/**
|
|
65
|
-
* return a reference to the data in Float32 format
|
|
66
|
-
* @ignore
|
|
67
|
-
*/
|
|
68
|
-
toFloat32(begin: any, end: any): Float32Array<ArrayBuffer>;
|
|
69
|
-
/**
|
|
70
|
-
* return a reference to the data in Uint32 format
|
|
71
|
-
* @ignore
|
|
72
|
-
*/
|
|
73
|
-
toUint32(begin: any, end: any): Uint32Array<ArrayBuffer>;
|
|
74
|
-
/**
|
|
75
|
-
* return a byte-view reference to the data — use this for `gl.bufferData`
|
|
76
|
-
* uploads to avoid the NaN-canonicalization that some drivers perform
|
|
77
|
-
* on Float32 uploads of the same backing buffer (see the constructor's
|
|
78
|
-
* `bufferU8` comment).
|
|
79
|
-
* @ignore
|
|
80
|
-
*/
|
|
81
|
-
toUint8(byteBegin: any, byteEnd: any): Uint8Array<ArrayBuffer>;
|
|
82
|
-
}
|
|
1
|
+
|
|
83
2
|
//# sourceMappingURL=vertex.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vertex.d.ts","sourceRoot":"","sources":["../../../src/video/buffer/vertex.js"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"vertex.d.ts","sourceRoot":"","sources":["../../../src/video/buffer/vertex.js"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH;IACC,6CAyBC;IAvBA,gBAA4B;IAE5B,eAA0B;IAE1B,oBAAoB;IAGpB,oBAEC;IAED,qCAA8C;IAC9C,oCAA6C;IAU7C,kCAA2C;IAG5C;;;;OAIG;IACH,cAEC;IAED;;;;OAIG;IACH,6BAEC;IAED;;;;;;;;;;;;OAYG;IACH,QAXW,MAAM,KACN,MAAM,KACN,MAAM,KACN,MAAM,KACN,MAAM,QACN,MAAM,cACN,MAAM,oBACN,MAAM,QA8BhB;IAED;;;;;;;OAOG;IACH,iBANW,SAAS,CAAC,MAAM,CAAC,aACjB,MAAM,SACN,MAAM,QAchB;IAED;;;;;;;;;OASG;IACH,kEAgBC;IAED;;;;;;OAMG;IACH,gGAoBC;IAED;;;;OAIG;IACH,2DAMC;IAED;;;;OAIG;IACH,yDAMC;IAED;;;;;;;OAOG;IACH,+DAMC;CACD"}
|