1681-engine 0.0.0-stage → 0.5.9
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/CHANGELOG.md +357 -0
- package/LICENSE +21 -0
- package/README.md +164 -2
- package/dist/1681-engine.js +471 -0
- package/dist/ambient/ColorGrade.js +40 -0
- package/dist/ambient/DayClock.js +56 -0
- package/dist/ambient/WeatherLayer.js +90 -0
- package/dist/ambient/grade.js +12 -0
- package/dist/ambient/weather.js +51 -0
- package/dist/anim/AnimStateMachine.js +163 -0
- package/dist/anim/Animator.js +66 -0
- package/dist/anim/animStateCompile.js +112 -0
- package/dist/anim/animStateSystem.js +16 -0
- package/dist/anim/animationSystem.js +14 -0
- package/dist/anim/asepriteSlices.js +21 -0
- package/dist/anim/asepriteTags.js +34 -0
- package/dist/anim/parseAseprite.js +82 -0
- package/dist/assets/AssetLoader.js +202 -0
- package/dist/assets/loadAseprite.js +49 -0
- package/dist/assets/takeCleanerWorker-DTcI_Jqr.js +30 -0
- package/dist/assets/textureAtlas.js +58 -0
- package/dist/audio/Footsteps.js +25 -0
- package/dist/audio/MusicPlayer.js +77 -0
- package/dist/audio/SoundEngine.js +125 -0
- package/dist/audio/cleanTake.js +29 -0
- package/dist/audio/music/ElementVoice.js +34 -0
- package/dist/audio/music/GraphVoice.js +38 -0
- package/dist/audio/music/MusicChannel.js +57 -0
- package/dist/audio/music/musicVoice.js +12 -0
- package/dist/audio/sampleBank.js +81 -0
- package/dist/audio/soundTable.js +8 -0
- package/dist/audio/synth.js +35 -0
- package/dist/core/BitmapLabel.js +48 -0
- package/dist/core/Camera.js +149 -0
- package/dist/core/Clock.js +40 -0
- package/dist/core/Graphics.js +68 -0
- package/dist/core/Group.js +28 -0
- package/dist/core/Image.js +50 -0
- package/dist/core/ObjectFactory.js +54 -0
- package/dist/core/Pointer.js +80 -0
- package/dist/core/Rectangle.js +50 -0
- package/dist/core/Stage.js +85 -0
- package/dist/core/Text.js +21 -0
- package/dist/core/TextureRegistry.js +141 -0
- package/dist/core/Timeline.js +210 -0
- package/dist/core/TimelineBuilder.js +72 -0
- package/dist/core/TimelineChild.js +83 -0
- package/dist/core/Tweener.js +135 -0
- package/dist/core/atlas.js +37 -0
- package/dist/core/atlasPlan.js +21 -0
- package/dist/core/blendLayer.js +11 -0
- package/dist/core/eases.js +20 -0
- package/dist/core/gameObject.js +117 -0
- package/dist/core/pixelZoom.js +43 -0
- package/dist/core/pixiPatches.js +17 -0
- package/dist/core/runDue.js +28 -0
- package/dist/core/silhouette.js +49 -0
- package/dist/core/timelinePlace.js +23 -0
- package/dist/core/tweenProps.js +11 -0
- package/dist/debug/DebugOverlay.js +93 -0
- package/dist/debug/DrawCallCounter.js +44 -0
- package/dist/debug/ErrorLog.js +21 -0
- package/dist/debug/FrameStats.js +41 -0
- package/dist/debug/inspectWorld.js +28 -0
- package/dist/diagnostics/ErrorDeduper.js +26 -0
- package/dist/diagnostics/FrameSampler.js +41 -0
- package/dist/diagnostics/bootWatch.js +20 -0
- package/dist/diagnostics/captureErrors.js +26 -0
- package/dist/diagnostics/contextLoss.js +24 -0
- package/dist/diagnostics/frameStats.js +30 -0
- package/dist/diagnostics/gpuInfo.js +21 -0
- package/dist/diagnostics/renderGuard.js +23 -0
- package/dist/ecs/SparseSet.js +54 -0
- package/dist/ecs/World.js +306 -0
- package/dist/ecs/fields.js +25 -0
- package/dist/engine/Engine.js +106 -0
- package/dist/engine/FixedLoop.js +36 -0
- package/dist/engine/HiddenPause.js +27 -0
- package/dist/engine/Scene.js +78 -0
- package/dist/engine/SceneManager.js +72 -0
- package/dist/events/EventBus.js +41 -0
- package/dist/fx/Afterimages.js +82 -0
- package/dist/fx/FloatingText.js +71 -0
- package/dist/fx/hitStop.js +27 -0
- package/dist/fx/viewCull.js +9 -0
- package/dist/i18n/Translator.js +71 -0
- package/dist/i18n/extractStrings.js +57 -0
- package/dist/i18n/formatMessage.js +18 -0
- package/dist/input/Actions.js +139 -0
- package/dist/input/AimGesture.js +74 -0
- package/dist/input/Keyboard.js +53 -0
- package/dist/input/Keymap.js +170 -0
- package/dist/input/TargetLock.js +72 -0
- package/dist/input/aimAxis.js +7 -0
- package/dist/input/keyChord.js +28 -0
- package/dist/input/longPress.js +31 -0
- package/dist/input/rumble.js +42 -0
- package/dist/input/stickAxis.js +22 -0
- package/dist/input/touchDetect.js +6 -0
- package/dist/light/LightLayer.js +83 -0
- package/dist/nav/MinHeap.js +38 -0
- package/dist/nav/findPath.js +77 -0
- package/dist/nav/navGrid.js +35 -0
- package/dist/nav/nearestOpen.js +18 -0
- package/dist/nav/straightenPath.js +50 -0
- package/dist/net/Connection.js +107 -0
- package/dist/net/InterpolationBuffer.js +56 -0
- package/dist/net/PredictedMover.js +60 -0
- package/dist/net/Room.js +91 -0
- package/dist/net/RoomHost.js +100 -0
- package/dist/net/cadence.js +21 -0
- package/dist/net/constants.js +10 -0
- package/dist/net/lobby/LobbyClient.js +123 -0
- package/dist/net/lobby/LobbyHost.js +365 -0
- package/dist/net/lobby/LobbyRooms.js +65 -0
- package/dist/net/lobby/Matchmaker.js +105 -0
- package/dist/net/movement.js +84 -0
- package/dist/net/protocol.js +10 -0
- package/dist/net/reconnect.js +10 -0
- package/dist/net/serverClock.js +21 -0
- package/dist/net/snapshotCodec.js +91 -0
- package/dist/parallax/Parallax.js +31 -0
- package/dist/parallax/ParallaxLayer.js +69 -0
- package/dist/parallax/parallaxMath.js +26 -0
- package/dist/particles/Emitter.js +107 -0
- package/dist/particles/ParticleBudget.js +31 -0
- package/dist/particles/ParticleSim.js +59 -0
- package/dist/particles/particleCurves.js +47 -0
- package/dist/particles/particleSampling.js +29 -0
- package/dist/physics/Body.js +201 -0
- package/dist/physics/BroadPhase.js +55 -0
- package/dist/physics/Contact.js +75 -0
- package/dist/physics/ContactSolver.js +69 -0
- package/dist/physics/PhysicsWorld.js +220 -0
- package/dist/physics/SpatialHash.js +38 -0
- package/dist/physics/collide.js +75 -0
- package/dist/physics/collidePolygon.js +93 -0
- package/dist/physics/contactReport.js +13 -0
- package/dist/physics/drawColliders.js +30 -0
- package/dist/physics/physicsSystem.js +7 -0
- package/dist/physics/polygon.js +79 -0
- package/dist/physics/raycast.js +61 -0
- package/dist/physics/syncToBody.js +18 -0
- package/dist/physics/tileBodies.js +58 -0
- package/dist/physics/types.js +7 -0
- package/dist/pixel/Darkness.js +169 -0
- package/dist/pixel/DitherVignette.js +56 -0
- package/dist/pixel/Evaporation.js +84 -0
- package/dist/pixel/NightShade.js +33 -0
- package/dist/pixel/PixelLayer.js +210 -0
- package/dist/pixel/PixelMarks.js +99 -0
- package/dist/pixel/SwayProp.js +74 -0
- package/dist/pixel/aimPixels.js +67 -0
- package/dist/pixel/lights.js +43 -0
- package/dist/pixel/nineSlice.js +61 -0
- package/dist/pixel/paintLayer.js +35 -0
- package/dist/pixel/palette.js +56 -0
- package/dist/pixel/pixel.js +277 -0
- package/dist/pixel/pixelPaint.js +197 -0
- package/dist/pixel/pixelParticles.js +35 -0
- package/dist/pixel/pixelTone.js +163 -0
- package/dist/pixel/propKit.js +40 -0
- package/dist/pixel/ramp.js +101 -0
- package/dist/pixel/selout.js +34 -0
- package/dist/pixel/spritePixels.js +58 -0
- package/dist/pixel/swayRig.js +86 -0
- package/dist/pixel/vignetteMask.js +23 -0
- package/dist/pixel/weatherArt.js +60 -0
- package/dist/pixel.js +96 -0
- package/dist/platform/appResume.js +18 -0
- package/dist/platform/fullscreen.js +52 -0
- package/dist/platform/orientation.js +26 -0
- package/dist/platform/pointerLock.js +37 -0
- package/dist/platform/reducedMotion.js +23 -0
- package/dist/platform/timeoutSignal.js +14 -0
- package/dist/platform/touch.js +32 -0
- package/dist/postfx/BloomFilter.js +64 -0
- package/dist/postfx/ChromaticAberrationFilter.js +24 -0
- package/dist/postfx/ColorAdjustFilter.js +75 -0
- package/dist/postfx/CrtFilter.js +41 -0
- package/dist/postfx/PixelateFilter.js +26 -0
- package/dist/postfx/PostFx.js +122 -0
- package/dist/postfx/ShockwaveFilter.js +48 -0
- package/dist/postfx/VignetteFilter.js +36 -0
- package/dist/postfx/fxAnimator.js +37 -0
- package/dist/postfx/fxShader.js +127 -0
- package/dist/postfx.js +25 -0
- package/dist/react/ChoiceDialog.js +50 -0
- package/dist/react/ConfirmDialog.js +52 -0
- package/dist/react/Glyph.js +62 -0
- package/dist/react/Modal.js +37 -0
- package/dist/react/Panel.js +23 -0
- package/dist/react/PixelImage.js +23 -0
- package/dist/react/Select.js +98 -0
- package/dist/react/Slider.js +61 -0
- package/dist/react/SplitPane.js +23 -0
- package/dist/react/TabStrip.js +31 -0
- package/dist/react/TitleTips.js +41 -0
- package/dist/react/Tooltip.js +27 -0
- package/dist/react/UiProvider.js +49 -0
- package/dist/react/baseCss.js +221 -0
- package/dist/react/choiceStore.js +22 -0
- package/dist/react/classNames.js +18 -0
- package/dist/react/confirmStore.js +29 -0
- package/dist/react/labels.js +17 -0
- package/dist/react/placement.js +48 -0
- package/dist/react/useFillSheet.js +22 -0
- package/dist/react/useFitToViewport.js +28 -0
- package/dist/react/usePicked.js +12 -0
- package/dist/react/useStore.js +8 -0
- package/dist/react/useViewport.js +16 -0
- package/dist/react.js +77 -0
- package/dist/rig/PosePlayer.js +91 -0
- package/dist/rig/RigView.js +124 -0
- package/dist/rig/Skeleton.js +30 -0
- package/dist/rig/humanoid.js +5 -0
- package/dist/rig/humanoid.json.js +29 -0
- package/dist/rig/humanoidPoses.js +29 -0
- package/dist/rig/poseMath.js +53 -0
- package/dist/rig/poses.json.js +149 -0
- package/dist/save/Autosaver.js +53 -0
- package/dist/save/MemoryBackend.js +18 -0
- package/dist/save/SaveStore.js +102 -0
- package/dist/save/WebStorageBackend.js +26 -0
- package/dist/save/checksum.js +9 -0
- package/dist/save/migrateSave.js +26 -0
- package/dist/settings.js +26 -0
- package/dist/tilemap/TilemapView.js +68 -0
- package/dist/tilemap/collision.js +24 -0
- package/dist/tilemap/tiled.js +137 -0
- package/dist/transitions/CrossfadeTransition.js +23 -0
- package/dist/transitions/DitherWipeTransition.js +69 -0
- package/dist/transitions/FadeTransition.js +33 -0
- package/dist/transitions/Letterbox.js +41 -0
- package/dist/transitions/ditherMask.js +14 -0
- package/dist/transitions/transitionTo.js +27 -0
- package/dist/transitions/tweenDone.js +14 -0
- package/dist/types/ambient/ColorGrade.d.ts +41 -0
- package/dist/types/ambient/ColorGrade.d.ts.map +1 -0
- package/dist/types/ambient/DayClock.d.ts +80 -0
- package/dist/types/ambient/DayClock.d.ts.map +1 -0
- package/dist/types/ambient/WeatherLayer.d.ts +78 -0
- package/dist/types/ambient/WeatherLayer.d.ts.map +1 -0
- package/dist/types/ambient/grade.d.ts +22 -0
- package/dist/types/ambient/grade.d.ts.map +1 -0
- package/dist/types/ambient/weather.d.ts +49 -0
- package/dist/types/ambient/weather.d.ts.map +1 -0
- package/dist/types/anim/AnimStateMachine.d.ts +80 -0
- package/dist/types/anim/AnimStateMachine.d.ts.map +1 -0
- package/dist/types/anim/Animator.d.ts +50 -0
- package/dist/types/anim/Animator.d.ts.map +1 -0
- package/dist/types/anim/animStateCompile.d.ts +52 -0
- package/dist/types/anim/animStateCompile.d.ts.map +1 -0
- package/dist/types/anim/animStateSystem.d.ts +10 -0
- package/dist/types/anim/animStateSystem.d.ts.map +1 -0
- package/dist/types/anim/animStateTypes.d.ts +50 -0
- package/dist/types/anim/animStateTypes.d.ts.map +1 -0
- package/dist/types/anim/animationSystem.d.ts +13 -0
- package/dist/types/anim/animationSystem.d.ts.map +1 -0
- package/dist/types/anim/asepriteSlices.d.ts +19 -0
- package/dist/types/anim/asepriteSlices.d.ts.map +1 -0
- package/dist/types/anim/asepriteTags.d.ts +16 -0
- package/dist/types/anim/asepriteTags.d.ts.map +1 -0
- package/dist/types/anim/asepriteTypes.d.ts +159 -0
- package/dist/types/anim/asepriteTypes.d.ts.map +1 -0
- package/dist/types/anim/parseAseprite.d.ts +21 -0
- package/dist/types/anim/parseAseprite.d.ts.map +1 -0
- package/dist/types/assets/AssetLoader.d.ts +140 -0
- package/dist/types/assets/AssetLoader.d.ts.map +1 -0
- package/dist/types/assets/loadAseprite.d.ts +27 -0
- package/dist/types/assets/loadAseprite.d.ts.map +1 -0
- package/dist/types/assets/textureAtlas.d.ts +35 -0
- package/dist/types/assets/textureAtlas.d.ts.map +1 -0
- package/dist/types/audio/Footsteps.d.ts +33 -0
- package/dist/types/audio/Footsteps.d.ts.map +1 -0
- package/dist/types/audio/MusicPlayer.d.ts +65 -0
- package/dist/types/audio/MusicPlayer.d.ts.map +1 -0
- package/dist/types/audio/SoundEngine.d.ts +47 -0
- package/dist/types/audio/SoundEngine.d.ts.map +1 -0
- package/dist/types/audio/cleanTake.d.ts +3 -0
- package/dist/types/audio/cleanTake.d.ts.map +1 -0
- package/dist/types/audio/music/ElementVoice.d.ts +14 -0
- package/dist/types/audio/music/ElementVoice.d.ts.map +1 -0
- package/dist/types/audio/music/GraphVoice.d.ts +22 -0
- package/dist/types/audio/music/GraphVoice.d.ts.map +1 -0
- package/dist/types/audio/music/MusicChannel.d.ts +35 -0
- package/dist/types/audio/music/MusicChannel.d.ts.map +1 -0
- package/dist/types/audio/music/musicVoice.d.ts +26 -0
- package/dist/types/audio/music/musicVoice.d.ts.map +1 -0
- package/dist/types/audio/sampleBank.d.ts +27 -0
- package/dist/types/audio/sampleBank.d.ts.map +1 -0
- package/dist/types/audio/soundTable.d.ts +14 -0
- package/dist/types/audio/soundTable.d.ts.map +1 -0
- package/dist/types/audio/synth.d.ts +34 -0
- package/dist/types/audio/synth.d.ts.map +1 -0
- package/dist/types/audio/takeCleanerWorker.d.ts +2 -0
- package/dist/types/audio/takeCleanerWorker.d.ts.map +1 -0
- package/dist/types/core/BitmapLabel.d.ts +36 -0
- package/dist/types/core/BitmapLabel.d.ts.map +1 -0
- package/dist/types/core/Camera.d.ts +115 -0
- package/dist/types/core/Camera.d.ts.map +1 -0
- package/dist/types/core/Clock.d.ts +23 -0
- package/dist/types/core/Clock.d.ts.map +1 -0
- package/dist/types/core/Graphics.d.ts +37 -0
- package/dist/types/core/Graphics.d.ts.map +1 -0
- package/dist/types/core/Group.d.ts +15 -0
- package/dist/types/core/Group.d.ts.map +1 -0
- package/dist/types/core/Image.d.ts +25 -0
- package/dist/types/core/Image.d.ts.map +1 -0
- package/dist/types/core/ObjectFactory.d.ts +34 -0
- package/dist/types/core/ObjectFactory.d.ts.map +1 -0
- package/dist/types/core/Pointer.d.ts +45 -0
- package/dist/types/core/Pointer.d.ts.map +1 -0
- package/dist/types/core/Rectangle.d.ts +26 -0
- package/dist/types/core/Rectangle.d.ts.map +1 -0
- package/dist/types/core/Stage.d.ts +58 -0
- package/dist/types/core/Stage.d.ts.map +1 -0
- package/dist/types/core/Text.d.ts +22 -0
- package/dist/types/core/Text.d.ts.map +1 -0
- package/dist/types/core/TextureRegistry.d.ts +90 -0
- package/dist/types/core/TextureRegistry.d.ts.map +1 -0
- package/dist/types/core/Timeline.d.ts +115 -0
- package/dist/types/core/Timeline.d.ts.map +1 -0
- package/dist/types/core/TimelineBuilder.d.ts +53 -0
- package/dist/types/core/TimelineBuilder.d.ts.map +1 -0
- package/dist/types/core/TimelineChild.d.ts +51 -0
- package/dist/types/core/TimelineChild.d.ts.map +1 -0
- package/dist/types/core/Tweener.d.ts +70 -0
- package/dist/types/core/Tweener.d.ts.map +1 -0
- package/dist/types/core/atlas.d.ts +16 -0
- package/dist/types/core/atlas.d.ts.map +1 -0
- package/dist/types/core/atlasPlan.d.ts +34 -0
- package/dist/types/core/atlasPlan.d.ts.map +1 -0
- package/dist/types/core/blendLayer.d.ts +23 -0
- package/dist/types/core/blendLayer.d.ts.map +1 -0
- package/dist/types/core/eases.d.ts +3 -0
- package/dist/types/core/eases.d.ts.map +1 -0
- package/dist/types/core/gameObject.d.ts +42 -0
- package/dist/types/core/gameObject.d.ts.map +1 -0
- package/dist/types/core/pixelZoom.d.ts +45 -0
- package/dist/types/core/pixelZoom.d.ts.map +1 -0
- package/dist/types/core/pixiPatches.d.ts +9 -0
- package/dist/types/core/pixiPatches.d.ts.map +1 -0
- package/dist/types/core/runDue.d.ts +15 -0
- package/dist/types/core/runDue.d.ts.map +1 -0
- package/dist/types/core/silhouette.d.ts +16 -0
- package/dist/types/core/silhouette.d.ts.map +1 -0
- package/dist/types/core/timelinePlace.d.ts +23 -0
- package/dist/types/core/timelinePlace.d.ts.map +1 -0
- package/dist/types/core/tweenProps.d.ts +8 -0
- package/dist/types/core/tweenProps.d.ts.map +1 -0
- package/dist/types/core/types.d.ts +4 -0
- package/dist/types/core/types.d.ts.map +1 -0
- package/dist/types/debug/DebugOverlay.d.ts +63 -0
- package/dist/types/debug/DebugOverlay.d.ts.map +1 -0
- package/dist/types/debug/DrawCallCounter.d.ts +20 -0
- package/dist/types/debug/DrawCallCounter.d.ts.map +1 -0
- package/dist/types/debug/ErrorLog.d.ts +20 -0
- package/dist/types/debug/ErrorLog.d.ts.map +1 -0
- package/dist/types/debug/FrameStats.d.ts +21 -0
- package/dist/types/debug/FrameStats.d.ts.map +1 -0
- package/dist/types/debug/inspectWorld.d.ts +14 -0
- package/dist/types/debug/inspectWorld.d.ts.map +1 -0
- package/dist/types/diagnostics/ErrorDeduper.d.ts +17 -0
- package/dist/types/diagnostics/ErrorDeduper.d.ts.map +1 -0
- package/dist/types/diagnostics/FrameSampler.d.ts +37 -0
- package/dist/types/diagnostics/FrameSampler.d.ts.map +1 -0
- package/dist/types/diagnostics/bootWatch.d.ts +25 -0
- package/dist/types/diagnostics/bootWatch.d.ts.map +1 -0
- package/dist/types/diagnostics/captureErrors.d.ts +24 -0
- package/dist/types/diagnostics/captureErrors.d.ts.map +1 -0
- package/dist/types/diagnostics/contextLoss.d.ts +35 -0
- package/dist/types/diagnostics/contextLoss.d.ts.map +1 -0
- package/dist/types/diagnostics/frameStats.d.ts +30 -0
- package/dist/types/diagnostics/frameStats.d.ts.map +1 -0
- package/dist/types/diagnostics/gpuInfo.d.ts +9 -0
- package/dist/types/diagnostics/gpuInfo.d.ts.map +1 -0
- package/dist/types/diagnostics/renderGuard.d.ts +12 -0
- package/dist/types/diagnostics/renderGuard.d.ts.map +1 -0
- package/dist/types/ecs/SparseSet.d.ts +25 -0
- package/dist/types/ecs/SparseSet.d.ts.map +1 -0
- package/dist/types/ecs/World.d.ts +137 -0
- package/dist/types/ecs/World.d.ts.map +1 -0
- package/dist/types/ecs/fields.d.ts +34 -0
- package/dist/types/ecs/fields.d.ts.map +1 -0
- package/dist/types/engine/Engine.d.ts +96 -0
- package/dist/types/engine/Engine.d.ts.map +1 -0
- package/dist/types/engine/FixedLoop.d.ts +32 -0
- package/dist/types/engine/FixedLoop.d.ts.map +1 -0
- package/dist/types/engine/HiddenPause.d.ts +22 -0
- package/dist/types/engine/HiddenPause.d.ts.map +1 -0
- package/dist/types/engine/Scene.d.ts +67 -0
- package/dist/types/engine/Scene.d.ts.map +1 -0
- package/dist/types/engine/SceneManager.d.ts +36 -0
- package/dist/types/engine/SceneManager.d.ts.map +1 -0
- package/dist/types/events/EventBus.d.ts +20 -0
- package/dist/types/events/EventBus.d.ts.map +1 -0
- package/dist/types/fx/Afterimages.d.ts +62 -0
- package/dist/types/fx/Afterimages.d.ts.map +1 -0
- package/dist/types/fx/FloatingText.d.ts +71 -0
- package/dist/types/fx/FloatingText.d.ts.map +1 -0
- package/dist/types/fx/hitStop.d.ts +20 -0
- package/dist/types/fx/hitStop.d.ts.map +1 -0
- package/dist/types/fx/viewCull.d.ts +14 -0
- package/dist/types/fx/viewCull.d.ts.map +1 -0
- package/dist/types/i18n/Translator.d.ts +52 -0
- package/dist/types/i18n/Translator.d.ts.map +1 -0
- package/dist/types/i18n/extractStrings.d.ts +25 -0
- package/dist/types/i18n/extractStrings.d.ts.map +1 -0
- package/dist/types/i18n/formatMessage.d.ts +10 -0
- package/dist/types/i18n/formatMessage.d.ts.map +1 -0
- package/dist/types/index.d.ts +164 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/input/Actions.d.ts +100 -0
- package/dist/types/input/Actions.d.ts.map +1 -0
- package/dist/types/input/AimGesture.d.ts +106 -0
- package/dist/types/input/AimGesture.d.ts.map +1 -0
- package/dist/types/input/Keyboard.d.ts +30 -0
- package/dist/types/input/Keyboard.d.ts.map +1 -0
- package/dist/types/input/Keymap.d.ts +85 -0
- package/dist/types/input/Keymap.d.ts.map +1 -0
- package/dist/types/input/TargetLock.d.ts +56 -0
- package/dist/types/input/TargetLock.d.ts.map +1 -0
- package/dist/types/input/aimAxis.d.ts +9 -0
- package/dist/types/input/aimAxis.d.ts.map +1 -0
- package/dist/types/input/keyChord.d.ts +15 -0
- package/dist/types/input/keyChord.d.ts.map +1 -0
- package/dist/types/input/longPress.d.ts +21 -0
- package/dist/types/input/longPress.d.ts.map +1 -0
- package/dist/types/input/rumble.d.ts +41 -0
- package/dist/types/input/rumble.d.ts.map +1 -0
- package/dist/types/input/stickAxis.d.ts +26 -0
- package/dist/types/input/stickAxis.d.ts.map +1 -0
- package/dist/types/input/touchDetect.d.ts +18 -0
- package/dist/types/input/touchDetect.d.ts.map +1 -0
- package/dist/types/light/LightLayer.d.ts +65 -0
- package/dist/types/light/LightLayer.d.ts.map +1 -0
- package/dist/types/nav/MinHeap.d.ts +15 -0
- package/dist/types/nav/MinHeap.d.ts.map +1 -0
- package/dist/types/nav/findPath.d.ts +38 -0
- package/dist/types/nav/findPath.d.ts.map +1 -0
- package/dist/types/nav/navGrid.d.ts +48 -0
- package/dist/types/nav/navGrid.d.ts.map +1 -0
- package/dist/types/nav/nearestOpen.d.ts +8 -0
- package/dist/types/nav/nearestOpen.d.ts.map +1 -0
- package/dist/types/nav/straightenPath.d.ts +13 -0
- package/dist/types/nav/straightenPath.d.ts.map +1 -0
- package/dist/types/net/Connection.d.ts +88 -0
- package/dist/types/net/Connection.d.ts.map +1 -0
- package/dist/types/net/InterpolationBuffer.d.ts +36 -0
- package/dist/types/net/InterpolationBuffer.d.ts.map +1 -0
- package/dist/types/net/PredictedMover.d.ts +43 -0
- package/dist/types/net/PredictedMover.d.ts.map +1 -0
- package/dist/types/net/Room.d.ts +69 -0
- package/dist/types/net/Room.d.ts.map +1 -0
- package/dist/types/net/RoomHost.d.ts +74 -0
- package/dist/types/net/RoomHost.d.ts.map +1 -0
- package/dist/types/net/cadence.d.ts +22 -0
- package/dist/types/net/cadence.d.ts.map +1 -0
- package/dist/types/net/constants.d.ts +33 -0
- package/dist/types/net/constants.d.ts.map +1 -0
- package/dist/types/net/lobby/LobbyClient.d.ts +107 -0
- package/dist/types/net/lobby/LobbyClient.d.ts.map +1 -0
- package/dist/types/net/lobby/LobbyHost.d.ts +147 -0
- package/dist/types/net/lobby/LobbyHost.d.ts.map +1 -0
- package/dist/types/net/lobby/LobbyRooms.d.ts +56 -0
- package/dist/types/net/lobby/LobbyRooms.d.ts.map +1 -0
- package/dist/types/net/lobby/Matchmaker.d.ts +57 -0
- package/dist/types/net/lobby/Matchmaker.d.ts.map +1 -0
- package/dist/types/net/lobby/index.d.ts +6 -0
- package/dist/types/net/lobby/index.d.ts.map +1 -0
- package/dist/types/net/lobby/lobbyProtocol.d.ts +143 -0
- package/dist/types/net/lobby/lobbyProtocol.d.ts.map +1 -0
- package/dist/types/net/movement.d.ts +50 -0
- package/dist/types/net/movement.d.ts.map +1 -0
- package/dist/types/net/protocol.d.ts +59 -0
- package/dist/types/net/protocol.d.ts.map +1 -0
- package/dist/types/net/reconnect.d.ts +14 -0
- package/dist/types/net/reconnect.d.ts.map +1 -0
- package/dist/types/net/serverClock.d.ts +14 -0
- package/dist/types/net/serverClock.d.ts.map +1 -0
- package/dist/types/net/snapshotCodec.d.ts +55 -0
- package/dist/types/net/snapshotCodec.d.ts.map +1 -0
- package/dist/types/parallax/Parallax.d.ts +37 -0
- package/dist/types/parallax/Parallax.d.ts.map +1 -0
- package/dist/types/parallax/ParallaxLayer.d.ts +80 -0
- package/dist/types/parallax/ParallaxLayer.d.ts.map +1 -0
- package/dist/types/parallax/parallaxMath.d.ts +50 -0
- package/dist/types/parallax/parallaxMath.d.ts.map +1 -0
- package/dist/types/particles/Emitter.d.ts +97 -0
- package/dist/types/particles/Emitter.d.ts.map +1 -0
- package/dist/types/particles/ParticleBudget.d.ts +28 -0
- package/dist/types/particles/ParticleBudget.d.ts.map +1 -0
- package/dist/types/particles/ParticleSim.d.ts +38 -0
- package/dist/types/particles/ParticleSim.d.ts.map +1 -0
- package/dist/types/particles/particleCurves.d.ts +21 -0
- package/dist/types/particles/particleCurves.d.ts.map +1 -0
- package/dist/types/particles/particleSampling.d.ts +20 -0
- package/dist/types/particles/particleSampling.d.ts.map +1 -0
- package/dist/types/physics/Body.d.ts +130 -0
- package/dist/types/physics/Body.d.ts.map +1 -0
- package/dist/types/physics/BroadPhase.d.ts +26 -0
- package/dist/types/physics/BroadPhase.d.ts.map +1 -0
- package/dist/types/physics/Contact.d.ts +62 -0
- package/dist/types/physics/Contact.d.ts.map +1 -0
- package/dist/types/physics/ContactSolver.d.ts +29 -0
- package/dist/types/physics/ContactSolver.d.ts.map +1 -0
- package/dist/types/physics/PhysicsWorld.d.ts +78 -0
- package/dist/types/physics/PhysicsWorld.d.ts.map +1 -0
- package/dist/types/physics/PhysicsWorldOptions.d.ts +24 -0
- package/dist/types/physics/PhysicsWorldOptions.d.ts.map +1 -0
- package/dist/types/physics/SpatialHash.d.ts +23 -0
- package/dist/types/physics/SpatialHash.d.ts.map +1 -0
- package/dist/types/physics/collide.d.ts +27 -0
- package/dist/types/physics/collide.d.ts.map +1 -0
- package/dist/types/physics/collidePolygon.d.ts +14 -0
- package/dist/types/physics/collidePolygon.d.ts.map +1 -0
- package/dist/types/physics/contactReport.d.ts +8 -0
- package/dist/types/physics/contactReport.d.ts.map +1 -0
- package/dist/types/physics/drawColliders.d.ts +43 -0
- package/dist/types/physics/drawColliders.d.ts.map +1 -0
- package/dist/types/physics/physicsSystem.d.ts +5 -0
- package/dist/types/physics/physicsSystem.d.ts.map +1 -0
- package/dist/types/physics/polygon.d.ts +28 -0
- package/dist/types/physics/polygon.d.ts.map +1 -0
- package/dist/types/physics/raycast.d.ts +19 -0
- package/dist/types/physics/raycast.d.ts.map +1 -0
- package/dist/types/physics/syncToBody.d.ts +16 -0
- package/dist/types/physics/syncToBody.d.ts.map +1 -0
- package/dist/types/physics/tileBodies.d.ts +36 -0
- package/dist/types/physics/tileBodies.d.ts.map +1 -0
- package/dist/types/physics/types.d.ts +116 -0
- package/dist/types/physics/types.d.ts.map +1 -0
- package/dist/types/pixel/Darkness.d.ts +90 -0
- package/dist/types/pixel/Darkness.d.ts.map +1 -0
- package/dist/types/pixel/DitherVignette.d.ts +35 -0
- package/dist/types/pixel/DitherVignette.d.ts.map +1 -0
- package/dist/types/pixel/Evaporation.d.ts +30 -0
- package/dist/types/pixel/Evaporation.d.ts.map +1 -0
- package/dist/types/pixel/NightShade.d.ts +38 -0
- package/dist/types/pixel/NightShade.d.ts.map +1 -0
- package/dist/types/pixel/PixelLayer.d.ts +85 -0
- package/dist/types/pixel/PixelLayer.d.ts.map +1 -0
- package/dist/types/pixel/PixelMarks.d.ts +68 -0
- package/dist/types/pixel/PixelMarks.d.ts.map +1 -0
- package/dist/types/pixel/SwayProp.d.ts +52 -0
- package/dist/types/pixel/SwayProp.d.ts.map +1 -0
- package/dist/types/pixel/aimPixels.d.ts +23 -0
- package/dist/types/pixel/aimPixels.d.ts.map +1 -0
- package/dist/types/pixel/index.d.ts +33 -0
- package/dist/types/pixel/index.d.ts.map +1 -0
- package/dist/types/pixel/lights.d.ts +34 -0
- package/dist/types/pixel/lights.d.ts.map +1 -0
- package/dist/types/pixel/nineSlice.d.ts +71 -0
- package/dist/types/pixel/nineSlice.d.ts.map +1 -0
- package/dist/types/pixel/paintLayer.d.ts +35 -0
- package/dist/types/pixel/paintLayer.d.ts.map +1 -0
- package/dist/types/pixel/palette.d.ts +58 -0
- package/dist/types/pixel/palette.d.ts.map +1 -0
- package/dist/types/pixel/pixel.d.ts +80 -0
- package/dist/types/pixel/pixel.d.ts.map +1 -0
- package/dist/types/pixel/pixelPaint.d.ts +44 -0
- package/dist/types/pixel/pixelPaint.d.ts.map +1 -0
- package/dist/types/pixel/pixelParticles.d.ts +21 -0
- package/dist/types/pixel/pixelParticles.d.ts.map +1 -0
- package/dist/types/pixel/pixelTone.d.ts +51 -0
- package/dist/types/pixel/pixelTone.d.ts.map +1 -0
- package/dist/types/pixel/propKit.d.ts +26 -0
- package/dist/types/pixel/propKit.d.ts.map +1 -0
- package/dist/types/pixel/ramp.d.ts +57 -0
- package/dist/types/pixel/ramp.d.ts.map +1 -0
- package/dist/types/pixel/selout.d.ts +3 -0
- package/dist/types/pixel/selout.d.ts.map +1 -0
- package/dist/types/pixel/spritePixels.d.ts +29 -0
- package/dist/types/pixel/spritePixels.d.ts.map +1 -0
- package/dist/types/pixel/swayRig.d.ts +72 -0
- package/dist/types/pixel/swayRig.d.ts.map +1 -0
- package/dist/types/pixel/vignetteMask.d.ts +16 -0
- package/dist/types/pixel/vignetteMask.d.ts.map +1 -0
- package/dist/types/pixel/weatherArt.d.ts +29 -0
- package/dist/types/pixel/weatherArt.d.ts.map +1 -0
- package/dist/types/platform/appResume.d.ts +25 -0
- package/dist/types/platform/appResume.d.ts.map +1 -0
- package/dist/types/platform/fullscreen.d.ts +37 -0
- package/dist/types/platform/fullscreen.d.ts.map +1 -0
- package/dist/types/platform/orientation.d.ts +19 -0
- package/dist/types/platform/orientation.d.ts.map +1 -0
- package/dist/types/platform/pointerLock.d.ts +26 -0
- package/dist/types/platform/pointerLock.d.ts.map +1 -0
- package/dist/types/platform/reducedMotion.d.ts +20 -0
- package/dist/types/platform/reducedMotion.d.ts.map +1 -0
- package/dist/types/platform/timeoutSignal.d.ts +6 -0
- package/dist/types/platform/timeoutSignal.d.ts.map +1 -0
- package/dist/types/platform/touch.d.ts +10 -0
- package/dist/types/platform/touch.d.ts.map +1 -0
- package/dist/types/postfx/BloomFilter.d.ts +33 -0
- package/dist/types/postfx/BloomFilter.d.ts.map +1 -0
- package/dist/types/postfx/ChromaticAberrationFilter.d.ts +11 -0
- package/dist/types/postfx/ChromaticAberrationFilter.d.ts.map +1 -0
- package/dist/types/postfx/ColorAdjustFilter.d.ts +32 -0
- package/dist/types/postfx/ColorAdjustFilter.d.ts.map +1 -0
- package/dist/types/postfx/CrtFilter.d.ts +16 -0
- package/dist/types/postfx/CrtFilter.d.ts.map +1 -0
- package/dist/types/postfx/PixelateFilter.d.ts +8 -0
- package/dist/types/postfx/PixelateFilter.d.ts.map +1 -0
- package/dist/types/postfx/PostFx.d.ts +92 -0
- package/dist/types/postfx/PostFx.d.ts.map +1 -0
- package/dist/types/postfx/ShockwaveFilter.d.ts +20 -0
- package/dist/types/postfx/ShockwaveFilter.d.ts.map +1 -0
- package/dist/types/postfx/VignetteFilter.d.ts +19 -0
- package/dist/types/postfx/VignetteFilter.d.ts.map +1 -0
- package/dist/types/postfx/fxAnimator.d.ts +32 -0
- package/dist/types/postfx/fxAnimator.d.ts.map +1 -0
- package/dist/types/postfx/fxShader.d.ts +49 -0
- package/dist/types/postfx/fxShader.d.ts.map +1 -0
- package/dist/types/postfx/index.d.ts +11 -0
- package/dist/types/postfx/index.d.ts.map +1 -0
- package/dist/types/react/ChoiceDialog.d.ts +8 -0
- package/dist/types/react/ChoiceDialog.d.ts.map +1 -0
- package/dist/types/react/ConfirmDialog.d.ts +9 -0
- package/dist/types/react/ConfirmDialog.d.ts.map +1 -0
- package/dist/types/react/Glyph.d.ts +54 -0
- package/dist/types/react/Glyph.d.ts.map +1 -0
- package/dist/types/react/Modal.d.ts +22 -0
- package/dist/types/react/Modal.d.ts.map +1 -0
- package/dist/types/react/Panel.d.ts +29 -0
- package/dist/types/react/Panel.d.ts.map +1 -0
- package/dist/types/react/PixelImage.d.ts +19 -0
- package/dist/types/react/PixelImage.d.ts.map +1 -0
- package/dist/types/react/Select.d.ts +27 -0
- package/dist/types/react/Select.d.ts.map +1 -0
- package/dist/types/react/Slider.d.ts +24 -0
- package/dist/types/react/Slider.d.ts.map +1 -0
- package/dist/types/react/SplitPane.d.ts +26 -0
- package/dist/types/react/SplitPane.d.ts.map +1 -0
- package/dist/types/react/TabStrip.d.ts +31 -0
- package/dist/types/react/TabStrip.d.ts.map +1 -0
- package/dist/types/react/TitleTips.d.ts +15 -0
- package/dist/types/react/TitleTips.d.ts.map +1 -0
- package/dist/types/react/Tooltip.d.ts +22 -0
- package/dist/types/react/Tooltip.d.ts.map +1 -0
- package/dist/types/react/UiProvider.d.ts +52 -0
- package/dist/types/react/UiProvider.d.ts.map +1 -0
- package/dist/types/react/baseCss.d.ts +27 -0
- package/dist/types/react/baseCss.d.ts.map +1 -0
- package/dist/types/react/choiceStore.d.ts +34 -0
- package/dist/types/react/choiceStore.d.ts.map +1 -0
- package/dist/types/react/classNames.d.ts +12 -0
- package/dist/types/react/classNames.d.ts.map +1 -0
- package/dist/types/react/confirmStore.d.ts +30 -0
- package/dist/types/react/confirmStore.d.ts.map +1 -0
- package/dist/types/react/index.d.ts +33 -0
- package/dist/types/react/index.d.ts.map +1 -0
- package/dist/types/react/labels.d.ts +24 -0
- package/dist/types/react/labels.d.ts.map +1 -0
- package/dist/types/react/placement.d.ts +59 -0
- package/dist/types/react/placement.d.ts.map +1 -0
- package/dist/types/react/useFillSheet.d.ts +9 -0
- package/dist/types/react/useFillSheet.d.ts.map +1 -0
- package/dist/types/react/useFitToViewport.d.ts +20 -0
- package/dist/types/react/useFitToViewport.d.ts.map +1 -0
- package/dist/types/react/usePicked.d.ts +9 -0
- package/dist/types/react/usePicked.d.ts.map +1 -0
- package/dist/types/react/useStore.d.ts +8 -0
- package/dist/types/react/useStore.d.ts.map +1 -0
- package/dist/types/react/useViewport.d.ts +4 -0
- package/dist/types/react/useViewport.d.ts.map +1 -0
- package/dist/types/rig/PosePlayer.d.ts +64 -0
- package/dist/types/rig/PosePlayer.d.ts.map +1 -0
- package/dist/types/rig/RigView.d.ts +68 -0
- package/dist/types/rig/RigView.d.ts.map +1 -0
- package/dist/types/rig/Skeleton.d.ts +14 -0
- package/dist/types/rig/Skeleton.d.ts.map +1 -0
- package/dist/types/rig/humanoid.d.ts +4 -0
- package/dist/types/rig/humanoid.d.ts.map +1 -0
- package/dist/types/rig/humanoidPoses.d.ts +117 -0
- package/dist/types/rig/humanoidPoses.d.ts.map +1 -0
- package/dist/types/rig/poseMath.d.ts +14 -0
- package/dist/types/rig/poseMath.d.ts.map +1 -0
- package/dist/types/rig/rigTypes.d.ts +82 -0
- package/dist/types/rig/rigTypes.d.ts.map +1 -0
- package/dist/types/save/Autosaver.d.ts +43 -0
- package/dist/types/save/Autosaver.d.ts.map +1 -0
- package/dist/types/save/MemoryBackend.d.ts +10 -0
- package/dist/types/save/MemoryBackend.d.ts.map +1 -0
- package/dist/types/save/SaveBackend.d.ts +14 -0
- package/dist/types/save/SaveBackend.d.ts.map +1 -0
- package/dist/types/save/SaveStore.d.ts +73 -0
- package/dist/types/save/SaveStore.d.ts.map +1 -0
- package/dist/types/save/WebStorageBackend.d.ts +14 -0
- package/dist/types/save/WebStorageBackend.d.ts.map +1 -0
- package/dist/types/save/checksum.d.ts +7 -0
- package/dist/types/save/checksum.d.ts.map +1 -0
- package/dist/types/save/migrateSave.d.ts +17 -0
- package/dist/types/save/migrateSave.d.ts.map +1 -0
- package/dist/types/settings.d.ts +25 -0
- package/dist/types/settings.d.ts.map +1 -0
- package/dist/types/tilemap/TilemapView.d.ts +42 -0
- package/dist/types/tilemap/TilemapView.d.ts.map +1 -0
- package/dist/types/tilemap/collision.d.ts +16 -0
- package/dist/types/tilemap/collision.d.ts.map +1 -0
- package/dist/types/tilemap/tiled.d.ts +104 -0
- package/dist/types/tilemap/tiled.d.ts.map +1 -0
- package/dist/types/transitions/CrossfadeTransition.d.ts +20 -0
- package/dist/types/transitions/CrossfadeTransition.d.ts.map +1 -0
- package/dist/types/transitions/DitherWipeTransition.d.ts +35 -0
- package/dist/types/transitions/DitherWipeTransition.d.ts.map +1 -0
- package/dist/types/transitions/FadeTransition.d.ts +20 -0
- package/dist/types/transitions/FadeTransition.d.ts.map +1 -0
- package/dist/types/transitions/Letterbox.d.ts +33 -0
- package/dist/types/transitions/Letterbox.d.ts.map +1 -0
- package/dist/types/transitions/Transition.d.ts +22 -0
- package/dist/types/transitions/Transition.d.ts.map +1 -0
- package/dist/types/transitions/ditherMask.d.ts +13 -0
- package/dist/types/transitions/ditherMask.d.ts.map +1 -0
- package/dist/types/transitions/transitionTo.d.ts +16 -0
- package/dist/types/transitions/transitionTo.d.ts.map +1 -0
- package/dist/types/transitions/tweenDone.d.ts +5 -0
- package/dist/types/transitions/tweenDone.d.ts.map +1 -0
- package/dist/types/ui/Bar.d.ts +41 -0
- package/dist/types/ui/Bar.d.ts.map +1 -0
- package/dist/types/ui/Button.d.ts +47 -0
- package/dist/types/ui/Button.d.ts.map +1 -0
- package/dist/types/ui/Dialog.d.ts +47 -0
- package/dist/types/ui/Dialog.d.ts.map +1 -0
- package/dist/types/ui/FocusManager.d.ts +53 -0
- package/dist/types/ui/FocusManager.d.ts.map +1 -0
- package/dist/types/ui/Label.d.ts +24 -0
- package/dist/types/ui/Label.d.ts.map +1 -0
- package/dist/types/ui/List.d.ts +23 -0
- package/dist/types/ui/List.d.ts.map +1 -0
- package/dist/types/ui/Panel.d.ts +38 -0
- package/dist/types/ui/Panel.d.ts.map +1 -0
- package/dist/types/ui/ScrollView.d.ts +56 -0
- package/dist/types/ui/ScrollView.d.ts.map +1 -0
- package/dist/types/ui/Slider.d.ts +47 -0
- package/dist/types/ui/Slider.d.ts.map +1 -0
- package/dist/types/ui/Stack.d.ts +16 -0
- package/dist/types/ui/Stack.d.ts.map +1 -0
- package/dist/types/ui/Toggle.d.ts +31 -0
- package/dist/types/ui/Toggle.d.ts.map +1 -0
- package/dist/types/ui/UiHost.d.ts +18 -0
- package/dist/types/ui/UiHost.d.ts.map +1 -0
- package/dist/types/ui/UiPointerGate.d.ts +17 -0
- package/dist/types/ui/UiPointerGate.d.ts.map +1 -0
- package/dist/types/ui/UiRoot.d.ts +73 -0
- package/dist/types/ui/UiRoot.d.ts.map +1 -0
- package/dist/types/ui/Widget.d.ts +56 -0
- package/dist/types/ui/Widget.d.ts.map +1 -0
- package/dist/types/ui/dom/DomOverlay.d.ts +52 -0
- package/dist/types/ui/dom/DomOverlay.d.ts.map +1 -0
- package/dist/types/ui/dom/DomWorldAnchors.d.ts +50 -0
- package/dist/types/ui/dom/DomWorldAnchors.d.ts.map +1 -0
- package/dist/types/ui/dom/InputShield.d.ts +20 -0
- package/dist/types/ui/dom/InputShield.d.ts.map +1 -0
- package/dist/types/ui/dom/createStore.d.ts +22 -0
- package/dist/types/ui/dom/createStore.d.ts.map +1 -0
- package/dist/types/ui/dom/shieldDecision.d.ts +34 -0
- package/dist/types/ui/dom/shieldDecision.d.ts.map +1 -0
- package/dist/types/ui/dom/worldToScreen.d.ts +24 -0
- package/dist/types/ui/dom/worldToScreen.d.ts.map +1 -0
- package/dist/types/ui/index.d.ts +42 -0
- package/dist/types/ui/index.d.ts.map +1 -0
- package/dist/types/ui/layout/anchor.d.ts +9 -0
- package/dist/types/ui/layout/anchor.d.ts.map +1 -0
- package/dist/types/ui/layout/barDrain.d.ts +25 -0
- package/dist/types/ui/layout/barDrain.d.ts.map +1 -0
- package/dist/types/ui/layout/fitToViewport.d.ts +32 -0
- package/dist/types/ui/layout/fitToViewport.d.ts.map +1 -0
- package/dist/types/ui/layout/focusNav.d.ts +13 -0
- package/dist/types/ui/layout/focusNav.d.ts.map +1 -0
- package/dist/types/ui/layout/geometry.d.ts +35 -0
- package/dist/types/ui/layout/geometry.d.ts.map +1 -0
- package/dist/types/ui/layout/listWidth.d.ts +13 -0
- package/dist/types/ui/layout/listWidth.d.ts.map +1 -0
- package/dist/types/ui/layout/placeTooltip.d.ts +23 -0
- package/dist/types/ui/layout/placeTooltip.d.ts.map +1 -0
- package/dist/types/ui/layout/scroll.d.ts +17 -0
- package/dist/types/ui/layout/scroll.d.ts.map +1 -0
- package/dist/types/ui/layout/slider.d.ts +7 -0
- package/dist/types/ui/layout/slider.d.ts.map +1 -0
- package/dist/types/ui/layout/stack.d.ts +26 -0
- package/dist/types/ui/layout/stack.d.ts.map +1 -0
- package/dist/types/ui/layout/wrapRow.d.ts +6 -0
- package/dist/types/ui/layout/wrapRow.d.ts.map +1 -0
- package/dist/types/ui/rich/RichText.d.ts +48 -0
- package/dist/types/ui/rich/RichText.d.ts.map +1 -0
- package/dist/types/ui/rich/richFonts.d.ts +70 -0
- package/dist/types/ui/rich/richFonts.d.ts.map +1 -0
- package/dist/types/ui/rich/richLayout.d.ts +76 -0
- package/dist/types/ui/rich/richLayout.d.ts.map +1 -0
- package/dist/types/ui/rich/richMarkup.d.ts +48 -0
- package/dist/types/ui/rich/richMarkup.d.ts.map +1 -0
- package/dist/ui/Bar.js +53 -0
- package/dist/ui/Button.js +57 -0
- package/dist/ui/Dialog.js +55 -0
- package/dist/ui/FocusManager.js +96 -0
- package/dist/ui/Label.js +35 -0
- package/dist/ui/List.js +44 -0
- package/dist/ui/Panel.js +37 -0
- package/dist/ui/ScrollView.js +95 -0
- package/dist/ui/Slider.js +54 -0
- package/dist/ui/Stack.js +27 -0
- package/dist/ui/Toggle.js +36 -0
- package/dist/ui/UiHost.js +8 -0
- package/dist/ui/UiPointerGate.js +24 -0
- package/dist/ui/UiRoot.js +92 -0
- package/dist/ui/Widget.js +89 -0
- package/dist/ui/dom/DomOverlay.js +58 -0
- package/dist/ui/dom/DomWorldAnchors.js +58 -0
- package/dist/ui/dom/InputShield.js +26 -0
- package/dist/ui/dom/createStore.js +41 -0
- package/dist/ui/dom/shieldDecision.js +35 -0
- package/dist/ui/dom/worldToScreen.js +10 -0
- package/dist/ui/layout/anchor.js +19 -0
- package/dist/ui/layout/barDrain.js +24 -0
- package/dist/ui/layout/fitToViewport.js +16 -0
- package/dist/ui/layout/focusNav.js +41 -0
- package/dist/ui/layout/geometry.js +20 -0
- package/dist/ui/layout/listWidth.js +9 -0
- package/dist/ui/layout/placeTooltip.js +27 -0
- package/dist/ui/layout/scroll.js +23 -0
- package/dist/ui/layout/slider.js +19 -0
- package/dist/ui/layout/stack.js +26 -0
- package/dist/ui/layout/wrapRow.js +12 -0
- package/dist/ui/rich/RichText.js +87 -0
- package/dist/ui/rich/richFonts.js +105 -0
- package/dist/ui/rich/richLayout.js +132 -0
- package/dist/ui/rich/richMarkup.js +67 -0
- package/dist/ui.js +95 -0
- package/package.json +112 -4
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { type BLEND_MODES, type Container } from 'pixi.js';
|
|
2
|
+
import type { Stage } from './Stage.js';
|
|
3
|
+
type Ctor<T> = new (...args: any[]) => T;
|
|
4
|
+
/** What `GameObject` adds to a Pixi display object. */
|
|
5
|
+
export interface GameObjectMembers {
|
|
6
|
+
scene: Stage;
|
|
7
|
+
/** False once destroyed. */
|
|
8
|
+
readonly active: boolean;
|
|
9
|
+
/** The draw order in the world layer (`zIndex`): bigger is in front. */
|
|
10
|
+
depth: number;
|
|
11
|
+
/** Scale without the flip: stays positive on a mirrored sprite. */
|
|
12
|
+
scaleX: number;
|
|
13
|
+
scaleY: number;
|
|
14
|
+
flipX: boolean;
|
|
15
|
+
flipY: boolean;
|
|
16
|
+
setScale(x: number, y?: number): this;
|
|
17
|
+
setFlipX(v: boolean): this;
|
|
18
|
+
setFlipY(v: boolean): this;
|
|
19
|
+
setFlip(x: boolean, y: boolean): this;
|
|
20
|
+
setDepth(d: number): this;
|
|
21
|
+
setAlpha(a?: number): this;
|
|
22
|
+
setVisible(v: boolean): this;
|
|
23
|
+
setPosition(x?: number, y?: number): this;
|
|
24
|
+
setRotation(r?: number): this;
|
|
25
|
+
setAngle(a?: number): this;
|
|
26
|
+
setBlendMode(mode: BLEND_MODES): this;
|
|
27
|
+
setTint(color?: number): this;
|
|
28
|
+
/** Paints every opaque pixel in one solid colour (hit flash, silhouettes). */
|
|
29
|
+
setTintFill(color: number): this;
|
|
30
|
+
clearTint(): this;
|
|
31
|
+
/** 0 pins the object to the screen instead of the world. */
|
|
32
|
+
setScrollFactor(f: number): this;
|
|
33
|
+
destroy(): void;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* The chainable setters the world code was written against (setDepth, setAlpha, setTintFill...), added onto a Pixi
|
|
37
|
+
* display object. Scale is kept apart from flipping, so `scaleX` stays positive on a mirrored sprite as it did
|
|
38
|
+
* before, and a tween on scale cannot undo a flip.
|
|
39
|
+
*/
|
|
40
|
+
export declare function GameObject<TBase extends Ctor<Container>>(Base: TBase): TBase & Ctor<GameObjectMembers>;
|
|
41
|
+
export {};
|
|
42
|
+
//# sourceMappingURL=gameObject.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gameObject.d.ts","sourceRoot":"","sources":["../../../src/core/gameObject.ts"],"names":[],"mappings":"AAAA,OAAO,EAAqB,KAAK,WAAW,EAAE,KAAK,SAAS,EAAE,MAAM,SAAS,CAAC;AAC9E,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAMrC,KAAK,IAAI,CAAC,CAAC,IAAI,KAAK,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,CAAC,CAAC;AA8BzC,uDAAuD;AACvD,MAAM,WAAW,iBAAiB;IAChC,KAAK,EAAE,KAAK,CAAC;IACb,4BAA4B;IAC5B,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAC;IACzB,wEAAwE;IACxE,KAAK,EAAE,MAAM,CAAC;IACd,mEAAmE;IACnE,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,OAAO,CAAC;IACf,KAAK,EAAE,OAAO,CAAC;IACf,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtC,QAAQ,CAAC,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;IAC3B,QAAQ,CAAC,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;IAC3B,OAAO,CAAC,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;IACtC,QAAQ,CAAC,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,QAAQ,CAAC,CAAC,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,UAAU,CAAC,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;IAC7B,WAAW,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1C,WAAW,CAAC,CAAC,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,QAAQ,CAAC,CAAC,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,YAAY,CAAC,IAAI,EAAE,WAAW,GAAG,IAAI,CAAC;IACtC,OAAO,CAAC,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,8EAA8E;IAC9E,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACjC,SAAS,IAAI,IAAI,CAAC;IAClB,4DAA4D;IAC5D,eAAe,CAAC,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACjC,OAAO,IAAI,IAAI,CAAC;CACjB;AAED;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,KAAK,SAAS,IAAI,CAAC,SAAS,CAAC,EAAE,IAAI,EAAE,KAAK,GAAG,KAAK,GAAG,IAAI,CAAC,iBAAiB,CAAC,CAuKtG"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
export interface PixelZoomOptions {
|
|
2
|
+
/** Canvas height (CSS px) worth one zoom step before clamping (default 290: ×2 on a phone held landscape, ×4 at 1080p). */
|
|
3
|
+
pxPerStep?: number;
|
|
4
|
+
/** The least and most zoom a screen gets on its own, before a player's offset (default 2 and 5). */
|
|
5
|
+
baseMin?: number;
|
|
6
|
+
baseMax?: number;
|
|
7
|
+
/** The least and most zoom any offset may reach (default 1 and 6). */
|
|
8
|
+
min?: number;
|
|
9
|
+
max?: number;
|
|
10
|
+
/** The one fractional zoom allowed, or null for whole steps only (default 1.5). */
|
|
11
|
+
halfZoom?: number | null;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* The zoom a screen this tall gets on its own: one step per `pxPerStep` of height, within `baseMin`–`baseMax`.
|
|
15
|
+
* With the defaults a 375–440-px phone held landscape gets 2 (about 200 world px tall: ×1 drew a 24-px character
|
|
16
|
+
* 4 mm tall, ×3 left less than a monster's reach on screen), a 720p window 2, 1080p 4.
|
|
17
|
+
*/
|
|
18
|
+
export declare function baseZoom(canvasHeight: number, options?: PixelZoomOptions): number;
|
|
19
|
+
/**
|
|
20
|
+
* The camera zoom (screen px per world px) for a canvas this tall, moved `offset` steps by the player (rounded to
|
|
21
|
+
* half steps), within `min`–`max`. Whole, or exactly `halfZoom`: a half step anywhere else rounds to the whole one.
|
|
22
|
+
*/
|
|
23
|
+
export declare function worldZoom(canvasHeight: number, offset?: number, options?: PixelZoomOptions): number;
|
|
24
|
+
/**
|
|
25
|
+
* The zoom steps to offer a player on a screen this tall, by zoom from farthest to nearest: each of `offsets`
|
|
26
|
+
* and, where it lies below the screen's own zoom and no further than `lowest`, the offset that lands on `halfZoom`.
|
|
27
|
+
* Two offsets giving the same zoom are offered once, the one nearer 0 kept.
|
|
28
|
+
*/
|
|
29
|
+
export declare function zoomSteps(canvasHeight: number, offsets?: readonly number[], lowest?: number, options?: PixelZoomOptions): {
|
|
30
|
+
offset: number;
|
|
31
|
+
zoom: number;
|
|
32
|
+
}[];
|
|
33
|
+
/**
|
|
34
|
+
* The renderer's resolution for a zoom: 1 at a whole zoom (one backing pixel per CSS pixel, the cheapest fill), and at
|
|
35
|
+
* a fractional one the least whole resolution up to `maxResolution` (default 4) that makes `zoom × resolution` whole
|
|
36
|
+
* (2 at ×1.5, so a world pixel is 3 backing pixels) — but only on a screen of `devicePixelRatio` ≥ `minDpr`
|
|
37
|
+
* (default 1.5): a coarser one cannot show the difference and would pay the fill for nothing. 1 when none fits.
|
|
38
|
+
*/
|
|
39
|
+
export declare function zoomResolution(zoom: number, devicePixelRatio: number, minDpr?: number, maxResolution?: number): number;
|
|
40
|
+
/**
|
|
41
|
+
* The whole-number scale content of this size is drawn at to fit a box (a map panel, a preview): the largest integer
|
|
42
|
+
* that fits both ways, never below 1, so every source pixel is the same number of screen pixels.
|
|
43
|
+
*/
|
|
44
|
+
export declare function fitScale(contentW: number, contentH: number, boxW: number, boxH: number): number;
|
|
45
|
+
//# sourceMappingURL=pixelZoom.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pixelZoom.d.ts","sourceRoot":"","sources":["../../../src/core/pixelZoom.ts"],"names":[],"mappings":"AAOA,MAAM,WAAW,gBAAgB;IAC/B,2HAA2H;IAC3H,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,oGAAoG;IACpG,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,sEAAsE;IACtE,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,mFAAmF;IACnF,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC1B;AAQD;;;;GAIG;AACH,wBAAgB,QAAQ,CAAC,YAAY,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,gBAAgB,GAAG,MAAM,CAGjF;AAED;;;GAGG;AACH,wBAAgB,SAAS,CAAC,YAAY,EAAE,MAAM,EAAE,MAAM,SAAI,EAAE,OAAO,CAAC,EAAE,gBAAgB,GAAG,MAAM,CAI9F;AAED;;;;GAIG;AACH,wBAAgB,SAAS,CACvB,YAAY,EAAE,MAAM,EACpB,OAAO,GAAE,SAAS,MAAM,EAAmB,EAC3C,MAAM,SAAO,EACb,OAAO,CAAC,EAAE,gBAAgB,GACzB;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,EAAE,CAcpC;AAED;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM,EAAE,MAAM,SAAM,EAAE,aAAa,SAAI,GAAG,MAAM,CAO9G;AAED;;;GAGG;AACH,wBAAgB,QAAQ,CAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,CAG/F"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Pixi 8's `BatchTextureArray.clear` sets `ids[source.uid] = null` instead of deleting the key, and its batches are
|
|
3
|
+
* pooled, so every pooled batch keeps one key for every texture source ever drawn through it — about 70% of what a
|
|
4
|
+
* fight's heap grew by in an hour (Pixi 8.21.0). The replacement deletes the key, which reads the
|
|
5
|
+
* same to Pixi (`checkAndUpdateTexture` treats null and a missing key alike). Applied once, and only while `clear`
|
|
6
|
+
* still has the shape it was written against, so a Pixi that fixed or changed it is left alone.
|
|
7
|
+
*/
|
|
8
|
+
export declare function patchPixi(): boolean;
|
|
9
|
+
//# sourceMappingURL=pixiPatches.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pixiPatches.d.ts","sourceRoot":"","sources":["../../../src/core/pixiPatches.ts"],"names":[],"mappings":"AAIA;;;;;;GAMG;AACH,wBAAgB,SAAS,IAAI,OAAO,CAkBnC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/** Something to run at a time: a timer, an effect's later beat. `removed` ones are dropped without running. */
|
|
2
|
+
export interface DueCall {
|
|
3
|
+
at: number;
|
|
4
|
+
fn: () => void;
|
|
5
|
+
removed?: boolean;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* Runs and removes every call of `scheduled` due by `now`, in place: the list is compacted and `scratch` (kept by the
|
|
9
|
+
* caller, empty between calls) collects the due ones, so a frame allocates nothing. A call that throws goes to
|
|
10
|
+
* `failed` and the rest still run; whatever happens the due calls are gone from both lists afterwards. A list that
|
|
11
|
+
* kept a thrower threw again every frame anything else was scheduled, and cut short whatever the frame ran after it.
|
|
12
|
+
* A call scheduled by a running one lands in `scheduled` and waits for the next pass, even if already due.
|
|
13
|
+
*/
|
|
14
|
+
export declare function runDue<T extends DueCall>(scheduled: T[], scratch: T[], now: number, failed: (err: unknown) => void): void;
|
|
15
|
+
//# sourceMappingURL=runDue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"runDue.d.ts","sourceRoot":"","sources":["../../../src/core/runDue.ts"],"names":[],"mappings":"AAAA,+GAA+G;AAC/G,MAAM,WAAW,OAAO;IACtB,EAAE,EAAE,MAAM,CAAC;IACX,EAAE,EAAE,MAAM,IAAI,CAAC;IACf,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED;;;;;;GAMG;AACH,wBAAgB,MAAM,CAAC,CAAC,SAAS,OAAO,EAAE,SAAS,EAAE,CAAC,EAAE,EAAE,OAAO,EAAE,CAAC,EAAE,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC,GAAG,EAAE,OAAO,KAAK,IAAI,GAAG,IAAI,CA6BzH"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Texture } from 'pixi.js';
|
|
2
|
+
/**
|
|
3
|
+
* `texture`'s frame with every opaque pixel painted `color` (default white), alpha kept; made once per frame and colour
|
|
4
|
+
* and cached. Only for textures that are never repainted (atlas frames, snapshots): copy a live one first
|
|
5
|
+
* (`TextureRegistry.snapshotInto`) and paint the copy with `fillSolid`. Null when the frame cannot be read (no
|
|
6
|
+
* drawable source, an empty or rotated frame, a cross-origin image).
|
|
7
|
+
*/
|
|
8
|
+
export declare function solidSilhouette(texture: Texture, color?: number): Texture | null;
|
|
9
|
+
/** Paints every opaque pixel of a canvas `color` (default white), keeping its alpha. Upload the texture after. */
|
|
10
|
+
export declare function fillSolid(canvas: unknown, color?: number): void;
|
|
11
|
+
/**
|
|
12
|
+
* Frees cached silhouettes: those of one `texture` (it is about to be repainted or destroyed), or all of them (a
|
|
13
|
+
* scene or atlas change). A sprite still wearing one must be given another texture first.
|
|
14
|
+
*/
|
|
15
|
+
export declare function clearSilhouettes(texture?: Texture): void;
|
|
16
|
+
//# sourceMappingURL=silhouette.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"silhouette.d.ts","sourceRoot":"","sources":["../../../src/core/silhouette.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,OAAO,EAAE,MAAM,SAAS,CAAC;AAiBhD;;;;;GAKG;AACH,wBAAgB,eAAe,CAAC,OAAO,EAAE,OAAO,EAAE,KAAK,SAAW,GAAG,OAAO,GAAG,IAAI,CAgClF;AAED,kHAAkH;AAClH,wBAAgB,SAAS,CAAC,MAAM,EAAE,OAAO,EAAE,KAAK,SAAW,GAAG,IAAI,CAUjE;AAED;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,OAAO,CAAC,EAAE,OAAO,GAAG,IAAI,CAcxD"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Where a child goes on a timeline: a time in ms from its start, or a string —
|
|
3
|
+
* `'<'` the start of the child added last, `'>'` its end, `'+=200'` / `'-=100'` 200 ms after / 100 ms before the
|
|
4
|
+
* default place (the timeline's end, or a `parallel` group's start), `'intro'` a label, and any of `'<'`, `'>'` or a
|
|
5
|
+
* label followed by `+=n` / `-=n`. A string of digits is a time.
|
|
6
|
+
*/
|
|
7
|
+
export type TimelinePosition = number | string;
|
|
8
|
+
/** What a position is measured against; `labels` is written to when a position names a label not yet set. */
|
|
9
|
+
export interface PlaceContext {
|
|
10
|
+
/** Where a child goes when no position is given: the timeline's end, or the open `parallel` group's start. */
|
|
11
|
+
fallback: number;
|
|
12
|
+
/** The end of the timeline as built so far: where a label first named in a position is set. */
|
|
13
|
+
end: number;
|
|
14
|
+
lastStart: number;
|
|
15
|
+
lastEnd: number;
|
|
16
|
+
labels: Map<string, number>;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* The start time (ms, never below 0) `at` names. A label not set yet is set at the timeline's end, the way GSAP does,
|
|
20
|
+
* so `to(a, …, { at: 'hit' })` both places the child and names the spot for the children after it.
|
|
21
|
+
*/
|
|
22
|
+
export declare function placeAt(at: TimelinePosition | undefined, ctx: PlaceContext): number;
|
|
23
|
+
//# sourceMappingURL=timelinePlace.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"timelinePlace.d.ts","sourceRoot":"","sources":["../../../src/core/timelinePlace.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,MAAM,MAAM,gBAAgB,GAAG,MAAM,GAAG,MAAM,CAAC;AAE/C,6GAA6G;AAC7G,MAAM,WAAW,YAAY;IAC3B,8GAA8G;IAC9G,QAAQ,EAAE,MAAM,CAAC;IACjB,+FAA+F;IAC/F,GAAG,EAAE,MAAM,CAAC;IACZ,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAC7B;AAKD;;;GAGG;AACH,wBAAgB,OAAO,CAAC,EAAE,EAAE,gBAAgB,GAAG,SAAS,EAAE,GAAG,EAAE,YAAY,GAAG,MAAM,CAsBnF"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { TweenTarget } from './Tweener.js';
|
|
2
|
+
/**
|
|
3
|
+
* How a tween reads and writes one property, shared by `Tweener` and `Timeline` so both treat `scale` the same way:
|
|
4
|
+
* one number written to `scaleX` and `scaleY`, the shape every display object here exposes.
|
|
5
|
+
*/
|
|
6
|
+
export declare function readProp(target: TweenTarget, prop: string): number;
|
|
7
|
+
export declare function writeProp(target: TweenTarget, prop: string, value: number): void;
|
|
8
|
+
//# sourceMappingURL=tweenProps.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tweenProps.d.ts","sourceRoot":"","sources":["../../../src/core/tweenProps.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAE7C;;;GAGG;AACH,wBAAgB,QAAQ,CAAC,MAAM,EAAE,WAAW,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,CAGlE;AAED,wBAAgB,SAAS,CAAC,MAAM,EAAE,WAAW,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI,CAKhF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/core/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEzC,gFAAgF;AAChF,MAAM,MAAM,WAAW,GAAG,SAAS,CAAC"}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import type { ComponentType, World } from '../ecs/World.js';
|
|
2
|
+
import type { Engine } from '../engine/Engine.js';
|
|
3
|
+
import { ErrorLog } from './ErrorLog.js';
|
|
4
|
+
/** Draws one box in world coordinates (a hurtbox, a wall, a trigger), in `color` (default green). */
|
|
5
|
+
export type BoxDrawer = (x: number, y: number, width: number, height: number, color?: number) => void;
|
|
6
|
+
/** Draws one line in world coordinates (a turned collider's edge, a ray), in `color` (default green). */
|
|
7
|
+
export type LineDrawer = (x0: number, y0: number, x1: number, y1: number, color?: number) => void;
|
|
8
|
+
export interface DebugOverlayOptions {
|
|
9
|
+
/**
|
|
10
|
+
* `KeyboardEvent.code` that shows and hides it (default 'Backquote'). The key's own browser action is prevented
|
|
11
|
+
* (F3 would open the find bar, F12 the developer tools).
|
|
12
|
+
*/
|
|
13
|
+
key?: string;
|
|
14
|
+
/** The world to count and inspect (default the current scene's). */
|
|
15
|
+
world?: () => World | undefined;
|
|
16
|
+
/** Component types the inspector lists; none, and it lists every entity with all it holds. */
|
|
17
|
+
components?: readonly ComponentType<unknown>[];
|
|
18
|
+
/** Entities listed at most (default 12). */
|
|
19
|
+
inspectLimit?: number;
|
|
20
|
+
/** Called every shown frame to draw collision boxes (and lines: turned shapes, rays). */
|
|
21
|
+
colliders?: (draw: BoxDrawer, line: LineDrawer) => void;
|
|
22
|
+
/** Errors kept (default 8). */
|
|
23
|
+
errors?: number;
|
|
24
|
+
/** Where the key is listened for (default `window`). */
|
|
25
|
+
target?: Window | HTMLElement;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* A developer overlay toggled by a key: FPS with a frame-time graph, draw calls and textures, the entity count, a
|
|
29
|
+
* list of entities and their components, collision boxes, and the last errors the frame guard caught.
|
|
30
|
+
*
|
|
31
|
+
* Hidden, it costs nothing per frame: nothing is drawn or listened to but the key and the engine's `error` event
|
|
32
|
+
* (so faults from before it was opened are still listed). Shown, it rides the engine's `frame` event.
|
|
33
|
+
*/
|
|
34
|
+
export declare class DebugOverlay {
|
|
35
|
+
private readonly engine;
|
|
36
|
+
private readonly options;
|
|
37
|
+
readonly errors: ErrorLog;
|
|
38
|
+
private readonly stats;
|
|
39
|
+
private readonly panel;
|
|
40
|
+
private readonly back;
|
|
41
|
+
private readonly graph;
|
|
42
|
+
private readonly text;
|
|
43
|
+
private readonly boxes;
|
|
44
|
+
private readonly boxLayer;
|
|
45
|
+
private readonly draws;
|
|
46
|
+
private readonly cleanup;
|
|
47
|
+
private offFrame;
|
|
48
|
+
private lastText;
|
|
49
|
+
private drawCalls;
|
|
50
|
+
private shown;
|
|
51
|
+
private readonly drawBox;
|
|
52
|
+
private readonly drawLine;
|
|
53
|
+
constructor(engine: Engine, options?: DebugOverlayOptions);
|
|
54
|
+
get visible(): boolean;
|
|
55
|
+
toggle(): void;
|
|
56
|
+
show(): void;
|
|
57
|
+
hide(): void;
|
|
58
|
+
destroy(): void;
|
|
59
|
+
private frame;
|
|
60
|
+
private paintGraph;
|
|
61
|
+
private paintText;
|
|
62
|
+
}
|
|
63
|
+
//# sourceMappingURL=DebugOverlay.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DebugOverlay.d.ts","sourceRoot":"","sources":["../../../src/debug/DebugOverlay.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AACzD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAE/C,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAItC,qGAAqG;AACrG,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;AAEtG,yGAAyG;AACzG,MAAM,MAAM,UAAU,GAAG,CAAC,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;AAElG,MAAM,WAAW,mBAAmB;IAClC;;;OAGG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,oEAAoE;IACpE,KAAK,CAAC,EAAE,MAAM,KAAK,GAAG,SAAS,CAAC;IAChC,8FAA8F;IAC9F,UAAU,CAAC,EAAE,SAAS,aAAa,CAAC,OAAO,CAAC,EAAE,CAAC;IAC/C,4CAA4C;IAC5C,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,yFAAyF;IACzF,SAAS,CAAC,EAAE,CAAC,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,UAAU,KAAK,IAAI,CAAC;IACxD,+BAA+B;IAC/B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,wDAAwD;IACxD,MAAM,CAAC,EAAE,MAAM,GAAG,WAAW,CAAC;CAC/B;AAOD;;;;;;GAMG;AACH,qBAAa,YAAY;IAwBrB,OAAO,CAAC,QAAQ,CAAC,MAAM;IACvB,OAAO,CAAC,QAAQ,CAAC,OAAO;IAxB1B,QAAQ,CAAC,MAAM,EAAE,QAAQ,CAAC;IAC1B,OAAO,CAAC,QAAQ,CAAC,KAAK,CAA+B;IACrD,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAmB;IACzC,OAAO,CAAC,QAAQ,CAAC,IAAI,CAA6B;IAClD,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAkB;IACxC,OAAO,CAAC,QAAQ,CAAC,IAAI,CAA4G;IACjI,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAkB;IACxC,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAmB;IAC5C,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAkB;IACxC,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAsB;IAC9C,OAAO,CAAC,QAAQ,CAA6B;IAC7C,OAAO,CAAC,QAAQ,CAAa;IAC7B,OAAO,CAAC,SAAS,CAAK;IACtB,OAAO,CAAC,KAAK,CAAS;IACtB,OAAO,CAAC,QAAQ,CAAC,OAAO,CAEtB;IAEF,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAEvB;gBAGiB,MAAM,EAAE,MAAM,EACd,OAAO,GAAE,mBAAwB;IAwBpD,IAAI,OAAO,IAAI,OAAO,CAErB;IAED,MAAM,IAAI,IAAI;IAKd,IAAI,IAAI,IAAI;IAaZ,IAAI,IAAI,IAAI;IAYZ,OAAO,IAAI,IAAI;IAOf,OAAO,CAAC,KAAK;IAab,OAAO,CAAC,UAAU;IAclB,OAAO,CAAC,SAAS;CAmBlB"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { Renderer } from 'pixi.js';
|
|
2
|
+
/**
|
|
3
|
+
* Counts WebGL draw calls by wrapping the context's draw functions while it is installed, since Pixi 8 keeps no
|
|
4
|
+
* count of its own. Installed only while the debug overlay is open, so a closed overlay costs nothing; on WebGPU
|
|
5
|
+
* (no `gl`) it counts nothing and says so.
|
|
6
|
+
*/
|
|
7
|
+
export declare class DrawCallCounter {
|
|
8
|
+
private readonly renderer;
|
|
9
|
+
/** Draw calls since the last `take`. */
|
|
10
|
+
private calls;
|
|
11
|
+
private restore;
|
|
12
|
+
constructor(renderer: Renderer);
|
|
13
|
+
/** Whether this renderer can be counted (WebGL). */
|
|
14
|
+
get supported(): boolean;
|
|
15
|
+
install(): void;
|
|
16
|
+
uninstall(): void;
|
|
17
|
+
/** Draw calls since the last call, and starts counting again. */
|
|
18
|
+
take(): number;
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=DrawCallCounter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DrawCallCounter.d.ts","sourceRoot":"","sources":["../../../src/debug/DrawCallCounter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AASxC;;;;GAIG;AACH,qBAAa,eAAe;IAKd,OAAO,CAAC,QAAQ,CAAC,QAAQ;IAJrC,wCAAwC;IACxC,OAAO,CAAC,KAAK,CAAK;IAClB,OAAO,CAAC,OAAO,CAA6B;gBAEf,QAAQ,EAAE,QAAQ;IAE/C,oDAAoD;IACpD,IAAI,SAAS,IAAI,OAAO,CAEvB;IAED,OAAO,IAAI,IAAI;IAwBf,SAAS,IAAI,IAAI;IAKjB,iEAAiE;IACjE,IAAI,IAAI,MAAM;CAKf"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/** One fault the frame guard (or a system) caught. */
|
|
2
|
+
export interface LoggedError {
|
|
3
|
+
where: string;
|
|
4
|
+
message: string;
|
|
5
|
+
/** How many times in a row the same fault came in. */
|
|
6
|
+
count: number;
|
|
7
|
+
at: number;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* The last `limit` distinct faults, newest last. A fault repeating every frame is one entry with a count, not
|
|
11
|
+
* sixty lines a second pushing everything else out.
|
|
12
|
+
*/
|
|
13
|
+
export declare class ErrorLog {
|
|
14
|
+
readonly limit: number;
|
|
15
|
+
readonly entries: LoggedError[];
|
|
16
|
+
constructor(limit?: number);
|
|
17
|
+
add(where: string, error: unknown, at?: number): void;
|
|
18
|
+
clear(): void;
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=ErrorLog.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ErrorLog.d.ts","sourceRoot":"","sources":["../../../src/debug/ErrorLog.ts"],"names":[],"mappings":"AAAA,sDAAsD;AACtD,MAAM,WAAW,WAAW;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,sDAAsD;IACtD,KAAK,EAAE,MAAM,CAAC;IACd,EAAE,EAAE,MAAM,CAAC;CACZ;AAED;;;GAGG;AACH,qBAAa,QAAQ;IAGP,QAAQ,CAAC,KAAK;IAF1B,QAAQ,CAAC,OAAO,EAAE,WAAW,EAAE,CAAM;gBAEhB,KAAK,SAAK;IAE/B,GAAG,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE,SAAa,GAAG,IAAI;IAYzD,KAAK,IAAI,IAAI;CAGd"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The last `size` frame times in a ring of numbers: pure, allocation-free, read by the debug overlay's graph and
|
|
3
|
+
* its FPS line. Averages are over the ring, so one long frame shows in `max` without wrecking the FPS shown.
|
|
4
|
+
*/
|
|
5
|
+
export declare class FrameStats {
|
|
6
|
+
readonly size: number;
|
|
7
|
+
readonly times: Float32Array;
|
|
8
|
+
private head;
|
|
9
|
+
private filled;
|
|
10
|
+
constructor(size?: number);
|
|
11
|
+
/** Records one frame's length in ms. */
|
|
12
|
+
push(ms: number): void;
|
|
13
|
+
get count(): number;
|
|
14
|
+
/** The `i`-th frame, oldest first. */
|
|
15
|
+
at(i: number): number;
|
|
16
|
+
get average(): number;
|
|
17
|
+
get max(): number;
|
|
18
|
+
get fps(): number;
|
|
19
|
+
clear(): void;
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=FrameStats.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FrameStats.d.ts","sourceRoot":"","sources":["../../../src/debug/FrameStats.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,qBAAa,UAAU;IAKT,QAAQ,CAAC,IAAI;IAJzB,QAAQ,CAAC,KAAK,EAAE,YAAY,CAAC;IAC7B,OAAO,CAAC,IAAI,CAAK;IACjB,OAAO,CAAC,MAAM,CAAK;gBAEE,IAAI,SAAM;IAI/B,wCAAwC;IACxC,IAAI,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI;IAMtB,IAAI,KAAK,IAAI,MAAM,CAElB;IAED,sCAAsC;IACtC,EAAE,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM;IAIrB,IAAI,OAAO,IAAI,MAAM,CAKpB;IAED,IAAI,GAAG,IAAI,MAAM,CAIhB;IAED,IAAI,GAAG,IAAI,MAAM,CAGhB;IAED,KAAK,IAAI,IAAI;CAId"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { ComponentType, Entity, World } from '../ecs/World.js';
|
|
2
|
+
/** One entity as the inspector lists it. */
|
|
3
|
+
export interface EntityRow {
|
|
4
|
+
entity: Entity;
|
|
5
|
+
/** `Name` or `Name {…}` per component it holds, of those asked about. */
|
|
6
|
+
components: string[];
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Lists up to `limit` entities with a short preview of each component's value: those holding any of `components`
|
|
10
|
+
* when the game names some (only those shown), else every live entity with all it holds (`World.entities`,
|
|
11
|
+
* `componentsOf`). For the debug overlay: it allocates, and runs a few times a second only while the overlay is open.
|
|
12
|
+
*/
|
|
13
|
+
export declare function inspectWorld(world: World, components?: readonly ComponentType<unknown>[], limit?: number, previewLength?: number): EntityRow[];
|
|
14
|
+
//# sourceMappingURL=inspectWorld.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"inspectWorld.d.ts","sourceRoot":"","sources":["../../../src/debug/inspectWorld.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AAEjE,4CAA4C;AAC5C,MAAM,WAAW,SAAS;IACxB,MAAM,EAAE,MAAM,CAAC;IACf,yEAAyE;IACzE,UAAU,EAAE,MAAM,EAAE,CAAC;CACtB;AAED;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,KAAK,EAAE,UAAU,CAAC,EAAE,SAAS,aAAa,CAAC,OAAO,CAAC,EAAE,EAAE,KAAK,SAAK,EAAE,aAAa,SAAK,GAAG,SAAS,EAAE,CAoBtI"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Lets through each distinct error once, and only so many in all: a loop throwing every frame is one report, not
|
|
3
|
+
* sixty a second. Errors are told apart by the first `keyLength` characters of their message.
|
|
4
|
+
*/
|
|
5
|
+
export declare class ErrorDeduper {
|
|
6
|
+
private readonly max;
|
|
7
|
+
private readonly keyLength;
|
|
8
|
+
private readonly seen;
|
|
9
|
+
constructor(max?: number, keyLength?: number);
|
|
10
|
+
/** The key to report under, or null when this error was already let through or the allowance is spent. */
|
|
11
|
+
admit(message: string): string | null;
|
|
12
|
+
/** Forgets what was let through (a new session). */
|
|
13
|
+
reset(): void;
|
|
14
|
+
}
|
|
15
|
+
/** The first `lines` lines of a stack, at most `max` characters. */
|
|
16
|
+
export declare function trimStack(stack: string | undefined, lines?: number, max?: number): string;
|
|
17
|
+
//# sourceMappingURL=ErrorDeduper.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ErrorDeduper.d.ts","sourceRoot":"","sources":["../../../src/diagnostics/ErrorDeduper.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,qBAAa,YAAY;IAIrB,OAAO,CAAC,QAAQ,CAAC,GAAG;IACpB,OAAO,CAAC,QAAQ,CAAC,SAAS;IAJ5B,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAqB;gBAGvB,GAAG,SAAK,EACR,SAAS,SAAM;IAGlC,0GAA0G;IAC1G,KAAK,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI;IAOrC,oDAAoD;IACpD,KAAK,IAAI,IAAI;CAGd;AAED,oEAAoE;AACpE,wBAAgB,SAAS,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,EAAE,KAAK,SAAI,EAAE,GAAG,SAAM,GAAG,MAAM,CAEjF"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { type Ticker } from 'pixi.js';
|
|
2
|
+
import { type FrameSummary } from './frameStats.js';
|
|
3
|
+
export interface FrameSamplerOptions {
|
|
4
|
+
/** How long one sample spans, ms (default a minute). */
|
|
5
|
+
windowMs?: number;
|
|
6
|
+
/** A frame longer than this is a hitch, ms (default 50). */
|
|
7
|
+
hitchMs?: number;
|
|
8
|
+
/** Fewer frames than this in a window is no sample (default 30). */
|
|
9
|
+
minFrames?: number;
|
|
10
|
+
/** A window whose median frame is over this came from a throttled background window and is dropped (default 500). */
|
|
11
|
+
throttledMedianMs?: number;
|
|
12
|
+
/** Frames are not counted while this says so (default: the page is hidden). */
|
|
13
|
+
paused?: () => boolean;
|
|
14
|
+
now?: () => number;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Measures how a game really runs on a player's device: each frame costs one number pushed on an array, and every
|
|
18
|
+
* `windowMs` the window is summed into a `FrameSummary` handed to `onSample` — FPS, the 1% low, the 95th-percentile
|
|
19
|
+
* frame, hitches. The engine sends nothing anywhere: what the game does with a sample (a readout, a report to its
|
|
20
|
+
* server) is the callback's.
|
|
21
|
+
*/
|
|
22
|
+
export declare class FrameSampler {
|
|
23
|
+
private readonly onSample;
|
|
24
|
+
private frames;
|
|
25
|
+
private since;
|
|
26
|
+
private readonly opts;
|
|
27
|
+
private readonly paused;
|
|
28
|
+
private readonly now;
|
|
29
|
+
constructor(onSample: (summary: FrameSummary) => void, options?: FrameSamplerOptions);
|
|
30
|
+
/** One frame of `deltaMs`; sums the window once it is full. */
|
|
31
|
+
push(deltaMs: number): void;
|
|
32
|
+
/** Starts a fresh window, dropping what was counted (after a scene change, say). */
|
|
33
|
+
reset(): void;
|
|
34
|
+
/** Feeds the sampler from a Pixi ticker, after the render; returns the detach. */
|
|
35
|
+
attach(ticker: Ticker): () => void;
|
|
36
|
+
}
|
|
37
|
+
//# sourceMappingURL=FrameSampler.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FrameSampler.d.ts","sourceRoot":"","sources":["../../../src/diagnostics/FrameSampler.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,MAAM,EAAmB,MAAM,SAAS,CAAC;AACvD,OAAO,EAAmC,KAAK,YAAY,EAAE,MAAM,cAAc,CAAC;AAElF,MAAM,WAAW,mBAAmB;IAClC,wDAAwD;IACxD,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,4DAA4D;IAC5D,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,oEAAoE;IACpE,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,qHAAqH;IACrH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,+EAA+E;IAC/E,MAAM,CAAC,EAAE,MAAM,OAAO,CAAC;IACvB,GAAG,CAAC,EAAE,MAAM,MAAM,CAAC;CACpB;AAED;;;;;GAKG;AACH,qBAAa,YAAY;IAOX,OAAO,CAAC,QAAQ,CAAC,QAAQ;IANrC,OAAO,CAAC,MAAM,CAAgB;IAC9B,OAAO,CAAC,KAAK,CAAS;IACtB,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAwD;IAC7E,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAgB;IACvC,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAe;gBAEN,QAAQ,EAAE,CAAC,OAAO,EAAE,YAAY,KAAK,IAAI,EAAE,OAAO,GAAE,mBAAwB;IAYzG,+DAA+D;IAC/D,IAAI,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI;IAe3B,oFAAoF;IACpF,KAAK,IAAI,IAAI;IAKb,kFAAkF;IAClF,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,IAAI;CAKnC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/** What `bootWatch` reports when a start hangs. */
|
|
2
|
+
export interface BootStall {
|
|
3
|
+
/** The step the start stood on. */
|
|
4
|
+
step: string;
|
|
5
|
+
/** Every step reached, in order, with the ms since the watch began when each was reached. */
|
|
6
|
+
steps: {
|
|
7
|
+
name: string;
|
|
8
|
+
atMs: number;
|
|
9
|
+
}[];
|
|
10
|
+
/** `stuck: <step>`, a line short enough for a player's screenshot. */
|
|
11
|
+
detail: string;
|
|
12
|
+
}
|
|
13
|
+
export interface BootWatch {
|
|
14
|
+
/** Moves the watch on to a named step. */
|
|
15
|
+
step(name: string): void;
|
|
16
|
+
/** The start finished: the watch stops. */
|
|
17
|
+
done(): void;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Says when a start has not finished `ms` after it began, naming the step it stood on. A world that never got built
|
|
21
|
+
* otherwise leaves the player looking at a loading line forever while the rest of the page goes on under it; named
|
|
22
|
+
* steps turn "it hangs" into "it hangs loading textures".
|
|
23
|
+
*/
|
|
24
|
+
export declare function bootWatch(ms: number, onStuck: (stall: BootStall) => void, now?: () => number): BootWatch;
|
|
25
|
+
//# sourceMappingURL=bootWatch.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bootWatch.d.ts","sourceRoot":"","sources":["../../../src/diagnostics/bootWatch.ts"],"names":[],"mappings":"AAAA,mDAAmD;AACnD,MAAM,WAAW,SAAS;IACxB,mCAAmC;IACnC,IAAI,EAAE,MAAM,CAAC;IACb,6FAA6F;IAC7F,KAAK,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;IACxC,sEAAsE;IACtE,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,SAAS;IACxB,0CAA0C;IAC1C,IAAI,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,2CAA2C;IAC3C,IAAI,IAAI,IAAI,CAAC;CACd;AAED;;;;GAIG;AACH,wBAAgB,SAAS,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,KAAK,EAAE,SAAS,KAAK,IAAI,EAAE,GAAG,GAAE,MAAM,MAAgC,GAAG,SAAS,CAkBjI"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { ErrorDeduper } from './ErrorDeduper.js';
|
|
2
|
+
/** One error, as handed to `captureErrors`' callback. */
|
|
3
|
+
export interface CapturedError {
|
|
4
|
+
message: string;
|
|
5
|
+
/** The first lines of its stack, or ''. */
|
|
6
|
+
stack: string;
|
|
7
|
+
/** `uncaught`, `rejection`, or `frame` for one a `Stage` step caught so the frame could go on. */
|
|
8
|
+
source: 'uncaught' | 'rejection' | 'frame';
|
|
9
|
+
}
|
|
10
|
+
export interface CaptureErrorsOptions {
|
|
11
|
+
/** Distinct errors reported in all (default 10). */
|
|
12
|
+
max?: number;
|
|
13
|
+
/** Also report what a `Stage` frame caught (`Stage.onCaught`; default true): there a fault shows only as a stuck view. */
|
|
14
|
+
frames?: boolean;
|
|
15
|
+
/** Shared with the game's own reports (`admit` before sending), so one error is not told twice. */
|
|
16
|
+
deduper?: ErrorDeduper;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Hands every error nothing else caught — `error` and `unhandledrejection` on the window, and what a frame caught —
|
|
20
|
+
* to `onError`, each distinct one once. The engine sends nothing itself; reporting it is the game's. Returns the
|
|
21
|
+
* uninstall, which puts back whatever held `Stage.onCaught` before.
|
|
22
|
+
*/
|
|
23
|
+
export declare function captureErrors(onError: (e: CapturedError) => void, options?: CaptureErrorsOptions): () => void;
|
|
24
|
+
//# sourceMappingURL=captureErrors.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"captureErrors.d.ts","sourceRoot":"","sources":["../../../src/diagnostics/captureErrors.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAa,MAAM,gBAAgB,CAAC;AAEzD,yDAAyD;AACzD,MAAM,WAAW,aAAa;IAC5B,OAAO,EAAE,MAAM,CAAC;IAChB,2CAA2C;IAC3C,KAAK,EAAE,MAAM,CAAC;IACd,kGAAkG;IAClG,MAAM,EAAE,UAAU,GAAG,WAAW,GAAG,OAAO,CAAC;CAC5C;AAED,MAAM,WAAW,oBAAoB;IACnC,oDAAoD;IACpD,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,0HAA0H;IAC1H,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,mGAAmG;IACnG,OAAO,CAAC,EAAE,YAAY,CAAC;CACxB;AAED;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,OAAO,EAAE,CAAC,CAAC,EAAE,aAAa,KAAK,IAAI,EAAE,OAAO,GAAE,oBAAyB,GAAG,MAAM,IAAI,CA+BjH"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
export interface ContextLossPolicy {
|
|
2
|
+
/** Losses tolerated inside `windowMs` before giving up (default 3). */
|
|
3
|
+
maxLosses?: number;
|
|
4
|
+
/** How far back losses are counted, ms (default two minutes). */
|
|
5
|
+
windowMs?: number;
|
|
6
|
+
}
|
|
7
|
+
export interface ContextLossVerdict {
|
|
8
|
+
/** The losses still inside the window, this one included (unless the page was hidden). */
|
|
9
|
+
losses: number[];
|
|
10
|
+
/** Stop rebuilding: the GPU keeps failing. */
|
|
11
|
+
giveUp: boolean;
|
|
12
|
+
/** How long to wait before rebuilding (`rebuildDelayMs`). */
|
|
13
|
+
delayMs: number;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* One more context loss at `now`, given the earlier ones. A loss while the page is `hidden` is the system taking the
|
|
17
|
+
* GPU back, not the GPU failing, so it is not counted against it.
|
|
18
|
+
*/
|
|
19
|
+
export declare function noteContextLoss(earlier: readonly number[], now: number, hidden?: boolean, policy?: ContextLossPolicy): ContextLossVerdict;
|
|
20
|
+
/**
|
|
21
|
+
* How long to wait before rebuilding after a loss, with `losses` counted in the window: a GPU that has just reset is
|
|
22
|
+
* given longer each time it drops the context again (a rebuild at once was dropped at once on a phone).
|
|
23
|
+
*/
|
|
24
|
+
export declare function rebuildDelayMs(losses: number): number;
|
|
25
|
+
/**
|
|
26
|
+
* Calls `onLost` with a verdict each time `canvas` (the renderer's) loses its WebGL context; the game tears its world
|
|
27
|
+
* down and rebuilds it after `delayMs`, or shows an error when `giveUp`. The event's default is prevented, which is
|
|
28
|
+
* what lets the browser restore the context at all. Returns the uninstall.
|
|
29
|
+
*/
|
|
30
|
+
export declare function watchContextLoss(canvas: EventTarget, onLost: (verdict: ContextLossVerdict) => void, options?: ContextLossPolicy & {
|
|
31
|
+
onRestored?: () => void;
|
|
32
|
+
now?: () => number;
|
|
33
|
+
hidden?: () => boolean;
|
|
34
|
+
}): () => void;
|
|
35
|
+
//# sourceMappingURL=contextLoss.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contextLoss.d.ts","sourceRoot":"","sources":["../../../src/diagnostics/contextLoss.ts"],"names":[],"mappings":"AAOA,MAAM,WAAW,iBAAiB;IAChC,uEAAuE;IACvE,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,iEAAiE;IACjE,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,kBAAkB;IACjC,0FAA0F;IAC1F,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,8CAA8C;IAC9C,MAAM,EAAE,OAAO,CAAC;IAChB,6DAA6D;IAC7D,OAAO,EAAE,MAAM,CAAC;CACjB;AAED;;;GAGG;AACH,wBAAgB,eAAe,CAAC,OAAO,EAAE,SAAS,MAAM,EAAE,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,UAAQ,EAAE,MAAM,GAAE,iBAAsB,GAAG,kBAAkB,CAK3I;AAED;;;GAGG;AACH,wBAAgB,cAAc,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAErD;AAED;;;;GAIG;AACH,wBAAgB,gBAAgB,CAC9B,MAAM,EAAE,WAAW,EACnB,MAAM,EAAE,CAAC,OAAO,EAAE,kBAAkB,KAAK,IAAI,EAC7C,OAAO,GAAE,iBAAiB,GAAG;IAAE,UAAU,CAAC,EAAE,MAAM,IAAI,CAAC;IAAC,GAAG,CAAC,EAAE,MAAM,MAAM,CAAC;IAAC,MAAM,CAAC,EAAE,MAAM,OAAO,CAAA;CAAO,GACxG,MAAM,IAAI,CAiBZ"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/** A summary of the frames of one sampling window. */
|
|
2
|
+
export interface FrameSummary {
|
|
3
|
+
/** Frames rendered. */
|
|
4
|
+
frames: number;
|
|
5
|
+
/** Frames a second over the window. */
|
|
6
|
+
fps: number;
|
|
7
|
+
/** The "1% low": the frame rate of the slowest hundredth of frames, which is what stutter feels like. */
|
|
8
|
+
fpsLow: number;
|
|
9
|
+
/** The 95th-percentile frame time, ms. */
|
|
10
|
+
frameP95: number;
|
|
11
|
+
/** The median frame time, ms. */
|
|
12
|
+
frameMedian: number;
|
|
13
|
+
/** The longest frame, ms. */
|
|
14
|
+
worstMs: number;
|
|
15
|
+
/** Frames longer than the hitch threshold: the ones a player feels. */
|
|
16
|
+
hitches: number;
|
|
17
|
+
}
|
|
18
|
+
/** The value at fraction `p` (0..1) of an ascending list, by nearest rank; 0 for an empty list. */
|
|
19
|
+
export declare function percentile(sorted: readonly number[], p: number): number;
|
|
20
|
+
/** Frames longer than `thresholdMs`. */
|
|
21
|
+
export declare function countHitches(frameMs: readonly number[], thresholdMs: number): number;
|
|
22
|
+
/** The summary of frame times (ms) rendered over `spanMs`; a frame over `hitchMs` (default 50) is a hitch. */
|
|
23
|
+
export declare function summarizeFrames(frameMs: readonly number[], spanMs: number, hitchMs?: number): FrameSummary;
|
|
24
|
+
/**
|
|
25
|
+
* A window the browser throttled: one covered by another window is not `hidden`, but runs at about a frame a second,
|
|
26
|
+
* and a second copy of a game parked behind the first read as its heaviest scene. Nothing really played runs with
|
|
27
|
+
* its median frame half a second long.
|
|
28
|
+
*/
|
|
29
|
+
export declare function looksThrottled(summary: FrameSummary, medianLimitMs?: number): boolean;
|
|
30
|
+
//# sourceMappingURL=frameStats.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"frameStats.d.ts","sourceRoot":"","sources":["../../../src/diagnostics/frameStats.ts"],"names":[],"mappings":"AAAA,sDAAsD;AACtD,MAAM,WAAW,YAAY;IAC3B,uBAAuB;IACvB,MAAM,EAAE,MAAM,CAAC;IACf,uCAAuC;IACvC,GAAG,EAAE,MAAM,CAAC;IACZ,yGAAyG;IACzG,MAAM,EAAE,MAAM,CAAC;IACf,0CAA0C;IAC1C,QAAQ,EAAE,MAAM,CAAC;IACjB,iCAAiC;IACjC,WAAW,EAAE,MAAM,CAAC;IACpB,6BAA6B;IAC7B,OAAO,EAAE,MAAM,CAAC;IAChB,uEAAuE;IACvE,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,mGAAmG;AACnG,wBAAgB,UAAU,CAAC,MAAM,EAAE,SAAS,MAAM,EAAE,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,CAGvE;AAED,wCAAwC;AACxC,wBAAgB,YAAY,CAAC,OAAO,EAAE,SAAS,MAAM,EAAE,EAAE,WAAW,EAAE,MAAM,GAAG,MAAM,CAIpF;AAID,8GAA8G;AAC9G,wBAAgB,eAAe,CAAC,OAAO,EAAE,SAAS,MAAM,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,SAAK,GAAG,YAAY,CAWtG;AAED;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,aAAa,SAAM,GAAG,OAAO,CAElF"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { Renderer } from 'pixi.js';
|
|
2
|
+
/**
|
|
3
|
+
* The largest texture side the GPU takes (WebGL's MAX_TEXTURE_SIZE), or null when the renderer is not WebGL. Many
|
|
4
|
+
* phones stop at 4096, so an atlas planned for 8192 must split its pages there (`atlasPageLimit`).
|
|
5
|
+
*/
|
|
6
|
+
export declare function maxTextureSize(renderer: Renderer): number | null;
|
|
7
|
+
/** The GPU's own name where the browser gives it (WEBGL_debug_renderer_info), else null; for telling devices apart. */
|
|
8
|
+
export declare function gpuName(renderer: Renderer, max?: number): string | null;
|
|
9
|
+
//# sourceMappingURL=gpuInfo.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gpuInfo.d.ts","sourceRoot":"","sources":["../../../src/diagnostics/gpuInfo.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAMxC;;;GAGG;AACH,wBAAgB,cAAc,CAAC,QAAQ,EAAE,QAAQ,GAAG,MAAM,GAAG,IAAI,CAKhE;AAED,uHAAuH;AACvH,wBAAgB,OAAO,CAAC,QAAQ,EAAE,QAAQ,EAAE,GAAG,SAAK,GAAG,MAAM,GAAG,IAAI,CAQnE"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { type Application } from 'pixi.js';
|
|
2
|
+
/** An error as one short line, for a player's screenshot or a report. */
|
|
3
|
+
export declare function describeError(err: unknown, max?: number): string;
|
|
4
|
+
/**
|
|
5
|
+
* Replaces Pixi's render on the ticker with one that survives a throw and reports a renderer that keeps failing.
|
|
6
|
+
* A ticker listener that throws never asks for the next frame, and `Stage`'s per-step guard covers the game's steps,
|
|
7
|
+
* not the renderer's: a render that threw on its first frame froze the canvas in silence while the page went on.
|
|
8
|
+
* A single bad frame is let go; `failures` in a row are reported once. Returns the uninstall, which puts Pixi's own
|
|
9
|
+
* render back.
|
|
10
|
+
*/
|
|
11
|
+
export declare function guardRender(app: Application, onFail: (detail: string, err: unknown) => void, failures?: number): () => void;
|
|
12
|
+
//# sourceMappingURL=renderGuard.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"renderGuard.d.ts","sourceRoot":"","sources":["../../../src/diagnostics/renderGuard.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,WAAW,EAAmB,MAAM,SAAS,CAAC;AAE5D,yEAAyE;AACzE,wBAAgB,aAAa,CAAC,GAAG,EAAE,OAAO,EAAE,GAAG,SAAM,GAAG,MAAM,CAG7D;AAED;;;;;;GAMG;AACH,wBAAgB,WAAW,CAAC,GAAG,EAAE,WAAW,EAAE,MAAM,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,OAAO,KAAK,IAAI,EAAE,QAAQ,SAAK,GAAG,MAAM,IAAI,CAsBvH"}
|