@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,983 @@
|
|
|
1
|
+
import type { PibblEasing } from "@pibbl/core";
|
|
2
|
+
import type { particleChoice, particleCurve, particleGradient, particleInteger, particleRange } from "./particle.js";
|
|
3
|
+
import type { defineParticleEffect2D } from "./definition.js";
|
|
4
|
+
import type { useParticleSystem } from "./system/hook.js";
|
|
5
|
+
import type { Particles2D } from "./canvas/component.js";
|
|
6
|
+
import type { PibblFlowField2D } from "./flow/hook.js";
|
|
7
|
+
import type { BoxStyle, PathGeometry, PibblEventHandlers, PibblEventParticipationOptions, CursorStyle, LayoutBox, LayoutItemStyle, Signal, SignalValue, SystemStyle } from "@pibbl/core";
|
|
8
|
+
/**
|
|
9
|
+
* Whether a parameter is sampled at spawn, simulation, or rendering time.
|
|
10
|
+
*
|
|
11
|
+
* @see {@link PibblParticleParameterDefinition}
|
|
12
|
+
*/
|
|
13
|
+
export type PibblParticleParameterTiming = "spawn" | "simulation" | "render";
|
|
14
|
+
/**
|
|
15
|
+
* A typed default value and sampling phase for a named particle parameter.
|
|
16
|
+
*
|
|
17
|
+
* @see {@link PibblParticleParameterTiming}
|
|
18
|
+
* @see {@link PibblParticleParameterDefinitions}
|
|
19
|
+
* @see {@link PibblParticleValueFor}
|
|
20
|
+
*/
|
|
21
|
+
export type PibblParticleParameterDefinition = Readonly<{
|
|
22
|
+
/** The literal "number" identifying this variant. See {@link PibblParticleParameterDefinition}. */
|
|
23
|
+
type: "number";
|
|
24
|
+
/**
|
|
25
|
+
* Value used when no parameter override is supplied. See
|
|
26
|
+
* {@link PibblParticleParameterDefinition}.
|
|
27
|
+
*/
|
|
28
|
+
default: number;
|
|
29
|
+
/** Phase at which the parameter value is sampled. See {@link PibblParticleParameterTiming}. */
|
|
30
|
+
timing: PibblParticleParameterTiming;
|
|
31
|
+
}> | Readonly<{
|
|
32
|
+
/** The literal "vector2" identifying this variant. See {@link PibblParticleParameterDefinition}. */
|
|
33
|
+
type: "vector2";
|
|
34
|
+
/**
|
|
35
|
+
* Value used when no parameter override is supplied. See
|
|
36
|
+
* {@link PibblParticleParameterDefinition}.
|
|
37
|
+
*/
|
|
38
|
+
default: readonly [number, number];
|
|
39
|
+
/** Phase at which the parameter value is sampled. See {@link PibblParticleParameterTiming}. */
|
|
40
|
+
timing: PibblParticleParameterTiming;
|
|
41
|
+
}> | Readonly<{
|
|
42
|
+
/** The literal "color" identifying this variant. See {@link PibblParticleParameterDefinition}. */
|
|
43
|
+
type: "color";
|
|
44
|
+
/**
|
|
45
|
+
* Value used when no parameter override is supplied. See
|
|
46
|
+
* {@link PibblParticleParameterDefinition}.
|
|
47
|
+
*/
|
|
48
|
+
default: string;
|
|
49
|
+
/** Phase at which the parameter value is sampled. See {@link PibblParticleParameterTiming}. */
|
|
50
|
+
timing: PibblParticleParameterTiming;
|
|
51
|
+
}>;
|
|
52
|
+
/**
|
|
53
|
+
* Named parameter declarations belonging to a particle effect.
|
|
54
|
+
*
|
|
55
|
+
* @see {@link PibblParticleParameterDefinition}
|
|
56
|
+
* @see {@link PibblParticleEffect2DInput}
|
|
57
|
+
* @see {@link PibblParticleValuesOf}
|
|
58
|
+
*/
|
|
59
|
+
export type PibblParticleParameterDefinitions = Readonly<Record<string, PibblParticleParameterDefinition>>;
|
|
60
|
+
/**
|
|
61
|
+
* Derives a parameter's value type from its declared particle parameter kind.
|
|
62
|
+
*
|
|
63
|
+
* @see {@link PibblParticleParameterDefinition}
|
|
64
|
+
* @see {@link PibblParticleValuesOf}
|
|
65
|
+
*/
|
|
66
|
+
export type PibblParticleValueFor<Definition extends PibblParticleParameterDefinition> = Definition["type"] extends "number" ? number : Definition["type"] extends "vector2" ? readonly [number, number] : Definition["type"] extends "color" ? string : never;
|
|
67
|
+
/**
|
|
68
|
+
* Derives the named value record from an effect's parameter definitions.
|
|
69
|
+
*
|
|
70
|
+
* @see {@link PibblParticleParameterDefinitions}
|
|
71
|
+
* @see {@link PibblParticleValueFor}
|
|
72
|
+
* @see {@link defineParticleEffect2D}
|
|
73
|
+
*/
|
|
74
|
+
export type PibblParticleValuesOf<Definitions extends PibblParticleParameterDefinitions | undefined> = Definitions extends PibblParticleParameterDefinitions ? Readonly<{
|
|
75
|
+
[Name in keyof Definitions]: PibblParticleValueFor<Definitions[Name]>;
|
|
76
|
+
}> : Readonly<Record<never, never>>;
|
|
77
|
+
/**
|
|
78
|
+
* A numeric, color, or two-component particle parameter value.
|
|
79
|
+
*
|
|
80
|
+
* @see {@link PibblParticleParameterValues}
|
|
81
|
+
*/
|
|
82
|
+
export type PibblParticleParameterValue = number | string | readonly [number, number];
|
|
83
|
+
/**
|
|
84
|
+
* Values keyed by a particle effect's parameter names.
|
|
85
|
+
*
|
|
86
|
+
* @see {@link PibblParticleParameterValue}
|
|
87
|
+
* @see {@link PibblParticleCommonProps}
|
|
88
|
+
* @see {@link PibblParticleEffect2D}
|
|
89
|
+
*/
|
|
90
|
+
export type PibblParticleParameterValues = Readonly<Record<string, PibblParticleParameterValue>>;
|
|
91
|
+
/**
|
|
92
|
+
* A continuous numeric interval for particle sampling.
|
|
93
|
+
*
|
|
94
|
+
* @see {@link PibblParticleScalar}
|
|
95
|
+
* @see {@link particleRange}
|
|
96
|
+
*/
|
|
97
|
+
export interface PibblParticleRange {
|
|
98
|
+
/** The literal "between" identifying this variant. See {@link PibblParticleRange}. */
|
|
99
|
+
readonly type: "between";
|
|
100
|
+
/** Lower bound of the coordinate or sampling interval. See {@link PibblParticleRange}. */
|
|
101
|
+
readonly min: number;
|
|
102
|
+
/** Upper bound of the coordinate or sampling interval. See {@link PibblParticleRange}. */
|
|
103
|
+
readonly max: number;
|
|
104
|
+
}
|
|
105
|
+
/**
|
|
106
|
+
* An integer-valued random sampling interval.
|
|
107
|
+
*
|
|
108
|
+
* @see {@link PibblParticleEmission}
|
|
109
|
+
* @see {@link PibblParticleScalar}
|
|
110
|
+
* @see {@link particleInteger}
|
|
111
|
+
*/
|
|
112
|
+
export interface PibblParticleIntegerRange {
|
|
113
|
+
/** The literal "integer" identifying this variant. See {@link PibblParticleIntegerRange}. */
|
|
114
|
+
readonly type: "integer";
|
|
115
|
+
/** Lower bound of the coordinate or sampling interval. See {@link PibblParticleIntegerRange}. */
|
|
116
|
+
readonly min: number;
|
|
117
|
+
/** Upper bound of the coordinate or sampling interval. See {@link PibblParticleIntegerRange}. */
|
|
118
|
+
readonly max: number;
|
|
119
|
+
}
|
|
120
|
+
/**
|
|
121
|
+
* A weighted collection of candidate values for particle sampling.
|
|
122
|
+
*
|
|
123
|
+
* @see {@link PibblParticleInitial2D}
|
|
124
|
+
* @see {@link PibblParticleScalar}
|
|
125
|
+
* @see {@link particleChoice}
|
|
126
|
+
*/
|
|
127
|
+
export interface PibblParticleChoice<T> {
|
|
128
|
+
/** The literal "choice" identifying this variant. See {@link PibblParticleChoice}. */
|
|
129
|
+
readonly type: "choice";
|
|
130
|
+
/** Weighted candidate values sampled by the effect. See {@link PibblParticleChoice}. */
|
|
131
|
+
readonly choices: readonly Readonly<{
|
|
132
|
+
/** Value associated with this sample, input, or result. See {@link PibblParticleChoice}. */
|
|
133
|
+
value: T;
|
|
134
|
+
/** Relative sampling weight or source intensity. See {@link PibblParticleChoice}. */
|
|
135
|
+
weight: number;
|
|
136
|
+
}>[];
|
|
137
|
+
}
|
|
138
|
+
/**
|
|
139
|
+
* A symbolic reference resolved against the owning effect's parameter definitions.
|
|
140
|
+
*
|
|
141
|
+
* @see {@link PibblParticleInitial2D}
|
|
142
|
+
* @see {@link PibblParticleScalar}
|
|
143
|
+
* @see {@link PibblParticleVector2}
|
|
144
|
+
*/
|
|
145
|
+
export interface PibblParticleParameterReference<Name extends string> {
|
|
146
|
+
/**
|
|
147
|
+
* The literal "parameter" identifying this variant. See {@link PibblParticleParameterReference}.
|
|
148
|
+
*/
|
|
149
|
+
readonly type: "parameter";
|
|
150
|
+
/**
|
|
151
|
+
* Name identifying this backend, emitter, or parameter. See
|
|
152
|
+
* {@link PibblParticleParameterReference}.
|
|
153
|
+
*/
|
|
154
|
+
readonly name: Name;
|
|
155
|
+
}
|
|
156
|
+
/**
|
|
157
|
+
* A literal, random distribution, weighted choice, or parameter reference yielding a number.
|
|
158
|
+
*
|
|
159
|
+
* @see {@link PibblParticleRange}
|
|
160
|
+
* @see {@link PibblParticleIntegerRange}
|
|
161
|
+
* @see {@link PibblParticleChoice}
|
|
162
|
+
* @see {@link PibblParticleParameterReference}
|
|
163
|
+
* @see {@link PibblParticleInitial2D}
|
|
164
|
+
*/
|
|
165
|
+
export type PibblParticleScalar = number | PibblParticleRange | PibblParticleIntegerRange | PibblParticleChoice<number> | PibblParticleParameterReference<string>;
|
|
166
|
+
/**
|
|
167
|
+
* Two independently sampled scalar values or a reference to a vector parameter.
|
|
168
|
+
*
|
|
169
|
+
* @see {@link PibblParticleScalar}
|
|
170
|
+
* @see {@link PibblParticleParameterReference}
|
|
171
|
+
* @see {@link PibblParticleInitial2D}
|
|
172
|
+
* @see {@link PibblParticleMotion2D}
|
|
173
|
+
*/
|
|
174
|
+
export type PibblParticleVector2 = readonly [PibblParticleScalar, PibblParticleScalar] | PibblParticleParameterReference<string>;
|
|
175
|
+
/**
|
|
176
|
+
* A scalar or two-component value supported by particle curves.
|
|
177
|
+
*
|
|
178
|
+
* @see {@link PibblParticleCurve}
|
|
179
|
+
* @see {@link particleCurve}
|
|
180
|
+
*/
|
|
181
|
+
export type PibblParticleCurveValue = number | readonly [number, number];
|
|
182
|
+
/**
|
|
183
|
+
* Easing used to interpolate between particle keyframes.
|
|
184
|
+
*
|
|
185
|
+
* @see {@link PibblParticleCurve}
|
|
186
|
+
* @see {@link PibblParticleGradient}
|
|
187
|
+
* @see {@link particleCurve}
|
|
188
|
+
* @see {@link PibblEasing}
|
|
189
|
+
*/
|
|
190
|
+
export interface PibblParticleCurveOptions {
|
|
191
|
+
/** Maps normalized progress before interpolation. See {@link PibblParticleCurveOptions}. */
|
|
192
|
+
readonly easing?: import("@pibbl/core").PibblEasing;
|
|
193
|
+
}
|
|
194
|
+
/**
|
|
195
|
+
* Keyframes describing a numeric or two-component value over particle lifetime.
|
|
196
|
+
*
|
|
197
|
+
* @see {@link PibblParticleCurveValue}
|
|
198
|
+
* @see {@link PibblParticleCurveOptions}
|
|
199
|
+
* @see {@link PibblParticleAppearance}
|
|
200
|
+
* @see {@link particleCurve}
|
|
201
|
+
*/
|
|
202
|
+
export interface PibblParticleCurve<T extends PibblParticleCurveValue> {
|
|
203
|
+
/** The literal "curve" identifying this variant. See {@link PibblParticleCurve}. */
|
|
204
|
+
readonly type: "curve";
|
|
205
|
+
/** Ordered keyframes at normalized lifetime positions. See {@link PibblParticleCurve}. */
|
|
206
|
+
readonly keys: readonly (readonly [time: number, value: T])[];
|
|
207
|
+
/** Interpolation options applied between keyframes. See {@link PibblParticleCurveOptions}. */
|
|
208
|
+
readonly options?: PibblParticleCurveOptions;
|
|
209
|
+
}
|
|
210
|
+
/**
|
|
211
|
+
* Color keyframes interpolated across normalized particle lifetime.
|
|
212
|
+
*
|
|
213
|
+
* @see {@link PibblParticleCurveOptions}
|
|
214
|
+
* @see {@link PibblParticleAppearance}
|
|
215
|
+
* @see {@link particleGradient}
|
|
216
|
+
*/
|
|
217
|
+
export interface PibblParticleGradient {
|
|
218
|
+
/** The literal "gradient" identifying this variant. See {@link PibblParticleGradient}. */
|
|
219
|
+
readonly type: "gradient";
|
|
220
|
+
/** Ordered keyframes at normalized lifetime positions. See {@link PibblParticleGradient}. */
|
|
221
|
+
readonly keys: readonly (readonly [time: number, color: string])[];
|
|
222
|
+
/** Interpolation options applied between keyframes. See {@link PibblParticleCurveOptions}. */
|
|
223
|
+
readonly options?: PibblParticleCurveOptions;
|
|
224
|
+
}
|
|
225
|
+
/**
|
|
226
|
+
* A timed rate, scheduled burst, or manually triggered particle emission rule.
|
|
227
|
+
*
|
|
228
|
+
* @see {@link PibblParticleIntegerRange}
|
|
229
|
+
* @see {@link PibblParticleEmitter2D}
|
|
230
|
+
*/
|
|
231
|
+
export type PibblParticleEmission = Readonly<{
|
|
232
|
+
/** The literal "rate" identifying this variant. See {@link PibblParticleEmission}. */
|
|
233
|
+
type: "rate";
|
|
234
|
+
/** Continuous emission rate in particles per second. See {@link PibblParticleEmission}. */
|
|
235
|
+
particlesPerSecond: number;
|
|
236
|
+
/** Delay before the emission rule becomes active. See {@link PibblParticleEmission}. */
|
|
237
|
+
startMilliseconds?: number;
|
|
238
|
+
/** Duration for which the emission rule remains active. See {@link PibblParticleEmission}. */
|
|
239
|
+
durationMilliseconds?: number;
|
|
240
|
+
/**
|
|
241
|
+
* Probability that an eligible emission is accepted by this rule. See
|
|
242
|
+
* {@link PibblParticleEmission}.
|
|
243
|
+
*/
|
|
244
|
+
probability?: number;
|
|
245
|
+
/** Whether the browser reported an auto-repeated key press. See {@link PibblParticleEmission}. */
|
|
246
|
+
repeat?: Readonly<{
|
|
247
|
+
/** Interval between repeated emissions. See {@link PibblParticleEmission}. */
|
|
248
|
+
everyMilliseconds: number;
|
|
249
|
+
/**
|
|
250
|
+
* Number of particles or sources requested by this configuration. See
|
|
251
|
+
* {@link PibblParticleEmission}.
|
|
252
|
+
*/
|
|
253
|
+
count: number;
|
|
254
|
+
}>;
|
|
255
|
+
}> | Readonly<{
|
|
256
|
+
/** The literal "burst" identifying this variant. See {@link PibblParticleEmission}. */
|
|
257
|
+
type: "burst";
|
|
258
|
+
/** Logical time at which a scheduled burst occurs. See {@link PibblParticleEmission}. */
|
|
259
|
+
atMilliseconds: number;
|
|
260
|
+
/**
|
|
261
|
+
* Number of particles or sources requested by this configuration. See
|
|
262
|
+
* {@link PibblParticleIntegerRange}.
|
|
263
|
+
*/
|
|
264
|
+
count: number | PibblParticleIntegerRange;
|
|
265
|
+
/**
|
|
266
|
+
* Probability that an eligible emission is accepted by this rule. See
|
|
267
|
+
* {@link PibblParticleEmission}.
|
|
268
|
+
*/
|
|
269
|
+
probability?: number;
|
|
270
|
+
/** Whether the browser reported an auto-repeated key press. See {@link PibblParticleEmission}. */
|
|
271
|
+
repeat?: Readonly<{
|
|
272
|
+
/** Interval between repeated emissions. See {@link PibblParticleEmission}. */
|
|
273
|
+
everyMilliseconds: number;
|
|
274
|
+
/**
|
|
275
|
+
* Number of particles or sources requested by this configuration. See
|
|
276
|
+
* {@link PibblParticleEmission}.
|
|
277
|
+
*/
|
|
278
|
+
count: number;
|
|
279
|
+
}>;
|
|
280
|
+
}> | Readonly<{
|
|
281
|
+
/** The literal "manual" identifying this variant. See {@link PibblParticleEmission}. */
|
|
282
|
+
type: "manual";
|
|
283
|
+
/**
|
|
284
|
+
* Number of particles or sources requested by this configuration. See
|
|
285
|
+
* {@link PibblParticleIntegerRange}.
|
|
286
|
+
*/
|
|
287
|
+
count?: number | PibblParticleIntegerRange;
|
|
288
|
+
}>;
|
|
289
|
+
/**
|
|
290
|
+
* The point, line, rectangle, circle, or ring used to sample particle birth positions.
|
|
291
|
+
*
|
|
292
|
+
* @see {@link PibblParticleEmitter2D}
|
|
293
|
+
*/
|
|
294
|
+
export type PibblParticleShape2D = Readonly<{
|
|
295
|
+
/** The literal "point" identifying this variant. See {@link PibblParticleShape2D}. */
|
|
296
|
+
type: "point";
|
|
297
|
+
/**
|
|
298
|
+
* Position of the geometry, source, or selected resize handle. See
|
|
299
|
+
* {@link PibblParticleShape2D}.
|
|
300
|
+
*/
|
|
301
|
+
position?: readonly [number, number];
|
|
302
|
+
}> | Readonly<{
|
|
303
|
+
/** The literal "line" identifying this variant. See {@link PibblParticleShape2D}. */
|
|
304
|
+
type: "line";
|
|
305
|
+
/** Starting endpoint or value. See {@link PibblParticleShape2D}. */
|
|
306
|
+
from: readonly [number, number];
|
|
307
|
+
/** Destination endpoint or value. See {@link PibblParticleShape2D}. */
|
|
308
|
+
to: readonly [number, number];
|
|
309
|
+
}> | Readonly<{
|
|
310
|
+
/** The literal "rectangle" identifying this variant. See {@link PibblParticleShape2D}. */
|
|
311
|
+
type: "rectangle";
|
|
312
|
+
/**
|
|
313
|
+
* Horizontal extent in the units of the containing geometry or surface. See
|
|
314
|
+
* {@link PibblParticleShape2D}.
|
|
315
|
+
*/
|
|
316
|
+
width: number;
|
|
317
|
+
/**
|
|
318
|
+
* Vertical extent in the units of the containing geometry or surface. See
|
|
319
|
+
* {@link PibblParticleShape2D}.
|
|
320
|
+
*/
|
|
321
|
+
height: number;
|
|
322
|
+
/** Selects `"interior"`, `"edge"` for sample. See {@link PibblParticleShape2D}. */
|
|
323
|
+
sample: "interior" | "edge";
|
|
324
|
+
}> | Readonly<{
|
|
325
|
+
/** The literal "circle" identifying this variant. See {@link PibblParticleShape2D}. */
|
|
326
|
+
type: "circle";
|
|
327
|
+
/** Radius in the coordinate system of this geometry or effect. See {@link PibblParticleShape2D}. */
|
|
328
|
+
radius: number;
|
|
329
|
+
/** Selects `"interior"`, `"circumference"` for sample. See {@link PibblParticleShape2D}. */
|
|
330
|
+
sample: "interior" | "circumference";
|
|
331
|
+
}> | Readonly<{
|
|
332
|
+
/** The literal "ring" identifying this variant. See {@link PibblParticleShape2D}. */
|
|
333
|
+
type: "ring";
|
|
334
|
+
/** Radius of the inner boundary. See {@link PibblParticleShape2D}. */
|
|
335
|
+
innerRadius: number;
|
|
336
|
+
/** Radius of the outer boundary. See {@link PibblParticleShape2D}. */
|
|
337
|
+
outerRadius: number;
|
|
338
|
+
}>;
|
|
339
|
+
/**
|
|
340
|
+
* Particle birth values for lifetime, velocity, size, rotation, color, and opacity.
|
|
341
|
+
*
|
|
342
|
+
* @see {@link PibblParticleScalar}
|
|
343
|
+
* @see {@link PibblParticleVector2}
|
|
344
|
+
* @see {@link PibblParticleChoice}
|
|
345
|
+
* @see {@link PibblParticleParameterReference}
|
|
346
|
+
* @see {@link PibblParticleEmitter2D}
|
|
347
|
+
*/
|
|
348
|
+
export interface PibblParticleInitial2D {
|
|
349
|
+
/** Particle lifetime sampled at birth, in milliseconds. See {@link PibblParticleScalar}. */
|
|
350
|
+
readonly lifetimeMilliseconds: PibblParticleScalar;
|
|
351
|
+
/** Linear velocity used by the particle motion rule. See {@link PibblParticleVector2}. */
|
|
352
|
+
readonly velocity?: PibblParticleVector2;
|
|
353
|
+
/**
|
|
354
|
+
* Scalar or two-component size sampled at particle birth. See {@link PibblParticleScalar},
|
|
355
|
+
* {@link PibblParticleVector2}.
|
|
356
|
+
*/
|
|
357
|
+
readonly size?: PibblParticleScalar | PibblParticleVector2;
|
|
358
|
+
/** Rotation in degrees sampled at particle birth. See {@link PibblParticleScalar}. */
|
|
359
|
+
readonly rotationDegrees?: PibblParticleScalar;
|
|
360
|
+
/** Angular velocity in degrees per second. See {@link PibblParticleScalar}. */
|
|
361
|
+
readonly angularVelocityDegreesPerSecond?: PibblParticleScalar;
|
|
362
|
+
/**
|
|
363
|
+
* Color sampled at particle birth. See {@link PibblParticleChoice},
|
|
364
|
+
* {@link PibblParticleParameterReference}.
|
|
365
|
+
*/
|
|
366
|
+
readonly color?: string | PibblParticleChoice<string> | PibblParticleParameterReference<string>;
|
|
367
|
+
/** Opacity sampled at particle birth. See {@link PibblParticleScalar}. */
|
|
368
|
+
readonly opacity?: PibblParticleScalar;
|
|
369
|
+
}
|
|
370
|
+
/**
|
|
371
|
+
* An analytic 2D motion rule such as gravity, drag, drift, orbit, or sway.
|
|
372
|
+
*
|
|
373
|
+
* @see {@link PibblParticleVector2}
|
|
374
|
+
* @see {@link PibblParticleScalar}
|
|
375
|
+
* @see {@link PibblParticleEmitter2D}
|
|
376
|
+
*/
|
|
377
|
+
export type PibblParticleMotion2D = Readonly<{
|
|
378
|
+
/** Selects `"acceleration"`, `"gravity"` for type. See {@link PibblParticleMotion2D}. */
|
|
379
|
+
type: "acceleration" | "gravity";
|
|
380
|
+
/** Value associated with this sample, input, or result. See {@link PibblParticleVector2}. */
|
|
381
|
+
value: PibblParticleVector2;
|
|
382
|
+
}> | Readonly<{
|
|
383
|
+
/** The literal "drag" identifying this variant. See {@link PibblParticleMotion2D}. */
|
|
384
|
+
type: "drag";
|
|
385
|
+
/** Magnitude of the filter or motion adjustment. See {@link PibblParticleScalar}. */
|
|
386
|
+
amount: PibblParticleScalar;
|
|
387
|
+
}> | Readonly<{
|
|
388
|
+
/** The literal "drift" identifying this variant. See {@link PibblParticleMotion2D}. */
|
|
389
|
+
type: "drift";
|
|
390
|
+
/** Linear velocity used by the particle motion rule. See {@link PibblParticleVector2}. */
|
|
391
|
+
velocity: PibblParticleVector2;
|
|
392
|
+
}> | Readonly<{
|
|
393
|
+
/** The literal "radialAcceleration" identifying this variant. See {@link PibblParticleMotion2D}. */
|
|
394
|
+
type: "radialAcceleration";
|
|
395
|
+
/** Center of radial acceleration or orbital motion. See {@link PibblParticleMotion2D}. */
|
|
396
|
+
center: readonly [number, number];
|
|
397
|
+
/** Magnitude of the filter or motion adjustment. See {@link PibblParticleScalar}. */
|
|
398
|
+
amount: PibblParticleScalar;
|
|
399
|
+
}> | Readonly<{
|
|
400
|
+
/** The literal "orbit" identifying this variant. See {@link PibblParticleMotion2D}. */
|
|
401
|
+
type: "orbit";
|
|
402
|
+
/** Center of radial acceleration or orbital motion. See {@link PibblParticleMotion2D}. */
|
|
403
|
+
center: readonly [number, number];
|
|
404
|
+
/** Angular motion rate in degrees per second. See {@link PibblParticleScalar}. */
|
|
405
|
+
degreesPerSecond: PibblParticleScalar;
|
|
406
|
+
}> | Readonly<{
|
|
407
|
+
/** The literal "sway" identifying this variant. See {@link PibblParticleMotion2D}. */
|
|
408
|
+
type: "sway";
|
|
409
|
+
/** Maximum excursion of the oscillating motion. See {@link PibblParticleScalar}. */
|
|
410
|
+
amplitude: PibblParticleScalar;
|
|
411
|
+
/** Rate at which the pattern or motion repeats. See {@link PibblParticleScalar}. */
|
|
412
|
+
frequency: PibblParticleScalar | readonly [number, number];
|
|
413
|
+
}> | Readonly<{
|
|
414
|
+
/** The literal "angularVelocity" identifying this variant. See {@link PibblParticleMotion2D}. */
|
|
415
|
+
type: "angularVelocity";
|
|
416
|
+
/** Angular motion rate in degrees per second. See {@link PibblParticleScalar}. */
|
|
417
|
+
degreesPerSecond: PibblParticleScalar;
|
|
418
|
+
}>;
|
|
419
|
+
/**
|
|
420
|
+
* Size, rotation, color, and opacity changes over a particle's lifetime.
|
|
421
|
+
*
|
|
422
|
+
* @see {@link PibblParticleCurve}
|
|
423
|
+
* @see {@link PibblParticleGradient}
|
|
424
|
+
* @see {@link PibblParticleEmitter2D}
|
|
425
|
+
*/
|
|
426
|
+
export interface PibblParticleAppearance {
|
|
427
|
+
/**
|
|
428
|
+
* Scalar or two-component size curve evaluated over normalized particle lifetime. See
|
|
429
|
+
* {@link PibblParticleCurve}.
|
|
430
|
+
*/
|
|
431
|
+
readonly size?: PibblParticleCurve<number | readonly [number, number]>;
|
|
432
|
+
/**
|
|
433
|
+
* Rotation curve in degrees evaluated over normalized particle lifetime. See
|
|
434
|
+
* {@link PibblParticleCurve}.
|
|
435
|
+
*/
|
|
436
|
+
readonly rotationDegrees?: PibblParticleCurve<number>;
|
|
437
|
+
/**
|
|
438
|
+
* Color gradient evaluated over normalized particle lifetime. See {@link PibblParticleGradient}.
|
|
439
|
+
*/
|
|
440
|
+
readonly color?: PibblParticleGradient;
|
|
441
|
+
/** Opacity curve evaluated over normalized particle lifetime. See {@link PibblParticleCurve}. */
|
|
442
|
+
readonly opacity?: PibblParticleCurve<number>;
|
|
443
|
+
}
|
|
444
|
+
/**
|
|
445
|
+
* Canvas rendering configuration for circles, rectangles, paths, or sprites.
|
|
446
|
+
*
|
|
447
|
+
* @see {@link PathGeometry}
|
|
448
|
+
* @see {@link PibblParticleEmitter2D}
|
|
449
|
+
*/
|
|
450
|
+
export type PibblParticleRenderer2D = Readonly<{
|
|
451
|
+
/** The literal "circle" identifying this variant. See {@link PibblParticleRenderer2D}. */
|
|
452
|
+
type: "circle";
|
|
453
|
+
/** Selects `"source-over"`, `"additive"` for blend. See {@link PibblParticleRenderer2D}. */
|
|
454
|
+
blend?: "source-over" | "additive";
|
|
455
|
+
}> | Readonly<{
|
|
456
|
+
/** The literal "rectangle" identifying this variant. See {@link PibblParticleRenderer2D}. */
|
|
457
|
+
type: "rectangle";
|
|
458
|
+
/** Width-to-height ratio of the particle rectangle. See {@link PibblParticleRenderer2D}. */
|
|
459
|
+
aspectRatio?: number;
|
|
460
|
+
/** Selects `"source-over"`, `"additive"` for blend. See {@link PibblParticleRenderer2D}. */
|
|
461
|
+
blend?: "source-over" | "additive";
|
|
462
|
+
}> | Readonly<{
|
|
463
|
+
/** The literal "path" identifying this variant. See {@link PibblParticleRenderer2D}. */
|
|
464
|
+
type: "path";
|
|
465
|
+
/** Path geometry used by this operation. See {@link PathGeometry}. */
|
|
466
|
+
path: Path2D | PathGeometry;
|
|
467
|
+
/** Selects `"source-over"`, `"additive"` for blend. See {@link PibblParticleRenderer2D}. */
|
|
468
|
+
blend?: "source-over" | "additive";
|
|
469
|
+
}> | Readonly<{
|
|
470
|
+
/** The literal "sprite" identifying this variant. See {@link PibblParticleRenderer2D}. */
|
|
471
|
+
type: "sprite";
|
|
472
|
+
/** Image used to paint each sprite particle. See {@link PibblParticleRenderer2D}. */
|
|
473
|
+
source: CanvasImageSource;
|
|
474
|
+
/**
|
|
475
|
+
* Logical point to which the content or result is anchored. See
|
|
476
|
+
* {@link PibblParticleRenderer2D}.
|
|
477
|
+
*/
|
|
478
|
+
anchor?: readonly [number, number];
|
|
479
|
+
/** Selects `"source-over"`, `"additive"` for blend. See {@link PibblParticleRenderer2D}. */
|
|
480
|
+
blend?: "source-over" | "additive";
|
|
481
|
+
}>;
|
|
482
|
+
/**
|
|
483
|
+
* Conservative minimum and maximum particle extents used for emitter culling.
|
|
484
|
+
*
|
|
485
|
+
* @see {@link PibblParticleEmitter2D}
|
|
486
|
+
*/
|
|
487
|
+
export interface PibblParticleBounds2D {
|
|
488
|
+
/** Lower bound of the coordinate or sampling interval. See {@link PibblParticleBounds2D}. */
|
|
489
|
+
readonly min: readonly [number, number];
|
|
490
|
+
/** Upper bound of the coordinate or sampling interval. See {@link PibblParticleBounds2D}. */
|
|
491
|
+
readonly max: readonly [number, number];
|
|
492
|
+
}
|
|
493
|
+
/**
|
|
494
|
+
* Whether a full emitter rejects new particles or recycles its oldest particles.
|
|
495
|
+
*
|
|
496
|
+
* @see {@link PibblParticleEmitter2D}
|
|
497
|
+
*/
|
|
498
|
+
export type PibblParticleOverflow = "reject-newest" | "recycle-oldest";
|
|
499
|
+
/**
|
|
500
|
+
* Capacity, emission, spawn geometry, motion, appearance, and rendering of one named emitter.
|
|
501
|
+
*
|
|
502
|
+
* @see {@link PibblParticleOverflow}
|
|
503
|
+
* @see {@link PibblParticleEmission}
|
|
504
|
+
* @see {@link PibblParticleShape2D}
|
|
505
|
+
* @see {@link PibblParticleInitial2D}
|
|
506
|
+
* @see {@link PibblParticleMotion2D}
|
|
507
|
+
* @see {@link PibblParticleAppearance}
|
|
508
|
+
* @see {@link PibblParticleRenderer2D}
|
|
509
|
+
* @see {@link PibblParticleBounds2D}
|
|
510
|
+
* @see {@link PibblParticleEffect2DInput}
|
|
511
|
+
*/
|
|
512
|
+
export interface PibblParticleEmitter2D {
|
|
513
|
+
/** Name identifying this backend, emitter, or parameter. See {@link PibblParticleEmitter2D}. */
|
|
514
|
+
readonly name: string;
|
|
515
|
+
/** Maximum number of particles retained by this emitter. See {@link PibblParticleEmitter2D}. */
|
|
516
|
+
readonly capacity: number;
|
|
517
|
+
/**
|
|
518
|
+
* Rejects newly emitted particles or recycles the oldest particles when capacity is exhausted.
|
|
519
|
+
* See {@link PibblParticleOverflow}.
|
|
520
|
+
*/
|
|
521
|
+
readonly overflow?: PibblParticleOverflow;
|
|
522
|
+
/** The literal "local" identifying this variant. See {@link PibblParticleEmitter2D}. */
|
|
523
|
+
readonly space?: "local";
|
|
524
|
+
/** Timed and manual emission rules for the emitter. See {@link PibblParticleEmission}. */
|
|
525
|
+
readonly emission: readonly PibblParticleEmission[];
|
|
526
|
+
/** Immutable collision geometry or particle spawn shape. See {@link PibblParticleShape2D}. */
|
|
527
|
+
readonly shape: PibblParticleShape2D;
|
|
528
|
+
/**
|
|
529
|
+
* Distributions and parameters sampled when a particle is born. See {@link PibblParticleInitial2D}
|
|
530
|
+
* .
|
|
531
|
+
*/
|
|
532
|
+
readonly initial: PibblParticleInitial2D;
|
|
533
|
+
/** Motion rules applied over particle lifetime. See {@link PibblParticleMotion2D}. */
|
|
534
|
+
readonly motion?: readonly PibblParticleMotion2D[];
|
|
535
|
+
/** Lifetime-dependent visual properties of the particles. See {@link PibblParticleAppearance}. */
|
|
536
|
+
readonly appearance?: PibblParticleAppearance;
|
|
537
|
+
/**
|
|
538
|
+
* Canvas mark or sprite configuration used to paint this emitter's particles. See
|
|
539
|
+
* {@link PibblParticleRenderer2D}.
|
|
540
|
+
*/
|
|
541
|
+
readonly renderer: PibblParticleRenderer2D;
|
|
542
|
+
/**
|
|
543
|
+
* Conservative emitter bounds used for culling; required when they cannot be derived. See
|
|
544
|
+
* {@link PibblParticleBounds2D}.
|
|
545
|
+
*/
|
|
546
|
+
readonly bounds?: PibblParticleBounds2D;
|
|
547
|
+
}
|
|
548
|
+
/**
|
|
549
|
+
* Authored parameters and nonempty emitter definitions used to create a 2D effect.
|
|
550
|
+
*
|
|
551
|
+
* @see {@link PibblParticleParameterDefinitions}
|
|
552
|
+
* @see {@link PibblParticleEmitter2D}
|
|
553
|
+
* @see {@link PibblParticleDiagnostic}
|
|
554
|
+
* @see {@link defineParticleEffect2D}
|
|
555
|
+
*/
|
|
556
|
+
export interface PibblParticleEffect2DInput {
|
|
557
|
+
/** Optional label used in diagnostics. See {@link PibblParticleEffect2DInput}. */
|
|
558
|
+
readonly debugName?: string;
|
|
559
|
+
/**
|
|
560
|
+
* Named parameter definitions or values for this effect instance. See
|
|
561
|
+
* {@link PibblParticleParameterDefinitions}.
|
|
562
|
+
*/
|
|
563
|
+
readonly parameters?: PibblParticleParameterDefinitions;
|
|
564
|
+
/** Named emitters forming the reusable effect. See {@link PibblParticleEmitter2D}. */
|
|
565
|
+
readonly emitters: readonly [PibblParticleEmitter2D, ...PibblParticleEmitter2D[]];
|
|
566
|
+
}
|
|
567
|
+
declare const particleEffectBrand: unique symbol;
|
|
568
|
+
/**
|
|
569
|
+
* A validated, branded 2D effect carrying its emitter-name and parameter types.
|
|
570
|
+
*
|
|
571
|
+
* @see {@link PibblParticleParameterValues}
|
|
572
|
+
* @see {@link Particles2DProps}
|
|
573
|
+
* @see {@link defineParticleEffect2D}
|
|
574
|
+
* @see {@link useParticleSystem}
|
|
575
|
+
*/
|
|
576
|
+
export interface PibblParticleEffect2D<EmitterName extends string = string, Parameters extends PibblParticleParameterValues = PibblParticleParameterValues> {
|
|
577
|
+
/** The literal 2 identifying this variant. See {@link PibblParticleEffect2D}. */
|
|
578
|
+
readonly dimension: 2;
|
|
579
|
+
readonly [particleEffectBrand]: {
|
|
580
|
+
readonly emitterName: EmitterName;
|
|
581
|
+
readonly parameters: Parameters;
|
|
582
|
+
};
|
|
583
|
+
}
|
|
584
|
+
/**
|
|
585
|
+
* The lifecycle state of a mounted particle system, including draining and disposal.
|
|
586
|
+
*
|
|
587
|
+
* @see {@link PibblParticleSystem}
|
|
588
|
+
*/
|
|
589
|
+
export type PibblParticleSystemStatus = "idle" | "scheduled" | "running" | "paused" | "draining" | "finished" | "disposed";
|
|
590
|
+
/**
|
|
591
|
+
* The selected particle execution path, or unbound before a renderer is attached.
|
|
592
|
+
*
|
|
593
|
+
* @see {@link PibblParticleSystem}
|
|
594
|
+
*/
|
|
595
|
+
export type PibblParticleExecution = "unbound" | "stateless-canvas" | "flow-canvas";
|
|
596
|
+
/**
|
|
597
|
+
* Notifies that a particle system has started a run.
|
|
598
|
+
*
|
|
599
|
+
* @see {@link PibblParticleSystemEvent}
|
|
600
|
+
*/
|
|
601
|
+
export interface PibblParticleStartEvent {
|
|
602
|
+
/** The literal "start" identifying this variant. See {@link PibblParticleStartEvent}. */
|
|
603
|
+
readonly type: "start";
|
|
604
|
+
}
|
|
605
|
+
/**
|
|
606
|
+
* Reports the requested and accepted particle counts for an emitter burst.
|
|
607
|
+
*
|
|
608
|
+
* @see {@link PibblParticleSystemEvent}
|
|
609
|
+
*/
|
|
610
|
+
export interface PibblParticleBurstAcceptedEvent {
|
|
611
|
+
/**
|
|
612
|
+
* The literal "burst-accepted" identifying this variant. See
|
|
613
|
+
* {@link PibblParticleBurstAcceptedEvent}.
|
|
614
|
+
*/
|
|
615
|
+
readonly type: "burst-accepted";
|
|
616
|
+
/**
|
|
617
|
+
* Name of the emitter associated with this notification. See
|
|
618
|
+
* {@link PibblParticleBurstAcceptedEvent}.
|
|
619
|
+
*/
|
|
620
|
+
readonly emitter: string;
|
|
621
|
+
/** Number of particles requested by the burst. See {@link PibblParticleBurstAcceptedEvent}. */
|
|
622
|
+
readonly requested: number;
|
|
623
|
+
/** Number of particles admitted by the burst. See {@link PibblParticleBurstAcceptedEvent}. */
|
|
624
|
+
readonly accepted: number;
|
|
625
|
+
}
|
|
626
|
+
/**
|
|
627
|
+
* Reports a burst rejection and whether capacity or system state prevented admission.
|
|
628
|
+
*
|
|
629
|
+
* @see {@link PibblParticleSystemEvent}
|
|
630
|
+
*/
|
|
631
|
+
export interface PibblParticleBurstRejectedEvent {
|
|
632
|
+
/**
|
|
633
|
+
* The literal "burst-rejected" identifying this variant. See
|
|
634
|
+
* {@link PibblParticleBurstRejectedEvent}.
|
|
635
|
+
*/
|
|
636
|
+
readonly type: "burst-rejected";
|
|
637
|
+
/**
|
|
638
|
+
* Name of the emitter associated with this notification. See
|
|
639
|
+
* {@link PibblParticleBurstRejectedEvent}.
|
|
640
|
+
*/
|
|
641
|
+
readonly emitter: string;
|
|
642
|
+
/** Number of particles requested by the burst. See {@link PibblParticleBurstRejectedEvent}. */
|
|
643
|
+
readonly requested: number;
|
|
644
|
+
/** Number of particles admitted by the burst. See {@link PibblParticleBurstRejectedEvent}. */
|
|
645
|
+
readonly accepted: number;
|
|
646
|
+
/**
|
|
647
|
+
* Reason the operation could not produce its ordinary result. See
|
|
648
|
+
* {@link PibblParticleBurstRejectedEvent}.
|
|
649
|
+
*/
|
|
650
|
+
readonly reason: "capacity" | "paused" | "stopped" | "disposed";
|
|
651
|
+
}
|
|
652
|
+
/**
|
|
653
|
+
* Notifies that emission has stopped while existing particles finish their lifetimes.
|
|
654
|
+
*
|
|
655
|
+
* @see {@link PibblParticleSystemEvent}
|
|
656
|
+
*/
|
|
657
|
+
export interface PibblParticleDrainStartEvent {
|
|
658
|
+
/** The literal "drain-start" identifying this variant. See {@link PibblParticleDrainStartEvent}. */
|
|
659
|
+
readonly type: "drain-start";
|
|
660
|
+
}
|
|
661
|
+
/**
|
|
662
|
+
* Notifies that a particle system has finished its active run.
|
|
663
|
+
*
|
|
664
|
+
* @see {@link PibblParticleSystemEvent}
|
|
665
|
+
*/
|
|
666
|
+
export interface PibblParticleFinishEvent {
|
|
667
|
+
/** The literal "finish" identifying this variant. See {@link PibblParticleFinishEvent}. */
|
|
668
|
+
readonly type: "finish";
|
|
669
|
+
}
|
|
670
|
+
/**
|
|
671
|
+
* The lifecycle and burst-admission notifications emitted by a particle system.
|
|
672
|
+
*
|
|
673
|
+
* @see {@link PibblParticleStartEvent}
|
|
674
|
+
* @see {@link PibblParticleBurstAcceptedEvent}
|
|
675
|
+
* @see {@link PibblParticleBurstRejectedEvent}
|
|
676
|
+
* @see {@link PibblParticleDrainStartEvent}
|
|
677
|
+
* @see {@link PibblParticleFinishEvent}
|
|
678
|
+
* @see {@link PibblParticleCommonProps}
|
|
679
|
+
*/
|
|
680
|
+
export type PibblParticleSystemEvent = PibblParticleStartEvent | PibblParticleBurstAcceptedEvent | PibblParticleBurstRejectedEvent | PibblParticleDrainStartEvent | PibblParticleFinishEvent;
|
|
681
|
+
/**
|
|
682
|
+
* Structured validation, capability, asset, execution, or ownership failure from a particle system.
|
|
683
|
+
*
|
|
684
|
+
* @see {@link PibblParticleSystemOptions}
|
|
685
|
+
* @see {@link PibblParticleEffect2DInput}
|
|
686
|
+
*/
|
|
687
|
+
export type PibblParticleDiagnostic = Readonly<{
|
|
688
|
+
/**
|
|
689
|
+
* The literal "definition-invalid" identifying this variant. See
|
|
690
|
+
* {@link PibblParticleDiagnostic}.
|
|
691
|
+
*/
|
|
692
|
+
type: "definition-invalid";
|
|
693
|
+
/** Human-readable diagnostic explanation. See {@link PibblParticleDiagnostic}. */
|
|
694
|
+
message: string;
|
|
695
|
+
/**
|
|
696
|
+
* Particle effect associated with this input or diagnostic. See
|
|
697
|
+
* {@link PibblParticleDiagnostic}.
|
|
698
|
+
*/
|
|
699
|
+
effect?: string;
|
|
700
|
+
/** Name of the emitter associated with this notification. See {@link PibblParticleDiagnostic}. */
|
|
701
|
+
emitter?: string;
|
|
702
|
+
/** Name of the affected input property. See {@link PibblParticleDiagnostic}. */
|
|
703
|
+
property?: string;
|
|
704
|
+
}> | Readonly<{
|
|
705
|
+
/**
|
|
706
|
+
* The literal "capability-unsupported" identifying this variant. See
|
|
707
|
+
* {@link PibblParticleDiagnostic}.
|
|
708
|
+
*/
|
|
709
|
+
type: "capability-unsupported";
|
|
710
|
+
/** Human-readable diagnostic explanation. See {@link PibblParticleDiagnostic}. */
|
|
711
|
+
message: string;
|
|
712
|
+
/** Name of the unsupported runtime capability. See {@link PibblParticleDiagnostic}. */
|
|
713
|
+
capability: string;
|
|
714
|
+
/**
|
|
715
|
+
* Particle effect associated with this input or diagnostic. See
|
|
716
|
+
* {@link PibblParticleDiagnostic}.
|
|
717
|
+
*/
|
|
718
|
+
effect?: string;
|
|
719
|
+
/** Name of the emitter associated with this notification. See {@link PibblParticleDiagnostic}. */
|
|
720
|
+
emitter?: string;
|
|
721
|
+
}> | Readonly<{
|
|
722
|
+
/**
|
|
723
|
+
* Selects `"asset-invalid"` , `"binding-conflict"` , `"backend-mismatch"` for type. See
|
|
724
|
+
* {@link PibblParticleDiagnostic}.
|
|
725
|
+
*/
|
|
726
|
+
type: "asset-invalid" | "binding-conflict" | "backend-mismatch";
|
|
727
|
+
/** Human-readable diagnostic explanation. See {@link PibblParticleDiagnostic}. */
|
|
728
|
+
message: string;
|
|
729
|
+
/**
|
|
730
|
+
* Particle effect associated with this input or diagnostic. See
|
|
731
|
+
* {@link PibblParticleDiagnostic}.
|
|
732
|
+
*/
|
|
733
|
+
effect?: string;
|
|
734
|
+
/** Name of the emitter associated with this notification. See {@link PibblParticleDiagnostic}. */
|
|
735
|
+
emitter?: string;
|
|
736
|
+
}> | Readonly<{
|
|
737
|
+
/**
|
|
738
|
+
* Selects `"capacity-rejected"` , `"execution-failed"` , `"disposed"` for type. See
|
|
739
|
+
* {@link PibblParticleDiagnostic}.
|
|
740
|
+
*/
|
|
741
|
+
type: "capacity-rejected" | "execution-failed" | "disposed";
|
|
742
|
+
/** Human-readable diagnostic explanation. See {@link PibblParticleDiagnostic}. */
|
|
743
|
+
message: string;
|
|
744
|
+
/**
|
|
745
|
+
* Particle effect associated with this input or diagnostic. See
|
|
746
|
+
* {@link PibblParticleDiagnostic}.
|
|
747
|
+
*/
|
|
748
|
+
effect?: string;
|
|
749
|
+
/** Name of the emitter associated with this notification. See {@link PibblParticleDiagnostic}. */
|
|
750
|
+
emitter?: string;
|
|
751
|
+
}>;
|
|
752
|
+
/**
|
|
753
|
+
* Autoplay, deterministic seed, flow binding, and lifecycle callbacks for a mounted system.
|
|
754
|
+
*
|
|
755
|
+
* @see {@link PibblFlowField2D}
|
|
756
|
+
* @see {@link PibblParticleSystemEvent}
|
|
757
|
+
* @see {@link PibblParticleDiagnostic}
|
|
758
|
+
* @see {@link useParticleSystem}
|
|
759
|
+
*/
|
|
760
|
+
export interface PibblParticleSystemOptions {
|
|
761
|
+
/** Mount-owned field binding; advects emitter positions instead of analytic translation. */
|
|
762
|
+
readonly flow?: PibblFlowField2D;
|
|
763
|
+
/**
|
|
764
|
+
* Whether playback is requested automatically when the owner mounts. See
|
|
765
|
+
* {@link PibblParticleSystemOptions}.
|
|
766
|
+
*/
|
|
767
|
+
readonly autoplay?: boolean;
|
|
768
|
+
/**
|
|
769
|
+
* Seed used for deterministic sampling or simulation initialization. See
|
|
770
|
+
* {@link PibblParticleSystemOptions}.
|
|
771
|
+
*/
|
|
772
|
+
readonly seed?: number;
|
|
773
|
+
/** Optional label used in diagnostics. See {@link PibblParticleSystemOptions}. */
|
|
774
|
+
readonly debugName?: string;
|
|
775
|
+
/**
|
|
776
|
+
* Receives lifecycle and milestone notifications. See {@link PibblParticleSystemEvent}.
|
|
777
|
+
* @param event - Particle playback or emission event. See {@link PibblParticleSystemEvent}.
|
|
778
|
+
*/
|
|
779
|
+
readonly onEvent?: (event: PibblParticleSystemEvent) => void;
|
|
780
|
+
/**
|
|
781
|
+
* Receives failures reported by the owning runtime resource. See
|
|
782
|
+
* {@link PibblParticleSystemOptions}.
|
|
783
|
+
* @param error - Failure reported by the particle system.
|
|
784
|
+
*/
|
|
785
|
+
readonly onError?: (error: unknown) => void;
|
|
786
|
+
}
|
|
787
|
+
/**
|
|
788
|
+
* Per-burst count, position, seed, and parameter overrides.
|
|
789
|
+
*
|
|
790
|
+
* @see {@link PibblParticleSystem}
|
|
791
|
+
*/
|
|
792
|
+
export interface PibblParticleBurstOverrides {
|
|
793
|
+
/**
|
|
794
|
+
* Number of particles or sources requested by this configuration. See
|
|
795
|
+
* {@link PibblParticleBurstOverrides}.
|
|
796
|
+
*/
|
|
797
|
+
readonly count?: number;
|
|
798
|
+
/**
|
|
799
|
+
* Position of the geometry, source, or selected resize handle. See
|
|
800
|
+
* {@link PibblParticleBurstOverrides}.
|
|
801
|
+
*/
|
|
802
|
+
readonly position?: readonly [number, number];
|
|
803
|
+
/**
|
|
804
|
+
* Additional seed input distinguishing this burst from otherwise identical requests. See
|
|
805
|
+
* {@link PibblParticleBurstOverrides}.
|
|
806
|
+
*/
|
|
807
|
+
readonly seedSalt?: number;
|
|
808
|
+
/**
|
|
809
|
+
* Named parameter definitions or values for this effect instance. See
|
|
810
|
+
* {@link PibblParticleBurstOverrides}.
|
|
811
|
+
*/
|
|
812
|
+
readonly parameters?: Readonly<Record<string, number | readonly number[] | string>>;
|
|
813
|
+
}
|
|
814
|
+
declare const particleSystemBrand: unique symbol;
|
|
815
|
+
/**
|
|
816
|
+
* Mount-owned playback and burst controls with reactive status and execution-path information.
|
|
817
|
+
*
|
|
818
|
+
* @see {@link PibblParticleParameterValues}
|
|
819
|
+
* @see {@link Signal}
|
|
820
|
+
* @see {@link PibblParticleSystemStatus}
|
|
821
|
+
* @see {@link PibblParticleExecution}
|
|
822
|
+
* @see {@link PibblParticleBurstOverrides}
|
|
823
|
+
* @see {@link Particles2DProps}
|
|
824
|
+
*/
|
|
825
|
+
export interface PibblParticleSystem<EmitterName extends string = string, Parameters extends PibblParticleParameterValues = PibblParticleParameterValues> {
|
|
826
|
+
readonly [particleSystemBrand]: {
|
|
827
|
+
readonly parameters: Parameters;
|
|
828
|
+
readonly dimension: 2;
|
|
829
|
+
};
|
|
830
|
+
/**
|
|
831
|
+
* Reactive lifecycle state of this mounted particle system. See {@link Signal},
|
|
832
|
+
* {@link PibblParticleSystemStatus}.
|
|
833
|
+
*/
|
|
834
|
+
readonly status: Signal<PibblParticleSystemStatus>;
|
|
835
|
+
/**
|
|
836
|
+
* Reactive execution path selected for the current renderer binding. See {@link Signal},
|
|
837
|
+
* {@link PibblParticleExecution}.
|
|
838
|
+
*/
|
|
839
|
+
readonly execution: Signal<PibblParticleExecution>;
|
|
840
|
+
/** Queues a new particle-system run. See {@link PibblParticleSystem}. */
|
|
841
|
+
play(): void;
|
|
842
|
+
/** Queues suspension of particle-system advancement. See {@link PibblParticleSystem}. */
|
|
843
|
+
pause(): void;
|
|
844
|
+
/** Queues resumption of a paused particle-system run. See {@link PibblParticleSystem}. */
|
|
845
|
+
resume(): void;
|
|
846
|
+
/**
|
|
847
|
+
* Queues a fresh run, optionally replacing its deterministic seed. See {@link PibblParticleSystem}
|
|
848
|
+
* .
|
|
849
|
+
* @param options - Optional seed override for the restarted simulation.
|
|
850
|
+
*/
|
|
851
|
+
restart(options?: Readonly<{
|
|
852
|
+
/**
|
|
853
|
+
* Seed used for deterministic sampling or simulation initialization. See
|
|
854
|
+
* {@link PibblParticleSystem}.
|
|
855
|
+
*/
|
|
856
|
+
seed?: number;
|
|
857
|
+
}>): void;
|
|
858
|
+
/**
|
|
859
|
+
* Queues a manual burst for the named emitter with optional birth overrides. See
|
|
860
|
+
* {@link PibblParticleSystem}.
|
|
861
|
+
* @param emitter - Name of the effect emitter to burst.
|
|
862
|
+
* @param options - Optional per-burst emission overrides. See {@link PibblParticleBurstOverrides}.
|
|
863
|
+
*/
|
|
864
|
+
emit(emitter: EmitterName, options?: PibblParticleBurstOverrides): void;
|
|
865
|
+
/**
|
|
866
|
+
* Queues stopping; drain retains live particles until they finish, while clear removes them. See
|
|
867
|
+
* {@link PibblParticleSystem}.
|
|
868
|
+
* @param options - Whether to drain existing particles or clear them immediately.
|
|
869
|
+
*/
|
|
870
|
+
stop(options?: Readonly<{
|
|
871
|
+
/** Selects the supported mapping, placement, or result policy. See {@link PibblParticleSystem}. */
|
|
872
|
+
mode?: "drain" | "clear";
|
|
873
|
+
}>): void;
|
|
874
|
+
}
|
|
875
|
+
/**
|
|
876
|
+
* Shared parameter, interaction, focus, and lifecycle inputs for particle components.
|
|
877
|
+
*
|
|
878
|
+
* @see {@link PibblParticleParameterValues}
|
|
879
|
+
* @see {@link PibblEventHandlers}
|
|
880
|
+
* @see {@link PibblEventParticipationOptions}
|
|
881
|
+
* @see {@link LayoutBox}
|
|
882
|
+
* @see {@link PibblParticleSystemEvent}
|
|
883
|
+
*/
|
|
884
|
+
export interface PibblParticleCommonProps<Parameters extends PibblParticleParameterValues> extends PibblEventHandlers, PibblEventParticipationOptions {
|
|
885
|
+
/**
|
|
886
|
+
* Named parameter definitions or values for this effect instance. See
|
|
887
|
+
* {@link PibblParticleCommonProps}.
|
|
888
|
+
*/
|
|
889
|
+
readonly parameters?: Readonly<Partial<Parameters>>;
|
|
890
|
+
/** Whether the target may receive keyboard focus. See {@link PibblParticleCommonProps}. */
|
|
891
|
+
readonly keyboardFocusable?: boolean;
|
|
892
|
+
/** Logical rectangle used for directional keyboard navigation. See {@link LayoutBox}. */
|
|
893
|
+
readonly keyboardNavigationBounds?: Readonly<LayoutBox>;
|
|
894
|
+
/**
|
|
895
|
+
* Receives lifecycle and milestone notifications. See {@link PibblParticleSystemEvent}.
|
|
896
|
+
* @param event - Particle playback or emission event. See {@link PibblParticleSystemEvent}.
|
|
897
|
+
*/
|
|
898
|
+
readonly onEvent?: (event: PibblParticleSystemEvent) => void;
|
|
899
|
+
/**
|
|
900
|
+
* Receives failures reported by the owning runtime resource. See {@link PibblParticleCommonProps}
|
|
901
|
+
* .
|
|
902
|
+
* @param error - Failure reported by the particle system.
|
|
903
|
+
*/
|
|
904
|
+
readonly onError?: (error: unknown) => void;
|
|
905
|
+
}
|
|
906
|
+
/**
|
|
907
|
+
* Signal-capable particle inputs while preserving ordinary callbacks and opaque style payloads.
|
|
908
|
+
*
|
|
909
|
+
* @see {@link PibblParticleCommonProps}
|
|
910
|
+
*/
|
|
911
|
+
export type PibblParticleCommonInputProps<Parameters extends PibblParticleParameterValues> = {
|
|
912
|
+
readonly [K in keyof PibblParticleCommonProps<Parameters>]: SignalValue<PibblParticleCommonProps<Parameters>[K]>;
|
|
913
|
+
};
|
|
914
|
+
type PibblParticleStyleInput<S extends object> = SignalValue<{
|
|
915
|
+
readonly [K in keyof S]: SignalValue<S[K]>;
|
|
916
|
+
}>;
|
|
917
|
+
/**
|
|
918
|
+
* Supported geometry and presentation properties for Particles2D.
|
|
919
|
+
*
|
|
920
|
+
* @see {@link SystemStyle}
|
|
921
|
+
* @see {@link BoxStyle}
|
|
922
|
+
* @see {@link LayoutItemStyle}
|
|
923
|
+
* @see {@link CursorStyle}
|
|
924
|
+
* @see {@link Particles2DProps}
|
|
925
|
+
*/
|
|
926
|
+
export interface Particles2DStyle extends SystemStyle, BoxStyle, LayoutItemStyle, CursorStyle {
|
|
927
|
+
/** Opacity of the painted result. See {@link Particles2DStyle}. */
|
|
928
|
+
readonly opacity?: number;
|
|
929
|
+
}
|
|
930
|
+
/**
|
|
931
|
+
* Authored inputs for Particles2D, including the declared data and presentation options.
|
|
932
|
+
*
|
|
933
|
+
* @see {@link PibblParticleParameterValues}
|
|
934
|
+
* @see {@link Particles2DStyle}
|
|
935
|
+
* @see {@link SignalValue}
|
|
936
|
+
* @see {@link PibblParticleEffect2D}
|
|
937
|
+
* @see {@link PibblParticleSystem}
|
|
938
|
+
* @see {@link Particles2D}
|
|
939
|
+
*/
|
|
940
|
+
export type Particles2DProps<EmitterName extends string = string, Parameters extends PibblParticleParameterValues = PibblParticleParameterValues> = PibblParticleCommonInputProps<Parameters> & {
|
|
941
|
+
/**
|
|
942
|
+
* Declared presentation and layout properties. See {@link PibblParticleStyleInput},
|
|
943
|
+
* {@link Particles2DStyle}.
|
|
944
|
+
*/
|
|
945
|
+
readonly style?: PibblParticleStyleInput<Particles2DStyle>;
|
|
946
|
+
} & ({
|
|
947
|
+
/**
|
|
948
|
+
* Particle effect associated with this input or diagnostic. See {@link SignalValue},
|
|
949
|
+
* {@link PibblParticleEffect2D}.
|
|
950
|
+
*/
|
|
951
|
+
readonly effect: SignalValue<PibblParticleEffect2D<EmitterName, Parameters>>;
|
|
952
|
+
/**
|
|
953
|
+
* Not accepted in this variant; use the alternative fields instead. See
|
|
954
|
+
* {@link Particles2DProps}.
|
|
955
|
+
*/
|
|
956
|
+
readonly system?: never;
|
|
957
|
+
/** Whether playback is requested automatically when the owner mounts. See {@link SignalValue}. */
|
|
958
|
+
readonly autoplay?: SignalValue<boolean>;
|
|
959
|
+
/** Seed used for deterministic sampling or simulation initialization. See {@link SignalValue}. */
|
|
960
|
+
readonly seed?: SignalValue<number>;
|
|
961
|
+
} | {
|
|
962
|
+
/**
|
|
963
|
+
* Not accepted in this variant; use the alternative fields instead. See
|
|
964
|
+
* {@link Particles2DProps}.
|
|
965
|
+
*/
|
|
966
|
+
readonly effect?: never;
|
|
967
|
+
/**
|
|
968
|
+
* Mounted particle controller supplying this component's simulation. See
|
|
969
|
+
* {@link PibblParticleSystem}.
|
|
970
|
+
*/
|
|
971
|
+
readonly system: PibblParticleSystem<EmitterName, Parameters>;
|
|
972
|
+
/**
|
|
973
|
+
* Not accepted in this variant; use the alternative fields instead. See
|
|
974
|
+
* {@link Particles2DProps}.
|
|
975
|
+
*/
|
|
976
|
+
readonly autoplay?: never;
|
|
977
|
+
/**
|
|
978
|
+
* Not accepted in this variant; use the alternative fields instead. See
|
|
979
|
+
* {@link Particles2DProps}.
|
|
980
|
+
*/
|
|
981
|
+
readonly seed?: never;
|
|
982
|
+
});
|
|
983
|
+
export {};
|