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,127 @@
|
|
|
1
|
+
import { Filter as p, UniformGroup as a, Texture as f, GpuProgram as m, GlProgram as c } from "pixi.js";
|
|
2
|
+
const l = { f32: "float", "vec2<f32>": "vec2", "vec3<f32>": "vec3", "vec4<f32>": "vec4" }, s = `in vec2 aPosition;
|
|
3
|
+
out vec2 vTextureCoord;
|
|
4
|
+
uniform vec4 uInputSize;
|
|
5
|
+
uniform vec4 uOutputFrame;
|
|
6
|
+
uniform vec4 uOutputTexture;
|
|
7
|
+
void main(void) {
|
|
8
|
+
vec2 position = aPosition * uOutputFrame.zw + uOutputFrame.xy;
|
|
9
|
+
position.x = position.x * (2.0 / uOutputTexture.x) - 1.0;
|
|
10
|
+
position.y = position.y * (2.0 * uOutputTexture.z / uOutputTexture.y) - uOutputTexture.z;
|
|
11
|
+
gl_Position = vec4(position, 0.0, 1.0);
|
|
12
|
+
vTextureCoord = aPosition * (uOutputFrame.zw * uInputSize.zw);
|
|
13
|
+
}
|
|
14
|
+
`;
|
|
15
|
+
function v(e) {
|
|
16
|
+
const u = Object.entries(e.uniforms).map(([t, r]) => `uniform ${l[r.type]} ${t};`).join(`
|
|
17
|
+
`);
|
|
18
|
+
return `in vec2 vTextureCoord;
|
|
19
|
+
out vec4 finalColor;
|
|
20
|
+
uniform sampler2D uTexture;
|
|
21
|
+
${e.map ? "uniform sampler2D uMap;" : ""}
|
|
22
|
+
uniform vec4 uInputSize;
|
|
23
|
+
uniform vec4 uInputClamp;
|
|
24
|
+
uniform vec4 uOutputFrame;
|
|
25
|
+
${u}
|
|
26
|
+
vec4 sampleAt(vec2 c) { return texture(uTexture, clamp(c, uInputClamp.xy, uInputClamp.zw)); }
|
|
27
|
+
${e.map ? "vec4 sampleMap(vec2 c) { return texture(uMap, clamp(c, uInputClamp.xy, uInputClamp.zw)); }" : ""}
|
|
28
|
+
vec2 toCoord(vec2 uv) { return uv * uOutputFrame.zw * uInputSize.zw; }
|
|
29
|
+
void main(void) {
|
|
30
|
+
vec2 coord = vTextureCoord;
|
|
31
|
+
vec2 framePx = uOutputFrame.zw;
|
|
32
|
+
vec2 frameUv = coord * uInputSize.xy / framePx;
|
|
33
|
+
vec2 texel = uInputSize.zw;
|
|
34
|
+
vec4 src = texture(uTexture, coord);
|
|
35
|
+
vec4 result = src;
|
|
36
|
+
${e.glsl}
|
|
37
|
+
finalColor = result;
|
|
38
|
+
}
|
|
39
|
+
`;
|
|
40
|
+
}
|
|
41
|
+
function x(e) {
|
|
42
|
+
return `struct GlobalFilterUniforms {
|
|
43
|
+
uInputSize: vec4<f32>,
|
|
44
|
+
uInputPixel: vec4<f32>,
|
|
45
|
+
uInputClamp: vec4<f32>,
|
|
46
|
+
uOutputFrame: vec4<f32>,
|
|
47
|
+
uGlobalFrame: vec4<f32>,
|
|
48
|
+
uOutputTexture: vec4<f32>,
|
|
49
|
+
};
|
|
50
|
+
struct FxUniforms {
|
|
51
|
+
${Object.entries(e.uniforms).map(([t, r]) => ` ${t}: ${r.type},`).join(`
|
|
52
|
+
`)}
|
|
53
|
+
};
|
|
54
|
+
@group(0) @binding(0) var<uniform> gfu: GlobalFilterUniforms;
|
|
55
|
+
@group(0) @binding(1) var uTexture: texture_2d<f32>;
|
|
56
|
+
@group(0) @binding(2) var uSampler: sampler;
|
|
57
|
+
@group(1) @binding(0) var<uniform> fx: FxUniforms;
|
|
58
|
+
${e.map ? "@group(1) @binding(1) var uMap: texture_2d<f32>;" : ""}
|
|
59
|
+
struct VSOutput {
|
|
60
|
+
@builtin(position) position: vec4<f32>,
|
|
61
|
+
@location(0) uv: vec2<f32>,
|
|
62
|
+
};
|
|
63
|
+
@vertex
|
|
64
|
+
fn mainVertex(@location(0) aPosition: vec2<f32>) -> VSOutput {
|
|
65
|
+
var position = aPosition * gfu.uOutputFrame.zw + gfu.uOutputFrame.xy;
|
|
66
|
+
position.x = position.x * (2.0 / gfu.uOutputTexture.x) - 1.0;
|
|
67
|
+
position.y = position.y * (2.0 * gfu.uOutputTexture.z / gfu.uOutputTexture.y) - gfu.uOutputTexture.z;
|
|
68
|
+
return VSOutput(vec4<f32>(position, 0.0, 1.0), aPosition * (gfu.uOutputFrame.zw * gfu.uInputSize.zw));
|
|
69
|
+
}
|
|
70
|
+
fn sampleAt(c: vec2<f32>) -> vec4<f32> { return textureSampleLevel(uTexture, uSampler, clamp(c, gfu.uInputClamp.xy, gfu.uInputClamp.zw), 0.0); }
|
|
71
|
+
${e.map ? "fn sampleMap(c: vec2<f32>) -> vec4<f32> { return textureSampleLevel(uMap, uSampler, clamp(c, gfu.uInputClamp.xy, gfu.uInputClamp.zw), 0.0); }" : ""}
|
|
72
|
+
fn toCoord(uv: vec2<f32>) -> vec2<f32> { return uv * gfu.uOutputFrame.zw * gfu.uInputSize.zw; }
|
|
73
|
+
@fragment
|
|
74
|
+
fn mainFragment(@location(0) uv: vec2<f32>) -> @location(0) vec4<f32> {
|
|
75
|
+
let coord = uv;
|
|
76
|
+
let framePx = gfu.uOutputFrame.zw;
|
|
77
|
+
let frameUv = coord * gfu.uInputSize.xy / framePx;
|
|
78
|
+
let texel = gfu.uInputSize.zw;
|
|
79
|
+
let src = textureSampleLevel(uTexture, uSampler, coord, 0.0);
|
|
80
|
+
var result = src;
|
|
81
|
+
${e.wgsl}
|
|
82
|
+
return result;
|
|
83
|
+
}
|
|
84
|
+
`;
|
|
85
|
+
}
|
|
86
|
+
class z extends p {
|
|
87
|
+
fxName;
|
|
88
|
+
group;
|
|
89
|
+
constructor(u) {
|
|
90
|
+
const t = {};
|
|
91
|
+
for (const [n, i] of Object.entries(u.uniforms)) t[n] = { value: typeof i.value == "number" ? i.value : new Float32Array(i.value), type: i.type };
|
|
92
|
+
const r = new a(t), o = x(u);
|
|
93
|
+
super({
|
|
94
|
+
// highp: the uniforms the vertex shader shares with it must match its precision, or the program will not link
|
|
95
|
+
glProgram: c.from({ vertex: s, fragment: v(u), name: `fx-${u.name}`, preferredFragmentPrecision: "highp" }),
|
|
96
|
+
gpuProgram: m.from({ vertex: { source: o, entryPoint: "mainVertex" }, fragment: { source: o, entryPoint: "mainFragment" } }),
|
|
97
|
+
resources: u.map ? { fxUniforms: r, uMap: f.WHITE.source } : { fxUniforms: r },
|
|
98
|
+
// as sharp as the canvas: a pixel game's effects land on its own pixels
|
|
99
|
+
resolution: "inherit"
|
|
100
|
+
}), this.fxName = u.name, this.group = r;
|
|
101
|
+
}
|
|
102
|
+
/** A uniform's value (a number, or the live array of a vector). */
|
|
103
|
+
get(u) {
|
|
104
|
+
return this.group.uniforms[u];
|
|
105
|
+
}
|
|
106
|
+
/** Sets a number uniform, or the components of a vector one. */
|
|
107
|
+
set(u, ...t) {
|
|
108
|
+
const r = this.group.uniforms, o = r[u];
|
|
109
|
+
if (o === void 0) throw new Error(`${this.fxName}: no uniform '${u}'`);
|
|
110
|
+
if (typeof o == "number") r[u] = t[0] ?? 0;
|
|
111
|
+
else for (let n = 0; n < o.length && n < t.length; n++) o[n] = t[n];
|
|
112
|
+
return this.group.update(), this;
|
|
113
|
+
}
|
|
114
|
+
/** A number uniform, for the subclasses' getters. */
|
|
115
|
+
num(u) {
|
|
116
|
+
return this.group.uniforms[u];
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
function d(e) {
|
|
120
|
+
return [(e >> 16 & 255) / 255, (e >> 8 & 255) / 255, (e & 255) / 255];
|
|
121
|
+
}
|
|
122
|
+
export {
|
|
123
|
+
z as FxFilter,
|
|
124
|
+
v as glslSource,
|
|
125
|
+
d as rgb,
|
|
126
|
+
x as wgslSource
|
|
127
|
+
};
|
package/dist/postfx.js
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { PostFx as t } from "./postfx/PostFx.js";
|
|
2
|
+
import { FxFilter as l, glslSource as x, rgb as i, wgslSource as m } from "./postfx/fxShader.js";
|
|
3
|
+
import { FxAnimator as f } from "./postfx/fxAnimator.js";
|
|
4
|
+
import { VignetteFilter as a } from "./postfx/VignetteFilter.js";
|
|
5
|
+
import { ChromaticAberrationFilter as g } from "./postfx/ChromaticAberrationFilter.js";
|
|
6
|
+
import { PixelateFilter as n } from "./postfx/PixelateFilter.js";
|
|
7
|
+
import { CrtFilter as A } from "./postfx/CrtFilter.js";
|
|
8
|
+
import { ColorAdjustFilter as S } from "./postfx/ColorAdjustFilter.js";
|
|
9
|
+
import { ShockwaveFilter as h } from "./postfx/ShockwaveFilter.js";
|
|
10
|
+
import { BloomFilter as P } from "./postfx/BloomFilter.js";
|
|
11
|
+
export {
|
|
12
|
+
P as BloomFilter,
|
|
13
|
+
g as ChromaticAberrationFilter,
|
|
14
|
+
S as ColorAdjustFilter,
|
|
15
|
+
A as CrtFilter,
|
|
16
|
+
f as FxAnimator,
|
|
17
|
+
l as FxFilter,
|
|
18
|
+
n as PixelateFilter,
|
|
19
|
+
t as PostFx,
|
|
20
|
+
h as ShockwaveFilter,
|
|
21
|
+
a as VignetteFilter,
|
|
22
|
+
x as glslSource,
|
|
23
|
+
i as rgb,
|
|
24
|
+
m as wgslSource
|
|
25
|
+
};
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { jsxs as s, jsx as c, Fragment as C } from "react/jsx-runtime";
|
|
2
|
+
import { useState as k, useEffect as N, useCallback as f } from "react";
|
|
3
|
+
import { firstChoice as x, answerChoice as a, choiceStore as g } from "./choiceStore.js";
|
|
4
|
+
import { Modal as v } from "./Modal.js";
|
|
5
|
+
import { useStore as S } from "./useStore.js";
|
|
6
|
+
import { useCx as j, useUi as w } from "./UiProvider.js";
|
|
7
|
+
const y = (t) => t.pending;
|
|
8
|
+
function U({ width: t = 400 }) {
|
|
9
|
+
const e = j(), r = w(), o = S(g, y), [n, m] = k(null);
|
|
10
|
+
N(() => m(o ? x(o.options) : null), [o]);
|
|
11
|
+
const h = f(() => a(null), []), p = f(() => {
|
|
12
|
+
n && a(n);
|
|
13
|
+
}, [n]);
|
|
14
|
+
return o ? /* @__PURE__ */ s(
|
|
15
|
+
v,
|
|
16
|
+
{
|
|
17
|
+
width: t,
|
|
18
|
+
onCancel: h,
|
|
19
|
+
onConfirm: p,
|
|
20
|
+
className: e("e1681-choice"),
|
|
21
|
+
actions: /* @__PURE__ */ s(C, { children: [
|
|
22
|
+
/* @__PURE__ */ c("button", { type: "button", className: e("e1681-button ghost"), onClick: h, children: o.cancel ?? r.labels.cancel }),
|
|
23
|
+
/* @__PURE__ */ c("button", { type: "button", className: e("e1681-button"), disabled: !n, onClick: p, children: o.confirm ?? r.labels.choose })
|
|
24
|
+
] }),
|
|
25
|
+
children: [
|
|
26
|
+
/* @__PURE__ */ c("div", { className: e("e1681-confirm-text"), children: o.text }),
|
|
27
|
+
/* @__PURE__ */ c("div", { className: e("e1681-choice-list"), role: "listbox", children: o.options.map(({ id: i, label: b, icon: u, note: d, disabled: l }) => /* @__PURE__ */ s(
|
|
28
|
+
"div",
|
|
29
|
+
{
|
|
30
|
+
role: "option",
|
|
31
|
+
"aria-selected": n === i,
|
|
32
|
+
"aria-disabled": l || void 0,
|
|
33
|
+
className: e(`e1681-row e1681-pickable${n === i ? " picked" : ""}${l ? " disabled" : ""}`),
|
|
34
|
+
onClick: () => !l && m(i),
|
|
35
|
+
onDoubleClick: () => !l && a(i),
|
|
36
|
+
children: [
|
|
37
|
+
u !== void 0 && /* @__PURE__ */ c("span", { className: e("e1681-choice-icon"), children: u }),
|
|
38
|
+
/* @__PURE__ */ c("span", { className: e("e1681-choice-label"), children: b }),
|
|
39
|
+
d !== void 0 && /* @__PURE__ */ c("span", { className: e("e1681-choice-note"), children: d })
|
|
40
|
+
]
|
|
41
|
+
},
|
|
42
|
+
i
|
|
43
|
+
)) })
|
|
44
|
+
]
|
|
45
|
+
}
|
|
46
|
+
) : null;
|
|
47
|
+
}
|
|
48
|
+
export {
|
|
49
|
+
U as ChoiceDialog
|
|
50
|
+
};
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { jsxs as m, jsx as t, Fragment as h } from "react/jsx-runtime";
|
|
2
|
+
import { useState as x, useEffect as g, useCallback as f } from "react";
|
|
3
|
+
import { answerConfirm as b, parseQuantity as y, confirmStore as C } from "./confirmStore.js";
|
|
4
|
+
import { Glyph as d } from "./Glyph.js";
|
|
5
|
+
import { Modal as N } from "./Modal.js";
|
|
6
|
+
import { Slider as k } from "./Slider.js";
|
|
7
|
+
import { useStore as q } from "./useStore.js";
|
|
8
|
+
import { useCx as v, useUi as M } from "./UiProvider.js";
|
|
9
|
+
const S = (s) => s.pending;
|
|
10
|
+
function U({ width: s = 360 }) {
|
|
11
|
+
const e = v(), a = M(), n = q(C, S), [o, l] = x(1);
|
|
12
|
+
g(() => l(Math.max(1, n?.max ?? 1)), [n]);
|
|
13
|
+
const c = (n?.max ?? 0) > 1, u = f(() => b(0), []), p = f(() => b(c ? o : 1), [c, o]);
|
|
14
|
+
if (!n) return null;
|
|
15
|
+
const r = n.max;
|
|
16
|
+
return /* @__PURE__ */ m(
|
|
17
|
+
N,
|
|
18
|
+
{
|
|
19
|
+
role: "alertdialog",
|
|
20
|
+
width: s,
|
|
21
|
+
onCancel: u,
|
|
22
|
+
onConfirm: p,
|
|
23
|
+
className: e("e1681-confirm"),
|
|
24
|
+
actions: /* @__PURE__ */ m(h, { children: [
|
|
25
|
+
/* @__PURE__ */ t("button", { type: "button", className: e("e1681-button ghost"), onClick: u, children: n.cancel ?? a.labels.cancel }),
|
|
26
|
+
/* @__PURE__ */ t("button", { type: "button", className: e("e1681-button"), autoFocus: !a.touch, onClick: p, children: n.ok ?? a.labels.ok })
|
|
27
|
+
] }),
|
|
28
|
+
children: [
|
|
29
|
+
/* @__PURE__ */ t("div", { className: e("e1681-confirm-text"), children: n.text }),
|
|
30
|
+
c && /* @__PURE__ */ m("div", { className: e("e1681-confirm-qty"), children: [
|
|
31
|
+
/* @__PURE__ */ t("button", { type: "button", className: e("e1681-button ghost small"), "aria-label": "-1", onClick: () => l(Math.max(1, o - 1)), children: /* @__PURE__ */ t(d, { id: "minus" }) }),
|
|
32
|
+
/* @__PURE__ */ t(k, { value: o, min: 1, max: r, step: 1, format: (i) => `x${i}`, label: a.labels.quantity, onChange: l }),
|
|
33
|
+
/* @__PURE__ */ t("button", { type: "button", className: e("e1681-button ghost small"), "aria-label": "+1", onClick: () => l(Math.min(r, o + 1)), children: /* @__PURE__ */ t(d, { id: "plus" }) }),
|
|
34
|
+
/* @__PURE__ */ t(
|
|
35
|
+
"input",
|
|
36
|
+
{
|
|
37
|
+
className: e("e1681-input e1681-confirm-qty-input"),
|
|
38
|
+
inputMode: "numeric",
|
|
39
|
+
"aria-label": a.labels.quantity,
|
|
40
|
+
value: o,
|
|
41
|
+
onChange: (i) => l(y(i.target.value, r)),
|
|
42
|
+
onFocus: (i) => i.target.select()
|
|
43
|
+
}
|
|
44
|
+
)
|
|
45
|
+
] })
|
|
46
|
+
]
|
|
47
|
+
}
|
|
48
|
+
);
|
|
49
|
+
}
|
|
50
|
+
export {
|
|
51
|
+
U as ConfirmDialog
|
|
52
|
+
};
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { jsx as c } from "react/jsx-runtime";
|
|
2
|
+
import { memo as u } from "react";
|
|
3
|
+
import { useCx as m } from "./UiProvider.js";
|
|
4
|
+
const d = {
|
|
5
|
+
close: ["X.....X", ".X...X.", "..X.X..", "...X...", "..X.X..", ".X...X.", "X.....X"],
|
|
6
|
+
check: [".......", "......X", ".....XX", "X...XX.", "XX.XX..", ".XXX...", "..X...."],
|
|
7
|
+
down: [".......", ".......", "XXXXXXX", ".XXXXX.", "..XXX..", "...X...", "......."],
|
|
8
|
+
up: [".......", "...X...", "..XXX..", ".XXXXX.", "XXXXXXX", ".......", "......."],
|
|
9
|
+
right: ["..X....", "..XX...", "..XXX..", "..XXXX.", "..XXX..", "..XX...", "..X...."],
|
|
10
|
+
left: ["....X..", "...XX..", "..XXX..", ".XXXX..", "..XXX..", "...XX..", "....X.."],
|
|
11
|
+
arrow: [".......", "....X..", ".....X.", "XXXXXXX", ".....X.", "....X..", "......."],
|
|
12
|
+
back: ["..X....", ".XX....", "XXXXXX.", ".XX...X", "..X...X", "......X", "..XXXX."],
|
|
13
|
+
star: ["...X...", "...X...", "XXXXXXX", ".XXXXX.", "..XXX..", ".XX.XX.", "X.....X"],
|
|
14
|
+
diamond: ["...X...", "..XXX..", ".XXXXX.", "XXXXXXX", ".XXXXX.", "..XXX..", "...X..."],
|
|
15
|
+
diamondOpen: ["...X...", "..X.X..", ".X...X.", "X.....X", ".X...X.", "..X.X..", "...X..."],
|
|
16
|
+
menu: [".......", "XXXXXXX", ".......", "XXXXXXX", ".......", "XXXXXXX", "......."],
|
|
17
|
+
plus: [".......", "...X...", "...X...", ".XXXXX.", "...X...", "...X...", "......."],
|
|
18
|
+
minus: [".......", ".......", ".......", ".XXXXX.", ".......", ".......", "......."],
|
|
19
|
+
warn: ["...X...", "..XXX..", "..X.X..", ".XX.XX.", ".X...X.", "XX.X.XX", "XXXXXXX"],
|
|
20
|
+
spark: ["...X...", "...X...", "..XXX..", "XXXXXXX", "..XXX..", "...X...", "...X..."],
|
|
21
|
+
lock: ["..XXX..", ".X...X.", ".X...X.", "XXXXXXX", "XXX.XXX", "XXX.XXX", "XXXXXXX"],
|
|
22
|
+
pin: [".XXXXX.", "..XXX..", "..XXX..", ".XXXXX.", "XXXXXXX", "...X...", "...X..."],
|
|
23
|
+
mail: [".......", "XXXXXXX", "XX...XX", "X.X.X.X", "X..X..X", "X.....X", "XXXXXXX"]
|
|
24
|
+
}, a = /* @__PURE__ */ new Map();
|
|
25
|
+
function p(o, e) {
|
|
26
|
+
return o.flatMap((t, s) => [...t].flatMap((n, r) => n === e ? [`M${r} ${s}h1v1h-1z`] : [])).join("");
|
|
27
|
+
}
|
|
28
|
+
function f(o, e) {
|
|
29
|
+
const { rows: t, tones: s } = Array.isArray(e) ? { rows: e, tones: void 0 } : e, n = Math.max(t.length, ...t.map((X) => X.length)), r = [];
|
|
30
|
+
t.some((X) => X.includes("X")) && r.push(["currentColor", p(t, "X")]);
|
|
31
|
+
for (const [X, i] of Object.entries(s ?? {})) r.push([i, p(t, X)]);
|
|
32
|
+
a.set(o, { size: n, layers: r });
|
|
33
|
+
}
|
|
34
|
+
for (const [o, e] of Object.entries(d)) f(o, e);
|
|
35
|
+
function x(o) {
|
|
36
|
+
return a.has(o);
|
|
37
|
+
}
|
|
38
|
+
const M = u(function({ id: e, scale: t = 2, className: s, label: n }) {
|
|
39
|
+
const r = m(), X = a.get(e);
|
|
40
|
+
if (!X) return null;
|
|
41
|
+
const i = X.size * Math.max(1, Math.round(t));
|
|
42
|
+
return /* @__PURE__ */ c(
|
|
43
|
+
"svg",
|
|
44
|
+
{
|
|
45
|
+
className: r(s ? `e1681-glyph ${s}` : "e1681-glyph"),
|
|
46
|
+
width: i,
|
|
47
|
+
height: i,
|
|
48
|
+
viewBox: `0 0 ${X.size} ${X.size}`,
|
|
49
|
+
shapeRendering: "crispEdges",
|
|
50
|
+
role: n ? "img" : void 0,
|
|
51
|
+
"aria-label": n,
|
|
52
|
+
"aria-hidden": n ? void 0 : !0,
|
|
53
|
+
children: X.layers.map(([h, l]) => /* @__PURE__ */ c("path", { d: l, fill: h }, h))
|
|
54
|
+
}
|
|
55
|
+
);
|
|
56
|
+
});
|
|
57
|
+
export {
|
|
58
|
+
M as Glyph,
|
|
59
|
+
p as glyphPath,
|
|
60
|
+
x as hasGlyph,
|
|
61
|
+
f as registerGlyph
|
|
62
|
+
};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { jsx as s, jsxs as g } from "react/jsx-runtime";
|
|
2
|
+
import { useRef as k, useEffect as y } from "react";
|
|
3
|
+
import { createPortal as w } from "react-dom";
|
|
4
|
+
import { useFitToViewport as x, SCROLL_CLASS as b } from "./useFitToViewport.js";
|
|
5
|
+
import { useCx as E, useUi as L } from "./UiProvider.js";
|
|
6
|
+
function D({ onCancel: r, onConfirm: i, width: a, role: m = "dialog", label: u, className: n, children: f, actions: d }) {
|
|
7
|
+
const o = E(), v = L(), l = k(null);
|
|
8
|
+
x(l, { enabled: !0, ...a !== void 0 ? { width: a } : {} }), y(() => {
|
|
9
|
+
const e = (t) => {
|
|
10
|
+
if (t.key === "Escape") r();
|
|
11
|
+
else if (t.key === "Enter" && i) i();
|
|
12
|
+
else return;
|
|
13
|
+
t.preventDefault(), t.stopImmediatePropagation();
|
|
14
|
+
};
|
|
15
|
+
return window.addEventListener("keydown", e, !0), () => window.removeEventListener("keydown", e, !0);
|
|
16
|
+
}, [r, i]);
|
|
17
|
+
const c = v.portal(), p = /* @__PURE__ */ s("div", { className: o("e1681-backdrop"), onPointerDown: (e) => e.stopPropagation(), onClick: r, children: /* @__PURE__ */ g(
|
|
18
|
+
"div",
|
|
19
|
+
{
|
|
20
|
+
ref: l,
|
|
21
|
+
className: o(`e1681-dialog e1681-frame${n ? ` ${n}` : ""}`),
|
|
22
|
+
role: m,
|
|
23
|
+
"aria-modal": "true",
|
|
24
|
+
"aria-label": u,
|
|
25
|
+
style: { width: a },
|
|
26
|
+
onClick: (e) => e.stopPropagation(),
|
|
27
|
+
children: [
|
|
28
|
+
/* @__PURE__ */ s("div", { className: o(`e1681-dialog-body ${b}`), children: f }),
|
|
29
|
+
d !== void 0 && /* @__PURE__ */ s("div", { className: o("e1681-dialog-actions"), children: d })
|
|
30
|
+
]
|
|
31
|
+
}
|
|
32
|
+
) });
|
|
33
|
+
return c ? w(p, c) : p;
|
|
34
|
+
}
|
|
35
|
+
export {
|
|
36
|
+
D as Modal
|
|
37
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { jsxs as m, jsx as l } from "react/jsx-runtime";
|
|
2
|
+
import { useRef as N } from "react";
|
|
3
|
+
import { Glyph as S } from "./Glyph.js";
|
|
4
|
+
import { fillLabel as x } from "./labels.js";
|
|
5
|
+
import { sheetScaleStyle as L } from "./placement.js";
|
|
6
|
+
import { useFitToViewport as g, SCROLL_CLASS as j } from "./useFitToViewport.js";
|
|
7
|
+
import { useCx as C, useUi as P } from "./UiProvider.js";
|
|
8
|
+
function G({ title: s, onClose: t, children: p, width: a, at: i, footer: n, className: d, style: f, titleText: h }) {
|
|
9
|
+
const e = C(), o = P(), r = N(null);
|
|
10
|
+
g(r, { enabled: !o.touch, ...a !== void 0 ? { width: a } : {}, ...i ? { at: i } : {} });
|
|
11
|
+
const c = h ?? (typeof s == "string" ? s : ""), u = /* @__PURE__ */ m("div", { className: e("e1681-panel-header"), children: [
|
|
12
|
+
/* @__PURE__ */ l("h3", { className: e("e1681-panel-title"), children: s }),
|
|
13
|
+
t && /* @__PURE__ */ l("button", { type: "button", className: e("e1681-close"), onClick: t, title: o.labels.closeHint, "aria-label": x(o.labels.close, c).trim(), children: /* @__PURE__ */ l(S, { id: "close" }) })
|
|
14
|
+
] }), b = ["e1681-panel", "e1681-frame", o.touch ? "e1681-sheet" : "", d ?? ""].filter(Boolean).join(" "), v = o.touch ? { ...L(o.sheetScale) } : { width: a };
|
|
15
|
+
return /* @__PURE__ */ m("div", { ref: r, className: e(b), style: { ...v, ...f }, role: "dialog", "aria-label": c || void 0, onPointerDown: (y) => y.stopPropagation(), children: [
|
|
16
|
+
u,
|
|
17
|
+
/* @__PURE__ */ l("div", { className: e(`e1681-panel-body ${j}`), children: p }),
|
|
18
|
+
n !== void 0 && /* @__PURE__ */ l("div", { className: e("e1681-panel-footer"), children: n })
|
|
19
|
+
] });
|
|
20
|
+
}
|
|
21
|
+
export {
|
|
22
|
+
G as Panel
|
|
23
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { jsx as m } from "react/jsx-runtime";
|
|
2
|
+
import { useState as x } from "react";
|
|
3
|
+
import { pixelFit as c } from "./placement.js";
|
|
4
|
+
import { useCx as d } from "./UiProvider.js";
|
|
5
|
+
function j({ src: t, width: r, height: n, upscaled: o = 1, maxScale: s, alt: g = "", className: l }) {
|
|
6
|
+
const h = d(), [e, p] = x(null), i = e?.src === t ? c(e.w, e.h, r, n, s) : null;
|
|
7
|
+
return /* @__PURE__ */ m("span", { className: h(l ? `e1681-pixel-image ${l}` : "e1681-pixel-image"), style: { width: r, height: n }, children: /* @__PURE__ */ m(
|
|
8
|
+
"img",
|
|
9
|
+
{
|
|
10
|
+
src: t,
|
|
11
|
+
alt: g,
|
|
12
|
+
draggable: !1,
|
|
13
|
+
style: i ? { width: i.width, height: i.height } : { visibility: "hidden" },
|
|
14
|
+
onLoad: (u) => {
|
|
15
|
+
const a = u.currentTarget;
|
|
16
|
+
p({ src: t, w: a.naturalWidth / o, h: a.naturalHeight / o });
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
) });
|
|
20
|
+
}
|
|
21
|
+
export {
|
|
22
|
+
j as PixelImage
|
|
23
|
+
};
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import { jsx as f, jsxs as C, Fragment as K } from "react/jsx-runtime";
|
|
2
|
+
import { useState as D, useRef as M, useLayoutEffect as O, useEffect as R } from "react";
|
|
3
|
+
import { createPortal as U } from "react-dom";
|
|
4
|
+
import { listWidth as B } from "../ui/layout/listWidth.js";
|
|
5
|
+
import { scrollIntoView as F } from "../ui/layout/scroll.js";
|
|
6
|
+
import { Glyph as G } from "./Glyph.js";
|
|
7
|
+
import { listPlacement as V } from "./placement.js";
|
|
8
|
+
import { useCx as _, useUi as q } from "./UiProvider.js";
|
|
9
|
+
function T(d, r, s) {
|
|
10
|
+
return s > 0 ? ((Math.max(0, d) + r) % s + s) % s : 0;
|
|
11
|
+
}
|
|
12
|
+
function oe({ value: d, options: r, onChange: s, label: E, grow: j, className: P, disabled: $ }) {
|
|
13
|
+
const a = _(), c = q(), [n, g] = D(!1), [o, H] = D(null), [h, v] = D(0), y = M(null), p = M(null), l = r.findIndex((e) => e.value === d);
|
|
14
|
+
O(() => {
|
|
15
|
+
const e = p.current, t = y.current;
|
|
16
|
+
if (!n || !e || !t || o) return;
|
|
17
|
+
const i = Array.from(e.children), u = i.reduce((w, k) => Math.max(w, k.offsetWidth), 0), W = c.viewport(), A = B(
|
|
18
|
+
i.map((w, k) => String(k)),
|
|
19
|
+
(w) => i[Number(w)]?.offsetWidth ?? 0,
|
|
20
|
+
{ padding: e.offsetWidth - u, min: Math.round(t.offsetWidth), max: W.width - 2 * c.margin }
|
|
21
|
+
), m = t.getBoundingClientRect(), I = V({ x: m.left, y: m.top, width: m.width, height: m.height }, { width: A, height: e.offsetHeight }, W, 2, c.margin);
|
|
22
|
+
H({ ...I, width: A });
|
|
23
|
+
}, [n, o, c]), R(() => {
|
|
24
|
+
const e = p.current, t = e?.children[h];
|
|
25
|
+
e && t && (e.scrollTop = F(e.scrollTop, t.offsetTop, t.offsetHeight, e.clientHeight, e.scrollHeight));
|
|
26
|
+
}, [h, o]), R(() => {
|
|
27
|
+
if (!n) return;
|
|
28
|
+
const e = (i) => {
|
|
29
|
+
const u = i.target;
|
|
30
|
+
!y.current?.contains(u) && !p.current?.contains(u) && g(!1);
|
|
31
|
+
}, t = () => g(!1);
|
|
32
|
+
return document.addEventListener("pointerdown", e, !0), window.addEventListener("resize", t), () => {
|
|
33
|
+
document.removeEventListener("pointerdown", e, !0), window.removeEventListener("resize", t);
|
|
34
|
+
};
|
|
35
|
+
}, [n]);
|
|
36
|
+
const x = (e) => {
|
|
37
|
+
H(null), g(e);
|
|
38
|
+
}, b = (e) => {
|
|
39
|
+
const t = r[e];
|
|
40
|
+
x(!1), t && t.value !== d && s(t.value);
|
|
41
|
+
}, L = () => {
|
|
42
|
+
$ || (v(Math.max(0, l)), x(!n));
|
|
43
|
+
}, z = (e) => {
|
|
44
|
+
if (e.stopPropagation(), e.key === "ArrowDown" || e.key === "ArrowUp") {
|
|
45
|
+
e.preventDefault();
|
|
46
|
+
const t = e.key === "ArrowDown" ? 1 : -1;
|
|
47
|
+
n ? v((i) => T(i, t, r.length)) : b(T(l, t, r.length));
|
|
48
|
+
} else e.key === "Enter" || e.key === " " ? (e.preventDefault(), n ? b(h) : L()) : e.key === "Escape" && n && (e.preventDefault(), x(!1));
|
|
49
|
+
}, N = c.portal(), S = /* @__PURE__ */ f(
|
|
50
|
+
"div",
|
|
51
|
+
{
|
|
52
|
+
ref: p,
|
|
53
|
+
className: a(`e1681-select-list e1681-tip-frame${o ? "" : " measuring"}`),
|
|
54
|
+
role: "listbox",
|
|
55
|
+
"aria-label": E,
|
|
56
|
+
style: o ? { left: o.x, top: o.y, width: o.width, maxHeight: o.height } : { left: 0, top: 0, visibility: "hidden" },
|
|
57
|
+
onPointerDown: (e) => e.preventDefault(),
|
|
58
|
+
children: r.map((e, t) => /* @__PURE__ */ f(
|
|
59
|
+
"div",
|
|
60
|
+
{
|
|
61
|
+
role: "option",
|
|
62
|
+
"aria-selected": t === l,
|
|
63
|
+
className: a(`e1681-select-option${t === l ? " picked" : ""}${t === h ? " hot" : ""}`),
|
|
64
|
+
onPointerEnter: () => v(t),
|
|
65
|
+
onClick: () => b(t),
|
|
66
|
+
children: e.label
|
|
67
|
+
},
|
|
68
|
+
String(e.value)
|
|
69
|
+
))
|
|
70
|
+
}
|
|
71
|
+
);
|
|
72
|
+
return /* @__PURE__ */ C(K, { children: [
|
|
73
|
+
/* @__PURE__ */ C(
|
|
74
|
+
"button",
|
|
75
|
+
{
|
|
76
|
+
ref: y,
|
|
77
|
+
type: "button",
|
|
78
|
+
className: a(`e1681-select${n ? " open" : ""}${j ? " grow" : ""}${P ? ` ${P}` : ""}`),
|
|
79
|
+
"aria-label": E,
|
|
80
|
+
"aria-haspopup": "listbox",
|
|
81
|
+
"aria-expanded": n,
|
|
82
|
+
disabled: $,
|
|
83
|
+
onPointerDown: (e) => e.preventDefault(),
|
|
84
|
+
onClick: L,
|
|
85
|
+
onKeyDown: z,
|
|
86
|
+
children: [
|
|
87
|
+
/* @__PURE__ */ f("span", { className: a("e1681-select-labels"), children: r.map((e, t) => /* @__PURE__ */ f("span", { className: a(t === l ? "shown" : void 0), "aria-hidden": t !== l, children: e.label }, String(e.value))) }),
|
|
88
|
+
/* @__PURE__ */ f(G, { id: n ? "up" : "down" })
|
|
89
|
+
]
|
|
90
|
+
}
|
|
91
|
+
),
|
|
92
|
+
n && (N ? U(S, N) : S)
|
|
93
|
+
] });
|
|
94
|
+
}
|
|
95
|
+
export {
|
|
96
|
+
oe as Select,
|
|
97
|
+
T as stepOption
|
|
98
|
+
};
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { jsxs as g, jsx as d } from "react/jsx-runtime";
|
|
2
|
+
import { useRef as A } from "react";
|
|
3
|
+
import { quantize as N, sliderFraction as $, sliderValueAt as k } from "../ui/layout/slider.js";
|
|
4
|
+
import { useCx as x } from "./UiProvider.js";
|
|
5
|
+
const C = (o) => `${Math.round(o * 100)}%`;
|
|
6
|
+
function I(o, e, l, n, t) {
|
|
7
|
+
const s = {
|
|
8
|
+
ArrowLeft: e - t,
|
|
9
|
+
ArrowDown: e - t,
|
|
10
|
+
ArrowRight: e + t,
|
|
11
|
+
ArrowUp: e + t,
|
|
12
|
+
PageDown: e - t * 4,
|
|
13
|
+
PageUp: e + t * 4,
|
|
14
|
+
Home: l,
|
|
15
|
+
End: n
|
|
16
|
+
}[o];
|
|
17
|
+
return s === void 0 ? void 0 : N(s, l, n, t);
|
|
18
|
+
}
|
|
19
|
+
function M({ value: o, onChange: e, label: l, min: n = 0, max: t = 1, step: f = 0.05, format: s = C, hideValue: v, disabled: a, className: u }) {
|
|
20
|
+
const c = x(), w = A(null), p = (r) => {
|
|
21
|
+
r !== o && e(r);
|
|
22
|
+
}, h = (r) => {
|
|
23
|
+
const i = w.current?.getBoundingClientRect();
|
|
24
|
+
i && i.width > 0 && p(k(r, i.left, i.width, n, t, f));
|
|
25
|
+
}, P = (r) => {
|
|
26
|
+
a || r.button !== 0 || (r.currentTarget.setPointerCapture(r.pointerId), r.currentTarget.focus(), h(r.clientX), r.preventDefault());
|
|
27
|
+
}, D = (r) => {
|
|
28
|
+
!a && r.currentTarget.hasPointerCapture(r.pointerId) && h(r.clientX);
|
|
29
|
+
}, y = (r) => {
|
|
30
|
+
const i = a ? void 0 : I(r.key, o, n, t, f);
|
|
31
|
+
i !== void 0 && (r.preventDefault(), r.stopPropagation(), p(i));
|
|
32
|
+
}, m = $(o, n, t) * 100;
|
|
33
|
+
return /* @__PURE__ */ g("div", { className: c(`e1681-slider-row${u ? ` ${u}` : ""}`), children: [
|
|
34
|
+
/* @__PURE__ */ d(
|
|
35
|
+
"div",
|
|
36
|
+
{
|
|
37
|
+
className: c("e1681-slider"),
|
|
38
|
+
role: "slider",
|
|
39
|
+
tabIndex: a ? -1 : 0,
|
|
40
|
+
"aria-label": l,
|
|
41
|
+
"aria-valuemin": n,
|
|
42
|
+
"aria-valuemax": t,
|
|
43
|
+
"aria-valuenow": o,
|
|
44
|
+
"aria-valuetext": s(o),
|
|
45
|
+
"aria-disabled": a || void 0,
|
|
46
|
+
onPointerDown: P,
|
|
47
|
+
onPointerMove: D,
|
|
48
|
+
onKeyDown: y,
|
|
49
|
+
children: /* @__PURE__ */ g("div", { className: c("e1681-slider-track"), ref: w, children: [
|
|
50
|
+
/* @__PURE__ */ d("div", { className: c("e1681-slider-fill"), style: { width: `${m}%` } }),
|
|
51
|
+
/* @__PURE__ */ d("div", { className: c("e1681-slider-knob"), style: { left: `${m}%` } })
|
|
52
|
+
] })
|
|
53
|
+
}
|
|
54
|
+
),
|
|
55
|
+
!v && /* @__PURE__ */ d("span", { className: c("e1681-slider-value"), children: s(o) })
|
|
56
|
+
] });
|
|
57
|
+
}
|
|
58
|
+
export {
|
|
59
|
+
M as Slider,
|
|
60
|
+
I as sliderKeyValue
|
|
61
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { jsxs as n, jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import { useState as v, useRef as C } from "react";
|
|
3
|
+
import { splitModeFor as N, SPLIT_STACK_BELOW as $ } from "./placement.js";
|
|
4
|
+
import { useFillSheet as y } from "./useFillSheet.js";
|
|
5
|
+
import { useCx as L, useUi as T } from "./UiProvider.js";
|
|
6
|
+
import { useViewport as j } from "./useViewport.js";
|
|
7
|
+
function E({ list: p, detail: m, empty: u, listWidth: o, fit: l, stackBelow: d = $, pickSelector: h = ".e1681-pickable", backLabel: f, className: c }) {
|
|
8
|
+
const t = L(), e = T(), k = j(e.touch).width, s = N(k, e.touch, d) === "stack", [b, a] = v(!1), r = C(null);
|
|
9
|
+
y(r, e.touch, !!l);
|
|
10
|
+
const w = o && !s ? { "--e1681-split-list": o } : void 0, x = (S) => {
|
|
11
|
+
s && S.target.closest(h) && a(!0);
|
|
12
|
+
};
|
|
13
|
+
return /* @__PURE__ */ n("div", { ref: r, className: t(`e1681-split${l ? " fit" : ""}${s ? b ? " stack show-detail" : " stack show-list" : ""}${c ? ` ${c}` : ""}`), style: w, children: [
|
|
14
|
+
/* @__PURE__ */ i("div", { className: t("e1681-split-list"), onClickCapture: x, children: p }),
|
|
15
|
+
/* @__PURE__ */ n("div", { className: t("e1681-split-detail"), children: [
|
|
16
|
+
s && /* @__PURE__ */ i("button", { type: "button", className: t("e1681-button small e1681-split-back"), onClick: () => a(!1), children: f ?? e.labels.backToList }),
|
|
17
|
+
m || /* @__PURE__ */ i("div", { className: t("e1681-split-empty"), children: u ?? e.labels.pickHint })
|
|
18
|
+
] })
|
|
19
|
+
] });
|
|
20
|
+
}
|
|
21
|
+
export {
|
|
22
|
+
E as SplitPane
|
|
23
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { jsx as a } from "react/jsx-runtime";
|
|
2
|
+
import { useCx as f } from "./UiProvider.js";
|
|
3
|
+
function y({ tabs: s, value: o, onChange: l, small: t, wrap: d, className: n, label: c, onPointerDown: b }) {
|
|
4
|
+
const r = f(), m = ["e1681-tabs", t ? "small" : "", d ? "wrap" : "", n ?? ""].filter(Boolean).join(" ");
|
|
5
|
+
return /* @__PURE__ */ a("div", { className: r(m), role: "tablist", "aria-label": c, children: s.map((i) => {
|
|
6
|
+
const p = i.color ? { color: i.color } : void 0;
|
|
7
|
+
return /* @__PURE__ */ a(
|
|
8
|
+
"button",
|
|
9
|
+
{
|
|
10
|
+
type: "button",
|
|
11
|
+
role: "tab",
|
|
12
|
+
"aria-selected": i.id === o,
|
|
13
|
+
className: r(i.id === o ? "e1681-tab active" : "e1681-tab"),
|
|
14
|
+
style: p,
|
|
15
|
+
disabled: i.disabled,
|
|
16
|
+
title: i.title,
|
|
17
|
+
onPointerDown: (e) => {
|
|
18
|
+
b?.(e), e.pointerType === "mouse" && e.button === 0 && !i.disabled && i.id !== o && l(i.id);
|
|
19
|
+
},
|
|
20
|
+
onClick: () => {
|
|
21
|
+
i.id !== o && l(i.id);
|
|
22
|
+
},
|
|
23
|
+
children: i.label
|
|
24
|
+
},
|
|
25
|
+
i.id
|
|
26
|
+
);
|
|
27
|
+
}) });
|
|
28
|
+
}
|
|
29
|
+
export {
|
|
30
|
+
y as TabStrip
|
|
31
|
+
};
|