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
|
@@ -20,7 +20,8 @@ export default class Text extends Renderable {
|
|
|
20
20
|
* @param {object} settings - the text configuration
|
|
21
21
|
* @param {string} settings.font - a CSS font family: a specific name (`"Arial"`), a generic keyword (`"sans-serif"`, `"monospace"`, …), or a web font loaded via the `fontface` loader (referenced by its family name)
|
|
22
22
|
* @param {number|string} settings.size - the font size: a number in pixels, or a CSS size string with a unit (`"24px"` / `"1.5em"` / `"18pt"`)
|
|
23
|
-
* @param {Color|string} [settings.fillStyle="#000000"] - a CSS color value used to fill the glyphs
|
|
23
|
+
* @param {Color|Gradient|string} [settings.fillStyle="#000000"] - a CSS color value used to fill the glyphs, or a {@link Gradient} to ramp them
|
|
24
|
+
* @param {boolean} [settings.gradientPerLine=true] - restart a gradient fill on every line; `false` spans one ramp across the whole block, as a plain canvas does
|
|
24
25
|
* @param {Color|string} [settings.strokeStyle="#000000"] - a CSS color value used for the glyph outline (drawn when `lineWidth` > 0)
|
|
25
26
|
* @param {number} [settings.lineWidth=0] - outline width in pixels (0 = no stroke)
|
|
26
27
|
* @param {string} [settings.textAlign="left"] - horizontal text alignment ("left", "center", "right")
|
|
@@ -28,6 +29,8 @@ export default class Text extends Renderable {
|
|
|
28
29
|
* @param {number} [settings.lineHeight=1.0] - line spacing height
|
|
29
30
|
* @param {string|Vector2d|{x:number,y:number}} [settings.anchorPoint={x:0.0, y:0.0}] - anchor point to draw the text at. Also accepts the named presets `"center"`, `"top"`, `"bottom"`, `"left"`, `"right"`, `"top-left"`, `"top-right"`, `"bottom-left"`, `"bottom-right"`.
|
|
30
31
|
* @param {number} [settings.wordWrapWidth] - the maximum length in CSS pixels of a line before it wraps
|
|
32
|
+
* @param {boolean} [settings.bold=false] - render the face bold, as {@link Text#bold} does
|
|
33
|
+
* @param {boolean} [settings.italic=false] - render the face italic, as {@link Text#italic} does
|
|
31
34
|
* @param {(string|string[])} [settings.text=""] - a string, or an array of strings
|
|
32
35
|
* @example
|
|
33
36
|
* // a styled, word-wrapped, multi-line label using a generic system font
|
|
@@ -46,6 +49,23 @@ export default class Text extends Renderable {
|
|
|
46
49
|
* label.setOpacity(0.8); // per-object transparency
|
|
47
50
|
* app.world.addChild(label);
|
|
48
51
|
* @example
|
|
52
|
+
* // a gradient fill: `fillStyle` takes a Gradient as well as a colour.
|
|
53
|
+
* // Its coordinates are the label's OWN bake, so (0, 0) is the top-left of
|
|
54
|
+
* // the render box and the ramp below runs down exactly one line.
|
|
55
|
+
* const ramp = app.renderer.createLinearGradient(0, 0, 0, 32);
|
|
56
|
+
* ramp.addColorStop(0, "#fffdf0");
|
|
57
|
+
* ramp.addColorStop(1, "#ffa71d");
|
|
58
|
+
*
|
|
59
|
+
* app.world.addChild(new Text(8, 8, {
|
|
60
|
+
* font: "sans-serif",
|
|
61
|
+
* size: 32,
|
|
62
|
+
* fillStyle: ramp, // ramps the glyphs...
|
|
63
|
+
* strokeStyle: "#000000", // ...while the outline keeps its own colour
|
|
64
|
+
* lineWidth: 1,
|
|
65
|
+
* text: "GAME\nOVER", // every line restarts the ramp by default
|
|
66
|
+
* // gradientPerLine: false, // ...or span ONE ramp across both lines
|
|
67
|
+
* }));
|
|
68
|
+
* @example
|
|
49
69
|
* // a web font (loaded via the fontface loader) is used by its family name
|
|
50
70
|
* loader.preload(
|
|
51
71
|
* [{ name: "kenpixel", type: "fontface", src: "data/font/kenvector.woff2" }],
|
|
@@ -59,7 +79,8 @@ export default class Text extends Renderable {
|
|
|
59
79
|
constructor(x: number, y: number, settings: {
|
|
60
80
|
font: string;
|
|
61
81
|
size: number | string;
|
|
62
|
-
fillStyle?: string | Color | undefined;
|
|
82
|
+
fillStyle?: string | Color | Gradient | undefined;
|
|
83
|
+
gradientPerLine?: boolean | undefined;
|
|
63
84
|
strokeStyle?: string | Color | undefined;
|
|
64
85
|
lineWidth?: number | undefined;
|
|
65
86
|
textAlign?: string | undefined;
|
|
@@ -70,6 +91,8 @@ export default class Text extends Renderable {
|
|
|
70
91
|
y: number;
|
|
71
92
|
};
|
|
72
93
|
wordWrapWidth?: number | undefined;
|
|
94
|
+
bold?: boolean | undefined;
|
|
95
|
+
italic?: boolean | undefined;
|
|
73
96
|
text?: string | string[] | undefined;
|
|
74
97
|
});
|
|
75
98
|
/**
|
|
@@ -125,17 +148,40 @@ export default class Text extends Renderable {
|
|
|
125
148
|
*/
|
|
126
149
|
fontSize: number;
|
|
127
150
|
/**
|
|
128
|
-
*
|
|
129
|
-
* @
|
|
151
|
+
* The gradient to fill the glyphs with, when one was given instead of a
|
|
152
|
+
* colour. Built by {@link Renderer#createLinearGradient} /
|
|
153
|
+
* {@link Renderer#createRadialGradient}, and its coordinates are this
|
|
154
|
+
* label's own bake — `(0, 0)` is the top-left of the render box.
|
|
155
|
+
*
|
|
156
|
+
* Set it through `fillStyle`, the way `Renderer#setColor` takes one;
|
|
157
|
+
* this field is where it lands so the pooled `fillStyle` `Color` keeps
|
|
158
|
+
* its type, its alpha and its pooling.
|
|
159
|
+
* @type {Gradient|undefined}
|
|
160
|
+
* @default undefined
|
|
161
|
+
* @example
|
|
162
|
+
* const ramp = renderer.createLinearGradient(0, 0, 0, 24);
|
|
163
|
+
* ramp.addColorStop(0, "#fffdf0");
|
|
164
|
+
* ramp.addColorStop(1, "#f0a020");
|
|
165
|
+
* const label = new Text(x, y, { font: "Arial", size: 24, fillStyle: ramp });
|
|
130
166
|
*/
|
|
131
|
-
|
|
132
|
-
/** @ignore */
|
|
133
|
-
onResetEvent(x: any, y: any, settings: any): void;
|
|
134
|
-
canvasTexture: CanvasRenderTarget | undefined;
|
|
167
|
+
fillGradient: Gradient | undefined;
|
|
135
168
|
/**
|
|
136
|
-
*
|
|
169
|
+
* Whether a gradient fill restarts on every line.
|
|
170
|
+
*
|
|
171
|
+
* `true` (the default) re-anchors the ramp to each line, so a
|
|
172
|
+
* multi-line label reads like one `Text` per line — which is how a HUD
|
|
173
|
+
* is usually built, and means the ramp does not have to be authored
|
|
174
|
+
* over the block height to look right.
|
|
175
|
+
*
|
|
176
|
+
* `false` spans one ramp across the whole block, which is what a plain
|
|
177
|
+
* canvas does: a `CanvasGradient` lives in the current transform's
|
|
178
|
+
* space, so lines further down sample further along it. Use it for a
|
|
179
|
+
* deliberate fade across a multi-line title.
|
|
180
|
+
* @type {boolean}
|
|
181
|
+
* @default true
|
|
137
182
|
*/
|
|
138
|
-
|
|
183
|
+
gradientPerLine: boolean | undefined;
|
|
184
|
+
canvasTexture: CanvasRenderTarget | undefined;
|
|
139
185
|
metrics: TextMetrics | undefined;
|
|
140
186
|
/**
|
|
141
187
|
* make the font bold
|
|
@@ -181,15 +227,32 @@ export default class Text extends Renderable {
|
|
|
181
227
|
public set visibleRatio(value: number);
|
|
182
228
|
/**
|
|
183
229
|
* the ratio of visible characters (0.0 to 1.0).
|
|
184
|
-
* Setting this automatically updates {@link visibleCharacters}.
|
|
230
|
+
* Setting this automatically updates {@link Text#visibleCharacters}.
|
|
231
|
+
*
|
|
232
|
+
* This is the one to tween: it is independent of how many characters the
|
|
233
|
+
* label holds, so a reveal takes the same time whatever the string is.
|
|
185
234
|
* @public
|
|
186
235
|
* @type {number}
|
|
236
|
+
* @default 1.0
|
|
237
|
+
* @see Text#visibleCharacters
|
|
238
|
+
* @example
|
|
239
|
+
* // reveal over two seconds, regardless of length
|
|
240
|
+
* label.visibleRatio = 0;
|
|
241
|
+
* new Tween(label).to({ visibleRatio: 1.0 }, { duration: 2000 }).start();
|
|
187
242
|
*/
|
|
188
243
|
public get visibleRatio(): number;
|
|
189
244
|
/**
|
|
190
245
|
* measure the given text size in pixels
|
|
191
246
|
* @param {string} [text] - the text to be measured
|
|
192
247
|
* @returns {TextMetrics} a TextMetrics object defining the dimensions of the given piece of text
|
|
248
|
+
* @example
|
|
249
|
+
* // size a panel around a label
|
|
250
|
+
* const size = label.measureText();
|
|
251
|
+
* panel.resize(size.width + 16, size.height + 16);
|
|
252
|
+
*
|
|
253
|
+
* // or measure a string the label does not currently hold, to reserve
|
|
254
|
+
* // room for the widest state a counter will reach
|
|
255
|
+
* const widest = label.measureText("00:00").width;
|
|
193
256
|
*/
|
|
194
257
|
measureText(text?: string): TextMetrics;
|
|
195
258
|
/**
|
|
@@ -197,18 +260,10 @@ export default class Text extends Renderable {
|
|
|
197
260
|
* @param {CanvasRenderer|WebGLRenderer} renderer - Reference to the destination renderer instance
|
|
198
261
|
*/
|
|
199
262
|
draw(renderer: CanvasRenderer | WebGLRenderer): void;
|
|
200
|
-
/**
|
|
201
|
-
* @ignore
|
|
202
|
-
*/
|
|
203
|
-
_drawFont(context: any, text: any, x: any, y: any): TextMetrics | undefined;
|
|
204
|
-
/**
|
|
205
|
-
* Destroy function
|
|
206
|
-
* @ignore
|
|
207
|
-
*/
|
|
208
|
-
destroy(): void;
|
|
209
263
|
}
|
|
210
264
|
import Renderable from "../renderable.js";
|
|
211
265
|
import { Color } from "../../math/color.ts";
|
|
266
|
+
import { Gradient } from "../../video/gradient.js";
|
|
212
267
|
import CanvasRenderTarget from "../../video/rendertarget/canvasrendertarget.js";
|
|
213
268
|
import TextMetrics from "./textmetrics.js";
|
|
214
269
|
//# sourceMappingURL=text.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"text.d.ts","sourceRoot":"","sources":["../../../src/renderable/text/text.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"text.d.ts","sourceRoot":"","sources":["../../../src/renderable/text/text.js"],"names":[],"mappings":"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C,MAAM,EAAE,GACpB,IAAI,CAkFhB;IAkBD,oCAZU,MAAM,EAiBf;IArBD;;;;;;;;;;;OAWG;IACH,gCARU,MAAM,CAUf;IAkCD,+BAlBU,MAAM,EA4Bf;IAnCD;;;;;;;;;;;;;;OAcG;IACH,2BARU,MAAM,CAgBf;IAiED;;;;;;;;;;;;OAYG;IACH,mBAXW,MAAM,GACJ,WAAW,CAYvB;IAED;;;OAGG;IACH,eAFW,cAAc,GAAC,aAAa,QA0CtC;IAED;;;OAGG;IACH,4EA+GC;IAED;;;;OAIG;IACH,gBAWC;CACD;uBAzxBsB,kBAAkB;sBALR,qBAAqB;yBAC7B,yBAAyB;+BAEnB,gDAAgD;wBAGvD,kBAAkB"}
|
|
@@ -34,6 +34,8 @@ declare class TextMetrics extends Bounds {
|
|
|
34
34
|
measureText(text: string, context?: CanvasRenderingContext2D): TextMetrics;
|
|
35
35
|
glyphYOffset: number | undefined;
|
|
36
36
|
glyphMaxBottom: number | undefined;
|
|
37
|
+
inkPadTop: number | undefined;
|
|
38
|
+
inkPadBottom: number | undefined;
|
|
37
39
|
/**
|
|
38
40
|
* wrap the given text based on the given width
|
|
39
41
|
* @param {string|string[]} text - the text to be wrapped
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"textmetrics.d.ts","sourceRoot":"","sources":["../../../src/renderable/text/textmetrics.js"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"textmetrics.d.ts","sourceRoot":"","sources":["../../../src/renderable/text/textmetrics.js"],"names":[],"mappings":";AA0BA;;GAEG;AACH;IACC;;OAEG;IACH,sBAFW,IAAI,GAAC,UAAU,EAczB;IARA;;;;OAIG;IACH,UAHU,UAAU,CAGI;IAKzB;;;OAGG;IACH,cAFa,MAAM,CAalB;IAED;;;;;OAKG;IACH,gBAJW,MAAM,YACN,wBAAwB,GACtB,MAAM,CA4BlB;IAED;;;;;OAKG;IACH,kBAJW,MAAM,YACN,wBAAwB,GACtB,WAAW,CAiHvB;IA/EA,iCAAqB;IACrB,mCAAuB;IAmCvB,8BAAkB;IAClB,iCAAqB;IA4CtB;;;;;;;;;;;;;;;OAeG;IACH,gBAJa,WAAW,CAoBvB;IAED;;;;;;OAMG;IACH,eALW,MAAM,GAAC,MAAM,EAAE,SACf,MAAM,YACN,wBAAwB,GACtB,MAAM,EAAE,CAyCpB;CACD;uBA1SsB,yBAAyB;iBAC/B,WAAW"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"textstyle.d.ts","sourceRoot":"","sources":["../../../src/renderable/text/textstyle.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"textstyle.d.ts","sourceRoot":"","sources":["../../../src/renderable/text/textstyle.js"],"names":[],"mappings":"AAmEA;;;;;;;;GAQG;AACH,iDAPW,wBAAwB,SACxB,MAAM,GACJ,MAAM,GAAC,cAAc,CAcjC"}
|
|
@@ -75,43 +75,14 @@ export default class Trail extends Renderable {
|
|
|
75
75
|
minDistance: number;
|
|
76
76
|
/** @type {number[]} */
|
|
77
77
|
widthCurve: number[];
|
|
78
|
-
/** @ignore */
|
|
79
|
-
_gradient: Gradient;
|
|
80
|
-
/** @ignore */
|
|
81
|
-
_points: any[];
|
|
82
|
-
/** @ignore */
|
|
83
|
-
_segmentColor: Color;
|
|
84
|
-
/** @ignore */
|
|
85
|
-
_n0: {
|
|
86
|
-
x: number;
|
|
87
|
-
y: number;
|
|
88
|
-
};
|
|
89
|
-
/** @ignore */
|
|
90
|
-
_n1: {
|
|
91
|
-
x: number;
|
|
92
|
-
y: number;
|
|
93
|
-
};
|
|
94
78
|
/**
|
|
95
79
|
* add a point to the trail
|
|
96
80
|
* @param {number} x - x position
|
|
97
81
|
* @param {number} y - y position
|
|
98
82
|
*/
|
|
99
83
|
addPoint(x: number, y: number): void;
|
|
100
|
-
/** @ignore */
|
|
101
|
-
update(dt: any): boolean;
|
|
102
|
-
/** @ignore */
|
|
103
|
-
draw(renderer: any): void;
|
|
104
84
|
/** clear all trail points */
|
|
105
85
|
clear(): void;
|
|
106
|
-
/**
|
|
107
|
-
* Build a Gradient from trail constructor options.
|
|
108
|
-
* @param {object} options - trail constructor options
|
|
109
|
-
* @returns {Gradient}
|
|
110
|
-
* @ignore
|
|
111
|
-
*/
|
|
112
|
-
_buildGradient(options: object): Gradient;
|
|
113
|
-
/** @ignore */
|
|
114
|
-
destroy(): void;
|
|
115
86
|
}
|
|
116
87
|
import Renderable from "./renderable.js";
|
|
117
88
|
import type { Vector2d } from "../math/vector2d.ts";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"trail.d.ts","sourceRoot":"","sources":["../../src/renderable/trail.js"],"names":[],"mappings":"AAMA;;;GAGG;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH;IACC;;;;;;;;;;;;OAYG;IACH,sBAXG;QAAsC,MAAM;QACnB,MAAM;QACN,QAAQ;QACR,WAAW;QACX,KAAK;QACH,UAAU;QACN,KAAK;QACkC,QAAQ;iBAAlD,MAAM;mBAAS,KAAK,GAAC,MAAM;;QAC9B,OAAO;QACP,SAAS;KACpC,
|
|
1
|
+
{"version":3,"file":"trail.d.ts","sourceRoot":"","sources":["../../src/renderable/trail.js"],"names":[],"mappings":"AAMA;;;GAGG;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH;IACC;;;;;;;;;;;;OAYG;IACH,sBAXG;QAAsC,MAAM;QACnB,MAAM;QACN,QAAQ;QACR,WAAW;QACX,KAAK;QACH,UAAU;QACN,KAAK;QACkC,QAAQ;iBAAlD,MAAM;mBAAS,KAAK,GAAC,MAAM;;QAC9B,OAAO;QACP,SAAS;KACpC,EAuDA;IAnDA,uCAAuC;IACvC,QADW,UAAU,GAAC,QAAQ,GAAC,IAAI,CACC;IACpC,qBAAqB;IACrB,WADW,MAAM,CACoB;IACrC,qBAAqB;IACrB,UADW,MAAM,CACsB;IACvC,qBAAqB;IACrB,aADW,MAAM,CAC0B;IAG3C,uBAAuB;IACvB,YADW,MAAM,EAAE,CAIT;IAEV;;;OAGG;IACH,oBAA6C;IAC7C;;;OAGG;IACH,eAAiB;IACjB;;;OAGG;IACH,qBAAoC;IACpC;;;OAGG;IACH;;;MAAyB;IACzB;;;OAGG;IACH;;;MAAyB;IAa1B;;;;OAIG;IACH,YAHW,MAAM,KACN,MAAM,QAehB;IAED;;;OAGG;IACH,yBAsBC;IAED;;;OAGG;IACH,0BAiDC;IAED,6BAA6B;IAC7B,cAEC;IAED;;;;;;OAMG;IACH,wBALW,MAAM,GACJ,QAAQ,CAiCpB;IAED;;;OAGG;IACH,gBAMC;CACD;uBA5QsB,iBAAiB;8BAIb,qBAAqB;yBALvB,sBAAsB;2BAIvB,kBAAkB"}
|
|
@@ -90,12 +90,6 @@ export default class Trigger extends Renderable {
|
|
|
90
90
|
collisionMask: number;
|
|
91
91
|
isSensor: boolean;
|
|
92
92
|
};
|
|
93
|
-
/**
|
|
94
|
-
* @ignore
|
|
95
|
-
*/
|
|
96
|
-
getTriggerSettings(): {
|
|
97
|
-
event: string;
|
|
98
|
-
};
|
|
99
93
|
/**
|
|
100
94
|
* Trigger this event. Override in subclasses to customize behavior.
|
|
101
95
|
* @protected
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"trigger.d.ts","sourceRoot":"","sources":["../../src/renderable/trigger.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"trigger.d.ts","sourceRoot":"","sources":["../../src/renderable/trigger.js"],"names":[],"mappings":"AAUA;;;GAGG;AAEH;;;;GAIG;AACH;IACC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAgDG;IACH,eAhDW,MAAM,KACN,MAAM,YAEd;QAA0B,KAAK;QACL,MAAM;QACqB,MAAM;QACjC,QAAQ;QACF,KAAK,GAA7B,MAAM,GAAC,KAAK;QACM,UAAU;QACD,KAAK,GAAhC,OAAO,GAAC,OAAO;QACG,KAAK;QACL,EAAE;QACQ,SAAS,GAArC,MAAM,GAAC,SAAS;QACI,QAAQ;QACT,OAAO;QACP,iBAAiB;KAC5C,EAgGF;IA3DA,WAA4C;IAC5C,6BAAiC;IACjC,mBAA+C;IAC/C,qBAAqC;IACrC,gBAAmB;IAInB,UAAyB;IACzB,QAAqB;IACrB,8BAA4B;IAG5B;;MAEC;IA+BD;;;;;;MAMC;IASF;;;OAGG;IACH;;MAQC;IAED;;;OAGG;IACH,+BAwFC;IAED;;;;;OAKG;IACH,yBAIC;CACD;uBAvPsB,iBAAiB"}
|
|
@@ -53,27 +53,12 @@ export default class UIBaseElement extends Container {
|
|
|
53
53
|
* @param h - height of the container
|
|
54
54
|
*/
|
|
55
55
|
constructor(x: number, y: number, w?: number, h?: number);
|
|
56
|
-
/**
|
|
57
|
-
* function callback for the pointerdown event
|
|
58
|
-
* @ignore
|
|
59
|
-
*/
|
|
60
|
-
clicked(event: Pointer): boolean | void;
|
|
61
56
|
/**
|
|
62
57
|
* function called when the object is pressed (to be extended)
|
|
63
58
|
* @param _event - the event object
|
|
64
59
|
* @returns return false if we need to stop propagating the event
|
|
65
60
|
*/
|
|
66
61
|
onClick(_event?: Pointer): boolean;
|
|
67
|
-
/**
|
|
68
|
-
* function callback for the pointerEnter event
|
|
69
|
-
* @ignore
|
|
70
|
-
*/
|
|
71
|
-
enter(event: Pointer): void;
|
|
72
|
-
/**
|
|
73
|
-
* pointermove function
|
|
74
|
-
* @ignore
|
|
75
|
-
*/
|
|
76
|
-
pointerMove(event: Pointer): void;
|
|
77
62
|
/**
|
|
78
63
|
* function called when the pointer is moved over the object
|
|
79
64
|
* @param _event - the event object
|
|
@@ -84,46 +69,21 @@ export default class UIBaseElement extends Container {
|
|
|
84
69
|
* @param _event - the event object
|
|
85
70
|
*/
|
|
86
71
|
onOver(_event?: Pointer): void;
|
|
87
|
-
/**
|
|
88
|
-
* function callback for the pointerLeave event
|
|
89
|
-
* @ignore
|
|
90
|
-
*/
|
|
91
|
-
leave(event: Pointer): void;
|
|
92
72
|
/**
|
|
93
73
|
* function called when the pointer is leaving the object area
|
|
94
74
|
* @param _event - the event object
|
|
95
75
|
*/
|
|
96
76
|
onOut(_event?: Pointer): void;
|
|
97
|
-
/**
|
|
98
|
-
* function callback for the pointerup event
|
|
99
|
-
* @ignore
|
|
100
|
-
*/
|
|
101
|
-
release(event: Pointer): boolean | void;
|
|
102
77
|
/**
|
|
103
78
|
* function called when the object is pressed and released (to be extended)
|
|
104
79
|
* @param _event - the event object
|
|
105
80
|
* @returns return false if we need to stop propagating the event
|
|
106
81
|
*/
|
|
107
82
|
onRelease(_event?: Pointer): boolean;
|
|
108
|
-
/**
|
|
109
|
-
* function callback for the tap and hold timer event
|
|
110
|
-
* @ignore
|
|
111
|
-
*/
|
|
112
|
-
hold(): void;
|
|
113
83
|
/**
|
|
114
84
|
* function called when the object is pressed and held<br>
|
|
115
85
|
* to be extended <br>
|
|
116
86
|
*/
|
|
117
87
|
onHold(): void;
|
|
118
|
-
/**
|
|
119
|
-
* function called when added to the game world or a container
|
|
120
|
-
* @ignore
|
|
121
|
-
*/
|
|
122
|
-
onActivateEvent(): void;
|
|
123
|
-
/**
|
|
124
|
-
* function called when removed from the game world or a container
|
|
125
|
-
* @ignore
|
|
126
|
-
*/
|
|
127
|
-
onDeactivateEvent(): void;
|
|
128
88
|
}
|
|
129
89
|
//# sourceMappingURL=uibaseelement.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"uibaseelement.d.ts","sourceRoot":"","sources":["../../../src/renderable/ui/uibaseelement.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,OAAO,MAAM,0BAA0B,CAAC;AACpD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAIvD,OAAO,SAAS,MAAM,iBAAiB,CAAC;AAExC;;;;GAIG;AACH,MAAM,CAAC,OAAO,OAAO,aAAc,SAAQ,SAAS;IACnD;;;;;OAKG;IACM,QAAQ,UAAQ;IAEz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AAM,EAAE,CAAC,CAAC,EAAE,MAAM;IA+CxD;;;;OAIG;IAEH,OAAO,CAAC,MAAM,CAAC,EAAE,OAAO,GAAG,OAAO;IAuClC;;;OAGG;IAEH,MAAM,CAAC,MAAM,CAAC,EAAE,OAAO,GAAG,IAAI;IAI9B;;;OAGG;IAEH,MAAM,CAAC,MAAM,CAAC,EAAE,OAAO,GAAG,IAAI;IAuB9B;;;OAGG;IAEH,KAAK,CAAC,MAAM,CAAC,EAAE,OAAO,GAAG,IAAI;IAmB7B;;;;OAIG;IAEH,SAAS,CAAC,MAAM,CAAC,EAAE,OAAO,GAAG,OAAO;IAkBpC;;;OAGG;IACH,MAAM,IAAI,IAAI;CA4Dd"}
|
|
@@ -67,67 +67,32 @@ export default class UISpriteElement extends Sprite {
|
|
|
67
67
|
image: any;
|
|
68
68
|
[key: string]: any;
|
|
69
69
|
});
|
|
70
|
-
/**
|
|
71
|
-
* function callback for the pointerdown event
|
|
72
|
-
* @ignore
|
|
73
|
-
*/
|
|
74
|
-
clicked(event: Pointer): boolean | void;
|
|
75
70
|
/**
|
|
76
71
|
* function called when the object is pressed (to be extended)
|
|
77
72
|
* @param _event - the event object
|
|
78
73
|
* @returns return false if we need to stop propagating the event
|
|
79
74
|
*/
|
|
80
75
|
onClick(_event?: Pointer): boolean;
|
|
81
|
-
/**
|
|
82
|
-
* function callback for the pointerEnter event
|
|
83
|
-
* @ignore
|
|
84
|
-
*/
|
|
85
|
-
enter(event: Pointer): void;
|
|
86
76
|
/**
|
|
87
77
|
* function called when the pointer is over the object
|
|
88
78
|
* @param _event - the event object
|
|
89
79
|
*/
|
|
90
80
|
onOver(_event?: Pointer): void;
|
|
91
|
-
/**
|
|
92
|
-
* function callback for the pointerLeave event
|
|
93
|
-
* @ignore
|
|
94
|
-
*/
|
|
95
|
-
leave(event: Pointer): void;
|
|
96
81
|
/**
|
|
97
82
|
* function called when the pointer is leaving the object area
|
|
98
83
|
* @param _event - the event object
|
|
99
84
|
*/
|
|
100
85
|
onOut(_event?: Pointer): void;
|
|
101
|
-
/**
|
|
102
|
-
* function callback for the pointerup event
|
|
103
|
-
* @ignore
|
|
104
|
-
*/
|
|
105
|
-
release(event: Pointer): boolean | void;
|
|
106
86
|
/**
|
|
107
87
|
* function called when the object is pressed and released (to be extended)
|
|
108
88
|
* @param _event - the event object
|
|
109
89
|
* @returns return false if we need to stop propagating the event
|
|
110
90
|
*/
|
|
111
91
|
onRelease(_event?: Pointer): boolean;
|
|
112
|
-
/**
|
|
113
|
-
* function callback for the tap and hold timer event
|
|
114
|
-
* @ignore
|
|
115
|
-
*/
|
|
116
|
-
hold(): void;
|
|
117
92
|
/**
|
|
118
93
|
* function called when the object is pressed and held<br>
|
|
119
94
|
* to be extended <br>
|
|
120
95
|
*/
|
|
121
96
|
onHold(): void;
|
|
122
|
-
/**
|
|
123
|
-
* function called when added to the game world or a container
|
|
124
|
-
* @ignore
|
|
125
|
-
*/
|
|
126
|
-
onActivateEvent(): void;
|
|
127
|
-
/**
|
|
128
|
-
* function called when removed from the game world or a container
|
|
129
|
-
* @ignore
|
|
130
|
-
*/
|
|
131
|
-
onDeactivateEvent(): void;
|
|
132
97
|
}
|
|
133
98
|
//# sourceMappingURL=uispriteelement.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"uispriteelement.d.ts","sourceRoot":"","sources":["../../../src/renderable/ui/uispriteelement.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,OAAO,MAAM,0BAA0B,CAAC;AAEpD,OAAO,MAAM,MAAM,gBAAgB,CAAC;AAEpC;;;GAGG;AACH,MAAM,CAAC,OAAO,OAAO,eAAgB,SAAQ,MAAM;IAClD;;;;;OAKG;IACM,QAAQ,UAAQ;IAEzB;;;OAGG;IACH,WAAW,EAAE,OAAO,CAAC;IAErB;;;OAGG;IACH,aAAa,EAAE,MAAM,CAAC;IAEtB;;;OAGG;IACH,UAAU,EAAE,OAAO,CAAC;IAEpB;;;OAGG;IACH,KAAK,E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CAAC,MAAM,CAAC,EAAE,OAAO,GAAG,OAAO;IAkBpC;;;OAGG;IACH,MAAM,IAAI,IAAI;CAyCd"}
|
package/build/state/stage.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import type Application from "./../application/application.ts";
|
|
2
2
|
import Camera2d from "./../camera/camera2d.ts";
|
|
3
3
|
import type Light2d from "./../lighting/light2d.ts";
|
|
4
|
-
import type { Light3d } from "./../lighting/light3d.ts";
|
|
5
4
|
import { Color } from "./../math/color.ts";
|
|
6
5
|
import type World from "./../physics/world.js";
|
|
7
6
|
import type Renderer from "./../video/renderer.js";
|
|
@@ -55,20 +54,6 @@ export default class Stage {
|
|
|
55
54
|
* this.ambientLight.parseCSS("#1117");
|
|
56
55
|
*/
|
|
57
56
|
lights: Map<string, Light2d>;
|
|
58
|
-
/**
|
|
59
|
-
* Internal set of active lights, auto-populated by `Light2d`'s
|
|
60
|
-
* `onActivateEvent` / `onDeactivateEvent` hooks. Used by Camera2d's
|
|
61
|
-
* ambient-overlay pass to compute the cutouts.
|
|
62
|
-
* @ignore
|
|
63
|
-
*/
|
|
64
|
-
_activeLights: Set<Light2d>;
|
|
65
|
-
/**
|
|
66
|
-
* Internal set of active 3D lights, auto-populated by `Light3d`'s
|
|
67
|
-
* `onActivateEvent` / `onDeactivateEvent` hooks. Read by the lit mesh
|
|
68
|
-
* batcher each frame to shade `lit` meshes under a `Camera3d`.
|
|
69
|
-
* @ignore
|
|
70
|
-
*/
|
|
71
|
-
_activeLights3d: Set<Light3d>;
|
|
72
57
|
/**
|
|
73
58
|
* an ambient light that will be added to the stage rendering. Its alpha
|
|
74
59
|
* is what gates the lighting pass: at alpha 0 (the default) `drawLighting`
|
|
@@ -99,35 +84,8 @@ export default class Stage {
|
|
|
99
84
|
*/
|
|
100
85
|
constructor(settings?: Partial<StageSettings>);
|
|
101
86
|
/**
|
|
102
|
-
*
|
|
103
|
-
*
|
|
104
|
-
* @ignore
|
|
105
|
-
*/
|
|
106
|
-
_registerLight(light: Light2d): void;
|
|
107
|
-
/**
|
|
108
|
-
* Called by `Light2d.onDeactivateEvent` to deregister the light.
|
|
109
|
-
* @ignore
|
|
110
|
-
*/
|
|
111
|
-
_unregisterLight(light: Light2d): void;
|
|
112
|
-
/**
|
|
113
|
-
* Called by `Light3d.onActivateEvent` to register a 3D light with the stage.
|
|
114
|
-
* Read by the lit mesh batcher. Users normally don't call this.
|
|
115
|
-
* @ignore
|
|
116
|
-
*/
|
|
117
|
-
_registerLight3d(light: Light3d): void;
|
|
118
|
-
/**
|
|
119
|
-
* Called by `Light3d.onDeactivateEvent` to deregister a 3D light.
|
|
120
|
-
* @ignore
|
|
121
|
-
*/
|
|
122
|
-
_unregisterLight3d(light: Light3d): void;
|
|
123
|
-
/**
|
|
124
|
-
* Object reset function
|
|
125
|
-
* @ignore
|
|
126
|
-
*/
|
|
127
|
-
reset(app: Application, ...extraArgs: unknown[]): void;
|
|
128
|
-
/**
|
|
129
|
-
* update function
|
|
130
|
-
* @ignore
|
|
87
|
+
* Update the stage. Override it to run your own per-frame logic, and call
|
|
88
|
+
* `super.update(dt)` so the world and cameras still advance.
|
|
131
89
|
* @param dt - time since the last update in milliseconds.
|
|
132
90
|
* @returns true if the stage needs to be redrawn
|
|
133
91
|
*/
|
|
@@ -138,7 +96,9 @@ export default class Stage {
|
|
|
138
96
|
* Lights are rendered as part of the world tree (they're now first-class
|
|
139
97
|
* Renderables) and the ambient overlay pass runs inside each Camera's
|
|
140
98
|
* post-effect FBO bracket via {@link Stage#drawLighting}.
|
|
141
|
-
*
|
|
99
|
+
*
|
|
100
|
+
* Override it to draw under or over the world, calling `super.draw(...)`
|
|
101
|
+
* where the world itself belongs in that order.
|
|
142
102
|
* @param renderer - the renderer object to draw with
|
|
143
103
|
* @param world - the world object to draw
|
|
144
104
|
*/
|
|
@@ -162,11 +122,6 @@ export default class Stage {
|
|
|
162
122
|
* @param translateY - the world-to-screen Y translate (see `translateX`)
|
|
163
123
|
*/
|
|
164
124
|
drawLighting(renderer: Renderer, camera: Camera2d, translateX?: number, translateY?: number): void;
|
|
165
|
-
/**
|
|
166
|
-
* destroy function
|
|
167
|
-
* @ignore
|
|
168
|
-
*/
|
|
169
|
-
destroy(app: Application): void;
|
|
170
125
|
/**
|
|
171
126
|
* onResetEvent function<br>
|
|
172
127
|
* called by the state manager when resetting the object
|
|
@@ -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;AAC3C,OAAO,KAAK,KAAK,MAAM,uBAAuB,CAAC;AAE/C,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;IA2K7C;;;;;OAKG;IACH,MAAM,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO;IAgB3B;;;;;;;;;;;OAWG;IACH,IAAI,CAAC,QAAQ,EAAE,QAAQ,EAAE,KAAK,EAAE,KAAK,GAAG,IAAI;IAM5C;;;;;;;;;;;;;;;;;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.
|
|
@@ -216,7 +204,7 @@ export declare function isLandscape(): boolean;
|
|
|
216
204
|
* @returns a reference to the device storage
|
|
217
205
|
* @category Application
|
|
218
206
|
*/
|
|
219
|
-
export declare function getStorage(type?: string):
|
|
207
|
+
export declare function getStorage(type?: string): import("./save.ts").SaveAPI;
|
|
220
208
|
/**
|
|
221
209
|
* return the parent DOM element for the given parent name or HTMLElement object
|
|
222
210
|
* @param element - the parent element name or a HTMLElement object
|
|
@@ -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":"AAGA,OAAO,KAAK,eAAe,MAAM,eAAe,CAAC;AA2GjD;;GAEG;AACH,eAAO,MAAM,QAAQ,wBAAkB,CAAC;AAExC;;GAEG;AACH,eAAO,MAAM,UAAU,SAA+B,CAAC;AAEvD;;GAEG;AACH,eAAO,MAAM,YAAY,OAA4B,CAAC;AAEtD;;GAEG;AACH,eAAO,MAAM,KAAK,SACsD,CAAC;AAEzE;;;;;;GAMG;AACH,eAAO,MAAM,cAAc,QAIvB,CAAC;AA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,oBAAoB,SAMnC;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,sBAAsB,YAsBrC;AAED;;;GAGG;AACH,wBAAgB,wBAAwB,SAKvC;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,OAAO,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,EAAE,QAOjD;AAED;;;;;GAKG;AACH,wBAAgB,cAAc,CAC7B,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,MAAM,GAAG,KAAK,GAAG,KAAK,GACrE,OAAO,CAkCT"}
|
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"}
|