melonjs 20.2.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 +86 -8
- package/build/application/application.d.ts +0 -17
- package/build/application/application.d.ts.map +1 -1
- package/build/application/settings.d.ts +6 -2
- package/build/application/settings.d.ts.map +1 -1
- package/build/audio/audio.d.ts +2 -2
- package/build/audio/audio.d.ts.map +1 -1
- package/build/audio/backend/buffer.d.ts +26 -0
- package/build/audio/backend/buffer.d.ts.map +1 -0
- package/build/audio/backend/cache.d.ts +2 -0
- package/build/audio/backend/cache.d.ts.map +1 -0
- package/build/audio/backend/core.d.ts +24 -0
- package/build/audio/backend/core.d.ts.map +1 -0
- package/build/audio/backend/engine.d.ts +35 -0
- package/build/audio/backend/engine.d.ts.map +1 -0
- package/build/audio/backend/sound.d.ts +29 -0
- package/build/audio/backend/sound.d.ts.map +1 -0
- package/build/audio/backend/spatial.d.ts +191 -0
- package/build/audio/backend/spatial.d.ts.map +1 -0
- package/build/audio/backend/types.d.ts +107 -0
- package/build/audio/backend/types.d.ts.map +1 -0
- package/build/audio/backend/voice.d.ts +8 -0
- package/build/audio/backend/voice.d.ts.map +1 -0
- package/build/audio/playback.d.ts +49 -4
- package/build/audio/playback.d.ts.map +1 -1
- package/build/audio/procedural.d.ts.map +1 -1
- package/build/audio/state.d.ts +69 -0
- package/build/audio/state.d.ts.map +1 -0
- package/build/audio/types.d.ts +93 -1
- package/build/audio/types.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 +91 -84
- 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/const.d.ts +2 -2
- 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 +12150 -11289
- package/build/index.js.map +4 -4
- package/build/input/gamepad.d.ts.map +1 -1
- package/build/input/input.d.ts +19 -0
- package/build/input/input.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 +4 -2
- 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 +13 -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 +46 -73
- 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 +2 -0
- package/build/loader/parsers/audio.d.ts.map +1 -0
- 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/adapter.d.ts +3 -3
- 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 +5 -69
- 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/plugin/plugin.d.ts +9 -1
- package/build/plugin/plugin.d.ts.map +1 -1
- package/build/polyfill/index.d.ts +1 -4
- package/build/polyfill/index.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 +145 -140
- 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 +17 -54
- package/build/renderable/renderable.d.ts.map +1 -1
- package/build/renderable/sprite.d.ts +7 -52
- 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 +4 -68
- 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/event.d.ts +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 +21 -2
- 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 +2 -0
- package/build/utils/fetchdata.d.ts.map +1 -0
- 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 +7 -25
- 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/blur.d.ts +4 -4
- package/build/video/effects/blur.d.ts.map +1 -1
- package/build/video/effects/chromaticAberration.d.ts +5 -5
- package/build/video/effects/chromaticAberration.d.ts.map +1 -1
- package/build/video/effects/colorMatrix.d.ts +5 -15
- package/build/video/effects/colorMatrix.d.ts.map +1 -1
- package/build/video/effects/desaturate.d.ts +5 -5
- package/build/video/effects/desaturate.d.ts.map +1 -1
- package/build/video/effects/dissolve.d.ts +4 -4
- package/build/video/effects/dissolve.d.ts.map +1 -1
- package/build/video/effects/dropShadow.d.ts +5 -5
- package/build/video/effects/dropShadow.d.ts.map +1 -1
- package/build/video/effects/flash.d.ts +4 -4
- package/build/video/effects/flash.d.ts.map +1 -1
- package/build/video/effects/glow.d.ts +5 -5
- package/build/video/effects/glow.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/hologram.d.ts +4 -4
- package/build/video/effects/hologram.d.ts.map +1 -1
- package/build/video/effects/invert.d.ts +5 -5
- package/build/video/effects/invert.d.ts.map +1 -1
- package/build/video/effects/outline.d.ts +6 -6
- package/build/video/effects/outline.d.ts.map +1 -1
- package/build/video/effects/pixelate.d.ts +4 -4
- package/build/video/effects/pixelate.d.ts.map +1 -1
- package/build/video/effects/radialGradient.d.ts +2 -3
- package/build/video/effects/radialGradient.d.ts.map +1 -1
- package/build/video/effects/scanline.d.ts +6 -6
- package/build/video/effects/scanline.d.ts.map +1 -1
- package/build/video/effects/sepia.d.ts +5 -5
- package/build/video/effects/sepia.d.ts.map +1 -1
- package/build/video/effects/shadereffect.d.ts +12 -123
- package/build/video/effects/shadereffect.d.ts.map +1 -1
- package/build/video/effects/shine.d.ts +3 -3
- package/build/video/effects/shine.d.ts.map +1 -1
- package/build/video/effects/tintPulse.d.ts +4 -4
- package/build/video/effects/tintPulse.d.ts.map +1 -1
- package/build/video/effects/vignette.d.ts +6 -6
- package/build/video/effects/vignette.d.ts.map +1 -1
- package/build/video/effects/wave.d.ts +4 -4
- package/build/video/effects/wave.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 +2 -76
- 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 +2 -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 +24 -286
- 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 +2 -89
- package/build/video/webgpu/webgpu_renderer.d.ts.map +1 -1
- package/package.json +8 -11
- package/skills/AGENTS.md +67 -0
- package/skills/melonjs/SKILL.md +156 -0
- package/skills/melonjs-20-migration/SKILL.md +160 -0
- package/skills/melonjs-3d/SKILL.md +525 -0
- package/skills/melonjs-3d-assets/SKILL.md +258 -0
- package/skills/melonjs-audio/SKILL.md +236 -0
- package/skills/melonjs-camera-and-drawing/SKILL.md +175 -0
- package/skills/melonjs-deployment/SKILL.md +113 -0
- package/skills/melonjs-effects-and-shaders/SKILL.md +178 -0
- package/skills/melonjs-events/SKILL.md +159 -0
- package/skills/melonjs-getting-started/SKILL.md +183 -0
- package/skills/melonjs-input/SKILL.md +166 -0
- package/skills/melonjs-lighting/SKILL.md +139 -0
- package/skills/melonjs-loading-assets/SKILL.md +186 -0
- package/skills/melonjs-particles-and-trails/SKILL.md +136 -0
- package/skills/melonjs-performance/SKILL.md +183 -0
- package/skills/melonjs-physics/SKILL.md +321 -0
- package/skills/melonjs-plugins/SKILL.md +191 -0
- package/skills/melonjs-renderables/SKILL.md +214 -0
- package/skills/melonjs-renderer-backends/SKILL.md +173 -0
- package/skills/melonjs-scenes-and-state/SKILL.md +180 -0
- package/skills/melonjs-sprites-and-animation/SKILL.md +173 -0
- package/skills/melonjs-tilemaps/SKILL.md +213 -0
- package/skills/melonjs-ui-and-text/SKILL.md +65 -0
- package/build/audio/backend.d.ts +0 -140
- package/build/audio/backend.d.ts.map +0 -1
- package/build/loader/parsers/fetchdata.d.ts +0 -32
- package/build/loader/parsers/fetchdata.d.ts.map +0 -1
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import type { ObservableVector3d } from "../math/observableVector3d.ts";
|
|
2
2
|
import { Vector2d } from "../math/vector2d.ts";
|
|
3
3
|
import { Vector3d } from "../math/vector3d.ts";
|
|
4
|
-
import type Container from "./../renderable/container.js";
|
|
5
4
|
import type Renderable from "./../renderable/renderable.js";
|
|
6
|
-
import type Renderer from "./../video/renderer.js";
|
|
7
5
|
import Camera2d from "./camera2d.ts";
|
|
6
|
+
import type { FogOptions } from "./fog.ts";
|
|
8
7
|
import Frustum, { type FrustumOptions } from "./frustum.ts";
|
|
8
|
+
export type { Fog3dState, FogMode, FogOptions } from "./fog.ts";
|
|
9
9
|
/**
|
|
10
10
|
* A perspective camera that extends {@link Camera2d} with a view
|
|
11
11
|
* {@link Frustum} (fov / aspect / near / far) and orientation
|
|
12
|
-
* (pitch / yaw
|
|
12
|
+
* (pitch / yaw). Slots into `Stage.cameras` as a drop-in
|
|
13
13
|
* replacement for `Camera2d` — inherits the post-effect FBO bracket,
|
|
14
14
|
* color-matrix, fade / shake / follow plumbing, and screen viewport.
|
|
15
15
|
*
|
|
@@ -29,10 +29,10 @@ import Frustum, { type FrustumOptions } from "./frustum.ts";
|
|
|
29
29
|
* on screen (same as Camera2d). Sprite at higher `pos.z` is
|
|
30
30
|
* farther from the camera and renders smaller. Matches melonJS's
|
|
31
31
|
* 2D conventions so existing Camera2d code translates directly.
|
|
32
|
-
* - **Rotations are extrinsic
|
|
33
|
-
* `yaw` (Y axis, look left/right)
|
|
34
|
-
*
|
|
35
|
-
*
|
|
32
|
+
* - **Rotations are extrinsic XY.** `pitch` (X axis, look up/down) and
|
|
33
|
+
* `yaw` (Y axis, look left/right). There is no roll: the inherited
|
|
34
|
+
* `Camera2d.rotation` is not read by the view transform or the frustum
|
|
35
|
+
* rebuild, so a screen-plane bank has no effect on a 3D camera.
|
|
36
36
|
* - **Follow offset (PR B scope).** When a target is set,
|
|
37
37
|
* `followOffset` is applied in **world space**:
|
|
38
38
|
* `camera.pos = target.pos + followOffset`. Target-rotation-aware
|
|
@@ -158,6 +158,90 @@ export default class Camera3d extends Camera2d {
|
|
|
158
158
|
* @returns this camera (chainable)
|
|
159
159
|
*/
|
|
160
160
|
setClipPlanes(near: number, far: number): this;
|
|
161
|
+
/**
|
|
162
|
+
* Enable, reconfigure, or switch off distance fog for this camera.
|
|
163
|
+
*
|
|
164
|
+
* Fog fades mesh geometry toward a colour with distance, which is what
|
|
165
|
+
* stops a 3D scene reading as flat cut-outs and lets props appear at the
|
|
166
|
+
* far plane without a visible edge. It is **off until you call this**, and
|
|
167
|
+
* a scene that never does renders exactly as it did before.
|
|
168
|
+
*
|
|
169
|
+
* Two curves, chosen with `mode`:
|
|
170
|
+
*
|
|
171
|
+
* | mode | parameters | character |
|
|
172
|
+
* | --- | --- | --- |
|
|
173
|
+
* | `"linear"` (default) | `near`, `far` | you name the two distances |
|
|
174
|
+
* | `"exp2"` | `density` | clear up close, closes fast at range |
|
|
175
|
+
*
|
|
176
|
+
* Every parameter is optional, and an omitted one is **resolved live each
|
|
177
|
+
* frame** rather than captured here: distances track the camera's own clip
|
|
178
|
+
* planes and the colour tracks `renderer.backgroundColor`. That is
|
|
179
|
+
* deliberate — fog distances that silently disagreed with the clip planes
|
|
180
|
+
* after a later {@link Camera3d#setClipPlanes} call would clip geometry
|
|
181
|
+
* before it finished fading, and a fog colour that did not follow a
|
|
182
|
+
* day/night background fade would leave a band at the horizon.
|
|
183
|
+
*
|
|
184
|
+
* Fog is per camera, so a split-screen or minimap view fogs independently
|
|
185
|
+
* — and a `Camera2d` never fogs at all.
|
|
186
|
+
*
|
|
187
|
+
* `heightFalloff` adds a second falloff with altitude, so mist pools in low
|
|
188
|
+
* ground instead of hanging at every height equally. It defaults to 0,
|
|
189
|
+
* which is uniform fog — not a special case, the same integral with the
|
|
190
|
+
* dial at zero.
|
|
191
|
+
* @param options - fog settings, or `null` to switch fog off
|
|
192
|
+
* @returns this camera (chainable)
|
|
193
|
+
* @throws {Error} on an unknown `mode`, a non-finite or negative distance,
|
|
194
|
+
* `far` at or below `near`, or a density at or below zero
|
|
195
|
+
* @example
|
|
196
|
+
* // A typical outdoor scene: set the sky, size the frustum to the level,
|
|
197
|
+
* // then let fog take its distances and its colour from both.
|
|
198
|
+
* class GameStage extends Stage {
|
|
199
|
+
* onResetEvent(app) {
|
|
200
|
+
* app.renderer.backgroundColor.parseCSS("#cfe6f7");
|
|
201
|
+
*
|
|
202
|
+
* const camera = app.viewport; // a Camera3d
|
|
203
|
+
* camera.setClipPlanes(1, 9000);
|
|
204
|
+
* // no colour passed: it tracks `backgroundColor`, so the terrain
|
|
205
|
+
* // dissolves into the sky and props arrive without a hard edge
|
|
206
|
+
* camera.setFog({ near: 1200, far: 7000 });
|
|
207
|
+
* }
|
|
208
|
+
* }
|
|
209
|
+
* @example
|
|
210
|
+
* // A single density instead of two distances. Omit it and it resolves to
|
|
211
|
+
* // `2 / far`, which reads the same at any world scale.
|
|
212
|
+
* camera.setFog({ mode: "exp2", density: 0.0004 });
|
|
213
|
+
* @example
|
|
214
|
+
* // Fog that is deliberately NOT the sky — a green murk under a blue sky.
|
|
215
|
+
* // Passing a `Color` keeps it by reference, so this fog can be animated
|
|
216
|
+
* // by mutating the colour, without calling `setFog` again.
|
|
217
|
+
* const murk = new Color(90, 120, 80);
|
|
218
|
+
* camera.setFog({ far: 5000, color: murk });
|
|
219
|
+
* murk.setColor(60, 90, 55); // thickens over the next frame
|
|
220
|
+
* @example
|
|
221
|
+
* // Mist pooling in a valley: dense along the floor, thinning up the
|
|
222
|
+
* // walls so the tree line stays crisp. Render space is Y-down, so
|
|
223
|
+
* // `fogHeight` is the floor and density rises BELOW it.
|
|
224
|
+
* camera.setFog({
|
|
225
|
+
* near: 1200,
|
|
226
|
+
* far: 7000,
|
|
227
|
+
* fogHeight: 0,
|
|
228
|
+
* heightFalloff: 0.0015,
|
|
229
|
+
* });
|
|
230
|
+
* @example
|
|
231
|
+
* // Everything is optional: with nothing at all, fog spans the camera's
|
|
232
|
+
* // own clip planes in the backdrop's colour.
|
|
233
|
+
* camera.setFog({});
|
|
234
|
+
* camera.setFog(null); // and off again
|
|
235
|
+
* @see Camera3d#setClipPlanes
|
|
236
|
+
* @see Mesh#fog
|
|
237
|
+
*/
|
|
238
|
+
setFog(options: FogOptions | null): this;
|
|
239
|
+
/**
|
|
240
|
+
* The fog settings as given to {@link Camera3d#setFog}, or `null` when fog
|
|
241
|
+
* is off. The omitted fields are not filled in here — they are resolved
|
|
242
|
+
* per frame against the clip planes and the renderer's background colour.
|
|
243
|
+
*/
|
|
244
|
+
get fog(): FogOptions | null;
|
|
161
245
|
/**
|
|
162
246
|
* Write the camera's world-space orientation basis into the given vectors:
|
|
163
247
|
* `right` (camera local +X), `up` (+Y), and `forward` (+Z — the direction the
|
|
@@ -189,27 +273,6 @@ export default class Camera3d extends Camera2d {
|
|
|
189
273
|
* @returns `out`
|
|
190
274
|
*/
|
|
191
275
|
getForward(out: Vector3d): Vector3d;
|
|
192
|
-
/**
|
|
193
|
-
* Rebuild the projection matrix from the frustum. Called by the
|
|
194
|
-
* base `Camera2d` constructor and by `resize()`. Camera3d's
|
|
195
|
-
* version replaces the ortho matrix with the frustum's perspective.
|
|
196
|
-
* @ignore
|
|
197
|
-
*/
|
|
198
|
-
_updateProjectionMatrix(): void;
|
|
199
|
-
/**
|
|
200
|
-
* Override Camera2d's non-default projection setup so that a Camera3d
|
|
201
|
-
* used in split-screen / picture-in-picture still renders the world
|
|
202
|
-
* with perspective instead of falling back to a 2D ortho. The
|
|
203
|
-
* camera's perspective `projectionMatrix` is mirrored into
|
|
204
|
-
* `worldProjection`; the surrounding `clipRect` set by the base
|
|
205
|
-
* `draw()` handles confining the draw region to the camera's
|
|
206
|
-
* sub-screen rect, and the frustum's `aspect` is already in sync
|
|
207
|
-
* with the camera's width/height. `screenProjection` is left alone
|
|
208
|
-
* because it was already set up correctly in
|
|
209
|
-
* {@link Camera3d#_updateProjectionMatrix}.
|
|
210
|
-
* @ignore
|
|
211
|
-
*/
|
|
212
|
-
_setupNonDefaultProjection(renderer: Renderer): void;
|
|
213
276
|
/**
|
|
214
277
|
* Resize the camera viewport and recompute aspect ratio.
|
|
215
278
|
* @param w - new width
|
|
@@ -217,23 +280,6 @@ export default class Camera3d extends Camera2d {
|
|
|
217
280
|
* @returns this camera
|
|
218
281
|
*/
|
|
219
282
|
resize(w: number, h: number): this;
|
|
220
|
-
/**
|
|
221
|
-
* Apply the camera's full 3D view transform to the world container.
|
|
222
|
-
* Order: rotate first (pitch, yaw), then translate by `-camera.pos`.
|
|
223
|
-
* Post-multiplication semantics give us
|
|
224
|
-
* `currentTransform = R⁻¹ ∘ T(-pos)` — applied to a world point,
|
|
225
|
-
* this subtracts the camera position then rotates by the camera's
|
|
226
|
-
* inverse orientation, which is the standard view transform.
|
|
227
|
-
* @ignore
|
|
228
|
-
*/
|
|
229
|
-
_applyContainerViewTransform(container: Container, translateX: number, translateY: number): void;
|
|
230
|
-
/**
|
|
231
|
-
* Revert {@link Camera3d#_applyContainerViewTransform} in reverse
|
|
232
|
-
* order to restore the container's `currentTransform` to its
|
|
233
|
-
* pre-camera state.
|
|
234
|
-
* @ignore
|
|
235
|
-
*/
|
|
236
|
-
_revertContainerViewTransform(container: Container, translateX: number, translateY: number): void;
|
|
237
283
|
/**
|
|
238
284
|
* Point the camera at a world-space target by deriving pitch and
|
|
239
285
|
* yaw from the direction (target − camera.pos). Roll is unaffected.
|
|
@@ -275,27 +321,6 @@ export default class Camera3d extends Camera2d {
|
|
|
275
321
|
* @returns this camera
|
|
276
322
|
*/
|
|
277
323
|
setFollowOffset(x: number, y: number, z: number): this;
|
|
278
|
-
/**
|
|
279
|
-
* Override Camera2d's 2D follow logic to additionally resolve
|
|
280
|
-
* `followOffset` against the target's z. When `target` is set, the
|
|
281
|
-
* camera's world position becomes `target.pos + followOffset`.
|
|
282
|
-
*
|
|
283
|
-
* **Semantic change vs Camera2d.follow:** this override **does not
|
|
284
|
-
* honor `follow_axis`, `deadzone`, or `smoothFollow` / `damping`**.
|
|
285
|
-
* Camera3d tracks its target exactly each frame because the typical
|
|
286
|
-
* 3D use case (behind-the-plane follow-cam, third-person orbit) wants
|
|
287
|
-
* 1:1 tracking with no scroll-deadzone. If you need damped or
|
|
288
|
-
* axis-constrained follow under perspective, set `target = null` and
|
|
289
|
-
* lerp `camera.pos` toward the target manually in your `update()`.
|
|
290
|
-
*
|
|
291
|
-
* **PR B scope:** `followOffset` is treated as **world-space**.
|
|
292
|
-
* Target-rotation-aware follow (where the offset rotates with the
|
|
293
|
-
* target's orientation, spring-arm style) lands when a
|
|
294
|
-
* showcase (AfterBurner's banking jet) demands it.
|
|
295
|
-
* @param dt - delta time in milliseconds (ignored — no damping)
|
|
296
|
-
* @ignore
|
|
297
|
-
*/
|
|
298
|
-
updateTarget(dt?: number): void;
|
|
299
324
|
/**
|
|
300
325
|
* Visibility check used by `Container.update` (in turn driving
|
|
301
326
|
* `Container.draw`) to skip rendering off-screen children.
|
|
@@ -347,16 +372,6 @@ export default class Camera3d extends Camera2d {
|
|
|
347
372
|
broadphase: unknown;
|
|
348
373
|
sortOn: string;
|
|
349
374
|
}, out?: Renderable[]): Renderable[];
|
|
350
|
-
/**
|
|
351
|
-
* Per-frame update — extends Camera2d's behavior (target follow,
|
|
352
|
-
* camera effects) with rebuilding the frustum's six bounding
|
|
353
|
-
* planes so {@link Camera3d#isVisible} returns accurate results
|
|
354
|
-
* for the current camera state.
|
|
355
|
-
* @param dt - delta time in milliseconds
|
|
356
|
-
* @returns true if the camera's state changed
|
|
357
|
-
* @ignore
|
|
358
|
-
*/
|
|
359
|
-
update(dt?: number): boolean;
|
|
360
375
|
/**
|
|
361
376
|
* Project a world-space point to 2D screen (canvas pixel) coordinates
|
|
362
377
|
* through this camera's view + perspective projection (perspective divide
|
|
@@ -374,13 +389,5 @@ export default class Camera3d extends Camera2d {
|
|
|
374
389
|
* @returns the screen-space pixel coordinates, or `null` if behind the camera
|
|
375
390
|
*/
|
|
376
391
|
worldToScreen(world: Vector3d, out?: Vector2d): Vector2d | null;
|
|
377
|
-
/**
|
|
378
|
-
* Recompute the frustum's six bounding planes from the current
|
|
379
|
-
* `projectionMatrix × viewMatrix` (the world → clip matrix).
|
|
380
|
-
* Called from {@link Camera3d#update} each frame; `isVisible`
|
|
381
|
-
* then tests against the cached planes.
|
|
382
|
-
* @ignore
|
|
383
|
-
*/
|
|
384
|
-
_rebuildFrustumPlanes(): void;
|
|
385
392
|
}
|
|
386
393
|
//# sourceMappingURL=camera3d.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"camera3d.d.ts","sourceRoot":"","sources":["../../src/camera/camera3d.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"camera3d.d.ts","sourceRoot":"","sources":["../../src/camera/camera3d.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AACxE,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAC/C,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAE/C,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAE5D,OAAO,QAAQ,MAAM,eAAe,CAAC;AACrC,OAAO,KAAK,EAAuB,UAAU,EAAE,MAAM,UAAU,CAAC;AAChE,OAAO,OAAO,EAAE,EAAE,KAAK,cAAc,EAAE,MAAM,cAAc,CAAC;AAE5D,YAAY,EAAE,UAAU,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAoBhE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwDG;AACH,MAAM,CAAC,OAAO,OAAO,QAAS,SAAQ,QAAQ;IAC7C;;;;;;;OAOG;IACH,OAAgB,aAAa,EAAE,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,OAAO,CAAW;IAEnE;;;;;;OAMG;IACH,OAAO,EAAE,OAAO,CAAC;IAsEjB;;;;OAIG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;;;OAIG;IACH,GAAG,EAAE,MAAM,CAAC;IAEZ;;;;;;;;;;;OAWG;IACH,YAAY,EAAE,QAAQ,CAAC;IAEvB;;;;;;;;OAQG;IACH,SAAS,EAAE,QAAQ,CAAC;IAEpB;;;;;;OAMG;gBAEF,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE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CAAC;KACxB,EACJ,CAAC,CAAC,EAAE,MAAM,EACV,CAAC,CAAC,EAAE,MAAM,GACR,IAAI;IAqCP;;;;OAIG;IACH,SAAS,CAAC,MAAM,EAAE,QAAQ,GAAG,IAAI;IAIjC;;;;;;;;OAQG;IACH,eAAe,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,IAAI;IAoDtD;;;;;;;;;;;;;;;;;OAiBG;IACM,SAAS,CACjB,GAAG,EAAE,UAAU,EACf,QAAQ,GAAE,OAAsB,GAC9B,OAAO;IAwCV;;;;;;;;;;;;;;;;;;;;;;;;;;;OA2BG;IACH,YAAY,CACX,KAAK,EAAE;QAAE,UAAU,EAAE,OAAO,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,EAC9C,GAAG,CAAC,EAAE,UAAU,EAAE,GAChB,UAAU,EAAE;IAkCf;;;;;;;;;;;;;;;OAeG;IACH,aAAa,CACZ,KAAK,EAAE,QAAQ,EACf,GAAG,GAAE,QAAyB,GAC5B,QAAQ,GAAG,IAAI;CAmElB"}
|
|
@@ -34,11 +34,6 @@ export default class FadeEffect extends CameraEffect {
|
|
|
34
34
|
* fade direction: "in" fades to the color, "out" fades from the color back to transparent
|
|
35
35
|
*/
|
|
36
36
|
direction: "in" | "out";
|
|
37
|
-
/**
|
|
38
|
-
* target alpha value for completion check
|
|
39
|
-
* @ignore
|
|
40
|
-
*/
|
|
41
|
-
_targetAlpha: number;
|
|
42
37
|
/**
|
|
43
38
|
* @param camera - the camera to apply the fade to
|
|
44
39
|
* @param options - fade parameters
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fade_effect.d.ts","sourceRoot":"","sources":["../../../src/camera/effects/fade_effect.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAEjD,OAAO,KAAK,KAAK,MAAM,uBAAuB,CAAC;AAE/C,OAAO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,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,IAAI;IAY7D,MAAM,IAAI,IAAI;IASd,OAAO,IAAI,IAAI;CAiBxB"}
|
|
@@ -59,11 +59,6 @@ export default class MaskEffect extends CameraEffect {
|
|
|
59
59
|
* optional callback when transition completes
|
|
60
60
|
*/
|
|
61
61
|
onComplete: (() => void) | undefined;
|
|
62
|
-
/**
|
|
63
|
-
* pooled shape used for rendering (avoids per-frame allocation)
|
|
64
|
-
* @ignore
|
|
65
|
-
*/
|
|
66
|
-
_maskShape: MaskShape;
|
|
67
62
|
/**
|
|
68
63
|
* @param camera - the camera to apply the transition to
|
|
69
64
|
* @param options - transition parameters
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mask_effect.d.ts","sourceRoot":"","sources":["../../../src/camera/effects/mask_effect.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAe,MAAM,6BAA6B,CAAC;AACnE,OAAO,EAAE,OAAO,EAAe,MAAM,6BAA6B,CAAC;AACnE,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAEjD,OAAO,KAAK,KAAK,MAAM,uBAAuB,CAAC;AAE/C,OAAO,KAAK,QAAQ,MAAM,yBAAyB,CAAC;AACpD,OAAO,KAAK,QAAQ,MAAM,gBAAgB,CAAC;AAC3C,OAAO,YAAY,MAAM,oBAAoB,CAAC;AAE9C,KAAK,SAAS,GAAG,OAAO,GAAG,OAAO,CAAC;AAEnC;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,MAAM,CAAC,OAAO,OAAO,UAAW,SAAQ,YAAY;IACnD;;OAEG;IACH,KAAK,EAAE,KAAK,CAAC;IAEb;;OAEG;IACH,KAAK,EAAE,SAAS,CAAC;IAEjB;;OAEG;IACH,QAAQ,EAAE;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC;IAE5B;;OAEG;IACH,KAAK,EAAE,KAAK,CAAC;IAEb;;OAEG;IACH,SAAS,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,GAAG,SAAS,CAAC;QAC1C,UAAU,CAAC,EAAE,CAAC,MAAM,IAAI,CAAC,GAAG,SAAS,CAAC;KACtC;IA+BO,MAAM,IAAI,IAAI;IAmCd,IAAI,CAAC,QAAQ,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,IAAI;IAwB7D,OAAO,IAAI,IAAI;CAqBxB"}
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Distance-fog types, in their own module so `Camera2d` can declare the
|
|
3
|
+
* resolver hook that `Camera3d` overrides without the two importing each
|
|
4
|
+
* other.
|
|
5
|
+
*/
|
|
6
|
+
import type { Color } from "../math/color.ts";
|
|
7
|
+
/**
|
|
8
|
+
* Which curve maps distance to fog density.
|
|
9
|
+
*
|
|
10
|
+
* `"linear"` is parameterised by two distances and `"exp2"` by a single
|
|
11
|
+
* density — the two parameterisations inherited from fixed-function graphics
|
|
12
|
+
* pipelines, and still what stylised scenes want.
|
|
13
|
+
*/
|
|
14
|
+
export type FogMode = "linear" | "exp2";
|
|
15
|
+
/**
|
|
16
|
+
* {@link Camera3d#setFog} options. Every field is optional: the defaults are
|
|
17
|
+
* resolved live each frame, so fog stays consistent with the camera and the
|
|
18
|
+
* backdrop instead of drifting out of step with them.
|
|
19
|
+
*
|
|
20
|
+
* The values you DO pass are read once, at the call. Mutating this object
|
|
21
|
+
* afterwards has no effect — and would have skipped `setFog`'s validation if it
|
|
22
|
+
* did. The one live handle is a {@link Color} passed as `color`, which is kept
|
|
23
|
+
* by reference so it can be animated; see that field.
|
|
24
|
+
*/
|
|
25
|
+
export interface FogOptions {
|
|
26
|
+
/**
|
|
27
|
+
* the curve mapping distance to density.
|
|
28
|
+
* @default "linear"
|
|
29
|
+
*/
|
|
30
|
+
mode?: FogMode;
|
|
31
|
+
/**
|
|
32
|
+
* linear only — distance at which fog starts. Omit and it tracks the
|
|
33
|
+
* camera's own `near` clip plane.
|
|
34
|
+
*/
|
|
35
|
+
near?: number;
|
|
36
|
+
/**
|
|
37
|
+
* linear only — distance at which fog fully hides the scene. Omit and it
|
|
38
|
+
* tracks the camera's own `far` clip plane, which is what keeps geometry
|
|
39
|
+
* from clipping before it has finished fading.
|
|
40
|
+
*/
|
|
41
|
+
far?: number;
|
|
42
|
+
/**
|
|
43
|
+
* exp2 only — how fast the scene colour is lost with distance. Omit and it
|
|
44
|
+
* resolves to `2 / far`, leaving a few percent of the scene colour at the
|
|
45
|
+
* far plane whatever the world scale.
|
|
46
|
+
*/
|
|
47
|
+
density?: number;
|
|
48
|
+
/**
|
|
49
|
+
* fog colour. Omit and it tracks `renderer.backgroundColor` live, so
|
|
50
|
+
* geometry dissolves into the backdrop with no extra work — including
|
|
51
|
+
* through a day/night fade. A {@link Color} is kept **by reference**, so
|
|
52
|
+
* mutating it animates the fog; a CSS string or `[r, g, b]` in 0..1 is
|
|
53
|
+
* parsed into a colour this camera owns.
|
|
54
|
+
*/
|
|
55
|
+
color?: Color | string | [number, number, number];
|
|
56
|
+
/**
|
|
57
|
+
* World Y at which the fog is at its reference density. Only meaningful
|
|
58
|
+
* alongside a non-zero {@link FogOptions.heightFalloff}.
|
|
59
|
+
* @default 0
|
|
60
|
+
*/
|
|
61
|
+
fogHeight?: number;
|
|
62
|
+
/**
|
|
63
|
+
* How fast fog density drops with altitude, so mist pools in low ground
|
|
64
|
+
* instead of filling the sky as readily as the valley floor.
|
|
65
|
+
*
|
|
66
|
+
* **Zero — the default — is uniform fog**, which is the fog that shipped
|
|
67
|
+
* without this: `exp(0)` is 1, density is the same at every altitude, and
|
|
68
|
+
* the maths collapses exactly. Raise it and density falls off above
|
|
69
|
+
* `fogHeight`, leaving ridges and sky clear while the hollows stay thick.
|
|
70
|
+
*
|
|
71
|
+
* Render space is **Y-down**, so density rises as `y` INCREASES — the
|
|
72
|
+
* opposite sign to every published height-fog formula, which assume Y-up.
|
|
73
|
+
* @default 0
|
|
74
|
+
*/
|
|
75
|
+
heightFalloff?: number;
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* The resolved per-frame fog values handed to the renderer. Distances are
|
|
79
|
+
* pre-baked into the form the shaders want so neither backend divides.
|
|
80
|
+
* Hidden from the docs but deliberately kept in the emitted `.d.ts`:
|
|
81
|
+
* `camera3d.d.ts` imports this type, so removing it would leave a dangling
|
|
82
|
+
* import in the published types.
|
|
83
|
+
* @ignore
|
|
84
|
+
*/
|
|
85
|
+
export interface Fog3dState {
|
|
86
|
+
/** 1 = linear, 2 = exp2 (0 never reaches the renderer — null does) */
|
|
87
|
+
mode: number;
|
|
88
|
+
/** linear: distance at which fog starts */
|
|
89
|
+
near: number;
|
|
90
|
+
/** linear: 1 / (far - near) */
|
|
91
|
+
invRange: number;
|
|
92
|
+
/** exp2: density */
|
|
93
|
+
density: number;
|
|
94
|
+
/** straight (unpremultiplied) fog colour, 3 components in 0..1 */
|
|
95
|
+
color: Float32Array;
|
|
96
|
+
/**
|
|
97
|
+
* The height falloff folded into the world-up axis, expressed in VIEW
|
|
98
|
+
* space — 3 components. The shaders need the fragment's height above the
|
|
99
|
+
* camera, and the matrix they have is not the camera's view alone:
|
|
100
|
+
* `Container.draw` folds every ancestor into it, so the position the
|
|
101
|
+
* vertex stage computes is the mesh's parent space rather than the world.
|
|
102
|
+
* Dotting this against the view-space position recovers the world height
|
|
103
|
+
* difference whatever those ancestors do — scale, rotation or both — and
|
|
104
|
+
* carries the falloff with it, so the shader's exponent is one dot
|
|
105
|
+
* product. All zero when the falloff is 0, which is what makes uniform
|
|
106
|
+
* fog fall out of the same expression rather than needing a branch.
|
|
107
|
+
*/
|
|
108
|
+
heightAxis: Float32Array;
|
|
109
|
+
/**
|
|
110
|
+
* The altitude term of the height integral, `exp(k * (cameraY -
|
|
111
|
+
* fogHeight))`, evaluated once per frame here rather than per vertex in
|
|
112
|
+
* the shader — both operands are camera-global. Clamped before the
|
|
113
|
+
* exponential: a camera far below the reference height would otherwise
|
|
114
|
+
* overflow it and whiten the frame. Exactly 1 when the falloff is 0.
|
|
115
|
+
*/
|
|
116
|
+
heightBase: number;
|
|
117
|
+
}
|
|
118
|
+
//# sourceMappingURL=fog.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fog.d.ts","sourceRoot":"","sources":["../../src/camera/fog.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAE9C;;;;;;GAMG;AACH,MAAM,MAAM,OAAO,GAAG,QAAQ,GAAG,MAAM,CAAC;AAExC;;;;;;;;;GASG;AACH,MAAM,WAAW,UAAU;IAC1B;;;OAGG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;IACf;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;;;;;OAMG;IACH,KAAK,CAAC,EAAE,KAAK,GAAG,MAAM,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;IAClD;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;;;;;;;;;OAYG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;CACvB;AAED;;;;;;;GAOG;AACH,MAAM,WAAW,UAAU;IAC1B,sEAAsE;IACtE,IAAI,EAAE,MAAM,CAAC;IACb,2CAA2C;IAC3C,IAAI,EAAE,MAAM,CAAC;IACb,+BAA+B;IAC/B,QAAQ,EAAE,MAAM,CAAC;IACjB,oBAAoB;IACpB,OAAO,EAAE,MAAM,CAAC;IAChB,kEAAkE;IAClE,KAAK,EAAE,YAAY,CAAC;IACpB;;;;;;;;;;;OAWG;IACH,UAAU,EAAE,YAAY,CAAC;IACzB;;;;;;OAMG;IACH,UAAU,EAAE,MAAM,CAAC;CACnB"}
|
package/build/const.d.ts
CHANGED
|
@@ -40,8 +40,8 @@ export declare const WEBGL = 1;
|
|
|
40
40
|
* settles after the adapter handshake; browsers without `navigator.gpu`
|
|
41
41
|
* skip straight to the synchronous WebGL probe.
|
|
42
42
|
*
|
|
43
|
-
* Note: subsystems that require a GPU backend (Camera3d,
|
|
44
|
-
*
|
|
43
|
+
* Note: subsystems that require a GPU backend (Camera3d, ShaderEffect,
|
|
44
|
+
* Light2d normal-map shading, GPU tilemap) will silently stop working under
|
|
45
45
|
* the terminal Canvas fallback — if your scene depends on any of those,
|
|
46
46
|
* use {@link WEBGL} (or {@link WEBGPU}) so the failure surfaces at
|
|
47
47
|
* startup instead of as a black canvas at runtime.
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { Vector3d } from "../math/vector3d.ts";
|
|
2
2
|
import { Bounds } from "../physics/bounds.ts";
|
|
3
3
|
import { AABB3d } from "../physics/broadphase/aabb3d.ts";
|
|
4
|
-
import { Polygon } from "./polygon.ts";
|
|
5
4
|
/**
|
|
6
5
|
* An axis-aligned 3D box, usable as a {@link Body} collision shape.
|
|
7
6
|
*
|
|
@@ -54,22 +53,6 @@ export declare class Box3d {
|
|
|
54
53
|
* @default "Box3d"
|
|
55
54
|
*/
|
|
56
55
|
type: string;
|
|
57
|
-
/**
|
|
58
|
-
* 2D XY footprint, kept in sync by {@link Box3d#setShape}. This is what
|
|
59
|
-
* {@link Box3d#getBounds} hands back, so every legacy 2D consumer
|
|
60
|
-
* ({@link Body#bounds}, the broadphase pre-gate, debug draw) sees a
|
|
61
|
-
* plain rectangle and needs no 3D awareness.
|
|
62
|
-
* @ignore
|
|
63
|
-
*/
|
|
64
|
-
_bounds: Bounds;
|
|
65
|
-
/**
|
|
66
|
-
* XY footprint as a {@link Polygon}, kept in sync by
|
|
67
|
-
* {@link Box3d#setShape}. The degraded `Box3d` × planar-shape tests
|
|
68
|
-
* hand this to the existing polygon SAT, so no polygon is allocated
|
|
69
|
-
* per collision test.
|
|
70
|
-
* @ignore
|
|
71
|
-
*/
|
|
72
|
-
_footprint: Polygon;
|
|
73
56
|
/**
|
|
74
57
|
* @param x - center of the box on the horizontal axis
|
|
75
58
|
* @param y - center of the box on the vertical axis
|
|
@@ -90,17 +73,6 @@ export declare class Box3d {
|
|
|
90
73
|
* @returns this box, for chaining
|
|
91
74
|
*/
|
|
92
75
|
setShape(x: number, y: number, z: number, width: number, height: number, depth: number): this;
|
|
93
|
-
/**
|
|
94
|
-
* Rebuild the cached XY footprint (both the {@link Bounds} and the
|
|
95
|
-
* {@link Polygon}) from the current center and half-extents.
|
|
96
|
-
*
|
|
97
|
-
* The footprint polygon's `pos` is the **min corner**, not the center,
|
|
98
|
-
* because the SAT narrowphase resolves a shape's absolute position as
|
|
99
|
-
* `renderable.pos + ancestor.getAbsolutePosition() + shape.pos` and
|
|
100
|
-
* then treats `points` as offsets from it.
|
|
101
|
-
* @ignore
|
|
102
|
-
*/
|
|
103
|
-
_syncFootprint(): void;
|
|
104
76
|
/**
|
|
105
77
|
* width of the box
|
|
106
78
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"box3d.d.ts","sourceRoot":"","sources":["../../src/geometries/box3d.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAC/C,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAC9C,OAAO,EAAE,MAAM,EAAE,MAAM,iCAAiC,CAAC;
|
|
1
|
+
{"version":3,"file":"box3d.d.ts","sourceRoot":"","sources":["../../src/geometries/box3d.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAC/C,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAC9C,OAAO,EAAE,MAAM,EAAE,MAAM,iCAAiC,CAAC;AAYzD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AACH,qBAAa,KAAK;IACjB;;OAEG;IACH,GAAG,EAAE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* The bounding rectangle for this shape
|
|
16
|
-
*/
|
|
17
|
-
_bounds: Bounds;
|
|
18
14
|
/**
|
|
19
15
|
* Maximum radius of the ellipse
|
|
20
16
|
*/
|
|
@@ -31,22 +27,6 @@ export declare class Ellipse {
|
|
|
31
27
|
* x/y scaling ratio for ellipse
|
|
32
28
|
*/
|
|
33
29
|
ratio: Vector2d;
|
|
34
|
-
/**
|
|
35
|
-
* the internal rotation angle of the ellipse in radians
|
|
36
|
-
*/
|
|
37
|
-
private _angle;
|
|
38
|
-
/**
|
|
39
|
-
* cached cosine of the current angle
|
|
40
|
-
*/
|
|
41
|
-
private _cos;
|
|
42
|
-
/**
|
|
43
|
-
* cached sine of the current angle
|
|
44
|
-
*/
|
|
45
|
-
private _sin;
|
|
46
|
-
/**
|
|
47
|
-
* cached polygon approximation, invalidated when shape changes
|
|
48
|
-
*/
|
|
49
|
-
private _polygon;
|
|
50
30
|
/**
|
|
51
31
|
* the rotation angle of the ellipse in radians
|
|
52
32
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ellipse.d.ts","sourceRoot":"","sources":["../../src/geometries/ellipse.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAgB,MAAM,qBAAqB,CAAC;AAC7D,OAAO,EAAE,MAAM,EAAc,MAAM,sBAAsB,CAAC;AAE1D,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAEvC;;;GAGG;AACH,qBAAa,OAAO;IACnB;;OAEG;IACH,GAAG,EAAE,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"ellipse.d.ts","sourceRoot":"","sources":["../../src/geometries/ellipse.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAgB,MAAM,qBAAqB,CAAC;AAC7D,OAAO,EAAE,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AAQ,CAAC,MAAM,EAAE,QAAQ,GAAG,OAAO;IA+BnC;;;OAGG;IACH,SAAS;IAOT;;;;;OAKG;IACH,SAAS,CAAC,QAAQ,SAAK;IA2BvB;;;OAGG;IACH,KAAK;CAaL;AAED,eAAO,MAAM,WAAW,kGAYtB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"observablePoint.d.ts","sourceRoot":"","sources":["../../src/geometries/observablePoint.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH;;GAEG;AACH,qBAAa,eAAe;
|
|
1
|
+
{"version":3,"file":"observablePoint.d.ts","sourceRoot":"","sources":["../../src/geometries/observablePoint.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH;;GAEG;AACH,qBAAa,eAAe;IAiB3B,OAAO,CAAC,eAAe,CAAiB;IAExC,IAAI,EAAE,iBAAiB,CAAC;IAExB;;;;;OAKG;gBACS,CAAC,GAAE,MAAU,EAAE,CAAC,GAAE,MAAU,EAAE,QAAQ,CAAC,EAAE,MAAM,IAAI;IAuB/D;;;;;OAKG;IACH,GAAG,CAAC,CAAC,SAAI,EAAE,CAAC,SAAI;IAShB;;;;;OAKG;IACH,QAAQ,CAAC,CAAC,SAAI,EAAE,CAAC,SAAI;IAQrB;;OAEG;IACH,IAAI,CAAC,IAQQ,MAAM,CANlB;IAED;;;OAGG;IACH,IAAI,CAAC,CAAC,KAAK,EAAE,MAAM,EAElB;IAED;;OAEG;IACH,IAAI,CAAC,IAQQ,MAAM,CANlB;IAED;;;OAGG;IACH,IAAI,CAAC,CAAC,KAAK,EAAE,MAAM,EAElB;IAED;;;OAGG;IACH,WAAW,CAAC,QAAQ,EAAE,MAAM,IAAI;IAIhC;;;;;OAKG;IACH,MAAM,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,OAAO;IACrC,MAAM,CAAC,KAAK,EAAE,eAAe,GAAG,OAAO;IAKvC;;;OAGG;IACH,KAAK;IAIL;;OAEG;IACH,MAAM;CAGN"}
|
|
@@ -53,15 +53,6 @@ declare class Path2D {
|
|
|
53
53
|
* when the Canvas renderer replays the path.
|
|
54
54
|
*/
|
|
55
55
|
subPaths: number[];
|
|
56
|
-
/**
|
|
57
|
-
* whether the pen has been explicitly placed (via {@link moveTo}) since
|
|
58
|
-
* the last {@link beginPath} — distinguishes "virgin path" from "pen
|
|
59
|
-
* parked at (0, 0)" so {@link arc}/{@link ellipse}/{@link arcTo} know
|
|
60
|
-
* whether to start fresh or connect from the current point (the native
|
|
61
|
-
* Path2D behavior).
|
|
62
|
-
* @ignore
|
|
63
|
-
*/
|
|
64
|
-
private penMoved;
|
|
65
56
|
/**
|
|
66
57
|
* space between interpolated points for quadratic and bezier curve approx. in pixels.
|
|
67
58
|
* @default 2
|
|
@@ -149,16 +140,6 @@ declare class Path2D {
|
|
|
149
140
|
* path.lineTo(80, 20);
|
|
150
141
|
*/
|
|
151
142
|
moveTo(x: number, y: number): void;
|
|
152
|
-
/**
|
|
153
|
-
* Start the outline of an arc/ellipse at (x, y): per the native Path2D
|
|
154
|
-
* spec, when the path already has content the arc is CONNECTED to the
|
|
155
|
-
* current point with a straight line — only a virgin path (no points, no
|
|
156
|
-
* explicit moveTo) starts fresh. An unconditional moveTo here would
|
|
157
|
-
* silently start a new sub-path, which fill() treats as a HOLE cut out
|
|
158
|
-
* of the shape.
|
|
159
|
-
* @ignore
|
|
160
|
-
*/
|
|
161
|
-
private connectTo;
|
|
162
143
|
/**
|
|
163
144
|
* connects the last point in the current sub-path to the (x, y) coordinates with a straight line.
|
|
164
145
|
* @param x - the x-axis coordinate of the line's end point.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"path2d.d.ts","sourceRoot":"","sources":["../../src/geometries/path2d.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,KAAK,EAAa,MAAM,YAAY,CAAC;AAGnD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0CG;AACH,cAA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AAE,MAAM,EAAE,MAAM,EAAE,MAAM;IAyDpE;;;;;;;;;;;;;;;;OAgBG;IACH,OAAO,CACN,CAAC,EAAE,MAAM,EACT,CAAC,EAAE,MAAM,EACT,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,MAAM,EACf,QAAQ,EAAE,MAAM,EAChB,UAAU,EAAE,MAAM,EAClB,QAAQ,EAAE,MAAM,EAChB,aAAa,UAAQ;IAoEtB;;;;;;;;;;OAUG;IACH,gBAAgB,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM;IA8B/D;;;;;;;;;;;;OAYG;IACH,aAAa,CACZ,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,MAAM,EACZ,CAAC,EAAE,MAAM,EACT,CAAC,EAAE,MAAM;IA2CV;;;;;;;;;;OAUG;IACH,IAAI,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM;IAUxD;;;;;;;;;;;OAWG;IACH,SAAS,CACR,CAAC,EAAE,MAAM,EACT,CAAC,EAAE,MAAM,EACT,KAAK,EAAE,MAAM,EACb,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,MAAM;CAiBf;AAED,eAAe,MAAM,CAAC"}
|
|
@@ -33,18 +33,6 @@ export declare class Polygon {
|
|
|
33
33
|
* a list of indices for all vertices composing this polygon
|
|
34
34
|
*/
|
|
35
35
|
indices: number[];
|
|
36
|
-
/**
|
|
37
|
-
* The normals here are the direction of the normal for the `n`th edge of the polygon, relative
|
|
38
|
-
* to the position of the `n`th point. If you want to draw an edge normal, you must first
|
|
39
|
-
* translate to the position of the starting point.
|
|
40
|
-
* @ignore
|
|
41
|
-
*/
|
|
42
|
-
normals: Vector2d[];
|
|
43
|
-
/**
|
|
44
|
-
* The bounding rectangle for this shape
|
|
45
|
-
* @ignore
|
|
46
|
-
*/
|
|
47
|
-
private _bounds;
|
|
48
36
|
/**
|
|
49
37
|
* the shape type (used internally)
|
|
50
38
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"polygon.d.ts","sourceRoot":"","sources":["../../src/geometries/polygon.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAC/C,OAAO,EAAE,QAAQ,EAAgB,MAAM,qBAAqB,CAAC;AAC7D,OAAO,EAAE,MAAM,EAAc,MAAM,sBAAsB,CAAC;AAE1D,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAG5C,MAAM,MAAM,eAAe,GACxB,CAAC,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,GAAG,OAAO,EAAE,CAAC,GACzC,CAAC,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAE,GAAG,QAAQ,EAAE,CAAC,GAC7C,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,MAAM,EAAE,CAAC,CAAC;AAEjE,MAAM,MAAM,YAAY,GACrB,CAAC,OAAO,EAAE,OAAO,CAAC,GAClB,CAAC,QAAQ,EAAE,QAAQ,CAAC,GACpB,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;AAEpC;;;;;;;;GAQG;AACH,qBAAa,OAAO;IACnB;;OAEG;IACH,GAAG,EAAE,QAAQ,CAAC;IAEd;;;OAGG;IACH,MAAM,EAAE,QAAQ,EAAE,CAAC;IAEnB;;;;OAIG;IACH,KAAK,EAAE,QAAQ,EAAE,CAAC;IAElB;;OAEG;IACH,OAAO,EAAE,MAAM,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"polygon.d.ts","sourceRoot":"","sources":["../../src/geometries/polygon.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,Q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