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,41 @@
|
|
|
1
|
+
import { jsx as L } from "react/jsx-runtime";
|
|
2
|
+
import { useState as b, useEffect as y } from "react";
|
|
3
|
+
import { Tooltip as A } from "./Tooltip.js";
|
|
4
|
+
import { useCx as g, useUi as C } from "./UiProvider.js";
|
|
5
|
+
function S({ delayMs: d = 350, root: m, className: f }) {
|
|
6
|
+
const T = g(), p = C(), [s, i] = b(null);
|
|
7
|
+
return y(() => {
|
|
8
|
+
if (p.touch || typeof document > "u") return;
|
|
9
|
+
let t = null, n = "", c = 0, u = !1, l = { x: 0, y: 0 };
|
|
10
|
+
const h = () => m?.() ?? document.documentElement, v = () => {
|
|
11
|
+
if (!t) return;
|
|
12
|
+
const e = t.getAttribute("title");
|
|
13
|
+
e !== null && (t.removeAttribute("title"), n = e, u && i(n ? { text: n, ...l } : null));
|
|
14
|
+
}, o = () => {
|
|
15
|
+
window.clearTimeout(c), t && t.isConnected && !t.hasAttribute("title") && n && t.setAttribute("title", n), t = null, n = "", u = !1, i(null);
|
|
16
|
+
}, a = (e) => {
|
|
17
|
+
if (e.pointerType === "touch") return;
|
|
18
|
+
const r = e.target?.closest?.("[title]");
|
|
19
|
+
!r || r === t || !h().contains(r) || (o(), t = r, l = { x: e.clientX, y: e.clientY }, v(), n && (c = window.setTimeout(() => {
|
|
20
|
+
u = !0, i({ text: n, ...l });
|
|
21
|
+
}, d)));
|
|
22
|
+
}, w = (e) => {
|
|
23
|
+
if (t) {
|
|
24
|
+
if (!t.isConnected) return o();
|
|
25
|
+
l = { x: e.clientX, y: e.clientY }, v(), u && i(n ? { text: n, ...l } : null);
|
|
26
|
+
}
|
|
27
|
+
}, x = (e) => {
|
|
28
|
+
if (!t) return;
|
|
29
|
+
const r = e.relatedTarget;
|
|
30
|
+
r && t.contains(r) || o();
|
|
31
|
+
}, E = () => {
|
|
32
|
+
window.clearTimeout(c), u = !1, i(null);
|
|
33
|
+
};
|
|
34
|
+
return document.addEventListener("pointerover", a, !0), document.addEventListener("pointermove", w, !0), document.addEventListener("pointerout", x, !0), document.addEventListener("pointerdown", E, !0), window.addEventListener("blur", o), () => {
|
|
35
|
+
document.removeEventListener("pointerover", a, !0), document.removeEventListener("pointermove", w, !0), document.removeEventListener("pointerout", x, !0), document.removeEventListener("pointerdown", E, !0), window.removeEventListener("blur", o), o();
|
|
36
|
+
};
|
|
37
|
+
}, [p.touch, d, m]), s ? /* @__PURE__ */ L(A, { x: s.x, y: s.y, ...f ? { className: f } : {}, children: /* @__PURE__ */ L("div", { className: T("e1681-title-tip"), children: s.text }) }) : null;
|
|
38
|
+
}
|
|
39
|
+
export {
|
|
40
|
+
S as TitleTips
|
|
41
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { jsx as w } from "react/jsx-runtime";
|
|
2
|
+
import { useRef as x, useState as b, useLayoutEffect as y } from "react";
|
|
3
|
+
import { createPortal as H } from "react-dom";
|
|
4
|
+
import { placeTooltip as T } from "../ui/layout/placeTooltip.js";
|
|
5
|
+
import { cursorTip as z } from "./placement.js";
|
|
6
|
+
import { useCx as S, useUi as W } from "./UiProvider.js";
|
|
7
|
+
function P({ x: c = 0, y: l = 0, anchor: r, above: s, side: n, className: a, children: g }) {
|
|
8
|
+
const u = S(), t = W(), f = x(null), [i, d] = b({ width: 0, height: 0 });
|
|
9
|
+
y(() => {
|
|
10
|
+
const o = f.current;
|
|
11
|
+
o && (o.offsetWidth !== i.width || o.offsetHeight !== i.height) && d({ width: o.offsetWidth, height: o.offsetHeight });
|
|
12
|
+
});
|
|
13
|
+
const e = t.viewport(), p = r ? T(r, i, e, { side: n ?? (s ? "above" : "below"), margin: t.margin, snap: t.snap }) : z(c, l, i, e, { above: s ?? n === "above", margin: t.margin, snap: t.snap }), m = t.portal(), v = i.width > 0, h = /* @__PURE__ */ w(
|
|
14
|
+
"div",
|
|
15
|
+
{
|
|
16
|
+
ref: f,
|
|
17
|
+
className: u(`e1681-tooltip e1681-tip-frame${a ? ` ${a}` : ""}`),
|
|
18
|
+
role: "tooltip",
|
|
19
|
+
style: { left: p.x, top: p.y, maxHeight: Math.max(0, e.height - 2 * t.margin), visibility: v ? void 0 : "hidden" },
|
|
20
|
+
children: g
|
|
21
|
+
}
|
|
22
|
+
);
|
|
23
|
+
return m ? H(h, m) : h;
|
|
24
|
+
}
|
|
25
|
+
export {
|
|
26
|
+
P as Tooltip
|
|
27
|
+
};
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { jsx as v } from "react/jsx-runtime";
|
|
2
|
+
import { useContext as S, useMemo as C, createContext as y } from "react";
|
|
3
|
+
import { isTouchUi as L } from "../platform/touch.js";
|
|
4
|
+
import { classJoiner as b } from "./classNames.js";
|
|
5
|
+
import { DEFAULT_LABELS as N } from "./labels.js";
|
|
6
|
+
const w = {};
|
|
7
|
+
function A() {
|
|
8
|
+
return typeof window > "u" ? { width: 0, height: 0 } : { width: window.innerWidth, height: window.innerHeight };
|
|
9
|
+
}
|
|
10
|
+
function E() {
|
|
11
|
+
return typeof document > "u" ? null : document.body;
|
|
12
|
+
}
|
|
13
|
+
function g() {
|
|
14
|
+
return { touch: L(), scale: 1, minScale: 1, sheetScale: 1, margin: 8, snap: !0, labels: N, viewport: A, portal: E, classNames: w, cx: b(w) };
|
|
15
|
+
}
|
|
16
|
+
const r = y(null);
|
|
17
|
+
function z({ children: t, labels: n, touch: s, scale: c, minScale: u, sheetScale: a, margin: l, snap: m, viewport: d, portal: f, classNames: o }) {
|
|
18
|
+
const h = S(r), U = C(() => {
|
|
19
|
+
const e = h ?? g(), p = c ?? e.scale, i = o ? { ...e.classNames, ...o } : e.classNames;
|
|
20
|
+
return {
|
|
21
|
+
touch: s ?? e.touch,
|
|
22
|
+
scale: p,
|
|
23
|
+
minScale: u ?? Math.min(e.minScale, p),
|
|
24
|
+
sheetScale: a ?? e.sheetScale,
|
|
25
|
+
margin: l ?? e.margin,
|
|
26
|
+
snap: m ?? e.snap,
|
|
27
|
+
labels: n ? { ...e.labels, ...n } : e.labels,
|
|
28
|
+
viewport: d ?? e.viewport,
|
|
29
|
+
portal: f ?? e.portal,
|
|
30
|
+
classNames: i,
|
|
31
|
+
cx: i === e.classNames ? e.cx : b(i)
|
|
32
|
+
};
|
|
33
|
+
}, [h, n, s, c, u, a, l, m, d, f, o]);
|
|
34
|
+
return /* @__PURE__ */ v(r.Provider, { value: U, children: t });
|
|
35
|
+
}
|
|
36
|
+
let x = null;
|
|
37
|
+
function M() {
|
|
38
|
+
const t = S(r);
|
|
39
|
+
return t || (x ??= g(), x);
|
|
40
|
+
}
|
|
41
|
+
function B() {
|
|
42
|
+
return M().cx;
|
|
43
|
+
}
|
|
44
|
+
export {
|
|
45
|
+
z as UiProvider,
|
|
46
|
+
g as defaultUiSettings,
|
|
47
|
+
B as useCx,
|
|
48
|
+
M as useUi
|
|
49
|
+
};
|
|
@@ -0,0 +1,221 @@
|
|
|
1
|
+
const o = `
|
|
2
|
+
:root {
|
|
3
|
+
--e1681-font: inherit;
|
|
4
|
+
--e1681-font-size: 16px;
|
|
5
|
+
--e1681-text: #ece6d6;
|
|
6
|
+
--e1681-muted: #9c968a;
|
|
7
|
+
--e1681-accent: #e8c060;
|
|
8
|
+
--e1681-bg: #1d242e;
|
|
9
|
+
--e1681-well: #131a24;
|
|
10
|
+
--e1681-control-bg: #2a323e;
|
|
11
|
+
--e1681-border: #6a5634;
|
|
12
|
+
--e1681-border-width: 2px;
|
|
13
|
+
--e1681-backdrop: rgba(0, 0, 0, 0.5);
|
|
14
|
+
--e1681-frame: none;
|
|
15
|
+
--e1681-frame-slice: 0;
|
|
16
|
+
--e1681-frame-width: var(--e1681-border-width);
|
|
17
|
+
--e1681-tip-frame: var(--e1681-frame);
|
|
18
|
+
--e1681-tip-frame-slice: var(--e1681-frame-slice);
|
|
19
|
+
--e1681-tip-frame-width: var(--e1681-frame-width);
|
|
20
|
+
--e1681-control-frame: none;
|
|
21
|
+
--e1681-control-frame-slice: 0;
|
|
22
|
+
--e1681-control-frame-width: var(--e1681-border-width);
|
|
23
|
+
--e1681-tab-frame: var(--e1681-control-frame);
|
|
24
|
+
--e1681-tab-active-frame: var(--e1681-tab-frame);
|
|
25
|
+
--e1681-tab-frame-slice: var(--e1681-control-frame-slice);
|
|
26
|
+
--e1681-tab-frame-width: var(--e1681-control-frame-width);
|
|
27
|
+
--e1681-well-frame: none;
|
|
28
|
+
--e1681-well-frame-slice: 0;
|
|
29
|
+
--e1681-well-frame-width: var(--e1681-border-width);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.e1681-frame {
|
|
33
|
+
color: var(--e1681-text);
|
|
34
|
+
font-family: var(--e1681-font);
|
|
35
|
+
font-size: var(--e1681-font-size);
|
|
36
|
+
background: var(--e1681-bg) padding-box;
|
|
37
|
+
border-style: solid; border-color: var(--e1681-border); border-width: var(--e1681-frame-width);
|
|
38
|
+
border-image: var(--e1681-frame) var(--e1681-frame-slice) / var(--e1681-frame-width) stretch;
|
|
39
|
+
box-sizing: border-box;
|
|
40
|
+
}
|
|
41
|
+
.e1681-tip-frame {
|
|
42
|
+
color: var(--e1681-text);
|
|
43
|
+
font-family: var(--e1681-font);
|
|
44
|
+
font-size: var(--e1681-font-size);
|
|
45
|
+
background: var(--e1681-bg) padding-box;
|
|
46
|
+
border-style: solid; border-color: var(--e1681-border); border-width: var(--e1681-tip-frame-width);
|
|
47
|
+
border-image: var(--e1681-tip-frame) var(--e1681-tip-frame-slice) / var(--e1681-tip-frame-width) stretch;
|
|
48
|
+
box-sizing: border-box;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/* windows: placed by useFitToViewport in whole pixels; header kept, body scrolls */
|
|
52
|
+
.e1681-panel {
|
|
53
|
+
position: fixed;
|
|
54
|
+
z-index: 10;
|
|
55
|
+
display: flex;
|
|
56
|
+
flex-direction: column;
|
|
57
|
+
min-width: 0;
|
|
58
|
+
overflow: hidden;
|
|
59
|
+
pointer-events: auto;
|
|
60
|
+
}
|
|
61
|
+
.e1681-panel-header { display: flex; align-items: center; gap: 8px; flex: none; padding: 2px 4px 6px; }
|
|
62
|
+
.e1681-panel-title { flex: 1; min-width: 0; margin: 0; font-size: 1.25em; font-weight: normal; color: var(--e1681-accent); }
|
|
63
|
+
.e1681-panel-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden; padding: 0 4px 4px; }
|
|
64
|
+
.e1681-panel-footer { flex: none; display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; padding: 6px 4px 0; }
|
|
65
|
+
.e1681-close {
|
|
66
|
+
flex: none; padding: 2px; border: 0; background: none; color: var(--e1681-text); cursor: pointer; line-height: 0;
|
|
67
|
+
}
|
|
68
|
+
.e1681-close:hover { color: var(--e1681-accent); }
|
|
69
|
+
/* a touch screen's sheet: the whole screen inside the safe area */
|
|
70
|
+
.e1681-panel.e1681-sheet {
|
|
71
|
+
inset: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px);
|
|
72
|
+
width: auto;
|
|
73
|
+
height: auto;
|
|
74
|
+
}
|
|
75
|
+
.e1681-panel.e1681-sheet .e1681-panel-body { overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
|
|
76
|
+
|
|
77
|
+
/* controls */
|
|
78
|
+
.e1681-button, .e1681-input, .e1681-select {
|
|
79
|
+
color: var(--e1681-text);
|
|
80
|
+
font: inherit;
|
|
81
|
+
background: var(--e1681-control-bg) padding-box;
|
|
82
|
+
border-style: solid; border-color: var(--e1681-border); border-width: var(--e1681-control-frame-width);
|
|
83
|
+
border-image: var(--e1681-control-frame) var(--e1681-control-frame-slice) / var(--e1681-control-frame-width) stretch;
|
|
84
|
+
box-shadow: none;
|
|
85
|
+
}
|
|
86
|
+
.e1681-button { padding: 2px 10px; cursor: pointer; min-height: 28px; }
|
|
87
|
+
.e1681-button.small { padding: 0 6px; min-height: 22px; }
|
|
88
|
+
.e1681-button.ghost { background-color: transparent; }
|
|
89
|
+
.e1681-button:hover:not(:disabled) { color: var(--e1681-accent); }
|
|
90
|
+
/* pressed: the same face a pixel lower, never a transform */
|
|
91
|
+
.e1681-button:active:not(:disabled) { padding-top: 3px; padding-bottom: 1px; }
|
|
92
|
+
.e1681-button:disabled { opacity: 0.55; cursor: default; }
|
|
93
|
+
.e1681-input { padding: 2px 6px; min-width: 0; }
|
|
94
|
+
.e1681-glyph { display: inline-block; flex: none; vertical-align: -1px; }
|
|
95
|
+
|
|
96
|
+
/* tabs: a row that scrolls sideways, or wraps with .wrap */
|
|
97
|
+
.e1681-tabs { display: flex; gap: 2px; align-items: flex-end; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; margin-bottom: 8px; }
|
|
98
|
+
.e1681-tabs::-webkit-scrollbar { display: none; }
|
|
99
|
+
.e1681-tabs.wrap { flex-wrap: wrap; overflow-x: visible; row-gap: 4px; }
|
|
100
|
+
.e1681-tab {
|
|
101
|
+
flex: 0 0 auto;
|
|
102
|
+
padding: 2px 10px;
|
|
103
|
+
color: var(--e1681-muted);
|
|
104
|
+
font: inherit;
|
|
105
|
+
cursor: pointer;
|
|
106
|
+
white-space: nowrap;
|
|
107
|
+
background: var(--e1681-control-bg) padding-box;
|
|
108
|
+
border-style: solid; border-color: var(--e1681-border); border-width: var(--e1681-tab-frame-width);
|
|
109
|
+
border-image: var(--e1681-tab-frame) var(--e1681-tab-frame-slice) / var(--e1681-tab-frame-width) stretch;
|
|
110
|
+
}
|
|
111
|
+
.e1681-tab:hover:not(.active):not(:disabled) { color: var(--e1681-text); }
|
|
112
|
+
.e1681-tab.active { color: var(--e1681-accent); padding-bottom: 6px; border-image-source: var(--e1681-tab-active-frame); }
|
|
113
|
+
.e1681-tab:disabled { opacity: 0.55; cursor: default; }
|
|
114
|
+
.e1681-tab:focus-visible { outline: 2px solid var(--e1681-accent); outline-offset: -4px; }
|
|
115
|
+
.e1681-tabs.small { margin-bottom: 4px; }
|
|
116
|
+
.e1681-tabs.small .e1681-tab { padding: 0 6px; }
|
|
117
|
+
.e1681-tabs.small .e1681-tab.active { padding-bottom: 4px; }
|
|
118
|
+
|
|
119
|
+
/* list beside detail */
|
|
120
|
+
.e1681-split {
|
|
121
|
+
display: grid;
|
|
122
|
+
grid-template-columns: var(--e1681-split-list, minmax(0, 1fr)) minmax(0, 1fr);
|
|
123
|
+
gap: 12px;
|
|
124
|
+
height: min(58vh, 620px);
|
|
125
|
+
}
|
|
126
|
+
.e1681-split.fit { height: auto; max-height: min(58vh, 620px); }
|
|
127
|
+
.e1681-split-list, .e1681-split-detail { min-height: 0; overflow-y: auto; overflow-x: hidden; }
|
|
128
|
+
.e1681-split-list { padding-right: 4px; }
|
|
129
|
+
.e1681-split-detail {
|
|
130
|
+
display: flex;
|
|
131
|
+
flex-direction: column;
|
|
132
|
+
gap: 4px;
|
|
133
|
+
padding: 8px 10px;
|
|
134
|
+
background: var(--e1681-well) padding-box;
|
|
135
|
+
border-style: solid; border-color: var(--e1681-border); border-width: var(--e1681-well-frame-width);
|
|
136
|
+
border-image: var(--e1681-well-frame) var(--e1681-well-frame-slice) / var(--e1681-well-frame-width) stretch;
|
|
137
|
+
}
|
|
138
|
+
.e1681-split-empty { flex: 1; display: flex; align-items: center; justify-content: center; text-align: center; color: var(--e1681-muted); }
|
|
139
|
+
.e1681-split.stack { grid-template-columns: minmax(0, 1fr); }
|
|
140
|
+
.e1681-split.stack.show-list .e1681-split-detail, .e1681-split.stack.show-detail .e1681-split-list { display: none; }
|
|
141
|
+
.e1681-split-back { align-self: flex-start; }
|
|
142
|
+
.e1681-row { display: flex; align-items: center; gap: 8px; padding: 4px 6px; margin-bottom: 4px; border: var(--e1681-border-width) solid transparent; }
|
|
143
|
+
.e1681-pickable { cursor: pointer; }
|
|
144
|
+
.e1681-pickable:hover:not(.picked):not(.disabled) { border-color: var(--e1681-border); }
|
|
145
|
+
.e1681-row.picked { border-color: var(--e1681-accent); color: var(--e1681-accent); }
|
|
146
|
+
.e1681-row.disabled { opacity: 0.55; cursor: default; }
|
|
147
|
+
|
|
148
|
+
/* the select: as wide as its longest label */
|
|
149
|
+
.e1681-select { display: inline-flex; align-items: center; gap: 6px; flex: none; padding: 1px 4px; text-align: left; cursor: pointer; }
|
|
150
|
+
.e1681-select:hover:not(:disabled), .e1681-select.open { color: var(--e1681-accent); }
|
|
151
|
+
.e1681-select:disabled { opacity: 0.6; cursor: default; }
|
|
152
|
+
.e1681-select.grow { flex: 1 1 auto; min-width: 0; }
|
|
153
|
+
.e1681-select.grow .e1681-select-labels { flex: 1 1 auto; min-width: 0; overflow: hidden; }
|
|
154
|
+
.e1681-select.grow .e1681-select-labels > span { overflow: hidden; text-overflow: ellipsis; }
|
|
155
|
+
.e1681-select-labels { display: grid; white-space: nowrap; }
|
|
156
|
+
.e1681-select-labels > span { grid-area: 1 / 1; visibility: hidden; }
|
|
157
|
+
.e1681-select-labels > span.shown { visibility: visible; }
|
|
158
|
+
.e1681-select-list {
|
|
159
|
+
position: fixed;
|
|
160
|
+
z-index: 10000;
|
|
161
|
+
box-sizing: border-box;
|
|
162
|
+
width: max-content;
|
|
163
|
+
padding: 2px;
|
|
164
|
+
overflow-y: auto;
|
|
165
|
+
pointer-events: auto;
|
|
166
|
+
}
|
|
167
|
+
.e1681-select-option { padding: 2px 6px; white-space: nowrap; cursor: pointer; }
|
|
168
|
+
.e1681-select-list.measuring .e1681-select-option { width: max-content; }
|
|
169
|
+
.e1681-select-option.hot { background: var(--e1681-control-bg); }
|
|
170
|
+
.e1681-select-option.picked { color: var(--e1681-accent); }
|
|
171
|
+
|
|
172
|
+
/* tooltips */
|
|
173
|
+
.e1681-tooltip { position: fixed; z-index: 10001; max-width: 360px; padding: 4px 8px; overflow: hidden; pointer-events: none; }
|
|
174
|
+
.e1681-title-tip { white-space: pre-line; }
|
|
175
|
+
|
|
176
|
+
/* slider: a square knob, flat fills */
|
|
177
|
+
.e1681-slider-row { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; }
|
|
178
|
+
.e1681-slider { flex: 1; min-width: 0; padding: 6px 7px; cursor: pointer; touch-action: none; user-select: none; pointer-events: auto; }
|
|
179
|
+
.e1681-slider:focus { outline: none; }
|
|
180
|
+
.e1681-slider:focus-visible { outline: 2px solid var(--e1681-accent); outline-offset: 2px; }
|
|
181
|
+
.e1681-slider[aria-disabled='true'] { opacity: 0.55; cursor: default; }
|
|
182
|
+
.e1681-slider-track {
|
|
183
|
+
position: relative;
|
|
184
|
+
height: 6px;
|
|
185
|
+
background: var(--e1681-well) padding-box;
|
|
186
|
+
border-style: solid; border-color: var(--e1681-border); border-width: var(--e1681-well-frame-width);
|
|
187
|
+
border-image: var(--e1681-well-frame) var(--e1681-well-frame-slice) / var(--e1681-well-frame-width) stretch;
|
|
188
|
+
}
|
|
189
|
+
.e1681-slider-fill { position: absolute; left: 0; top: 0; bottom: 0; background: var(--e1681-accent); }
|
|
190
|
+
/* the knob is offset by half its own whole-pixel width with a margin, so it stays on the pixel grid */
|
|
191
|
+
.e1681-slider-knob { position: absolute; top: -6px; width: 10px; height: 14px; margin-left: -5px; background: var(--e1681-text); border: 2px solid var(--e1681-well); box-sizing: border-box; }
|
|
192
|
+
.e1681-slider-value { min-width: 40px; text-align: right; font-variant-numeric: tabular-nums; }
|
|
193
|
+
|
|
194
|
+
/* dialogs */
|
|
195
|
+
.e1681-backdrop { position: fixed; inset: 0; z-index: 9000; background: var(--e1681-backdrop); pointer-events: auto; }
|
|
196
|
+
.e1681-dialog { position: fixed; display: flex; flex-direction: column; overflow: hidden; padding: 8px 10px; }
|
|
197
|
+
.e1681-dialog-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; }
|
|
198
|
+
.e1681-dialog-actions { flex: none; display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; padding-top: 10px; }
|
|
199
|
+
.e1681-confirm-text { white-space: pre-line; }
|
|
200
|
+
.e1681-confirm-qty { display: flex; align-items: center; gap: 6px; margin-top: 10px; }
|
|
201
|
+
.e1681-confirm-qty-input { width: 56px; text-align: right; }
|
|
202
|
+
.e1681-choice-list { margin-top: 8px; }
|
|
203
|
+
.e1681-choice-icon { flex: none; line-height: 0; }
|
|
204
|
+
.e1681-choice-label { flex: 1; min-width: 0; }
|
|
205
|
+
.e1681-choice-note { flex: none; margin-left: auto; color: var(--e1681-muted); }
|
|
206
|
+
|
|
207
|
+
/* sprites at whole multiples */
|
|
208
|
+
.e1681-pixel-image { display: inline-flex; align-items: center; justify-content: center; flex: none; overflow: hidden; }
|
|
209
|
+
.e1681-pixel-image > img { image-rendering: pixelated; flex: none; }
|
|
210
|
+
`, i = "e1681-react-base";
|
|
211
|
+
function a(e = typeof document > "u" ? void 0 : document) {
|
|
212
|
+
if (!e) return null;
|
|
213
|
+
const r = e.getElementById(i);
|
|
214
|
+
if (r) return r;
|
|
215
|
+
const t = e.createElement("style");
|
|
216
|
+
return t.id = i, t.textContent = o, e.head.insertBefore(t, e.head.firstChild), t;
|
|
217
|
+
}
|
|
218
|
+
export {
|
|
219
|
+
o as baseCss,
|
|
220
|
+
a as injectBaseCss
|
|
221
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { createStore as o } from "../ui/dom/createStore.js";
|
|
2
|
+
const t = o({ pending: null });
|
|
3
|
+
function u(e, n, i = {}) {
|
|
4
|
+
return t.getState().pending?.resolve(null), new Promise((r) => t.setState({ pending: { text: e, options: n, resolve: r, ...i } }));
|
|
5
|
+
}
|
|
6
|
+
function c(e) {
|
|
7
|
+
const n = t.getState().pending;
|
|
8
|
+
t.setState({ pending: null }), n?.resolve(e);
|
|
9
|
+
}
|
|
10
|
+
function s() {
|
|
11
|
+
return t.getState().pending ? (c(null), !0) : !1;
|
|
12
|
+
}
|
|
13
|
+
function a(e) {
|
|
14
|
+
return e.find((n) => !n.disabled)?.id ?? null;
|
|
15
|
+
}
|
|
16
|
+
export {
|
|
17
|
+
c as answerChoice,
|
|
18
|
+
u as askChoice,
|
|
19
|
+
s as cancelChoice,
|
|
20
|
+
t as choiceStore,
|
|
21
|
+
a as firstChoice
|
|
22
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
const c = "e1681-";
|
|
2
|
+
function f(o) {
|
|
3
|
+
const s = Object.keys(o).length > 0;
|
|
4
|
+
return (...r) => {
|
|
5
|
+
const n = [];
|
|
6
|
+
for (const e of r)
|
|
7
|
+
if (e)
|
|
8
|
+
for (const t of e.split(" ")) {
|
|
9
|
+
if (!t || (n.push(t), !s)) continue;
|
|
10
|
+
const i = o[t.startsWith(c) ? t.slice(c.length) : t];
|
|
11
|
+
i && n.push(i);
|
|
12
|
+
}
|
|
13
|
+
return n.join(" ");
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
export {
|
|
17
|
+
f as classJoiner
|
|
18
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { createStore as i } from "../ui/dom/createStore.js";
|
|
2
|
+
const r = i({ pending: null });
|
|
3
|
+
function o(n, t, e) {
|
|
4
|
+
return r.getState().pending?.resolve(0), new Promise((a) => r.setState({ pending: { text: n, max: t, resolve: a, ...e } }));
|
|
5
|
+
}
|
|
6
|
+
function c(n, t = {}) {
|
|
7
|
+
return o(n, 0, t).then((e) => e > 0);
|
|
8
|
+
}
|
|
9
|
+
function s(n, t, e = {}) {
|
|
10
|
+
return o(n, Math.max(1, Math.floor(t)), e);
|
|
11
|
+
}
|
|
12
|
+
function u(n) {
|
|
13
|
+
const t = r.getState().pending;
|
|
14
|
+
r.setState({ pending: null }), t?.resolve(n);
|
|
15
|
+
}
|
|
16
|
+
function g() {
|
|
17
|
+
return r.getState().pending ? (u(0), !0) : !1;
|
|
18
|
+
}
|
|
19
|
+
function l(n, t) {
|
|
20
|
+
return Math.max(1, Math.min(t, Math.floor(Number(n.replace(/[^0-9]/g, "")) || 1)));
|
|
21
|
+
}
|
|
22
|
+
export {
|
|
23
|
+
u as answerConfirm,
|
|
24
|
+
c as askConfirm,
|
|
25
|
+
s as askQuantity,
|
|
26
|
+
g as cancelConfirm,
|
|
27
|
+
r as confirmStore,
|
|
28
|
+
l as parseQuantity
|
|
29
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
const n = {
|
|
2
|
+
close: "Close {0}",
|
|
3
|
+
closeHint: "Close (Esc)",
|
|
4
|
+
backToList: "‹ List",
|
|
5
|
+
pickHint: "Pick an entry on the left.",
|
|
6
|
+
cancel: "Cancel",
|
|
7
|
+
ok: "OK",
|
|
8
|
+
quantity: "Quantity",
|
|
9
|
+
choose: "Choose"
|
|
10
|
+
};
|
|
11
|
+
function l(e, ...t) {
|
|
12
|
+
return e.replace(/\{(\d+)\}/g, (o, c) => t[Number(c)] ?? o);
|
|
13
|
+
}
|
|
14
|
+
export {
|
|
15
|
+
n as DEFAULT_LABELS,
|
|
16
|
+
l as fillLabel
|
|
17
|
+
};
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { fitToViewport as f } from "../ui/layout/fitToViewport.js";
|
|
2
|
+
import { placeTooltip as c } from "../ui/layout/placeTooltip.js";
|
|
3
|
+
function m(t, n, r = {}) {
|
|
4
|
+
const e = f(t, n, { snap: !0, ...r, centre: r.centre ?? !("x" in t) }), i = {
|
|
5
|
+
left: e.x,
|
|
6
|
+
top: e.y,
|
|
7
|
+
maxWidth: e.width,
|
|
8
|
+
maxHeight: e.height,
|
|
9
|
+
transform: e.scale === 1 ? void 0 : `scale(${e.scale})`,
|
|
10
|
+
transformOrigin: e.scale === 1 ? void 0 : "0 0"
|
|
11
|
+
};
|
|
12
|
+
return { fit: e, style: i };
|
|
13
|
+
}
|
|
14
|
+
function g(t) {
|
|
15
|
+
if (!(t === 1 || !(t > 0)))
|
|
16
|
+
return { width: `${100 / t}%`, height: `${100 / t}%`, transform: `scale(${t})`, transformOrigin: "0 0" };
|
|
17
|
+
}
|
|
18
|
+
function x(t, n, r, e, i = {}) {
|
|
19
|
+
const o = { x: t + (i.offsetX ?? 18), y: n, width: 0, height: 0 };
|
|
20
|
+
return c(o, r, e, {
|
|
21
|
+
side: i.above ? "above" : "below",
|
|
22
|
+
gap: i.gap ?? 12,
|
|
23
|
+
margin: i.margin ?? 8,
|
|
24
|
+
snap: i.snap ?? !0
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
function w(t, n, r, e = 2, i = 4) {
|
|
28
|
+
const o = r.height - i - (t.y + t.height + e), h = t.y - e - i, s = Math.max(0, Math.min(n.height, Math.max(o, h))), a = c(t, { width: n.width, height: s }, r, { side: "below", gap: e, margin: i, snap: !0 });
|
|
29
|
+
return { x: a.x, y: a.y, height: Math.floor(s), side: a.side === "above" ? "above" : "below" };
|
|
30
|
+
}
|
|
31
|
+
function M(t, n, r, e, i = 1 / 0) {
|
|
32
|
+
if (!(t > 0) || !(n > 0)) return { width: 0, height: 0, scale: 1 };
|
|
33
|
+
const o = Math.min(r / t, e / n, i), h = o >= 1 ? Math.floor(o) : 1 / Math.ceil(1 / o);
|
|
34
|
+
return { width: Math.round(t * h), height: Math.round(n * h), scale: h };
|
|
35
|
+
}
|
|
36
|
+
const l = 600;
|
|
37
|
+
function b(t, n, r = l) {
|
|
38
|
+
return n && t < r ? "stack" : "side";
|
|
39
|
+
}
|
|
40
|
+
export {
|
|
41
|
+
l as SPLIT_STACK_BELOW,
|
|
42
|
+
x as cursorTip,
|
|
43
|
+
w as listPlacement,
|
|
44
|
+
M as pixelFit,
|
|
45
|
+
g as sheetScaleStyle,
|
|
46
|
+
b as splitModeFor,
|
|
47
|
+
m as windowStyle
|
|
48
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { useLayoutEffect as d, useEffect as u } from "react";
|
|
2
|
+
const f = 180;
|
|
3
|
+
function a(s, n, r) {
|
|
4
|
+
const o = () => {
|
|
5
|
+
const e = s.current, t = e?.closest(".e1681-panel-body");
|
|
6
|
+
if (!e || !t) return;
|
|
7
|
+
const c = e.getBoundingClientRect().top - t.getBoundingClientRect().top + t.scrollTop, l = Number.parseFloat(getComputedStyle(t).paddingBottom) || 0, i = `${Math.max(f, Math.floor(t.clientHeight - c - l))}px`;
|
|
8
|
+
r ? e.style.maxHeight = i : e.style.height = i;
|
|
9
|
+
};
|
|
10
|
+
d(() => {
|
|
11
|
+
n && o();
|
|
12
|
+
}), u(() => {
|
|
13
|
+
if (!n) return;
|
|
14
|
+
const e = s.current?.closest(".e1681-panel-body"), t = typeof ResizeObserver > "u" || !e ? null : new ResizeObserver(() => o());
|
|
15
|
+
return e && t?.observe(e), window.addEventListener("resize", o), () => {
|
|
16
|
+
t?.disconnect(), window.removeEventListener("resize", o);
|
|
17
|
+
};
|
|
18
|
+
}, [n, r]);
|
|
19
|
+
}
|
|
20
|
+
export {
|
|
21
|
+
a as useFillSheet
|
|
22
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { useLayoutEffect as u, useEffect as x } from "react";
|
|
2
|
+
import { windowStyle as w } from "./placement.js";
|
|
3
|
+
import { useUi as y } from "./UiProvider.js";
|
|
4
|
+
const p = "e1681-scroll";
|
|
5
|
+
function b(m, c) {
|
|
6
|
+
const t = y(), { enabled: a, width: h } = c, l = c.at?.x, d = c.at?.y, i = () => {
|
|
7
|
+
const e = m.current;
|
|
8
|
+
if (!e || !a) return;
|
|
9
|
+
const r = e.querySelector(`.${p}`), s = r ? r.scrollHeight - r.clientHeight : 0, f = {
|
|
10
|
+
width: h ?? Math.max(e.offsetWidth, e.scrollWidth),
|
|
11
|
+
height: e.offsetHeight + Math.max(0, s),
|
|
12
|
+
...l !== void 0 && d !== void 0 ? { x: l, y: d } : {}
|
|
13
|
+
}, { style: o } = w(f, t.viewport(), { scale: t.scale, minScale: t.minScale, margin: t.margin, snap: t.snap }), n = e.style;
|
|
14
|
+
n.left = `${o.left}px`, n.top = `${o.top}px`, n.maxWidth = `${o.maxWidth}px`, n.maxHeight = `${o.maxHeight}px`, n.transform = o.transform ?? "", n.transformOrigin = o.transformOrigin ?? "";
|
|
15
|
+
};
|
|
16
|
+
u(i), x(() => {
|
|
17
|
+
if (!a) return;
|
|
18
|
+
const r = m.current?.querySelector(`.${p}`), s = typeof ResizeObserver > "u" ? null : new ResizeObserver(() => i());
|
|
19
|
+
for (const f of Array.from(r?.children ?? [])) s?.observe(f);
|
|
20
|
+
return window.addEventListener("resize", i), () => {
|
|
21
|
+
s?.disconnect(), window.removeEventListener("resize", i);
|
|
22
|
+
};
|
|
23
|
+
}, [a, h, l, d, t]);
|
|
24
|
+
}
|
|
25
|
+
export {
|
|
26
|
+
p as SCROLL_CLASS,
|
|
27
|
+
b as useFitToViewport
|
|
28
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { useState as l } from "react";
|
|
2
|
+
function i(n, t, u = !0) {
|
|
3
|
+
const [e, o] = l(null);
|
|
4
|
+
return [c(n, t, e, u), o];
|
|
5
|
+
}
|
|
6
|
+
function c(n, t, u, e = !0) {
|
|
7
|
+
return (u === null ? void 0 : n.find((r) => t(r) === u)) ?? (e ? n[0] ?? null : null);
|
|
8
|
+
}
|
|
9
|
+
export {
|
|
10
|
+
c as pickedEntry,
|
|
11
|
+
i as usePicked
|
|
12
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { useState as u, useEffect as w } from "react";
|
|
2
|
+
import { useUi as d } from "./UiProvider.js";
|
|
3
|
+
function p(n = !0) {
|
|
4
|
+
const e = d(), [o, s] = u(() => e.viewport());
|
|
5
|
+
return w(() => {
|
|
6
|
+
if (!n) return;
|
|
7
|
+
const t = () => {
|
|
8
|
+
const i = e.viewport();
|
|
9
|
+
s((r) => r.width === i.width && r.height === i.height ? r : i);
|
|
10
|
+
};
|
|
11
|
+
return t(), window.addEventListener("resize", t), () => window.removeEventListener("resize", t);
|
|
12
|
+
}, [n, e]), o;
|
|
13
|
+
}
|
|
14
|
+
export {
|
|
15
|
+
p as useViewport
|
|
16
|
+
};
|
package/dist/react.js
ADDED
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { UiProvider as r, defaultUiSettings as t, useCx as i, useUi as p } from "./react/UiProvider.js";
|
|
2
|
+
import { classJoiner as l } from "./react/classNames.js";
|
|
3
|
+
import { DEFAULT_LABELS as m, fillLabel as a } from "./react/labels.js";
|
|
4
|
+
import { baseCss as c, injectBaseCss as n } from "./react/baseCss.js";
|
|
5
|
+
import { useStore as C } from "./react/useStore.js";
|
|
6
|
+
import { useViewport as u } from "./react/useViewport.js";
|
|
7
|
+
import { SCROLL_CLASS as d, useFitToViewport as L } from "./react/useFitToViewport.js";
|
|
8
|
+
import { useFillSheet as P } from "./react/useFillSheet.js";
|
|
9
|
+
import { SPLIT_STACK_BELOW as w, cursorTip as k, listPlacement as F, pixelFit as A, sheetScaleStyle as E, splitModeFor as U, windowStyle as _ } from "./react/placement.js";
|
|
10
|
+
import { Panel as B } from "./react/Panel.js";
|
|
11
|
+
import { TabStrip as G } from "./react/TabStrip.js";
|
|
12
|
+
import { SplitPane as V } from "./react/SplitPane.js";
|
|
13
|
+
import { pickedEntry as K, usePicked as M } from "./react/usePicked.js";
|
|
14
|
+
import { Select as j, stepOption as v } from "./react/Select.js";
|
|
15
|
+
import { Tooltip as R } from "./react/Tooltip.js";
|
|
16
|
+
import { TitleTips as q } from "./react/TitleTips.js";
|
|
17
|
+
import { Modal as H } from "./react/Modal.js";
|
|
18
|
+
import { ConfirmDialog as X } from "./react/ConfirmDialog.js";
|
|
19
|
+
import { answerConfirm as Z, askConfirm as $, askQuantity as ee, cancelConfirm as oe, confirmStore as re, parseQuantity as te } from "./react/confirmStore.js";
|
|
20
|
+
import { ChoiceDialog as pe } from "./react/ChoiceDialog.js";
|
|
21
|
+
import { answerChoice as le, askChoice as se, cancelChoice as me, choiceStore as ae, firstChoice as xe } from "./react/choiceStore.js";
|
|
22
|
+
import { Slider as ne, sliderKeyValue as Se } from "./react/Slider.js";
|
|
23
|
+
import { PixelImage as he } from "./react/PixelImage.js";
|
|
24
|
+
import { Glyph as ye, glyphPath as de, hasGlyph as Le, registerGlyph as Te } from "./react/Glyph.js";
|
|
25
|
+
export {
|
|
26
|
+
pe as ChoiceDialog,
|
|
27
|
+
X as ConfirmDialog,
|
|
28
|
+
m as DEFAULT_LABELS,
|
|
29
|
+
ye as Glyph,
|
|
30
|
+
H as Modal,
|
|
31
|
+
B as Panel,
|
|
32
|
+
he as PixelImage,
|
|
33
|
+
d as SCROLL_CLASS,
|
|
34
|
+
w as SPLIT_STACK_BELOW,
|
|
35
|
+
j as Select,
|
|
36
|
+
ne as Slider,
|
|
37
|
+
V as SplitPane,
|
|
38
|
+
G as TabStrip,
|
|
39
|
+
q as TitleTips,
|
|
40
|
+
R as Tooltip,
|
|
41
|
+
r as UiProvider,
|
|
42
|
+
le as answerChoice,
|
|
43
|
+
Z as answerConfirm,
|
|
44
|
+
se as askChoice,
|
|
45
|
+
$ as askConfirm,
|
|
46
|
+
ee as askQuantity,
|
|
47
|
+
c as baseCss,
|
|
48
|
+
me as cancelChoice,
|
|
49
|
+
oe as cancelConfirm,
|
|
50
|
+
ae as choiceStore,
|
|
51
|
+
l as classJoiner,
|
|
52
|
+
re as confirmStore,
|
|
53
|
+
k as cursorTip,
|
|
54
|
+
t as defaultUiSettings,
|
|
55
|
+
a as fillLabel,
|
|
56
|
+
xe as firstChoice,
|
|
57
|
+
de as glyphPath,
|
|
58
|
+
Le as hasGlyph,
|
|
59
|
+
n as injectBaseCss,
|
|
60
|
+
F as listPlacement,
|
|
61
|
+
te as parseQuantity,
|
|
62
|
+
K as pickedEntry,
|
|
63
|
+
A as pixelFit,
|
|
64
|
+
Te as registerGlyph,
|
|
65
|
+
E as sheetScaleStyle,
|
|
66
|
+
Se as sliderKeyValue,
|
|
67
|
+
U as splitModeFor,
|
|
68
|
+
v as stepOption,
|
|
69
|
+
i as useCx,
|
|
70
|
+
P as useFillSheet,
|
|
71
|
+
L as useFitToViewport,
|
|
72
|
+
M as usePicked,
|
|
73
|
+
C as useStore,
|
|
74
|
+
p as useUi,
|
|
75
|
+
u as useViewport,
|
|
76
|
+
_ as windowStyle
|
|
77
|
+
};
|