@pibbl/core 0.0.1
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/LICENSE.txt +19 -0
- package/README.md +76 -0
- package/THIRD_PARTY_NOTICES.txt +205 -0
- package/dist/features/particles/index.d.ts +7 -0
- package/dist/features/particles/index.js +26 -0
- package/dist/features/particles/index.js.map +7 -0
- package/dist/features/particles/index.mjs +1 -0
- package/dist/features/particles/lib/canvas/birth-ledger.d.ts +69 -0
- package/dist/features/particles/lib/canvas/birth-ledger.js +752 -0
- package/dist/features/particles/lib/canvas/birth-ledger.js.map +7 -0
- package/dist/features/particles/lib/canvas/component.d.ts +14 -0
- package/dist/features/particles/lib/canvas/component.js +249 -0
- package/dist/features/particles/lib/canvas/component.js.map +7 -0
- package/dist/features/particles/lib/canvas/executor.d.ts +31 -0
- package/dist/features/particles/lib/canvas/executor.js +537 -0
- package/dist/features/particles/lib/canvas/executor.js.map +7 -0
- package/dist/features/particles/lib/canvas/primitive.d.ts +14 -0
- package/dist/features/particles/lib/canvas/primitive.js +50 -0
- package/dist/features/particles/lib/canvas/primitive.js.map +7 -0
- package/dist/features/particles/lib/canvas/raster-cache.d.ts +13 -0
- package/dist/features/particles/lib/canvas/raster-cache.js +106 -0
- package/dist/features/particles/lib/canvas/raster-cache.js.map +7 -0
- package/dist/features/particles/lib/color.d.ts +7 -0
- package/dist/features/particles/lib/color.js +159 -0
- package/dist/features/particles/lib/color.js.map +7 -0
- package/dist/features/particles/lib/compiler.d.ts +134 -0
- package/dist/features/particles/lib/compiler.js +443 -0
- package/dist/features/particles/lib/compiler.js.map +7 -0
- package/dist/features/particles/lib/curve.d.ts +19 -0
- package/dist/features/particles/lib/curve.js +129 -0
- package/dist/features/particles/lib/curve.js.map +7 -0
- package/dist/features/particles/lib/definition-records.d.ts +58 -0
- package/dist/features/particles/lib/definition-records.js +500 -0
- package/dist/features/particles/lib/definition-records.js.map +7 -0
- package/dist/features/particles/lib/definition.d.ts +18 -0
- package/dist/features/particles/lib/definition.js +602 -0
- package/dist/features/particles/lib/definition.js.map +7 -0
- package/dist/features/particles/lib/emission.d.ts +54 -0
- package/dist/features/particles/lib/emission.js +184 -0
- package/dist/features/particles/lib/emission.js.map +7 -0
- package/dist/features/particles/lib/flow/field.d.ts +81 -0
- package/dist/features/particles/lib/flow/field.js +585 -0
- package/dist/features/particles/lib/flow/field.js.map +7 -0
- package/dist/features/particles/lib/flow/hook.d.ts +158 -0
- package/dist/features/particles/lib/flow/hook.js +215 -0
- package/dist/features/particles/lib/flow/hook.js.map +7 -0
- package/dist/features/particles/lib/flow/population.d.ts +25 -0
- package/dist/features/particles/lib/flow/population.js +104 -0
- package/dist/features/particles/lib/flow/population.js.map +7 -0
- package/dist/features/particles/lib/particle.d.ts +113 -0
- package/dist/features/particles/lib/particle.js +192 -0
- package/dist/features/particles/lib/particle.js.map +7 -0
- package/dist/features/particles/lib/random.d.ts +16 -0
- package/dist/features/particles/lib/random.js +61 -0
- package/dist/features/particles/lib/random.js.map +7 -0
- package/dist/features/particles/lib/sample.d.ts +32 -0
- package/dist/features/particles/lib/sample.js +397 -0
- package/dist/features/particles/lib/sample.js.map +7 -0
- package/dist/features/particles/lib/signal-inputs.d.ts +6 -0
- package/dist/features/particles/lib/signal-inputs.js +41 -0
- package/dist/features/particles/lib/signal-inputs.js.map +7 -0
- package/dist/features/particles/lib/system/binding.d.ts +59 -0
- package/dist/features/particles/lib/system/binding.js +122 -0
- package/dist/features/particles/lib/system/binding.js.map +7 -0
- package/dist/features/particles/lib/system/controller.d.ts +58 -0
- package/dist/features/particles/lib/system/controller.js +1446 -0
- package/dist/features/particles/lib/system/controller.js.map +7 -0
- package/dist/features/particles/lib/system/hook.d.ts +13 -0
- package/dist/features/particles/lib/system/hook.js +52 -0
- package/dist/features/particles/lib/system/hook.js.map +7 -0
- package/dist/features/particles/lib/system/ownership.d.ts +26 -0
- package/dist/features/particles/lib/system/ownership.js +128 -0
- package/dist/features/particles/lib/system/ownership.js.map +7 -0
- package/dist/features/particles/lib/types.d.ts +983 -0
- package/dist/features/physics/2d-geometry.d.ts +216 -0
- package/dist/features/physics/2d-geometry.js +59 -0
- package/dist/features/physics/2d-geometry.js.map +7 -0
- package/dist/features/physics/2d-geometry.mjs +1 -0
- package/dist/features/physics/2d-testing.d.ts +80 -0
- package/dist/features/physics/2d-testing.js +141 -0
- package/dist/features/physics/2d-testing.js.map +7 -0
- package/dist/features/physics/2d-testing.mjs +1 -0
- package/dist/features/physics/2d.d.ts +165 -0
- package/dist/features/physics/2d.js +119 -0
- package/dist/features/physics/2d.js.map +7 -0
- package/dist/features/physics/2d.mjs +1 -0
- package/dist/features/physics/lib/2d/canvas/components.d.ts +46 -0
- package/dist/features/physics/lib/2d/canvas/components.js +212 -0
- package/dist/features/physics/lib/2d/canvas/components.js.map +7 -0
- package/dist/features/physics/lib/2d/canvas/custom.d.ts +24 -0
- package/dist/features/physics/lib/2d/canvas/custom.js +45 -0
- package/dist/features/physics/lib/2d/canvas/custom.js.map +7 -0
- package/dist/features/physics/lib/2d/canvas/debug.d.ts +23 -0
- package/dist/features/physics/lib/2d/canvas/debug.js +53 -0
- package/dist/features/physics/lib/2d/canvas/debug.js.map +7 -0
- package/dist/features/physics/lib/2d/canvas/inference.d.ts +9 -0
- package/dist/features/physics/lib/2d/canvas/inference.js +704 -0
- package/dist/features/physics/lib/2d/canvas/inference.js.map +7 -0
- package/dist/features/physics/lib/2d/canvas/presentation.d.ts +11 -0
- package/dist/features/physics/lib/2d/canvas/presentation.js +169 -0
- package/dist/features/physics/lib/2d/canvas/presentation.js.map +7 -0
- package/dist/features/physics/lib/2d/collision/analytic.d.ts +15 -0
- package/dist/features/physics/lib/2d/collision/analytic.js +151 -0
- package/dist/features/physics/lib/2d/collision/analytic.js.map +7 -0
- package/dist/features/physics/lib/2d/collision/casts.d.ts +37 -0
- package/dist/features/physics/lib/2d/collision/casts.js +631 -0
- package/dist/features/physics/lib/2d/collision/casts.js.map +7 -0
- package/dist/features/physics/lib/2d/collision/epa.d.ts +21 -0
- package/dist/features/physics/lib/2d/collision/epa.js +102 -0
- package/dist/features/physics/lib/2d/collision/epa.js.map +7 -0
- package/dist/features/physics/lib/2d/collision/gjk.d.ts +28 -0
- package/dist/features/physics/lib/2d/collision/gjk.js +233 -0
- package/dist/features/physics/lib/2d/collision/gjk.js.map +7 -0
- package/dist/features/physics/lib/2d/collision/manifold.d.ts +35 -0
- package/dist/features/physics/lib/2d/collision/manifold.js +238 -0
- package/dist/features/physics/lib/2d/collision/manifold.js.map +7 -0
- package/dist/features/physics/lib/2d/collision/pairs.d.ts +10 -0
- package/dist/features/physics/lib/2d/collision/pairs.js +285 -0
- package/dist/features/physics/lib/2d/collision/pairs.js.map +7 -0
- package/dist/features/physics/lib/2d/collision/support.d.ts +20 -0
- package/dist/features/physics/lib/2d/collision/support.js +155 -0
- package/dist/features/physics/lib/2d/collision/support.js.map +7 -0
- package/dist/features/physics/lib/2d/inspection-types.d.ts +159 -0
- package/dist/features/physics/lib/2d/math.d.ts +27 -0
- package/dist/features/physics/lib/2d/math.js +314 -0
- package/dist/features/physics/lib/2d/math.js.map +7 -0
- package/dist/features/physics/lib/2d/numeric-policy.d.ts +24 -0
- package/dist/features/physics/lib/2d/numeric-policy.js +51 -0
- package/dist/features/physics/lib/2d/numeric-policy.js.map +7 -0
- package/dist/features/physics/lib/2d/runtime/body-handle.d.ts +148 -0
- package/dist/features/physics/lib/2d/runtime/body-handle.js +305 -0
- package/dist/features/physics/lib/2d/runtime/body-handle.js.map +7 -0
- package/dist/features/physics/lib/2d/runtime/context.d.ts +9 -0
- package/dist/features/physics/lib/2d/runtime/context.js +57 -0
- package/dist/features/physics/lib/2d/runtime/context.js.map +7 -0
- package/dist/features/physics/lib/2d/runtime/controller.d.ts +106 -0
- package/dist/features/physics/lib/2d/runtime/controller.js +1317 -0
- package/dist/features/physics/lib/2d/runtime/controller.js.map +7 -0
- package/dist/features/physics/lib/2d/runtime/descriptors.d.ts +153 -0
- package/dist/features/physics/lib/2d/runtime/descriptors.js +526 -0
- package/dist/features/physics/lib/2d/runtime/descriptors.js.map +7 -0
- package/dist/features/physics/lib/2d/runtime/events.d.ts +56 -0
- package/dist/features/physics/lib/2d/runtime/events.js +153 -0
- package/dist/features/physics/lib/2d/runtime/events.js.map +7 -0
- package/dist/features/physics/lib/2d/runtime/obstacles.d.ts +22 -0
- package/dist/features/physics/lib/2d/runtime/obstacles.js +192 -0
- package/dist/features/physics/lib/2d/runtime/obstacles.js.map +7 -0
- package/dist/features/physics/lib/2d/runtime/ownership.d.ts +41 -0
- package/dist/features/physics/lib/2d/runtime/ownership.js +46 -0
- package/dist/features/physics/lib/2d/runtime/ownership.js.map +7 -0
- package/dist/features/physics/lib/2d/runtime/trace.d.ts +32 -0
- package/dist/features/physics/lib/2d/runtime/trace.js +22 -0
- package/dist/features/physics/lib/2d/runtime/trace.js.map +7 -0
- package/dist/features/physics/lib/2d/runtime/world-component.d.ts +18 -0
- package/dist/features/physics/lib/2d/runtime/world-component.js +41 -0
- package/dist/features/physics/lib/2d/runtime/world-component.js.map +7 -0
- package/dist/features/physics/lib/2d/runtime/world-props.d.ts +16 -0
- package/dist/features/physics/lib/2d/shape-records.d.ts +60 -0
- package/dist/features/physics/lib/2d/shape-records.js +26 -0
- package/dist/features/physics/lib/2d/shape-records.js.map +7 -0
- package/dist/features/physics/lib/2d/shapes.d.ts +191 -0
- package/dist/features/physics/lib/2d/shapes.js +543 -0
- package/dist/features/physics/lib/2d/shapes.js.map +7 -0
- package/dist/features/physics/lib/2d/types.d.ts +713 -0
- package/dist/features/physics/lib/2d/types.js +1 -0
- package/dist/features/physics/lib/2d/types.js.map +7 -0
- package/dist/features/physics/lib/2d/world/broad-phase.d.ts +77 -0
- package/dist/features/physics/lib/2d/world/broad-phase.js +762 -0
- package/dist/features/physics/lib/2d/world/broad-phase.js.map +7 -0
- package/dist/features/physics/lib/2d/world/ccd.d.ts +19 -0
- package/dist/features/physics/lib/2d/world/ccd.js +265 -0
- package/dist/features/physics/lib/2d/world/ccd.js.map +7 -0
- package/dist/features/physics/lib/2d/world/contact-cache.d.ts +81 -0
- package/dist/features/physics/lib/2d/world/contact-cache.js +497 -0
- package/dist/features/physics/lib/2d/world/contact-cache.js.map +7 -0
- package/dist/features/physics/lib/2d/world/integrator.d.ts +11 -0
- package/dist/features/physics/lib/2d/world/integrator.js +99 -0
- package/dist/features/physics/lib/2d/world/integrator.js.map +7 -0
- package/dist/features/physics/lib/2d/world/queries.d.ts +62 -0
- package/dist/features/physics/lib/2d/world/queries.js +424 -0
- package/dist/features/physics/lib/2d/world/queries.js.map +7 -0
- package/dist/features/physics/lib/2d/world/rapier-engine.js +7054 -0
- package/dist/features/physics/lib/2d/world/rapier-engine.js.map +7 -0
- package/dist/features/physics/lib/2d/world/rapier.d.ts +50 -0
- package/dist/features/physics/lib/2d/world/rapier.js +655 -0
- package/dist/features/physics/lib/2d/world/rapier.js.map +7 -0
- package/dist/features/physics/lib/2d/world/solver.d.ts +58 -0
- package/dist/features/physics/lib/2d/world/solver.js +660 -0
- package/dist/features/physics/lib/2d/world/solver.js.map +7 -0
- package/dist/features/physics/lib/2d/world/storage.d.ts +96 -0
- package/dist/features/physics/lib/2d/world/storage.js +371 -0
- package/dist/features/physics/lib/2d/world/storage.js.map +7 -0
- package/dist/features/physics/lib/2d/world/world.d.ts +265 -0
- package/dist/features/physics/lib/2d/world/world.js +1713 -0
- package/dist/features/physics/lib/2d/world/world.js.map +7 -0
- package/dist/features/physics/lib/shared/signal-inputs.d.ts +5 -0
- package/dist/features/physics/lib/shared/signal-inputs.js +20 -0
- package/dist/features/physics/lib/shared/signal-inputs.js.map +7 -0
- package/dist/features/physics/lib/shared/validation.d.ts +5 -0
- package/dist/features/physics/lib/shared/validation.js +48 -0
- package/dist/features/physics/lib/shared/validation.js.map +7 -0
- package/dist/features/sprites/formats/aseprite.js +23 -0
- package/dist/features/sprites/formats/aseprite.js.map +7 -0
- package/dist/features/sprites/formats/aseprite.mjs +1 -0
- package/dist/features/sprites/formats/texture-packer.js +14 -0
- package/dist/features/sprites/formats/texture-packer.js.map +7 -0
- package/dist/features/sprites/formats/texture-packer.mjs +1 -0
- package/dist/features/sprites/index.js +9 -0
- package/dist/features/sprites/index.js.map +7 -0
- package/dist/features/sprites/index.mjs +1 -0
- package/dist/features/sprites/loader.js +63 -0
- package/dist/features/sprites/loader.js.map +7 -0
- package/dist/features/sprites/model.js +64 -0
- package/dist/features/sprites/model.js.map +7 -0
- package/dist/features/sprites/sprite.js +31 -0
- package/dist/features/sprites/sprite.js.map +7 -0
- package/dist/features/textures/index.d.ts +22 -0
- package/dist/features/textures/index.js +31 -0
- package/dist/features/textures/index.js.map +7 -0
- package/dist/features/textures/index.mjs +1 -0
- package/dist/features/textures/lib/definitions.d.ts +117 -0
- package/dist/features/textures/lib/definitions.js +179 -0
- package/dist/features/textures/lib/definitions.js.map +7 -0
- package/dist/features/textures/lib/electric-boundary.d.ts +3 -0
- package/dist/features/textures/lib/electric-boundary.js +11 -0
- package/dist/features/textures/lib/electric-boundary.js.map +7 -0
- package/dist/features/textures/lib/electric-shared.d.ts +69 -0
- package/dist/features/textures/lib/electric-shared.js +43 -0
- package/dist/features/textures/lib/electric-shared.js.map +7 -0
- package/dist/features/textures/lib/electric-sources.d.ts +50 -0
- package/dist/features/textures/lib/electric-sources.js +43 -0
- package/dist/features/textures/lib/electric-sources.js.map +7 -0
- package/dist/features/textures/lib/lightning.d.ts +72 -0
- package/dist/features/textures/lib/lightning.js +139 -0
- package/dist/features/textures/lib/lightning.js.map +7 -0
- package/dist/features/textures/lib/material-field.d.ts +12 -0
- package/dist/features/textures/lib/material-field.js +31 -0
- package/dist/features/textures/lib/material-field.js.map +7 -0
- package/dist/features/textures/lib/palette.d.ts +45 -0
- package/dist/features/textures/lib/palette.js +52 -0
- package/dist/features/textures/lib/palette.js.map +7 -0
- package/dist/features/textures/lib/presentation.d.ts +54 -0
- package/dist/features/textures/lib/presentation.js +83 -0
- package/dist/features/textures/lib/presentation.js.map +7 -0
- package/dist/features/textures/lib/procedural-texture.d.ts +44 -0
- package/dist/features/textures/lib/procedural-texture.js +110 -0
- package/dist/features/textures/lib/procedural-texture.js.map +7 -0
- package/dist/features/textures/lib/rain-drops.d.ts +96 -0
- package/dist/features/textures/lib/rain-drops.js +322 -0
- package/dist/features/textures/lib/rain-drops.js.map +7 -0
- package/dist/features/textures/lib/reaction-diffusion.d.ts +67 -0
- package/dist/features/textures/lib/reaction-diffusion.js +210 -0
- package/dist/features/textures/lib/reaction-diffusion.js.map +7 -0
- package/dist/features/textures/lib/simulation.d.ts +16 -0
- package/dist/features/textures/lib/simulation.js +85 -0
- package/dist/features/textures/lib/simulation.js.map +7 -0
- package/dist/features/textures/lib/tendrils.d.ts +57 -0
- package/dist/features/textures/lib/tendrils.js +216 -0
- package/dist/features/textures/lib/tendrils.js.map +7 -0
- package/dist/features/textures/lib/wasm/cellular-bytes.d.ts +1 -0
- package/dist/features/textures/lib/wasm/cellular-bytes.js +5 -0
- package/dist/features/textures/lib/wasm/cellular-bytes.js.map +7 -0
- package/dist/features/textures/lib/wasm/electric.d.ts +88 -0
- package/dist/features/textures/lib/wasm/electric.js +299 -0
- package/dist/features/textures/lib/wasm/electric.js.map +7 -0
- package/dist/features/textures/lib/wasm/ink-bytes.d.ts +1 -0
- package/dist/features/textures/lib/wasm/ink-bytes.js +5 -0
- package/dist/features/textures/lib/wasm/ink-bytes.js.map +7 -0
- package/dist/features/textures/lib/wasm/lightning-bytes.d.ts +1 -0
- package/dist/features/textures/lib/wasm/lightning-bytes.js +5 -0
- package/dist/features/textures/lib/wasm/lightning-bytes.js.map +7 -0
- package/dist/features/textures/lib/wasm/marble-bytes.d.ts +1 -0
- package/dist/features/textures/lib/wasm/marble-bytes.js +5 -0
- package/dist/features/textures/lib/wasm/marble-bytes.js.map +7 -0
- package/dist/features/textures/lib/wasm/memory.d.ts +31 -0
- package/dist/features/textures/lib/wasm/memory.js +103 -0
- package/dist/features/textures/lib/wasm/memory.js.map +7 -0
- package/dist/features/textures/lib/wasm/paper-bytes.d.ts +1 -0
- package/dist/features/textures/lib/wasm/paper-bytes.js +5 -0
- package/dist/features/textures/lib/wasm/paper-bytes.js.map +7 -0
- package/dist/features/textures/lib/wasm/tendrils-bytes.d.ts +1 -0
- package/dist/features/textures/lib/wasm/tendrils-bytes.js +5 -0
- package/dist/features/textures/lib/wasm/tendrils-bytes.js.map +7 -0
- package/dist/features/textures/lib/wasm/water-surface-bytes.d.ts +1 -0
- package/dist/features/textures/lib/wasm/water-surface-bytes.js +5 -0
- package/dist/features/textures/lib/wasm/water-surface-bytes.js.map +7 -0
- package/dist/features/textures/lib/wasm/water-waves-bytes.d.ts +1 -0
- package/dist/features/textures/lib/wasm/water-waves-bytes.js +5 -0
- package/dist/features/textures/lib/wasm/water-waves-bytes.js.map +7 -0
- package/dist/features/textures/lib/water-surface.d.ts +92 -0
- package/dist/features/textures/lib/water-surface.js +378 -0
- package/dist/features/textures/lib/water-surface.js.map +7 -0
- package/dist/features/textures/lib/water-waves.d.ts +60 -0
- package/dist/features/textures/lib/water-waves.js +154 -0
- package/dist/features/textures/lib/water-waves.js.map +7 -0
- package/dist/features/viz/index.d.ts +28 -0
- package/dist/features/viz/index.js +45 -0
- package/dist/features/viz/index.js.map +7 -0
- package/dist/features/viz/index.mjs +1 -0
- package/dist/features/viz/lib/anchored-layout.d.ts +104 -0
- package/dist/features/viz/lib/anchored-layout.js +166 -0
- package/dist/features/viz/lib/anchored-layout.js.map +7 -0
- package/dist/features/viz/lib/axis.d.ts +10 -0
- package/dist/features/viz/lib/axis.js +116 -0
- package/dist/features/viz/lib/axis.js.map +7 -0
- package/dist/features/viz/lib/band-scale.d.ts +3 -0
- package/dist/features/viz/lib/band-scale.js +57 -0
- package/dist/features/viz/lib/band-scale.js.map +7 -0
- package/dist/features/viz/lib/bar-fill.d.ts +16 -0
- package/dist/features/viz/lib/bar-fill.js +53 -0
- package/dist/features/viz/lib/bar-fill.js.map +7 -0
- package/dist/features/viz/lib/bar-series.d.ts +150 -0
- package/dist/features/viz/lib/bar-series.js +152 -0
- package/dist/features/viz/lib/bar-series.js.map +7 -0
- package/dist/features/viz/lib/hover-card.d.ts +92 -0
- package/dist/features/viz/lib/hover-card.js +146 -0
- package/dist/features/viz/lib/hover-card.js.map +7 -0
- package/dist/features/viz/lib/hover-data.d.ts +12 -0
- package/dist/features/viz/lib/hover-data.js +50 -0
- package/dist/features/viz/lib/hover-data.js.map +7 -0
- package/dist/features/viz/lib/hover-placement.d.ts +46 -0
- package/dist/features/viz/lib/hover-placement.js +51 -0
- package/dist/features/viz/lib/hover-placement.js.map +7 -0
- package/dist/features/viz/lib/hover-queries.d.ts +60 -0
- package/dist/features/viz/lib/hover-queries.js +185 -0
- package/dist/features/viz/lib/hover-queries.js.map +7 -0
- package/dist/features/viz/lib/hover-types.d.ts +277 -0
- package/dist/features/viz/lib/layout-pie.d.ts +13 -0
- package/dist/features/viz/lib/layout-pie.js +159 -0
- package/dist/features/viz/lib/layout-pie.js.map +7 -0
- package/dist/features/viz/lib/line-series.d.ts +11 -0
- package/dist/features/viz/lib/line-series.js +89 -0
- package/dist/features/viz/lib/line-series.js.map +7 -0
- package/dist/features/viz/lib/linear-scale.d.ts +3 -0
- package/dist/features/viz/lib/linear-scale.js +70 -0
- package/dist/features/viz/lib/linear-scale.js.map +7 -0
- package/dist/features/viz/lib/nearest.d.ts +82 -0
- package/dist/features/viz/lib/nearest.js +51 -0
- package/dist/features/viz/lib/nearest.js.map +7 -0
- package/dist/features/viz/lib/paint.d.ts +2 -0
- package/dist/features/viz/lib/paint.js +17 -0
- package/dist/features/viz/lib/paint.js.map +7 -0
- package/dist/features/viz/lib/pie-layout.d.ts +31 -0
- package/dist/features/viz/lib/pie-layout.js +324 -0
- package/dist/features/viz/lib/pie-layout.js.map +7 -0
- package/dist/features/viz/lib/pie-slices.d.ts +51 -0
- package/dist/features/viz/lib/pie-slices.js +50 -0
- package/dist/features/viz/lib/pie-slices.js.map +7 -0
- package/dist/features/viz/lib/pie-types.d.ts +215 -0
- package/dist/features/viz/lib/plot-series.d.ts +13 -0
- package/dist/features/viz/lib/plot-series.js +53 -0
- package/dist/features/viz/lib/plot-series.js.map +7 -0
- package/dist/features/viz/lib/plot-types.d.ts +63 -0
- package/dist/features/viz/lib/point-data.d.ts +5 -0
- package/dist/features/viz/lib/point-data.js +17 -0
- package/dist/features/viz/lib/point-data.js.map +7 -0
- package/dist/features/viz/lib/point-geometry.d.ts +2 -0
- package/dist/features/viz/lib/point-geometry.js +24 -0
- package/dist/features/viz/lib/point-geometry.js.map +7 -0
- package/dist/features/viz/lib/point-series.d.ts +11 -0
- package/dist/features/viz/lib/point-series.js +118 -0
- package/dist/features/viz/lib/point-series.js.map +7 -0
- package/dist/features/viz/lib/point-types.d.ts +94 -0
- package/dist/features/viz/lib/scale-adjust.d.ts +11 -0
- package/dist/features/viz/lib/scale-adjust.js +25 -0
- package/dist/features/viz/lib/scale-adjust.js.map +7 -0
- package/dist/features/viz/lib/scale-context.d.ts +8 -0
- package/dist/features/viz/lib/scale-context.js +61 -0
- package/dist/features/viz/lib/scale-context.js.map +7 -0
- package/dist/features/viz/lib/scale.d.ts +11 -0
- package/dist/features/viz/lib/scale.js +80 -0
- package/dist/features/viz/lib/scale.js.map +7 -0
- package/dist/features/viz/lib/types.d.ts +414 -0
- package/dist/features/viz/lib/use-scale.d.ts +20 -0
- package/dist/features/viz/lib/use-scale.js +10 -0
- package/dist/features/viz/lib/use-scale.js.map +7 -0
- package/dist/filters/displacement-gpu.d.ts +38 -0
- package/dist/filters/displacement-gpu.js +243 -0
- package/dist/filters/displacement-gpu.js.map +7 -0
- package/dist/filters/displacement-math.d.ts +5 -0
- package/dist/filters/displacement-math.js +22 -0
- package/dist/filters/displacement-math.js.map +7 -0
- package/dist/filters/displacement.d.ts +13 -0
- package/dist/filters/displacement.js +65 -0
- package/dist/filters/displacement.js.map +7 -0
- package/dist/filters/filter-executor.d.ts +21 -0
- package/dist/filters/filter-executor.js +120 -0
- package/dist/filters/filter-executor.js.map +7 -0
- package/dist/filters/native-canvas-filter.d.ts +4 -0
- package/dist/filters/native-canvas-filter.js +105 -0
- package/dist/filters/native-canvas-filter.js.map +7 -0
- package/dist/filters/native-color.d.ts +2 -0
- package/dist/filters/native-color.js +200 -0
- package/dist/filters/native-color.js.map +7 -0
- package/dist/filters/native-operations.d.ts +8 -0
- package/dist/filters/native-operations.js +7 -0
- package/dist/filters/native-operations.js.map +7 -0
- package/dist/filters/native.d.ts +113 -0
- package/dist/filters/native.js +115 -0
- package/dist/filters/native.js.map +7 -0
- package/dist/filters/reflected-light.d.ts +12 -0
- package/dist/filters/reflected-light.js +93 -0
- package/dist/filters/reflected-light.js.map +7 -0
- package/dist/filters/reflection-gpu.d.ts +58 -0
- package/dist/filters/reflection-gpu.js +266 -0
- package/dist/filters/reflection-gpu.js.map +7 -0
- package/dist/filters/render-displacement-boundary.d.ts +12 -0
- package/dist/filters/render-displacement-boundary.js +116 -0
- package/dist/filters/render-displacement-boundary.js.map +7 -0
- package/dist/filters/render-reflection-boundary.d.ts +15 -0
- package/dist/filters/render-reflection-boundary.js +127 -0
- package/dist/filters/render-reflection-boundary.js.map +7 -0
- package/dist/filters.d.ts +5 -0
- package/dist/filters.js +29 -0
- package/dist/filters.js.map +7 -0
- package/dist/filters.mjs +1 -0
- package/dist/index.d.ts +111 -0
- package/dist/index.js +300 -0
- package/dist/index.js.map +7 -0
- package/dist/index.mjs +1 -0
- package/dist/internal.d.ts +160 -0
- package/dist/internal.js +320 -0
- package/dist/internal.js.map +7 -0
- package/dist/internal.mjs +1 -0
- package/dist/jsx-dev-runtime.d.ts +35 -0
- package/dist/jsx-dev-runtime.js +6 -0
- package/dist/jsx-dev-runtime.js.map +7 -0
- package/dist/jsx-dev-runtime.mjs +1 -0
- package/dist/jsx-runtime.d.ts +35 -0
- package/dist/jsx-runtime.js +7 -0
- package/dist/jsx-runtime.js.map +7 -0
- package/dist/jsx-runtime.mjs +1 -0
- package/dist/lib/animation/definition.d.ts +140 -0
- package/dist/lib/animation/definition.js +605 -0
- package/dist/lib/animation/definition.js.map +7 -0
- package/dist/lib/animation/easing.d.ts +55 -0
- package/dist/lib/animation/easing.js +112 -0
- package/dist/lib/animation/easing.js.map +7 -0
- package/dist/lib/animation/evaluate.d.ts +118 -0
- package/dist/lib/animation/evaluate.js +2398 -0
- package/dist/lib/animation/evaluate.js.map +7 -0
- package/dist/lib/animation/playback.d.ts +30 -0
- package/dist/lib/animation/playback.js +932 -0
- package/dist/lib/animation/playback.js.map +7 -0
- package/dist/lib/animation/program.d.ts +145 -0
- package/dist/lib/animation/program.js +741 -0
- package/dist/lib/animation/program.js.map +7 -0
- package/dist/lib/animation/spring.d.ts +30 -0
- package/dist/lib/animation/spring.js +324 -0
- package/dist/lib/animation/spring.js.map +7 -0
- package/dist/lib/animation/types.d.ts +418 -0
- package/dist/lib/animation/writer-leases.d.ts +47 -0
- package/dist/lib/animation/writer-leases.js +314 -0
- package/dist/lib/animation/writer-leases.js.map +7 -0
- package/dist/lib/backend/canvas-2d-backend.d.ts +4 -0
- package/dist/lib/backend/canvas-2d-backend.js +97 -0
- package/dist/lib/backend/canvas-2d-backend.js.map +7 -0
- package/dist/lib/backend/types.d.ts +309 -0
- package/dist/lib/backend/types.js +26 -0
- package/dist/lib/backend/types.js.map +7 -0
- package/dist/lib/components/arc-geometry.d.ts +4 -0
- package/dist/lib/components/arc-geometry.js +46 -0
- package/dist/lib/components/arc-geometry.js.map +7 -0
- package/dist/lib/components/arc.d.ts +55 -0
- package/dist/lib/components/arc.js +91 -0
- package/dist/lib/components/arc.js.map +7 -0
- package/dist/lib/components/circle.d.ts +49 -0
- package/dist/lib/components/circle.js +46 -0
- package/dist/lib/components/circle.js.map +7 -0
- package/dist/lib/components/clip.d.ts +43 -0
- package/dist/lib/components/clip.js +24 -0
- package/dist/lib/components/clip.js.map +7 -0
- package/dist/lib/components/ellipse.d.ts +53 -0
- package/dist/lib/components/ellipse.js +59 -0
- package/dist/lib/components/ellipse.js.map +7 -0
- package/dist/lib/components/g.d.ts +56 -0
- package/dist/lib/components/g.js +24 -0
- package/dist/lib/components/g.js.map +7 -0
- package/dist/lib/components/horizontal-line.d.ts +56 -0
- package/dist/lib/components/horizontal-line.js +71 -0
- package/dist/lib/components/horizontal-line.js.map +7 -0
- package/dist/lib/components/html-box.d.ts +16 -0
- package/dist/lib/components/html-box.js +57 -0
- package/dist/lib/components/html-box.js.map +7 -0
- package/dist/lib/components/img.d.ts +24 -0
- package/dist/lib/components/img.js +150 -0
- package/dist/lib/components/img.js.map +7 -0
- package/dist/lib/components/layer-node-equality.d.ts +65 -0
- package/dist/lib/components/layer-node-equality.js +91 -0
- package/dist/lib/components/layer-node-equality.js.map +7 -0
- package/dist/lib/components/layer.d.ts +34 -0
- package/dist/lib/components/layer.js +172 -0
- package/dist/lib/components/layer.js.map +7 -0
- package/dist/lib/components/line.d.ts +51 -0
- package/dist/lib/components/line.js +76 -0
- package/dist/lib/components/line.js.map +7 -0
- package/dist/lib/components/path.d.ts +28 -0
- package/dist/lib/components/path.js +47 -0
- package/dist/lib/components/path.js.map +7 -0
- package/dist/lib/components/polygon.d.ts +45 -0
- package/dist/lib/components/polygon.js +93 -0
- package/dist/lib/components/polygon.js.map +7 -0
- package/dist/lib/components/rect.d.ts +24 -0
- package/dist/lib/components/rect.js +83 -0
- package/dist/lib/components/rect.js.map +7 -0
- package/dist/lib/components/regular-polygon.d.ts +102 -0
- package/dist/lib/components/regular-polygon.js +112 -0
- package/dist/lib/components/regular-polygon.js.map +7 -0
- package/dist/lib/components/rounded-corner-style.d.ts +7 -0
- package/dist/lib/components/rounded-corner-style.js +40 -0
- package/dist/lib/components/rounded-corner-style.js.map +7 -0
- package/dist/lib/components/shape-style.d.ts +7 -0
- package/dist/lib/components/shape-style.js +52 -0
- package/dist/lib/components/shape-style.js.map +7 -0
- package/dist/lib/components/star.d.ts +56 -0
- package/dist/lib/components/star.js +98 -0
- package/dist/lib/components/star.js.map +7 -0
- package/dist/lib/components/structural-events.d.ts +10 -0
- package/dist/lib/components/structural-events.js +8 -0
- package/dist/lib/components/structural-events.js.map +7 -0
- package/dist/lib/components/svg-path.d.ts +23 -0
- package/dist/lib/components/svg-path.js +25 -0
- package/dist/lib/components/svg-path.js.map +7 -0
- package/dist/lib/components/text-layout.d.ts +31 -0
- package/dist/lib/components/text-layout.js +139 -0
- package/dist/lib/components/text-layout.js.map +7 -0
- package/dist/lib/components/text.d.ts +29 -0
- package/dist/lib/components/text.js +174 -0
- package/dist/lib/components/text.js.map +7 -0
- package/dist/lib/components/vertical-line.d.ts +57 -0
- package/dist/lib/components/vertical-line.js +71 -0
- package/dist/lib/components/vertical-line.js.map +7 -0
- package/dist/lib/components/wedge.d.ts +55 -0
- package/dist/lib/components/wedge.js +93 -0
- package/dist/lib/components/wedge.js.map +7 -0
- package/dist/lib/define-primitive.d.ts +82 -0
- package/dist/lib/define-primitive.js +85 -0
- package/dist/lib/define-primitive.js.map +7 -0
- package/dist/lib/development.d.ts +2 -0
- package/dist/lib/development.js +5 -0
- package/dist/lib/development.js.map +7 -0
- package/dist/lib/element/children.d.ts +16 -0
- package/dist/lib/element/children.js +333 -0
- package/dist/lib/element/children.js.map +7 -0
- package/dist/lib/element/create-element.d.ts +34 -0
- package/dist/lib/element/create-element.js +75 -0
- package/dist/lib/element/create-element.js.map +7 -0
- package/dist/lib/element/fragment.d.ts +15 -0
- package/dist/lib/element/fragment.js +11 -0
- package/dist/lib/element/fragment.js.map +7 -0
- package/dist/lib/element/jsx-runtime.d.ts +48 -0
- package/dist/lib/element/jsx-runtime.js +16 -0
- package/dist/lib/element/jsx-runtime.js.map +7 -0
- package/dist/lib/element/metadata.d.ts +96 -0
- package/dist/lib/element/metadata.js +160 -0
- package/dist/lib/element/metadata.js.map +7 -0
- package/dist/lib/element/resolve-primitive-inputs.d.ts +12 -0
- package/dist/lib/element/resolve-primitive-inputs.js +83 -0
- package/dist/lib/element/resolve-primitive-inputs.js.map +7 -0
- package/dist/lib/element/types.d.ts +123 -0
- package/dist/lib/element-enhancers.d.ts +134 -0
- package/dist/lib/element-enhancers.js +193 -0
- package/dist/lib/element-enhancers.js.map +7 -0
- package/dist/lib/events/adapters/clipboard.d.ts +9 -0
- package/dist/lib/events/adapters/clipboard.js +23 -0
- package/dist/lib/events/adapters/clipboard.js.map +7 -0
- package/dist/lib/events/adapters/drag.d.ts +12 -0
- package/dist/lib/events/adapters/drag.js +29 -0
- package/dist/lib/events/adapters/drag.js.map +7 -0
- package/dist/lib/events/adapters/editing.d.ts +15 -0
- package/dist/lib/events/adapters/editing.js +41 -0
- package/dist/lib/events/adapters/editing.js.map +7 -0
- package/dist/lib/events/adapters/keyboard-focus.d.ts +12 -0
- package/dist/lib/events/adapters/keyboard-focus.js +36 -0
- package/dist/lib/events/adapters/keyboard-focus.js.map +7 -0
- package/dist/lib/events/adapters/mouse.d.ts +17 -0
- package/dist/lib/events/adapters/mouse.js +32 -0
- package/dist/lib/events/adapters/mouse.js.map +7 -0
- package/dist/lib/events/adapters/pointer.d.ts +19 -0
- package/dist/lib/events/adapters/pointer.js +40 -0
- package/dist/lib/events/adapters/pointer.js.map +7 -0
- package/dist/lib/events/adapters/touch.d.ts +16 -0
- package/dist/lib/events/adapters/touch.js +36 -0
- package/dist/lib/events/adapters/touch.js.map +7 -0
- package/dist/lib/events/adapters/wheel.d.ts +10 -0
- package/dist/lib/events/adapters/wheel.js +16 -0
- package/dist/lib/events/adapters/wheel.js.map +7 -0
- package/dist/lib/events/boundary-transitions.d.ts +9 -0
- package/dist/lib/events/boundary-transitions.js +16 -0
- package/dist/lib/events/boundary-transitions.js.map +7 -0
- package/dist/lib/events/dispatch.d.ts +21 -0
- package/dist/lib/events/dispatch.js +1078 -0
- package/dist/lib/events/dispatch.js.map +7 -0
- package/dist/lib/events/event-definitions.d.ts +23 -0
- package/dist/lib/events/event-definitions.js +74 -0
- package/dist/lib/events/event-definitions.js.map +7 -0
- package/dist/lib/events/event-facade.d.ts +19 -0
- package/dist/lib/events/event-facade.js +188 -0
- package/dist/lib/events/event-facade.js.map +7 -0
- package/dist/lib/events/event-path.d.ts +3 -0
- package/dist/lib/events/event-path.js +43 -0
- package/dist/lib/events/event-path.js.map +7 -0
- package/dist/lib/events/hit-test.d.ts +13 -0
- package/dist/lib/events/hit-test.js +135 -0
- package/dist/lib/events/hit-test.js.map +7 -0
- package/dist/lib/events/native-listener-hub.d.ts +10 -0
- package/dist/lib/events/native-listener-hub.js +72 -0
- package/dist/lib/events/native-listener-hub.js.map +7 -0
- package/dist/lib/events/paint-entry.d.ts +66 -0
- package/dist/lib/events/paint-entry.js +30 -0
- package/dist/lib/events/paint-entry.js.map +7 -0
- package/dist/lib/events/pointer-capture.d.ts +23 -0
- package/dist/lib/events/pointer-capture.js +339 -0
- package/dist/lib/events/pointer-capture.js.map +7 -0
- package/dist/lib/events/propagation.d.ts +7 -0
- package/dist/lib/events/propagation.js +56 -0
- package/dist/lib/events/propagation.js.map +7 -0
- package/dist/lib/events/registrations.d.ts +120 -0
- package/dist/lib/events/registrations.js +397 -0
- package/dist/lib/events/registrations.js.map +7 -0
- package/dist/lib/events/resolver-input.d.ts +25 -0
- package/dist/lib/events/resolver-input.js +62 -0
- package/dist/lib/events/resolver-input.js.map +7 -0
- package/dist/lib/events/types.d.ts +596 -0
- package/dist/lib/execute-render.d.ts +9 -0
- package/dist/lib/execute-render.js +195 -0
- package/dist/lib/execute-render.js.map +7 -0
- package/dist/lib/filter/canvas-state.d.ts +2 -0
- package/dist/lib/filter/canvas-state.js +31 -0
- package/dist/lib/filter/canvas-state.js.map +7 -0
- package/dist/lib/filter/filter-region.d.ts +33 -0
- package/dist/lib/filter/filter-region.js +291 -0
- package/dist/lib/filter/filter-region.js.map +7 -0
- package/dist/lib/filter/filter-surface-pool.d.ts +38 -0
- package/dist/lib/filter/filter-surface-pool.js +252 -0
- package/dist/lib/filter/filter-surface-pool.js.map +7 -0
- package/dist/lib/filter/render-filter-boundary.d.ts +14 -0
- package/dist/lib/filter/render-filter-boundary.js +211 -0
- package/dist/lib/filter/render-filter-boundary.js.map +7 -0
- package/dist/lib/focus/directional-navigation.d.ts +12 -0
- package/dist/lib/focus/directional-navigation.js +86 -0
- package/dist/lib/focus/directional-navigation.js.map +7 -0
- package/dist/lib/focus/dom-focus-host.d.ts +13 -0
- package/dist/lib/focus/dom-focus-host.js +352 -0
- package/dist/lib/focus/dom-focus-host.js.map +7 -0
- package/dist/lib/focus/dom-tab-stops.d.ts +3 -0
- package/dist/lib/focus/dom-tab-stops.js +71 -0
- package/dist/lib/focus/dom-tab-stops.js.map +7 -0
- package/dist/lib/focus/focus-events.d.ts +4 -0
- package/dist/lib/focus/focus-events.js +78 -0
- package/dist/lib/focus/focus-events.js.map +7 -0
- package/dist/lib/focus/focus-manager.d.ts +121 -0
- package/dist/lib/focus/focus-manager.js +1131 -0
- package/dist/lib/focus/focus-manager.js.map +7 -0
- package/dist/lib/focus/geometry.d.ts +4 -0
- package/dist/lib/focus/geometry.js +64 -0
- package/dist/lib/focus/geometry.js.map +7 -0
- package/dist/lib/focus/html-focus-region.d.ts +27 -0
- package/dist/lib/focus/keyboard-defaults.d.ts +7 -0
- package/dist/lib/focus/keyboard-defaults.js +110 -0
- package/dist/lib/focus/keyboard-defaults.js.map +7 -0
- package/dist/lib/focus/policy-components.d.ts +45 -0
- package/dist/lib/focus/policy-components.js +94 -0
- package/dist/lib/focus/policy-components.js.map +7 -0
- package/dist/lib/focus/types.d.ts +37 -0
- package/dist/lib/focus/types.js +7 -0
- package/dist/lib/focus/types.js.map +7 -0
- package/dist/lib/geometry/circle.d.ts +22 -0
- package/dist/lib/geometry/circle.js +13 -0
- package/dist/lib/geometry/circle.js.map +7 -0
- package/dist/lib/geometry/circular-sweep.d.ts +54 -0
- package/dist/lib/geometry/circular-sweep.js +95 -0
- package/dist/lib/geometry/circular-sweep.js.map +7 -0
- package/dist/lib/geometry/ellipse.d.ts +26 -0
- package/dist/lib/geometry/ellipse.js +17 -0
- package/dist/lib/geometry/ellipse.js.map +7 -0
- package/dist/lib/geometry/line.d.ts +20 -0
- package/dist/lib/geometry/line.js +15 -0
- package/dist/lib/geometry/line.js.map +7 -0
- package/dist/lib/geometry/path-arc.d.ts +25 -0
- package/dist/lib/geometry/path-arc.js +57 -0
- package/dist/lib/geometry/path-arc.js.map +7 -0
- package/dist/lib/geometry/path-bend-guide.d.ts +31 -0
- package/dist/lib/geometry/path-bend-guide.js +282 -0
- package/dist/lib/geometry/path-bend-guide.js.map +7 -0
- package/dist/lib/geometry/path-bend-spans.d.ts +31 -0
- package/dist/lib/geometry/path-bend-spans.js +109 -0
- package/dist/lib/geometry/path-bend-spans.js.map +7 -0
- package/dist/lib/geometry/path-bending.d.ts +90 -0
- package/dist/lib/geometry/path-bending.js +202 -0
- package/dist/lib/geometry/path-bending.js.map +7 -0
- package/dist/lib/geometry/path-conversion.d.ts +19 -0
- package/dist/lib/geometry/path-conversion.js +114 -0
- package/dist/lib/geometry/path-conversion.js.map +7 -0
- package/dist/lib/geometry/path-geometry.d.ts +218 -0
- package/dist/lib/geometry/path-geometry.js +557 -0
- package/dist/lib/geometry/path-geometry.js.map +7 -0
- package/dist/lib/geometry/path-radial.d.ts +15 -0
- package/dist/lib/geometry/path-radial.js +107 -0
- package/dist/lib/geometry/path-radial.js.map +7 -0
- package/dist/lib/geometry/path-transforms.d.ts +233 -0
- package/dist/lib/geometry/path-transforms.js +478 -0
- package/dist/lib/geometry/path-transforms.js.map +7 -0
- package/dist/lib/geometry/path-utilities.d.ts +78 -0
- package/dist/lib/geometry/path-utilities.js +341 -0
- package/dist/lib/geometry/path-utilities.js.map +7 -0
- package/dist/lib/geometry/path-wang.d.ts +18 -0
- package/dist/lib/geometry/path-wang.js +136 -0
- package/dist/lib/geometry/path-wang.js.map +7 -0
- package/dist/lib/geometry/path-warp-bezier.d.ts +17 -0
- package/dist/lib/geometry/path-warp-bezier.js +109 -0
- package/dist/lib/geometry/path-warp-bezier.js.map +7 -0
- package/dist/lib/geometry/path-warp.d.ts +27 -0
- package/dist/lib/geometry/path-warp.js +165 -0
- package/dist/lib/geometry/path-warp.js.map +7 -0
- package/dist/lib/geometry/polygon.d.ts +21 -0
- package/dist/lib/geometry/polygon.js +12 -0
- package/dist/lib/geometry/polygon.js.map +7 -0
- package/dist/lib/geometry/rectangle.d.ts +38 -0
- package/dist/lib/geometry/rectangle.js +22 -0
- package/dist/lib/geometry/rectangle.js.map +7 -0
- package/dist/lib/geometry/regular-polygon.d.ts +88 -0
- package/dist/lib/geometry/regular-polygon.js +67 -0
- package/dist/lib/geometry/regular-polygon.js.map +7 -0
- package/dist/lib/geometry/resolve-path.d.ts +4 -0
- package/dist/lib/geometry/resolve-path.js +16 -0
- package/dist/lib/geometry/resolve-path.js.map +7 -0
- package/dist/lib/geometry/rounded-corners.d.ts +28 -0
- package/dist/lib/geometry/rounded-corners.js +118 -0
- package/dist/lib/geometry/rounded-corners.js.map +7 -0
- package/dist/lib/geometry/star.d.ts +39 -0
- package/dist/lib/geometry/star.js +90 -0
- package/dist/lib/geometry/star.js.map +7 -0
- package/dist/lib/geometry/svg-path.d.ts +21 -0
- package/dist/lib/geometry/svg-path.js +7 -0
- package/dist/lib/geometry/svg-path.js.map +7 -0
- package/dist/lib/geometry/transform-bend.d.ts +46 -0
- package/dist/lib/geometry/transform-bend.js +219 -0
- package/dist/lib/geometry/transform-bend.js.map +7 -0
- package/dist/lib/geometry/transform-guide.d.ts +57 -0
- package/dist/lib/geometry/transform-guide.js +157 -0
- package/dist/lib/geometry/transform-guide.js.map +7 -0
- package/dist/lib/geometry/transform-math.d.ts +21 -0
- package/dist/lib/geometry/transform-math.js +91 -0
- package/dist/lib/geometry/transform-math.js.map +7 -0
- package/dist/lib/geometry/transform-mesh.d.ts +39 -0
- package/dist/lib/geometry/transform-mesh.js +129 -0
- package/dist/lib/geometry/transform-mesh.js.map +7 -0
- package/dist/lib/geometry/validation.d.ts +6 -0
- package/dist/lib/geometry/validation.js +42 -0
- package/dist/lib/geometry/validation.js.map +7 -0
- package/dist/lib/global-state.d.ts +63 -0
- package/dist/lib/global-state.js +176 -0
- package/dist/lib/global-state.js.map +7 -0
- package/dist/lib/hooks/hook-slot.d.ts +30 -0
- package/dist/lib/hooks/hook-slot.js +66 -0
- package/dist/lib/hooks/hook-slot.js.map +7 -0
- package/dist/lib/hooks/use-animated-value.d.ts +24 -0
- package/dist/lib/hooks/use-animated-value.js +169 -0
- package/dist/lib/hooks/use-animated-value.js.map +7 -0
- package/dist/lib/hooks/use-canvas-context.d.ts +10 -0
- package/dist/lib/hooks/use-canvas-context.js +13 -0
- package/dist/lib/hooks/use-canvas-context.js.map +7 -0
- package/dist/lib/hooks/use-computed.d.ts +13 -0
- package/dist/lib/hooks/use-computed.js +91 -0
- package/dist/lib/hooks/use-computed.js.map +7 -0
- package/dist/lib/hooks/use-const.d.ts +10 -0
- package/dist/lib/hooks/use-const.js +15 -0
- package/dist/lib/hooks/use-const.js.map +7 -0
- package/dist/lib/hooks/use-cursor.d.ts +16 -0
- package/dist/lib/hooks/use-cursor.js +51 -0
- package/dist/lib/hooks/use-cursor.js.map +7 -0
- package/dist/lib/hooks/use-event-listener.d.ts +10 -0
- package/dist/lib/hooks/use-event-listener.js +24 -0
- package/dist/lib/hooks/use-event-listener.js.map +7 -0
- package/dist/lib/hooks/use-event-target.d.ts +14 -0
- package/dist/lib/hooks/use-event-target.js +30 -0
- package/dist/lib/hooks/use-event-target.js.map +7 -0
- package/dist/lib/hooks/use-layout-box.d.ts +9 -0
- package/dist/lib/hooks/use-layout-box.js +8 -0
- package/dist/lib/hooks/use-layout-box.js.map +7 -0
- package/dist/lib/hooks/use-line-path.d.ts +14 -0
- package/dist/lib/hooks/use-line-path.js +13 -0
- package/dist/lib/hooks/use-line-path.js.map +7 -0
- package/dist/lib/hooks/use-paint-target.d.ts +3 -0
- package/dist/lib/hooks/use-paint-target.js +34 -0
- package/dist/lib/hooks/use-paint-target.js.map +7 -0
- package/dist/lib/hooks/use-playback.d.ts +21 -0
- package/dist/lib/hooks/use-playback.js +87 -0
- package/dist/lib/hooks/use-playback.js.map +7 -0
- package/dist/lib/hooks/use-reaction.d.ts +19 -0
- package/dist/lib/hooks/use-reaction.js +245 -0
- package/dist/lib/hooks/use-reaction.js.map +7 -0
- package/dist/lib/hooks/use-rect-path.d.ts +20 -0
- package/dist/lib/hooks/use-rect-path.js +25 -0
- package/dist/lib/hooks/use-rect-path.js.map +7 -0
- package/dist/lib/hooks/use-ref.d.ts +17 -0
- package/dist/lib/hooks/use-ref.js +8 -0
- package/dist/lib/hooks/use-ref.js.map +7 -0
- package/dist/lib/hooks/use-region.d.ts +11 -0
- package/dist/lib/hooks/use-region.js +34 -0
- package/dist/lib/hooks/use-region.js.map +7 -0
- package/dist/lib/hooks/use-signal.d.ts +12 -0
- package/dist/lib/hooks/use-signal.js +12 -0
- package/dist/lib/hooks/use-signal.js.map +7 -0
- package/dist/lib/hooks/use-svg-path.d.ts +11 -0
- package/dist/lib/hooks/use-svg-path.js +13 -0
- package/dist/lib/hooks/use-svg-path.js.map +7 -0
- package/dist/lib/hooks/use-value-memo-slot.d.ts +12 -0
- package/dist/lib/hooks/use-value-memo-slot.js +45 -0
- package/dist/lib/hooks/use-value-memo-slot.js.map +7 -0
- package/dist/lib/hooks/use-visibility-transition.d.ts +103 -0
- package/dist/lib/hooks/use-visibility-transition.js +195 -0
- package/dist/lib/hooks/use-visibility-transition.js.map +7 -0
- package/dist/lib/html/html-service.d.ts +30 -0
- package/dist/lib/html/html-service.js +281 -0
- package/dist/lib/html/html-service.js.map +7 -0
- package/dist/lib/html/overlay-config.d.ts +3 -0
- package/dist/lib/html/overlay-config.js +37 -0
- package/dist/lib/html/overlay-config.js.map +7 -0
- package/dist/lib/html/portable-clips.d.ts +4 -0
- package/dist/lib/html/portable-clips.js +20 -0
- package/dist/lib/html/portable-clips.js.map +7 -0
- package/dist/lib/html/types.d.ts +110 -0
- package/dist/lib/layout/absolute.d.ts +57 -0
- package/dist/lib/layout/absolute.js +348 -0
- package/dist/lib/layout/absolute.js.map +7 -0
- package/dist/lib/layout/box.d.ts +19 -0
- package/dist/lib/layout/box.js +209 -0
- package/dist/lib/layout/box.js.map +7 -0
- package/dist/lib/layout/context.d.ts +13 -0
- package/dist/lib/layout/context.js +42 -0
- package/dist/lib/layout/context.js.map +7 -0
- package/dist/lib/layout/diagnostics.d.ts +15 -0
- package/dist/lib/layout/diagnostics.js +30 -0
- package/dist/lib/layout/diagnostics.js.map +7 -0
- package/dist/lib/layout/flex.d.ts +64 -0
- package/dist/lib/layout/flex.js +803 -0
- package/dist/lib/layout/flex.js.map +7 -0
- package/dist/lib/layout/flow.d.ts +53 -0
- package/dist/lib/layout/flow.js +400 -0
- package/dist/lib/layout/flow.js.map +7 -0
- package/dist/lib/layout/grid.d.ts +64 -0
- package/dist/lib/layout/grid.js +597 -0
- package/dist/lib/layout/grid.js.map +7 -0
- package/dist/lib/layout/measure.d.ts +19 -0
- package/dist/lib/layout/measure.js +144 -0
- package/dist/lib/layout/measure.js.map +7 -0
- package/dist/lib/layout/overlay.d.ts +42 -0
- package/dist/lib/layout/overlay.js +151 -0
- package/dist/lib/layout/overlay.js.map +7 -0
- package/dist/lib/layout/place-child.d.ts +12 -0
- package/dist/lib/layout/place-child.js +72 -0
- package/dist/lib/layout/place-child.js.map +7 -0
- package/dist/lib/layout/positioning-diagnostics.d.ts +3 -0
- package/dist/lib/layout/positioning-diagnostics.js +15 -0
- package/dist/lib/layout/positioning-diagnostics.js.map +7 -0
- package/dist/lib/layout/types.d.ts +78 -0
- package/dist/lib/manipulation/controller-types.d.ts +299 -0
- package/dist/lib/manipulation/controller.d.ts +57 -0
- package/dist/lib/manipulation/controller.js +464 -0
- package/dist/lib/manipulation/controller.js.map +7 -0
- package/dist/lib/manipulation/coordinates.d.ts +9 -0
- package/dist/lib/manipulation/coordinates.js +55 -0
- package/dist/lib/manipulation/coordinates.js.map +7 -0
- package/dist/lib/manipulation/degrees.d.ts +10 -0
- package/dist/lib/manipulation/degrees.js +9 -0
- package/dist/lib/manipulation/degrees.js.map +7 -0
- package/dist/lib/manipulation/frame.d.ts +24 -0
- package/dist/lib/manipulation/frame.js +101 -0
- package/dist/lib/manipulation/frame.js.map +7 -0
- package/dist/lib/manipulation/geometry.d.ts +4 -0
- package/dist/lib/manipulation/geometry.js +26 -0
- package/dist/lib/manipulation/geometry.js.map +7 -0
- package/dist/lib/manipulation/handles.d.ts +298 -0
- package/dist/lib/manipulation/handles.js +598 -0
- package/dist/lib/manipulation/handles.js.map +7 -0
- package/dist/lib/manipulation/manipulable.d.ts +65 -0
- package/dist/lib/manipulation/manipulable.js +47 -0
- package/dist/lib/manipulation/manipulable.js.map +7 -0
- package/dist/lib/manipulation/ownership.d.ts +15 -0
- package/dist/lib/manipulation/ownership.js +80 -0
- package/dist/lib/manipulation/ownership.js.map +7 -0
- package/dist/lib/manipulation/snap.d.ts +6 -0
- package/dist/lib/manipulation/snap.js +40 -0
- package/dist/lib/manipulation/snap.js.map +7 -0
- package/dist/lib/manipulation/solve.d.ts +2 -0
- package/dist/lib/manipulation/solve.js +563 -0
- package/dist/lib/manipulation/solve.js.map +7 -0
- package/dist/lib/manipulation/types.d.ts +178 -0
- package/dist/lib/mount-pibbl.d.ts +25 -0
- package/dist/lib/mount-pibbl.js +278 -0
- package/dist/lib/mount-pibbl.js.map +7 -0
- package/dist/lib/optional-services.d.ts +8 -0
- package/dist/lib/optional-services.js +11 -0
- package/dist/lib/optional-services.js.map +7 -0
- package/dist/lib/pibbl.d.ts +17 -0
- package/dist/lib/pibbl.js +21 -0
- package/dist/lib/pibbl.js.map +7 -0
- package/dist/lib/primitive-presentation.d.ts +24 -0
- package/dist/lib/primitive-presentation.js +102 -0
- package/dist/lib/primitive-presentation.js.map +7 -0
- package/dist/lib/render-layer/controller.d.ts +67 -0
- package/dist/lib/render-layer/controller.js +603 -0
- package/dist/lib/render-layer/controller.js.map +7 -0
- package/dist/lib/render-layer/define-render-layer.d.ts +17 -0
- package/dist/lib/render-layer/define-render-layer.js +90 -0
- package/dist/lib/render-layer/define-render-layer.js.map +7 -0
- package/dist/lib/render-layer/types.d.ts +315 -0
- package/dist/lib/render-target.d.ts +27 -0
- package/dist/lib/render-target.js +118 -0
- package/dist/lib/render-target.js.map +7 -0
- package/dist/lib/render-transaction.d.ts +10 -0
- package/dist/lib/render-transaction.js +46 -0
- package/dist/lib/render-transaction.js.map +7 -0
- package/dist/lib/render.d.ts +3 -0
- package/dist/lib/render.js +385 -0
- package/dist/lib/render.js.map +7 -0
- package/dist/lib/scheduler/realm-scheduler.d.ts +52 -0
- package/dist/lib/scheduler/realm-scheduler.js +964 -0
- package/dist/lib/scheduler/realm-scheduler.js.map +7 -0
- package/dist/lib/scheduler/renderer-participant.d.ts +257 -0
- package/dist/lib/scheduler/renderer-participant.js +216 -0
- package/dist/lib/scheduler/renderer-participant.js.map +7 -0
- package/dist/lib/scheduler/simulation-participant.d.ts +103 -0
- package/dist/lib/scheduler/simulation-participant.js +229 -0
- package/dist/lib/scheduler/simulation-participant.js.map +7 -0
- package/dist/lib/scheduler/testing.d.ts +56 -0
- package/dist/lib/scheduler/testing.js +71 -0
- package/dist/lib/scheduler/testing.js.map +7 -0
- package/dist/lib/scheduler/types.d.ts +103 -0
- package/dist/lib/signals/edge.d.ts +44 -0
- package/dist/lib/signals/edge.js +245 -0
- package/dist/lib/signals/edge.js.map +7 -0
- package/dist/lib/signals/graph.d.ts +220 -0
- package/dist/lib/signals/graph.js +1035 -0
- package/dist/lib/signals/graph.js.map +7 -0
- package/dist/lib/signals/input-provision.d.ts +3 -0
- package/dist/lib/signals/input-provision.js +67 -0
- package/dist/lib/signals/input-provision.js.map +7 -0
- package/dist/lib/signals/render-consumer.d.ts +21 -0
- package/dist/lib/signals/render-consumer.js +218 -0
- package/dist/lib/signals/render-consumer.js.map +7 -0
- package/dist/lib/signals/resolve-signal-value.d.ts +10 -0
- package/dist/lib/signals/resolve-signal-value.js +17 -0
- package/dist/lib/signals/resolve-signal-value.js.map +7 -0
- package/dist/lib/signals/types.d.ts +80 -0
- package/dist/lib/style/diagnostics.d.ts +83 -0
- package/dist/lib/style/diagnostics.js +63 -0
- package/dist/lib/style/diagnostics.js.map +7 -0
- package/dist/lib/style/empty-style.d.ts +3 -0
- package/dist/lib/style/empty-style.js +5 -0
- package/dist/lib/style/empty-style.js.map +7 -0
- package/dist/lib/style/filter-types.d.ts +243 -0
- package/dist/lib/style/filter-types.js +5 -0
- package/dist/lib/style/filter-types.js.map +7 -0
- package/dist/lib/style/filter.d.ts +7 -0
- package/dist/lib/style/filter.js +50 -0
- package/dist/lib/style/filter.js.map +7 -0
- package/dist/lib/style/normalize.d.ts +18 -0
- package/dist/lib/style/normalize.js +50 -0
- package/dist/lib/style/normalize.js.map +7 -0
- package/dist/lib/style/positioning.d.ts +32 -0
- package/dist/lib/style/positioning.js +81 -0
- package/dist/lib/style/positioning.js.map +7 -0
- package/dist/lib/style/resolve-built-in.d.ts +6 -0
- package/dist/lib/style/resolve-built-in.js +58 -0
- package/dist/lib/style/resolve-built-in.js.map +7 -0
- package/dist/lib/style/resolve-dispatch.d.ts +20 -0
- package/dist/lib/style/resolve-dispatch.js +167 -0
- package/dist/lib/style/resolve-dispatch.js.map +7 -0
- package/dist/lib/style/resolve-length.d.ts +16 -0
- package/dist/lib/style/resolve-length.js +54 -0
- package/dist/lib/style/resolve-length.js.map +7 -0
- package/dist/lib/style/responsive.d.ts +31 -0
- package/dist/lib/style/responsive.js +172 -0
- package/dist/lib/style/responsive.js.map +7 -0
- package/dist/lib/style/types.d.ts +338 -0
- package/dist/lib/surface/resolve-surface.d.ts +4 -0
- package/dist/lib/surface/resolve-surface.js +184 -0
- package/dist/lib/surface/resolve-surface.js.map +7 -0
- package/dist/lib/surface/root-surface.d.ts +7 -0
- package/dist/lib/surface/root-surface.js +171 -0
- package/dist/lib/surface/root-surface.js.map +7 -0
- package/dist/lib/surface/transform.d.ts +4 -0
- package/dist/lib/surface/transform.js +16 -0
- package/dist/lib/surface/transform.js.map +7 -0
- package/dist/lib/surface/types.d.ts +132 -0
- package/dist/lib/teardowns.d.ts +14 -0
- package/dist/lib/teardowns.js +50 -0
- package/dist/lib/teardowns.js.map +7 -0
- package/dist/lib/textures/texture-protocol.d.ts +124 -0
- package/dist/lib/textures/texture-protocol.js +40 -0
- package/dist/lib/textures/texture-protocol.js.map +7 -0
- package/dist/lib/textures/texture.d.ts +170 -0
- package/dist/lib/textures/texture.js +385 -0
- package/dist/lib/textures/texture.js.map +7 -0
- package/dist/lib/transitions/bifrost.d.ts +47 -0
- package/dist/lib/transitions/bifrost.js +91 -0
- package/dist/lib/transitions/bifrost.js.map +7 -0
- package/dist/lib/transitions/binding.d.ts +14 -0
- package/dist/lib/transitions/binding.js +35 -0
- package/dist/lib/transitions/binding.js.map +7 -0
- package/dist/lib/transitions/capture.d.ts +21 -0
- package/dist/lib/transitions/capture.js +91 -0
- package/dist/lib/transitions/capture.js.map +7 -0
- package/dist/lib/transitions/common.d.ts +130 -0
- package/dist/lib/transitions/common.js +57 -0
- package/dist/lib/transitions/common.js.map +7 -0
- package/dist/lib/transitions/define-transition.d.ts +64 -0
- package/dist/lib/transitions/define-transition.js +31 -0
- package/dist/lib/transitions/define-transition.js.map +7 -0
- package/dist/lib/transitions/embers-physics.d.ts +114 -0
- package/dist/lib/transitions/embers-physics.js +161 -0
- package/dist/lib/transitions/embers-physics.js.map +7 -0
- package/dist/lib/transitions/embers.d.ts +67 -0
- package/dist/lib/transitions/embers.js +196 -0
- package/dist/lib/transitions/embers.js.map +7 -0
- package/dist/lib/transitions/fade.d.ts +41 -0
- package/dist/lib/transitions/fade.js +31 -0
- package/dist/lib/transitions/fade.js.map +7 -0
- package/dist/lib/transitions/hologram.d.ts +47 -0
- package/dist/lib/transitions/hologram.js +94 -0
- package/dist/lib/transitions/hologram.js.map +7 -0
- package/dist/lib/transitions/wasm/bifrost-bytes.d.ts +1 -0
- package/dist/lib/transitions/wasm/bifrost-bytes.js +5 -0
- package/dist/lib/transitions/wasm/bifrost-bytes.js.map +7 -0
- package/dist/lib/transitions/wasm/bifrost-kernel.d.ts +1 -0
- package/dist/lib/transitions/wasm/bifrost-kernel.js +27 -0
- package/dist/lib/transitions/wasm/bifrost-kernel.js.map +7 -0
- package/dist/lib/transitions/wasm/embers-bytes.d.ts +1 -0
- package/dist/lib/transitions/wasm/embers-bytes.js +5 -0
- package/dist/lib/transitions/wasm/embers-bytes.js.map +7 -0
- package/dist/lib/transitions/wasm/hologram-bytes.d.ts +1 -0
- package/dist/lib/transitions/wasm/hologram-bytes.js +5 -0
- package/dist/lib/transitions/wasm/hologram-bytes.js.map +7 -0
- package/dist/lib/transitions/wasm/kernel.d.ts +7 -0
- package/dist/lib/transitions/wasm/kernel.js +26 -0
- package/dist/lib/transitions/wasm/kernel.js.map +7 -0
- package/dist/lib/types.d.ts +570 -0
- package/dist/lib/update.d.ts +8 -0
- package/dist/lib/update.js +20 -0
- package/dist/lib/update.js.map +7 -0
- package/dist/lib/util/get-2d-context.d.ts +2 -0
- package/dist/lib/util/get-2d-context.js +11 -0
- package/dist/lib/util/get-2d-context.js.map +7 -0
- package/dist/lib/util/get-mouse-coordinates.d.ts +2 -0
- package/dist/lib/util/get-mouse-coordinates.js +32 -0
- package/dist/lib/util/get-mouse-coordinates.js.map +7 -0
- package/dist/lib/util/is-hit.d.ts +11 -0
- package/dist/lib/util/is-hit.js +52 -0
- package/dist/lib/util/is-hit.js.map +7 -0
- package/dist/lib/util/is-transparent.d.ts +1 -0
- package/dist/lib/util/is-transparent.js +8 -0
- package/dist/lib/util/is-transparent.js.map +7 -0
- package/dist/lib/util/pixel-grid-adjustments.d.ts +8 -0
- package/dist/lib/util/pixel-grid-adjustments.js +28 -0
- package/dist/lib/util/pixel-grid-adjustments.js.map +7 -0
- package/dist/lib/util/push-clipping-path.d.ts +6 -0
- package/dist/lib/util/push-clipping-path.js +28 -0
- package/dist/lib/util/push-clipping-path.js.map +7 -0
- package/dist/lib/util/wire-common-events.d.ts +2 -0
- package/dist/lib/util/wire-common-events.js +15 -0
- package/dist/lib/util/wire-common-events.js.map +7 -0
- package/dist/types.d.ts +1 -0
- package/dist/types.js +1 -0
- package/dist/types.js.map +7 -0
- package/dist/types.mjs +1 -0
- package/package.json +149 -0
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import type { KeyboardNavigation, KeyboardNavigationProps } from "./policy-components.js";
|
|
2
|
+
import type { PibblEventTargetRegistration } from "../events/registrations.js";
|
|
3
|
+
import type { LayoutBox } from "../layout/types.js";
|
|
4
|
+
import type { HtmlFocusRegion } from "./html-focus-region.js";
|
|
5
|
+
export type PibblFocusModality = "keyboard" | "pointer";
|
|
6
|
+
/**
|
|
7
|
+
* Directional keyboard-navigation policy for a focus scope.
|
|
8
|
+
*
|
|
9
|
+
* @see {@link KeyboardNavigation}
|
|
10
|
+
* @see {@link KeyboardNavigationProps}
|
|
11
|
+
*/
|
|
12
|
+
export interface PibblKeyboardNavigationOptions {
|
|
13
|
+
/**
|
|
14
|
+
* Selects the supported mapping, placement, or result policy. See
|
|
15
|
+
* {@link PibblKeyboardNavigationOptions}.
|
|
16
|
+
*/
|
|
17
|
+
readonly mode: "directional";
|
|
18
|
+
}
|
|
19
|
+
export interface PibblDirectionalBoundary {
|
|
20
|
+
readonly candidates: readonly PibblNavigationCandidate[];
|
|
21
|
+
}
|
|
22
|
+
export interface PibblFocusCandidate {
|
|
23
|
+
readonly target: PibblEventTargetRegistration;
|
|
24
|
+
readonly sourceIndex: number;
|
|
25
|
+
readonly directionalBoundary: PibblDirectionalBoundary | undefined;
|
|
26
|
+
readonly rootBounds: Readonly<LayoutBox> | undefined;
|
|
27
|
+
}
|
|
28
|
+
/** @internal A native HtmlBox region participating in the same Pibbl order. */
|
|
29
|
+
export interface PibblHtmlFocusCandidate {
|
|
30
|
+
readonly region: HtmlFocusRegion;
|
|
31
|
+
readonly sourceIndex: number;
|
|
32
|
+
readonly directionalBoundary: PibblDirectionalBoundary | undefined;
|
|
33
|
+
readonly rootBounds: Readonly<LayoutBox> | undefined;
|
|
34
|
+
}
|
|
35
|
+
/** @internal Shared geometry/navigation representation; Canvas events stay Canvas-only. */
|
|
36
|
+
export type PibblNavigationCandidate = PibblFocusCandidate | PibblHtmlFocusCandidate;
|
|
37
|
+
export declare function isHtmlFocusCandidate(candidate: PibblNavigationCandidate): candidate is PibblHtmlFocusCandidate;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/lib/focus/types.ts"],
|
|
4
|
+
"sourcesContent": ["import type { KeyboardNavigation, KeyboardNavigationProps } from './policy-components.js';\nimport type { PibblEventTargetRegistration } from \"../events/registrations.js\";\nimport type { LayoutBox } from \"../layout/types.js\";\nimport type { HtmlFocusRegion } from \"./html-focus-region.js\";\n\nexport type PibblFocusModality = \"keyboard\" | \"pointer\";\n\n/**\n * Directional keyboard-navigation policy for a focus scope.\n *\n * @see {@link KeyboardNavigation}\n * @see {@link KeyboardNavigationProps}\n */\nexport interface PibblKeyboardNavigationOptions {\n /**\n * Selects the supported mapping, placement, or result policy. See\n * {@link PibblKeyboardNavigationOptions}.\n */\n readonly mode: \"directional\";\n}\n\nexport interface PibblDirectionalBoundary {\n readonly candidates: readonly PibblNavigationCandidate[];\n}\n\nexport interface PibblFocusCandidate {\n readonly target: PibblEventTargetRegistration;\n readonly sourceIndex: number;\n readonly directionalBoundary: PibblDirectionalBoundary | undefined;\n readonly rootBounds: Readonly<LayoutBox> | undefined;\n}\n\n/** @internal A native HtmlBox region participating in the same Pibbl order. */\nexport interface PibblHtmlFocusCandidate {\n readonly region: HtmlFocusRegion;\n readonly sourceIndex: number;\n readonly directionalBoundary: PibblDirectionalBoundary | undefined;\n readonly rootBounds: Readonly<LayoutBox> | undefined;\n}\n\n/** @internal Shared geometry/navigation representation; Canvas events stay Canvas-only. */\nexport type PibblNavigationCandidate = PibblFocusCandidate | PibblHtmlFocusCandidate;\n\nexport function isHtmlFocusCandidate(\n candidate: PibblNavigationCandidate,\n): candidate is PibblHtmlFocusCandidate {\n return \"region\" in candidate;\n}\n"],
|
|
5
|
+
"mappings": "AA2CO,SAAS,qBACd,WACsC;AACtC,SAAO,YAAY;AACrB;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Geometry and construction options for a circle path.
|
|
3
|
+
*
|
|
4
|
+
* @see {@link createCirclePath}
|
|
5
|
+
*/
|
|
6
|
+
export interface CirclePathOptions {
|
|
7
|
+
/** Horizontal coordinate of the center. See {@link CirclePathOptions}. */
|
|
8
|
+
cx?: number;
|
|
9
|
+
/** Vertical coordinate of the center. See {@link CirclePathOptions}. */
|
|
10
|
+
cy?: number;
|
|
11
|
+
/** Radius in the coordinate system of this geometry or effect. See {@link CirclePathOptions}. */
|
|
12
|
+
radius: number;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Creates a Canvas Path2D for circle geometry from validated options.
|
|
16
|
+
*
|
|
17
|
+
* @param options - Circle center and radius. See {@link CirclePathOptions}.
|
|
18
|
+
* @returns A native Canvas path containing the circle.
|
|
19
|
+
*
|
|
20
|
+
* @see {@link CirclePathOptions}
|
|
21
|
+
*/
|
|
22
|
+
export declare function createCirclePath(options: Readonly<CirclePathOptions>): Path2D;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { finiteNumber, nonnegativeNumber } from "./validation.js";
|
|
2
|
+
function createCirclePath(options) {
|
|
3
|
+
const cx = finiteNumber(options.cx ?? 0, "cx");
|
|
4
|
+
const cy = finiteNumber(options.cy ?? 0, "cy");
|
|
5
|
+
const radius = nonnegativeNumber(options.radius, "radius");
|
|
6
|
+
const path = new Path2D();
|
|
7
|
+
if (radius > 0) path.arc(cx, cy, radius, 0, Math.PI * 2);
|
|
8
|
+
return path;
|
|
9
|
+
}
|
|
10
|
+
export {
|
|
11
|
+
createCirclePath
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=circle.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/lib/geometry/circle.ts"],
|
|
4
|
+
"sourcesContent": ["import { finiteNumber, nonnegativeNumber } from './validation.js';\n\n/**\n * Geometry and construction options for a circle path.\n *\n * @see {@link createCirclePath}\n */\nexport interface CirclePathOptions {\n /** Horizontal coordinate of the center. See {@link CirclePathOptions}. */\n cx?: number;\n /** Vertical coordinate of the center. See {@link CirclePathOptions}. */\n cy?: number;\n /** Radius in the coordinate system of this geometry or effect. See {@link CirclePathOptions}. */\n radius: number;\n}\n\n/**\n * Creates a Canvas Path2D for circle geometry from validated options.\n *\n * @param options - Circle center and radius. See {@link CirclePathOptions}.\n * @returns A native Canvas path containing the circle.\n *\n * @see {@link CirclePathOptions}\n */\nexport function createCirclePath(options: Readonly<CirclePathOptions>): Path2D {\n const cx = finiteNumber(options.cx ?? 0, 'cx');\n const cy = finiteNumber(options.cy ?? 0, 'cy');\n const radius = nonnegativeNumber(options.radius, 'radius');\n const path = new Path2D();\n if (radius > 0) path.arc(cx, cy, radius, 0, Math.PI * 2);\n return path;\n}\n"],
|
|
5
|
+
"mappings": "AAAA,SAAS,cAAc,yBAAyB;AAwBzC,SAAS,iBAAiB,SAA8C;AAC7E,QAAM,KAAK,aAAa,QAAQ,MAAM,GAAG,IAAI;AAC7C,QAAM,KAAK,aAAa,QAAQ,MAAM,GAAG,IAAI;AAC7C,QAAM,SAAS,kBAAkB,QAAQ,QAAQ,QAAQ;AACzD,QAAM,OAAO,IAAI,OAAO;AACxB,MAAI,SAAS,EAAG,MAAK,IAAI,IAAI,IAAI,QAAQ,GAAG,KAAK,KAAK,CAAC;AACvD,SAAO;AACT;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
export interface CircularSweep {
|
|
2
|
+
readonly startAngle: number;
|
|
3
|
+
readonly endAngle: number;
|
|
4
|
+
readonly sweep: number;
|
|
5
|
+
readonly counterclockwise: boolean;
|
|
6
|
+
readonly fullCircle: boolean;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Geometry and construction options for a arc path.
|
|
10
|
+
*
|
|
11
|
+
* @see {@link createArcPath}
|
|
12
|
+
* @see {@link WedgePathOptions}
|
|
13
|
+
*/
|
|
14
|
+
export interface ArcPathOptions {
|
|
15
|
+
/** Horizontal coordinate of the center. See {@link ArcPathOptions}. */
|
|
16
|
+
cx?: number;
|
|
17
|
+
/** Vertical coordinate of the center. See {@link ArcPathOptions}. */
|
|
18
|
+
cy?: number;
|
|
19
|
+
/** Radius in the coordinate system of this geometry or effect. See {@link ArcPathOptions}. */
|
|
20
|
+
radius: number;
|
|
21
|
+
/** Angle at which the arc or slice begins. See {@link ArcPathOptions}. */
|
|
22
|
+
startAngle: number;
|
|
23
|
+
/** Angle at which the arc or slice ends. See {@link ArcPathOptions}. */
|
|
24
|
+
endAngle: number;
|
|
25
|
+
/** Whether the arc follows the counterclockwise direction. See {@link ArcPathOptions}. */
|
|
26
|
+
counterclockwise?: boolean;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Geometry and construction options for a wedge path.
|
|
30
|
+
*
|
|
31
|
+
* @see {@link ArcPathOptions}
|
|
32
|
+
* @see {@link createWedgePath}
|
|
33
|
+
*/
|
|
34
|
+
export type WedgePathOptions = ArcPathOptions;
|
|
35
|
+
export declare function resolveCircularSweep(startAngle: number, endAngle: number, counterclockwise: boolean): CircularSweep;
|
|
36
|
+
/**
|
|
37
|
+
* Creates a Canvas Path2D for arc geometry from validated options.
|
|
38
|
+
*
|
|
39
|
+
* @param options - Circle center, radius, angles, and sweep direction. See {@link ArcPathOptions}.
|
|
40
|
+
* @returns A native Canvas path containing the arc.
|
|
41
|
+
*
|
|
42
|
+
* @see {@link ArcPathOptions}
|
|
43
|
+
*/
|
|
44
|
+
export declare function createArcPath(options: Readonly<ArcPathOptions>): Path2D;
|
|
45
|
+
/**
|
|
46
|
+
* Creates a Canvas Path2D for wedge geometry from validated options.
|
|
47
|
+
*
|
|
48
|
+
* @param options - Circle center, radius, angles, and sweep direction. See
|
|
49
|
+
* {@link WedgePathOptions} .
|
|
50
|
+
* @returns A native Canvas path containing the closed wedge.
|
|
51
|
+
*
|
|
52
|
+
* @see {@link WedgePathOptions}
|
|
53
|
+
*/
|
|
54
|
+
export declare function createWedgePath(options: Readonly<WedgePathOptions>): Path2D;
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { finiteNumber, nonnegativeNumber } from "./validation.js";
|
|
2
|
+
const fullTurn = Math.PI * 2;
|
|
3
|
+
function resolveCircularSweep(startAngle, endAngle, counterclockwise) {
|
|
4
|
+
const fullCircle = counterclockwise ? startAngle - endAngle >= fullTurn : endAngle - startAngle >= fullTurn;
|
|
5
|
+
let sweep;
|
|
6
|
+
if (fullCircle) {
|
|
7
|
+
sweep = counterclockwise ? -fullTurn : fullTurn;
|
|
8
|
+
} else if (counterclockwise) {
|
|
9
|
+
const distance = positiveModulo(startAngle - endAngle, fullTurn);
|
|
10
|
+
sweep = distance === 0 ? 0 : -distance;
|
|
11
|
+
} else {
|
|
12
|
+
sweep = positiveModulo(endAngle - startAngle, fullTurn);
|
|
13
|
+
}
|
|
14
|
+
return {
|
|
15
|
+
startAngle,
|
|
16
|
+
endAngle: startAngle + sweep,
|
|
17
|
+
sweep,
|
|
18
|
+
counterclockwise,
|
|
19
|
+
fullCircle
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
function createArcPath(options) {
|
|
23
|
+
const normalized = validateArcOptions(options);
|
|
24
|
+
const sweep = resolveCircularSweep(
|
|
25
|
+
normalized.startAngle,
|
|
26
|
+
normalized.endAngle,
|
|
27
|
+
normalized.counterclockwise
|
|
28
|
+
);
|
|
29
|
+
return buildArcPath(normalized.cx, normalized.cy, normalized.radius, sweep);
|
|
30
|
+
}
|
|
31
|
+
function createWedgePath(options) {
|
|
32
|
+
const normalized = validateArcOptions(options);
|
|
33
|
+
const sweep = resolveCircularSweep(
|
|
34
|
+
normalized.startAngle,
|
|
35
|
+
normalized.endAngle,
|
|
36
|
+
normalized.counterclockwise
|
|
37
|
+
);
|
|
38
|
+
return buildWedgePath(normalized.cx, normalized.cy, normalized.radius, sweep);
|
|
39
|
+
}
|
|
40
|
+
function buildArcPath(cx, cy, radius, sweep) {
|
|
41
|
+
const path = new Path2D();
|
|
42
|
+
if (radius > 0 && sweep.sweep !== 0) {
|
|
43
|
+
path.arc(
|
|
44
|
+
cx,
|
|
45
|
+
cy,
|
|
46
|
+
radius,
|
|
47
|
+
sweep.startAngle,
|
|
48
|
+
sweep.endAngle,
|
|
49
|
+
sweep.counterclockwise
|
|
50
|
+
);
|
|
51
|
+
}
|
|
52
|
+
return path;
|
|
53
|
+
}
|
|
54
|
+
function buildWedgePath(cx, cy, radius, sweep) {
|
|
55
|
+
const path = new Path2D();
|
|
56
|
+
if (radius <= 0 || sweep.sweep === 0) return path;
|
|
57
|
+
if (!sweep.fullCircle) {
|
|
58
|
+
path.moveTo(cx, cy);
|
|
59
|
+
path.lineTo(
|
|
60
|
+
cx + radius * Math.cos(sweep.startAngle),
|
|
61
|
+
cy + radius * Math.sin(sweep.startAngle)
|
|
62
|
+
);
|
|
63
|
+
}
|
|
64
|
+
path.arc(
|
|
65
|
+
cx,
|
|
66
|
+
cy,
|
|
67
|
+
radius,
|
|
68
|
+
sweep.startAngle,
|
|
69
|
+
sweep.endAngle,
|
|
70
|
+
sweep.counterclockwise
|
|
71
|
+
);
|
|
72
|
+
path.closePath();
|
|
73
|
+
return path;
|
|
74
|
+
}
|
|
75
|
+
function validateArcOptions(options) {
|
|
76
|
+
return {
|
|
77
|
+
cx: finiteNumber(options.cx ?? 0, "cx"),
|
|
78
|
+
cy: finiteNumber(options.cy ?? 0, "cy"),
|
|
79
|
+
radius: nonnegativeNumber(options.radius, "radius"),
|
|
80
|
+
startAngle: finiteNumber(options.startAngle, "startAngle"),
|
|
81
|
+
endAngle: finiteNumber(options.endAngle, "endAngle"),
|
|
82
|
+
counterclockwise: options.counterclockwise ?? false
|
|
83
|
+
};
|
|
84
|
+
}
|
|
85
|
+
function positiveModulo(value, divisor) {
|
|
86
|
+
const result = value % divisor;
|
|
87
|
+
if (result === 0) return 0;
|
|
88
|
+
return result < 0 ? result + divisor : result;
|
|
89
|
+
}
|
|
90
|
+
export {
|
|
91
|
+
createArcPath,
|
|
92
|
+
createWedgePath,
|
|
93
|
+
resolveCircularSweep
|
|
94
|
+
};
|
|
95
|
+
//# sourceMappingURL=circular-sweep.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/lib/geometry/circular-sweep.ts"],
|
|
4
|
+
"sourcesContent": ["import { finiteNumber, nonnegativeNumber } from \"./validation.js\";\n\nconst fullTurn = Math.PI * 2;\n\nexport interface CircularSweep {\n readonly startAngle: number;\n readonly endAngle: number;\n readonly sweep: number;\n readonly counterclockwise: boolean;\n readonly fullCircle: boolean;\n}\n\n/**\n * Geometry and construction options for a arc path.\n *\n * @see {@link createArcPath}\n * @see {@link WedgePathOptions}\n */\nexport interface ArcPathOptions {\n /** Horizontal coordinate of the center. See {@link ArcPathOptions}. */\n cx?: number;\n /** Vertical coordinate of the center. See {@link ArcPathOptions}. */\n cy?: number;\n /** Radius in the coordinate system of this geometry or effect. See {@link ArcPathOptions}. */\n radius: number;\n /** Angle at which the arc or slice begins. See {@link ArcPathOptions}. */\n startAngle: number;\n /** Angle at which the arc or slice ends. See {@link ArcPathOptions}. */\n endAngle: number;\n /** Whether the arc follows the counterclockwise direction. See {@link ArcPathOptions}. */\n counterclockwise?: boolean;\n}\n\n/**\n * Geometry and construction options for a wedge path.\n *\n * @see {@link ArcPathOptions}\n * @see {@link createWedgePath}\n */\nexport type WedgePathOptions = ArcPathOptions;\n\nexport function resolveCircularSweep(\n startAngle: number,\n endAngle: number,\n counterclockwise: boolean,\n): CircularSweep {\n const fullCircle = counterclockwise\n ? startAngle - endAngle >= fullTurn\n : endAngle - startAngle >= fullTurn;\n let sweep: number;\n if (fullCircle) {\n sweep = counterclockwise ? -fullTurn : fullTurn;\n } else if (counterclockwise) {\n const distance = positiveModulo(startAngle - endAngle, fullTurn);\n sweep = distance === 0 ? 0 : -distance;\n } else {\n sweep = positiveModulo(endAngle - startAngle, fullTurn);\n }\n\n return {\n startAngle,\n endAngle: startAngle + sweep,\n sweep,\n counterclockwise,\n fullCircle,\n };\n}\n\n/**\n * Creates a Canvas Path2D for arc geometry from validated options.\n *\n * @param options - Circle center, radius, angles, and sweep direction. See {@link ArcPathOptions}.\n * @returns A native Canvas path containing the arc.\n *\n * @see {@link ArcPathOptions}\n */\nexport function createArcPath(options: Readonly<ArcPathOptions>): Path2D {\n const normalized = validateArcOptions(options);\n const sweep = resolveCircularSweep(\n normalized.startAngle,\n normalized.endAngle,\n normalized.counterclockwise,\n );\n return buildArcPath(normalized.cx, normalized.cy, normalized.radius, sweep);\n}\n\n/**\n * Creates a Canvas Path2D for wedge geometry from validated options.\n *\n * @param options - Circle center, radius, angles, and sweep direction. See\n * {@link WedgePathOptions} .\n * @returns A native Canvas path containing the closed wedge.\n *\n * @see {@link WedgePathOptions}\n */\nexport function createWedgePath(options: Readonly<WedgePathOptions>): Path2D {\n const normalized = validateArcOptions(options);\n const sweep = resolveCircularSweep(\n normalized.startAngle,\n normalized.endAngle,\n normalized.counterclockwise,\n );\n return buildWedgePath(normalized.cx, normalized.cy, normalized.radius, sweep);\n}\n\nfunction buildArcPath(\n cx: number,\n cy: number,\n radius: number,\n sweep: Readonly<CircularSweep>,\n): Path2D {\n const path = new Path2D();\n if (radius > 0 && sweep.sweep !== 0) {\n path.arc(\n cx,\n cy,\n radius,\n sweep.startAngle,\n sweep.endAngle,\n sweep.counterclockwise,\n );\n }\n return path;\n}\n\nfunction buildWedgePath(\n cx: number,\n cy: number,\n radius: number,\n sweep: Readonly<CircularSweep>,\n): Path2D {\n const path = new Path2D();\n if (radius <= 0 || sweep.sweep === 0) return path;\n\n if (!sweep.fullCircle) {\n path.moveTo(cx, cy);\n path.lineTo(\n cx + radius * Math.cos(sweep.startAngle),\n cy + radius * Math.sin(sweep.startAngle),\n );\n }\n path.arc(\n cx,\n cy,\n radius,\n sweep.startAngle,\n sweep.endAngle,\n sweep.counterclockwise,\n );\n path.closePath();\n return path;\n}\n\nfunction validateArcOptions(options: Readonly<ArcPathOptions>): {\n cx: number;\n cy: number;\n radius: number;\n startAngle: number;\n endAngle: number;\n counterclockwise: boolean;\n} {\n return {\n cx: finiteNumber(options.cx ?? 0, \"cx\"),\n cy: finiteNumber(options.cy ?? 0, \"cy\"),\n radius: nonnegativeNumber(options.radius, \"radius\"),\n startAngle: finiteNumber(options.startAngle, \"startAngle\"),\n endAngle: finiteNumber(options.endAngle, \"endAngle\"),\n counterclockwise: options.counterclockwise ?? false,\n };\n}\n\nfunction positiveModulo(value: number, divisor: number): number {\n const result = value % divisor;\n if (result === 0) return 0;\n return result < 0 ? result + divisor : result;\n}\n"],
|
|
5
|
+
"mappings": "AAAA,SAAS,cAAc,yBAAyB;AAEhD,MAAM,WAAW,KAAK,KAAK;AAuCpB,SAAS,qBACd,YACA,UACA,kBACe;AACf,QAAM,aAAa,mBACf,aAAa,YAAY,WACzB,WAAW,cAAc;AAC7B,MAAI;AACJ,MAAI,YAAY;AACd,YAAQ,mBAAmB,CAAC,WAAW;AAAA,EACzC,WAAW,kBAAkB;AAC3B,UAAM,WAAW,eAAe,aAAa,UAAU,QAAQ;AAC/D,YAAQ,aAAa,IAAI,IAAI,CAAC;AAAA,EAChC,OAAO;AACL,YAAQ,eAAe,WAAW,YAAY,QAAQ;AAAA,EACxD;AAEA,SAAO;AAAA,IACL;AAAA,IACA,UAAU,aAAa;AAAA,IACvB;AAAA,IACA;AAAA,IACA;AAAA,EACF;AACF;AAUO,SAAS,cAAc,SAA2C;AACvE,QAAM,aAAa,mBAAmB,OAAO;AAC7C,QAAM,QAAQ;AAAA,IACZ,WAAW;AAAA,IACX,WAAW;AAAA,IACX,WAAW;AAAA,EACb;AACA,SAAO,aAAa,WAAW,IAAI,WAAW,IAAI,WAAW,QAAQ,KAAK;AAC5E;AAWO,SAAS,gBAAgB,SAA6C;AAC3E,QAAM,aAAa,mBAAmB,OAAO;AAC7C,QAAM,QAAQ;AAAA,IACZ,WAAW;AAAA,IACX,WAAW;AAAA,IACX,WAAW;AAAA,EACb;AACA,SAAO,eAAe,WAAW,IAAI,WAAW,IAAI,WAAW,QAAQ,KAAK;AAC9E;AAEA,SAAS,aACP,IACA,IACA,QACA,OACQ;AACR,QAAM,OAAO,IAAI,OAAO;AACxB,MAAI,SAAS,KAAK,MAAM,UAAU,GAAG;AACnC,SAAK;AAAA,MACH;AAAA,MACA;AAAA,MACA;AAAA,MACA,MAAM;AAAA,MACN,MAAM;AAAA,MACN,MAAM;AAAA,IACR;AAAA,EACF;AACA,SAAO;AACT;AAEA,SAAS,eACP,IACA,IACA,QACA,OACQ;AACR,QAAM,OAAO,IAAI,OAAO;AACxB,MAAI,UAAU,KAAK,MAAM,UAAU,EAAG,QAAO;AAE7C,MAAI,CAAC,MAAM,YAAY;AACrB,SAAK,OAAO,IAAI,EAAE;AAClB,SAAK;AAAA,MACH,KAAK,SAAS,KAAK,IAAI,MAAM,UAAU;AAAA,MACvC,KAAK,SAAS,KAAK,IAAI,MAAM,UAAU;AAAA,IACzC;AAAA,EACF;AACA,OAAK;AAAA,IACH;AAAA,IACA;AAAA,IACA;AAAA,IACA,MAAM;AAAA,IACN,MAAM;AAAA,IACN,MAAM;AAAA,EACR;AACA,OAAK,UAAU;AACf,SAAO;AACT;AAEA,SAAS,mBAAmB,SAO1B;AACA,SAAO;AAAA,IACL,IAAI,aAAa,QAAQ,MAAM,GAAG,IAAI;AAAA,IACtC,IAAI,aAAa,QAAQ,MAAM,GAAG,IAAI;AAAA,IACtC,QAAQ,kBAAkB,QAAQ,QAAQ,QAAQ;AAAA,IAClD,YAAY,aAAa,QAAQ,YAAY,YAAY;AAAA,IACzD,UAAU,aAAa,QAAQ,UAAU,UAAU;AAAA,IACnD,kBAAkB,QAAQ,oBAAoB;AAAA,EAChD;AACF;AAEA,SAAS,eAAe,OAAe,SAAyB;AAC9D,QAAM,SAAS,QAAQ;AACvB,MAAI,WAAW,EAAG,QAAO;AACzB,SAAO,SAAS,IAAI,SAAS,UAAU;AACzC;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Geometry and construction options for a ellipse path.
|
|
3
|
+
*
|
|
4
|
+
* @see {@link createEllipsePath}
|
|
5
|
+
*/
|
|
6
|
+
export interface EllipsePathOptions {
|
|
7
|
+
/** Horizontal coordinate of the center. See {@link EllipsePathOptions}. */
|
|
8
|
+
cx?: number;
|
|
9
|
+
/** Vertical coordinate of the center. See {@link EllipsePathOptions}. */
|
|
10
|
+
cy?: number;
|
|
11
|
+
/** Horizontal ellipse radius. See {@link EllipsePathOptions}. */
|
|
12
|
+
radiusX: number;
|
|
13
|
+
/** Vertical ellipse radius. See {@link EllipsePathOptions}. */
|
|
14
|
+
radiusY: number;
|
|
15
|
+
/** Rotation applied to the containing geometry. See {@link EllipsePathOptions}. */
|
|
16
|
+
rotation?: number;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Creates a Canvas Path2D for ellipse geometry from validated options.
|
|
20
|
+
*
|
|
21
|
+
* @param options - Ellipse center, radii, and rotation. See {@link EllipsePathOptions}.
|
|
22
|
+
* @returns A native Canvas path containing the ellipse.
|
|
23
|
+
*
|
|
24
|
+
* @see {@link EllipsePathOptions}
|
|
25
|
+
*/
|
|
26
|
+
export declare function createEllipsePath(options: Readonly<EllipsePathOptions>): Path2D;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { finiteNumber, nonnegativeNumber } from "./validation.js";
|
|
2
|
+
function createEllipsePath(options) {
|
|
3
|
+
const cx = finiteNumber(options.cx ?? 0, "cx");
|
|
4
|
+
const cy = finiteNumber(options.cy ?? 0, "cy");
|
|
5
|
+
const radiusX = nonnegativeNumber(options.radiusX, "radiusX");
|
|
6
|
+
const radiusY = nonnegativeNumber(options.radiusY, "radiusY");
|
|
7
|
+
const rotation = finiteNumber(options.rotation ?? 0, "rotation");
|
|
8
|
+
const path = new Path2D();
|
|
9
|
+
if (radiusX > 0 && radiusY > 0) {
|
|
10
|
+
path.ellipse(cx, cy, radiusX, radiusY, rotation, 0, Math.PI * 2);
|
|
11
|
+
}
|
|
12
|
+
return path;
|
|
13
|
+
}
|
|
14
|
+
export {
|
|
15
|
+
createEllipsePath
|
|
16
|
+
};
|
|
17
|
+
//# sourceMappingURL=ellipse.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/lib/geometry/ellipse.ts"],
|
|
4
|
+
"sourcesContent": ["import { finiteNumber, nonnegativeNumber } from './validation.js';\n\n/**\n * Geometry and construction options for a ellipse path.\n *\n * @see {@link createEllipsePath}\n */\nexport interface EllipsePathOptions {\n /** Horizontal coordinate of the center. See {@link EllipsePathOptions}. */\n cx?: number;\n /** Vertical coordinate of the center. See {@link EllipsePathOptions}. */\n cy?: number;\n /** Horizontal ellipse radius. See {@link EllipsePathOptions}. */\n radiusX: number;\n /** Vertical ellipse radius. See {@link EllipsePathOptions}. */\n radiusY: number;\n /** Rotation applied to the containing geometry. See {@link EllipsePathOptions}. */\n rotation?: number;\n}\n\n/**\n * Creates a Canvas Path2D for ellipse geometry from validated options.\n *\n * @param options - Ellipse center, radii, and rotation. See {@link EllipsePathOptions}.\n * @returns A native Canvas path containing the ellipse.\n *\n * @see {@link EllipsePathOptions}\n */\nexport function createEllipsePath(options: Readonly<EllipsePathOptions>): Path2D {\n const cx = finiteNumber(options.cx ?? 0, 'cx');\n const cy = finiteNumber(options.cy ?? 0, 'cy');\n const radiusX = nonnegativeNumber(options.radiusX, 'radiusX');\n const radiusY = nonnegativeNumber(options.radiusY, 'radiusY');\n const rotation = finiteNumber(options.rotation ?? 0, 'rotation');\n const path = new Path2D();\n if (radiusX > 0 && radiusY > 0) {\n path.ellipse(cx, cy, radiusX, radiusY, rotation, 0, Math.PI * 2);\n }\n return path;\n}\n"],
|
|
5
|
+
"mappings": "AAAA,SAAS,cAAc,yBAAyB;AA4BzC,SAAS,kBAAkB,SAA+C;AAC/E,QAAM,KAAK,aAAa,QAAQ,MAAM,GAAG,IAAI;AAC7C,QAAM,KAAK,aAAa,QAAQ,MAAM,GAAG,IAAI;AAC7C,QAAM,UAAU,kBAAkB,QAAQ,SAAS,SAAS;AAC5D,QAAM,UAAU,kBAAkB,QAAQ,SAAS,SAAS;AAC5D,QAAM,WAAW,aAAa,QAAQ,YAAY,GAAG,UAAU;AAC/D,QAAM,OAAO,IAAI,OAAO;AACxB,MAAI,UAAU,KAAK,UAAU,GAAG;AAC9B,SAAK,QAAQ,IAAI,IAAI,SAAS,SAAS,UAAU,GAAG,KAAK,KAAK,CAAC;AAAA,EACjE;AACA,SAAO;AACT;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Geometry and construction options for a line path.
|
|
3
|
+
*
|
|
4
|
+
* @see {@link createLinePath}
|
|
5
|
+
*/
|
|
6
|
+
export interface LinePathOptions {
|
|
7
|
+
/** Ordered coordinate pairs describing the path vertices. See {@link LinePathOptions}. */
|
|
8
|
+
coords: readonly (readonly [number, number])[];
|
|
9
|
+
/** Whether to connect the final vertex back to the first. See {@link LinePathOptions}. */
|
|
10
|
+
closePath?: boolean;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Creates a Canvas Path2D for line geometry from validated options.
|
|
14
|
+
*
|
|
15
|
+
* @param options - Ordered vertices and whether to close the path. See {@link LinePathOptions}.
|
|
16
|
+
* @returns A native Canvas path containing the line.
|
|
17
|
+
*
|
|
18
|
+
* @see {@link LinePathOptions}
|
|
19
|
+
*/
|
|
20
|
+
export declare function createLinePath(options: Readonly<LinePathOptions>): Path2D;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { validateCoordinates } from "./validation.js";
|
|
2
|
+
function createLinePath(options) {
|
|
3
|
+
const coords = validateCoordinates(options.coords);
|
|
4
|
+
const path = new Path2D();
|
|
5
|
+
coords.forEach(([x, y], index) => {
|
|
6
|
+
if (index === 0) path.moveTo(x, y);
|
|
7
|
+
else path.lineTo(x, y);
|
|
8
|
+
});
|
|
9
|
+
if (options.closePath) path.closePath();
|
|
10
|
+
return path;
|
|
11
|
+
}
|
|
12
|
+
export {
|
|
13
|
+
createLinePath
|
|
14
|
+
};
|
|
15
|
+
//# sourceMappingURL=line.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/lib/geometry/line.ts"],
|
|
4
|
+
"sourcesContent": ["import { validateCoordinates } from './validation.js';\n\n/**\n * Geometry and construction options for a line path.\n *\n * @see {@link createLinePath}\n */\nexport interface LinePathOptions {\n /** Ordered coordinate pairs describing the path vertices. See {@link LinePathOptions}. */\n coords: readonly (readonly [number, number])[];\n /** Whether to connect the final vertex back to the first. See {@link LinePathOptions}. */\n closePath?: boolean;\n}\n\n/**\n * Creates a Canvas Path2D for line geometry from validated options.\n *\n * @param options - Ordered vertices and whether to close the path. See {@link LinePathOptions}.\n * @returns A native Canvas path containing the line.\n *\n * @see {@link LinePathOptions}\n */\nexport function createLinePath(options: Readonly<LinePathOptions>): Path2D {\n const coords = validateCoordinates(options.coords);\n const path = new Path2D();\n coords.forEach(([x, y], index) => {\n if (index === 0) path.moveTo(x, y);\n else path.lineTo(x, y);\n });\n if (options.closePath) path.closePath();\n return path;\n}\n"],
|
|
5
|
+
"mappings": "AAAA,SAAS,2BAA2B;AAsB7B,SAAS,eAAe,SAA4C;AACzE,QAAM,SAAS,oBAAoB,QAAQ,MAAM;AACjD,QAAM,OAAO,IAAI,OAAO;AACxB,SAAO,QAAQ,CAAC,CAAC,GAAG,CAAC,GAAG,UAAU;AAChC,QAAI,UAAU,EAAG,MAAK,OAAO,GAAG,CAAC;AAAA,QAC5B,MAAK,OAAO,GAAG,CAAC;AAAA,EACvB,CAAC;AACD,MAAI,QAAQ,UAAW,MAAK,UAAU;AACtC,SAAO;AACT;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/** @internal Analytic arc representation shared by conversion and geometry math. */
|
|
2
|
+
export interface ArcSegment {
|
|
3
|
+
type: 'arc';
|
|
4
|
+
cx: number;
|
|
5
|
+
cy: number;
|
|
6
|
+
ux: number;
|
|
7
|
+
uy: number;
|
|
8
|
+
vx: number;
|
|
9
|
+
vy: number;
|
|
10
|
+
startAngle: number;
|
|
11
|
+
sweep: number;
|
|
12
|
+
}
|
|
13
|
+
export declare const TAU: number;
|
|
14
|
+
export declare function arcPoint(arc: ArcSegment, angle: number): [number, number];
|
|
15
|
+
export declare function arcSweep(start: number, end: number, ccw: boolean): number;
|
|
16
|
+
/** Singular-value decomposition of a 2x2 ellipse basis. */
|
|
17
|
+
export declare function ellipseParameters(arc: ArcSegment): {
|
|
18
|
+
radiusX: number;
|
|
19
|
+
radiusY: number;
|
|
20
|
+
rotation: number;
|
|
21
|
+
start: number;
|
|
22
|
+
sweep: number;
|
|
23
|
+
} | null;
|
|
24
|
+
/** Preserve all turns in the traversal of an ellipse collapsed onto a line. */
|
|
25
|
+
export declare function singularArcPoints(arc: ArcSegment): [number, number][];
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
const TAU = Math.PI * 2;
|
|
2
|
+
function arcPoint(arc, angle) {
|
|
3
|
+
const cos = Math.cos(angle), sin = Math.sin(angle);
|
|
4
|
+
return [arc.cx + arc.ux * cos + arc.vx * sin, arc.cy + arc.uy * cos + arc.vy * sin];
|
|
5
|
+
}
|
|
6
|
+
function arcSweep(start, end, ccw) {
|
|
7
|
+
const delta = end - start;
|
|
8
|
+
if (!ccw && delta >= TAU) return TAU;
|
|
9
|
+
if (ccw && -delta >= TAU) return -TAU;
|
|
10
|
+
let sweep = (end % TAU - start % TAU) % TAU;
|
|
11
|
+
if (!ccw && sweep < 0) sweep += TAU;
|
|
12
|
+
if (ccw && sweep > 0) sweep -= TAU;
|
|
13
|
+
return sweep;
|
|
14
|
+
}
|
|
15
|
+
function ellipseParameters(arc) {
|
|
16
|
+
const scale = Math.max(Math.abs(arc.ux), Math.abs(arc.uy), Math.abs(arc.vx), Math.abs(arc.vy));
|
|
17
|
+
if (scale === 0) return null;
|
|
18
|
+
const ux = arc.ux / scale, uy = arc.uy / scale, vx = arc.vx / scale, vy = arc.vy / scale;
|
|
19
|
+
const determinant = ux * vy - uy * vx;
|
|
20
|
+
if (determinant === 0) return null;
|
|
21
|
+
const xx = ux * ux + vx * vx, yy = uy * uy + vy * vy, xy = ux * uy + vx * vy;
|
|
22
|
+
const rotation = Math.atan2(2 * xy, xx - yy) / 2;
|
|
23
|
+
const major = Math.sqrt((xx + yy + Math.hypot(xx - yy, 2 * xy)) / 2);
|
|
24
|
+
const minor = Math.abs(determinant) / major;
|
|
25
|
+
const cos = Math.cos(rotation), sin = Math.sin(rotation);
|
|
26
|
+
const phase = Math.atan2((-sin * ux + cos * uy) / minor, (cos * ux + sin * uy) / major);
|
|
27
|
+
const direction = determinant < 0 ? -1 : 1;
|
|
28
|
+
return {
|
|
29
|
+
radiusX: major * scale,
|
|
30
|
+
radiusY: minor * scale,
|
|
31
|
+
rotation,
|
|
32
|
+
start: phase + direction * arc.startAngle,
|
|
33
|
+
sweep: direction * arc.sweep
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
function singularArcPoints(arc) {
|
|
37
|
+
const useX = Math.hypot(arc.ux, arc.vx) >= Math.hypot(arc.uy, arc.vy);
|
|
38
|
+
const turning = Math.atan2(useX ? arc.vx : arc.vy, useX ? arc.ux : arc.uy);
|
|
39
|
+
const end = arc.startAngle + arc.sweep;
|
|
40
|
+
const low = Math.min(arc.startAngle, end), high = Math.max(arc.startAngle, end);
|
|
41
|
+
const angles = [];
|
|
42
|
+
for (let k = Math.ceil((low - turning) / Math.PI); k <= Math.floor((high - turning) / Math.PI); k++) {
|
|
43
|
+
const angle = turning + k * Math.PI;
|
|
44
|
+
if (angle > low && angle < high) angles.push(angle);
|
|
45
|
+
}
|
|
46
|
+
if (arc.sweep < 0) angles.reverse();
|
|
47
|
+
angles.push(end);
|
|
48
|
+
return angles.map((angle) => arcPoint(arc, angle));
|
|
49
|
+
}
|
|
50
|
+
export {
|
|
51
|
+
TAU,
|
|
52
|
+
arcPoint,
|
|
53
|
+
arcSweep,
|
|
54
|
+
ellipseParameters,
|
|
55
|
+
singularArcPoints
|
|
56
|
+
};
|
|
57
|
+
//# sourceMappingURL=path-arc.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/lib/geometry/path-arc.ts"],
|
|
4
|
+
"sourcesContent": ["/** @internal Analytic arc representation shared by conversion and geometry math. */\nexport interface ArcSegment {\n type: 'arc';\n cx: number; cy: number;\n ux: number; uy: number;\n vx: number; vy: number;\n startAngle: number; sweep: number;\n}\nexport const TAU = Math.PI * 2;\nexport function arcPoint(arc: ArcSegment, angle: number): [number, number] {\n const cos = Math.cos(angle), sin = Math.sin(angle);\n return [arc.cx + arc.ux * cos + arc.vx * sin, arc.cy + arc.uy * cos + arc.vy * sin];\n}\nexport function arcSweep(start: number, end: number, ccw: boolean): number {\n const delta = end - start;\n if (!ccw && delta >= TAU) return TAU;\n if (ccw && -delta >= TAU) return -TAU;\n // Reducing separately also avoids overflow in end - start.\n let sweep = ((end % TAU) - (start % TAU)) % TAU;\n if (!ccw && sweep < 0) sweep += TAU;\n if (ccw && sweep > 0) sweep -= TAU;\n return sweep;\n}\n\n/** Singular-value decomposition of a 2x2 ellipse basis. */\nexport function ellipseParameters(arc: ArcSegment) {\n const scale = Math.max(Math.abs(arc.ux), Math.abs(arc.uy), Math.abs(arc.vx), Math.abs(arc.vy));\n if (scale === 0) return null;\n const ux = arc.ux / scale, uy = arc.uy / scale, vx = arc.vx / scale, vy = arc.vy / scale;\n const determinant = ux * vy - uy * vx;\n if (determinant === 0) return null;\n const xx = ux * ux + vx * vx, yy = uy * uy + vy * vy, xy = ux * uy + vx * vy;\n const rotation = Math.atan2(2 * xy, xx - yy) / 2;\n const major = Math.sqrt((xx + yy + Math.hypot(xx - yy, 2 * xy)) / 2);\n const minor = Math.abs(determinant) / major;\n const cos = Math.cos(rotation), sin = Math.sin(rotation);\n const phase = Math.atan2((-sin * ux + cos * uy) / minor, (cos * ux + sin * uy) / major);\n const direction = determinant < 0 ? -1 : 1;\n return {\n radiusX: major * scale, radiusY: minor * scale, rotation,\n start: phase + direction * arc.startAngle, sweep: direction * arc.sweep,\n };\n}\n\n/** Preserve all turns in the traversal of an ellipse collapsed onto a line. */\nexport function singularArcPoints(arc: ArcSegment): [number, number][] {\n const useX = Math.hypot(arc.ux, arc.vx) >= Math.hypot(arc.uy, arc.vy);\n const turning = Math.atan2(useX ? arc.vx : arc.vy, useX ? arc.ux : arc.uy);\n const end = arc.startAngle + arc.sweep;\n const low = Math.min(arc.startAngle, end), high = Math.max(arc.startAngle, end);\n const angles: number[] = [];\n for (let k = Math.ceil((low - turning) / Math.PI); k <= Math.floor((high - turning) / Math.PI); k++) {\n const angle = turning + k * Math.PI;\n if (angle > low && angle < high) angles.push(angle);\n }\n if (arc.sweep < 0) angles.reverse();\n angles.push(end);\n return angles.map(angle => arcPoint(arc, angle));\n}\n"],
|
|
5
|
+
"mappings": "AAQO,MAAM,MAAM,KAAK,KAAK;AACtB,SAAS,SAAS,KAAiB,OAAiC;AACzE,QAAM,MAAM,KAAK,IAAI,KAAK,GAAG,MAAM,KAAK,IAAI,KAAK;AACjD,SAAO,CAAC,IAAI,KAAK,IAAI,KAAK,MAAM,IAAI,KAAK,KAAK,IAAI,KAAK,IAAI,KAAK,MAAM,IAAI,KAAK,GAAG;AACpF;AACO,SAAS,SAAS,OAAe,KAAa,KAAsB;AACzE,QAAM,QAAQ,MAAM;AACpB,MAAI,CAAC,OAAO,SAAS,IAAK,QAAO;AACjC,MAAI,OAAO,CAAC,SAAS,IAAK,QAAO,CAAC;AAElC,MAAI,SAAU,MAAM,MAAQ,QAAQ,OAAQ;AAC5C,MAAI,CAAC,OAAO,QAAQ,EAAG,UAAS;AAChC,MAAI,OAAO,QAAQ,EAAG,UAAS;AAC/B,SAAO;AACT;AAGO,SAAS,kBAAkB,KAAiB;AACjD,QAAM,QAAQ,KAAK,IAAI,KAAK,IAAI,IAAI,EAAE,GAAG,KAAK,IAAI,IAAI,EAAE,GAAG,KAAK,IAAI,IAAI,EAAE,GAAG,KAAK,IAAI,IAAI,EAAE,CAAC;AAC7F,MAAI,UAAU,EAAG,QAAO;AACxB,QAAM,KAAK,IAAI,KAAK,OAAO,KAAK,IAAI,KAAK,OAAO,KAAK,IAAI,KAAK,OAAO,KAAK,IAAI,KAAK;AACnF,QAAM,cAAc,KAAK,KAAK,KAAK;AACnC,MAAI,gBAAgB,EAAG,QAAO;AAC9B,QAAM,KAAK,KAAK,KAAK,KAAK,IAAI,KAAK,KAAK,KAAK,KAAK,IAAI,KAAK,KAAK,KAAK,KAAK;AAC1E,QAAM,WAAW,KAAK,MAAM,IAAI,IAAI,KAAK,EAAE,IAAI;AAC/C,QAAM,QAAQ,KAAK,MAAM,KAAK,KAAK,KAAK,MAAM,KAAK,IAAI,IAAI,EAAE,KAAK,CAAC;AACnE,QAAM,QAAQ,KAAK,IAAI,WAAW,IAAI;AACtC,QAAM,MAAM,KAAK,IAAI,QAAQ,GAAG,MAAM,KAAK,IAAI,QAAQ;AACvD,QAAM,QAAQ,KAAK,OAAO,CAAC,MAAM,KAAK,MAAM,MAAM,QAAQ,MAAM,KAAK,MAAM,MAAM,KAAK;AACtF,QAAM,YAAY,cAAc,IAAI,KAAK;AACzC,SAAO;AAAA,IACL,SAAS,QAAQ;AAAA,IAAO,SAAS,QAAQ;AAAA,IAAO;AAAA,IAChD,OAAO,QAAQ,YAAY,IAAI;AAAA,IAAY,OAAO,YAAY,IAAI;AAAA,EACpE;AACF;AAGO,SAAS,kBAAkB,KAAqC;AACrE,QAAM,OAAO,KAAK,MAAM,IAAI,IAAI,IAAI,EAAE,KAAK,KAAK,MAAM,IAAI,IAAI,IAAI,EAAE;AACpE,QAAM,UAAU,KAAK,MAAM,OAAO,IAAI,KAAK,IAAI,IAAI,OAAO,IAAI,KAAK,IAAI,EAAE;AACzE,QAAM,MAAM,IAAI,aAAa,IAAI;AACjC,QAAM,MAAM,KAAK,IAAI,IAAI,YAAY,GAAG,GAAG,OAAO,KAAK,IAAI,IAAI,YAAY,GAAG;AAC9E,QAAM,SAAmB,CAAC;AAC1B,WAAS,IAAI,KAAK,MAAM,MAAM,WAAW,KAAK,EAAE,GAAG,KAAK,KAAK,OAAO,OAAO,WAAW,KAAK,EAAE,GAAG,KAAK;AACnG,UAAM,QAAQ,UAAU,IAAI,KAAK;AACjC,QAAI,QAAQ,OAAO,QAAQ,KAAM,QAAO,KAAK,KAAK;AAAA,EACpD;AACA,MAAI,IAAI,QAAQ,EAAG,QAAO,QAAQ;AAClC,SAAO,KAAK,GAAG;AACf,SAAO,OAAO,IAAI,WAAS,SAAS,KAAK,KAAK,CAAC;AACjD;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { type BendPoint, type BendSpan } from './path-bend-spans.js';
|
|
2
|
+
import { PathGeometry } from './path-geometry.js';
|
|
3
|
+
interface Field {
|
|
4
|
+
readonly point: BendPoint;
|
|
5
|
+
readonly normal: BendPoint;
|
|
6
|
+
}
|
|
7
|
+
interface Knot extends Field {
|
|
8
|
+
readonly distance: number;
|
|
9
|
+
}
|
|
10
|
+
export interface PreparedBendGuide {
|
|
11
|
+
readonly spans: readonly BendSpan[];
|
|
12
|
+
readonly closed: boolean;
|
|
13
|
+
readonly scale: number;
|
|
14
|
+
}
|
|
15
|
+
/** Validate all guide contours and joins, even if the source uses only part. */
|
|
16
|
+
export declare function prepareBendGuide(path: PathGeometry): PreparedBendGuide;
|
|
17
|
+
/**
|
|
18
|
+
* A continuous piecewise-linear position/normal field with a certified error
|
|
19
|
+
* against the true arc-length field. Interpolated normals are deliberately NOT
|
|
20
|
+
* renormalized: this keeps the internal mapping bilinear within each leaf.
|
|
21
|
+
*/
|
|
22
|
+
export declare function measureBendGuide(prepared: PreparedBendGuide, tolerance: number, maxDisplacement: number, distanceFactor: (length: number) => number): {
|
|
23
|
+
length: number;
|
|
24
|
+
uncertainty: number;
|
|
25
|
+
error: number;
|
|
26
|
+
field: (distance: number, wrap: boolean) => Field;
|
|
27
|
+
knots: Knot[];
|
|
28
|
+
/** Conservative full-field residual, not a sampled flatness heuristic. */
|
|
29
|
+
chordError(low: number, high: number, s0: number, s1: number, d: number, ds: number, dds: number, dy: number, ddy: number, wrap: boolean): number;
|
|
30
|
+
};
|
|
31
|
+
export {};
|