@ansh-ui/core 0.2.0 → 0.3.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/dist/behaviours.cjs +20 -15
- package/dist/behaviours.d.cts +2 -2
- package/dist/behaviours.d.ts +2 -2
- package/dist/behaviours.js +3 -2
- package/dist/{chunk-56NNBIAO.js → chunk-2DOA43UB.js} +1047 -18
- package/dist/chunk-2DOA43UB.js.map +1 -0
- package/dist/{chunk-7MYTSAPR.js → chunk-37GPMMMT.js} +3 -3
- package/dist/{chunk-7MYTSAPR.js.map → chunk-37GPMMMT.js.map} +1 -1
- package/dist/{chunk-23GSSIMK.cjs → chunk-4ORYTFY3.cjs} +3 -3
- package/dist/{chunk-23GSSIMK.cjs.map → chunk-4ORYTFY3.cjs.map} +1 -1
- package/dist/{chunk-MMO7KO53.cjs → chunk-FNR4B3KY.cjs} +3 -3
- package/dist/{chunk-MMO7KO53.cjs.map → chunk-FNR4B3KY.cjs.map} +1 -1
- package/dist/{chunk-BOQQHICI.js → chunk-GQH5ZHPB.js} +3 -3
- package/dist/{chunk-BOQQHICI.js.map → chunk-GQH5ZHPB.js.map} +1 -1
- package/dist/{chunk-R7UJ7MWP.cjs → chunk-OSNUN5JJ.cjs} +1070 -34
- package/dist/chunk-OSNUN5JJ.cjs.map +1 -0
- package/dist/{chunk-GHBRGMSO.cjs → chunk-PZF3YXVE.cjs} +6 -6
- package/dist/{chunk-GHBRGMSO.cjs.map → chunk-PZF3YXVE.cjs.map} +1 -1
- package/dist/{chunk-UJBXY6QC.cjs → chunk-SSAWZIO2.cjs} +150 -28
- package/dist/chunk-SSAWZIO2.cjs.map +1 -0
- package/dist/{chunk-C6XPQO2O.js → chunk-WLOGUD3G.js} +126 -5
- package/dist/{chunk-C6XPQO2O.js.map → chunk-WLOGUD3G.js.map} +1 -1
- package/dist/{chunk-KTUBCQC3.js → chunk-YHSCAGCI.js} +3 -3
- package/dist/{chunk-KTUBCQC3.js.map → chunk-YHSCAGCI.js.map} +1 -1
- package/dist/color.cjs +39 -39
- package/dist/color.d.cts +5 -4
- package/dist/color.d.ts +5 -4
- package/dist/color.js +3 -3
- package/dist/effects.cjs +53 -25
- package/dist/effects.d.cts +4 -4
- package/dist/effects.d.ts +4 -4
- package/dist/effects.js +4 -4
- package/dist/{index-CQEEPu-D.d.ts → index-DN0bQII7.d.ts} +47 -2
- package/dist/{index-DHOfsEIn.d.cts → index-DmJ3i1Tr.d.cts} +330 -4
- package/dist/{index-Dl8GCsya.d.cts → index-Dv3gw7Mb.d.cts} +47 -2
- package/dist/{index-CCdpefMp.d.ts → index-SO8zHlVo.d.ts} +330 -4
- package/dist/index.cjs +186 -154
- package/dist/index.d.cts +10 -9
- package/dist/index.d.ts +10 -9
- package/dist/index.js +9 -9
- package/dist/math.d.cts +3 -2
- package/dist/math.d.ts +3 -2
- package/dist/noise.d.cts +2 -1
- package/dist/noise.d.ts +2 -1
- package/dist/{palette-6HkVltYU.d.ts → palette-Dcomsp9R.d.cts} +2 -1
- package/dist/{palette-6HkVltYU.d.cts → palette-Dcomsp9R.d.ts} +2 -1
- package/dist/{random--4mSc5Lp.d.cts → random-YnhdaiIx.d.cts} +2 -1
- package/dist/{random--4mSc5Lp.d.ts → random-YnhdaiIx.d.ts} +2 -1
- package/dist/{reduced-motion-D0LUgZle.d.cts → reduced-motion-DaeXwgzb.d.cts} +2 -1
- package/dist/{reduced-motion-D0LUgZle.d.ts → reduced-motion-DaeXwgzb.d.ts} +2 -1
- package/package.json +1 -1
- package/dist/chunk-56NNBIAO.js.map +0 -1
- package/dist/chunk-R7UJ7MWP.cjs.map +0 -1
- package/dist/chunk-UJBXY6QC.cjs.map +0 -1
package/dist/index.d.cts
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
export { EPSILON, HALF_PI, PI, Rect, TAU, Vec2, addScaledVec2, addVec2, addVec2Into, angleDelta, angleOfVec2, approximately, clamp, cloneVec2, crossVec2, damp, degrees, distanceSqVec2, distanceVec2, dotVec2, finite, fromAngle, inverseLerp, lengthSqVec2, lengthVec2, lerp, lerpAngle, lerpVec2, lerpVec2Into, limitVec2, mean, moveTowards, normalizeInRect, normalizeVec2, percentileSorted, pingPong, radians, rectContains, reflectVec2, remap, rotateVec2, roundTo, scaleVec2, scaleVec2Into, setVec2, smootherstep, smoothstep, snap, subVec2, subVec2Into, vec2, wrap } from './math.cjs';
|
|
2
|
-
export { R as Rng, c as createRng, d as deriveSeed, g as goldenRatioSequence, h as hashString, j as jitter, r as r2Sequence, w as weightedPick } from './random
|
|
2
|
+
export { R as Rng, c as createRng, d as deriveSeed, g as goldenRatioSequence, h as hashString, j as jitter, r as r2Sequence, w as weightedPick } from './random-YnhdaiIx.cjs';
|
|
3
3
|
import { E as EasingInput } from './types-B1FLLf3-.cjs';
|
|
4
4
|
export { a as EasingFn, b as EasingName } from './types-B1FLLf3-.cjs';
|
|
5
5
|
export { anticipate, cubicBezier, easeInBack, easeInBounce, easeInCirc, easeInCubic, easeInElastic, easeInExpo, easeInOutBack, easeInOutBounce, easeInOutCirc, easeInOutCubic, easeInOutElastic, easeInOutExpo, easeInOutQuad, easeInOutQuart, easeInOutQuint, easeInOutSine, easeInQuad, easeInQuart, easeInQuint, easeInSine, easeOutBack, easeOutBounce, easeOutCirc, easeOutCubic, easeOutElastic, easeOutExpo, easeOutQuad, easeOutQuart, easeOutQuint, easeOutSine, easings, linear, listEasings, mirrorEasing, power, readEasingTable, registerEasing, resolveEasing, reverseEasing, sampleEasing, signature, steps, unregisterEasing } from './easing.cjs';
|
|
6
6
|
export { CurlResult, FRACTAL_DEFAULTS, FractalOptions, GRAD3, GRAD4, Noise, Noise2DFn, Noise3DFn, NoiseTables, PerlinNoise, SimplexNoise, clearNoiseTableCache, createNoise, createNoiseTables, createPerlinNoise, createSimplexNoise, createValueNoise, curl2D, curl2DAnimated, fbm2D, fbm3D, ridged2D, tileable2D, turbulence2D, warp2D } from './noise.cjs';
|
|
7
|
-
import { C as ColorSpace } from './palette-
|
|
8
|
-
export { a as ColorInput, b as ColorScale, H as HarmonyKind, c as Hsl, d as Hsv, e as HueDirection, L as LinearRgb, O as Oklab, f as Oklch, P as PaletteName, g as PaletteOptions, R as Rgb, S as ScaleOptions, h as createScale, i as expandPalette, j as generatePalette, k as harmony, l as invertForSurface, p as palettes, r as resolvePalette, s as sortByLightness } from './palette-
|
|
7
|
+
import { C as ColorSpace } from './palette-Dcomsp9R.cjs';
|
|
8
|
+
export { a as ColorInput, b as ColorScale, H as HarmonyKind, c as Hsl, d as Hsv, e as HueDirection, L as LinearRgb, O as Oklab, f as Oklch, P as PaletteName, g as PaletteOptions, R as Rgb, S as ScaleOptions, h as createScale, i as expandPalette, j as generatePalette, k as harmony, l as invertForSurface, p as palettes, r as resolvePalette, s as sortByLightness } from './palette-Dcomsp9R.cjs';
|
|
9
9
|
export { ColorParseError, ContrastResult, Gradient, GradientOptions, GradientStop, MixOptions, TextSize, WcagLevel, applyGradientStops, blend, checkContrast, clearColorCache, composite, contrastRatio, createGradient, ensureContrast, fadeBy, fromUint32, gamutError, gamutMapOklch, hslToRgb, hsvToRgb, inSrgbGamut, isGamutStable, lerpHue, linearToOklab, linearToRgb, linearToSrgbChannel, listNamedColors, maxChroma, mixColors, mixParsed, namedColorToHex, oklabToLinear, oklabToOklch, oklabToRgb, oklchToOklab, oklchToRgb, oklchToRgbMapped, parseColor, perceivedLightness, pickReadable, relativeLuminance, requiredRatio, resolveComputed, resolveCssVariable, rgbToHsl, rgbToHsv, rgbToLinear, rgbToOklab, rgbToOklch, srgbToLinearChannel, toHex, toHslString, toOklchString, toRgbString, toUint32, tryParseColor, withAlpha, worstContrast } from './color.cjs';
|
|
10
|
-
import { F as FrameCallback, S as SubscribeOptions, U as Unsubscribe, a as FrameState, b as FramePhase } from './reduced-motion-
|
|
11
|
-
export { c as FRAME_PHASES, M as MotionResolution, d as ReducedMotionMode, R as ReducedMotionStrategy, g as getReducedMotionMode, o as onReducedMotionChange, p as prefersReducedMotion, r as resetReducedMotion, e as resolveMotion, s as setReducedMotionMode } from './reduced-motion-
|
|
12
|
-
import { S as StaggerOptions } from './index-
|
|
13
|
-
export { B as BaseBehaviourOptions, a as BehaviourDefinition, b as BehaviourHandle, c as BehaviourInstance, d as BehaviourName, M as MagneticOptions, e as MarqueeOptions, P as ParallaxOptions, R as RippleOptions, f as ScrollRevealOptions, g as SplitTextOptions, h as SplitTextResult, i as SplitUnit, j as StaggerFrom, T as
|
|
14
|
-
export { A as AnimatedGradientOptions, a as AuroraOptions, B as BaseEffectOptions,
|
|
10
|
+
import { F as FrameCallback, S as SubscribeOptions, U as Unsubscribe, a as FrameState, b as FramePhase } from './reduced-motion-DaeXwgzb.cjs';
|
|
11
|
+
export { c as FRAME_PHASES, M as MotionResolution, d as ReducedMotionMode, R as ReducedMotionStrategy, g as getReducedMotionMode, o as onReducedMotionChange, p as prefersReducedMotion, r as resetReducedMotion, e as resolveMotion, s as setReducedMotionMode } from './reduced-motion-DaeXwgzb.cjs';
|
|
12
|
+
import { S as StaggerOptions } from './index-Dv3gw7Mb.cjs';
|
|
13
|
+
export { B as BaseBehaviourOptions, a as BehaviourDefinition, b as BehaviourHandle, c as BehaviourInstance, d as BehaviourName, M as MagneticOptions, e as MarqueeOptions, P as ParallaxOptions, R as RippleOptions, f as ScrollRevealOptions, g as SplitTextOptions, h as SplitTextResult, i as SplitUnit, j as StaggerFrom, T as TextScrambleOptions, k as TiltOptions, l as behaviours, m as captureStyles, n as defineBehaviour, o as getSplitResult, p as magnetic, q as marquee, r as mountBehaviour, s as parallax, t as ripple, u as scrollReveal, v as split, w as splitText, x as stagger, y as staggerDuration, z as textScramble, A as tilt } from './index-Dv3gw7Mb.cjs';
|
|
14
|
+
export { A as AnimatedGradientOptions, a as AttractorKind, b as AuroraOptions, B as BaseEffectOptions, c as BlendMode, d as BlobOptions, C as ConstellationOptions, E as EffectContext, e as EffectDefinition, f as EffectFrame, g as EffectHandle, h as EffectInstance, i as EffectName, F as FirefliesOptions, j as FloatingGeometryOptions, G as GeometryShape, k as GradientCache, L as LightRaysOptions, M as MeshGradientOptions, l as MeteorsOptions, N as NoiseLayerOptions, O as OrbitOptions, P as ParticleBuffer, m as ParticleFieldOptions, n as PointerOptions, o as PointerState, p as PointerTracker, q as PowderExplosionOptions, R as RainOptions, S as Size, r as SmokeOptions, s as SnowOptions, t as SpatialGrid, u as SpotlightOptions, v as StrangeAttractorOptions, w as Surface, x as SurfaceOptions, y as SwarmOptions, U as Unsub, W as WavesOptions, z as ageAndCull, D as animatedGradient, H as aurora, I as blob, J as constellation, K as createSurface, Q as defineEffect, T as drawDot, V as drawGlow, X as effects, Y as fireflies, Z as floatingGeometry, _ as integrate, $ as lightRays, a0 as meshGradient, a1 as meteors, a2 as mountEffect, a3 as noiseLayer, a4 as orbit, a5 as particleField, a6 as powderExplosion, a7 as rain, a8 as resetFilterSupport, a9 as smoke, aa as snow, ab as spotlight, ac as strangeAttractor, ad as supportsCanvasFilter, ae as supportsOffscreenCanvas, af as supportsWorkerRendering, ag as swarm, ah as traceClosedSpline, ai as traceOpenSpline, aj as traceRoundRect, ak as trackPointer, al as waves, am as wrapBounds } from './index-DmJ3i1Tr.cjs';
|
|
15
15
|
|
|
16
16
|
/**
|
|
17
17
|
* Spring physics, solved analytically.
|
|
@@ -1119,4 +1119,5 @@ declare function resetRegistry(): void;
|
|
|
1119
1119
|
/** The package version, injected at build time and useful in bug reports. */
|
|
1120
1120
|
declare const VERSION = "0.1.0";
|
|
1121
1121
|
|
|
1122
|
-
export {
|
|
1122
|
+
export { CapabilityError, Clock, ColorSpace, DEFAULT_TWEEN_DURATION, EasingInput, FrameBudget, FrameCallback, FramePhase, FrameState, MotionValue, Registry, SPRING_DEFAULTS, StaggerOptions, SubscribeOptions, Ticker, Unsubscribe, VERSION, animate, attachLifecycle, createDecay, createSampler, createSpring, createTimeline, derived, getRegistry, getTicker, hasSpringOptions, interpolateArray, interpolateColor, interpolateKeyframes, interpolateNumber, interpolateNumericString, interpolateObject, interpolateUnitValue, mapValue, motionValue, now, observeIntersection, observeResize, observerPoolStats, perceptualToPhysical, physicalToPerceptual, resetObserverPools, resetRegistry, resetTicker, resolveInterpolator, resolveSpringOptions, setTicker, springTo, springs, trackContainerScroll, trackScroll };
|
|
1123
|
+
export type { AnimationControls, AnimationOptions, BudgetReport, CapabilityName, ClockOptions, DecayOptions, FrameBudgetOptions, FrameTiming, InterpolateOptions, Interpolator, IntersectionConfig, LifecycleOptions, MotionValueListener, MotionValueTuple, PerceptualSpringOptions, PhysicalSpringOptions, Plugin, RepeatMode, ResizeInfo, Sampler, SamplerOptions, SamplerType, ScrollAxis, ScrollEdge, ScrollOffset, ScrollProgress, ScrollTrackOptions, SpringInput, SpringOptions, SpringPresetName, SpringRestOptions, SpringSolver, SpringState, TickerOptions, Timeline, TimelineOptions, TimelinePosition };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
export { EPSILON, HALF_PI, PI, Rect, TAU, Vec2, addScaledVec2, addVec2, addVec2Into, angleDelta, angleOfVec2, approximately, clamp, cloneVec2, crossVec2, damp, degrees, distanceSqVec2, distanceVec2, dotVec2, finite, fromAngle, inverseLerp, lengthSqVec2, lengthVec2, lerp, lerpAngle, lerpVec2, lerpVec2Into, limitVec2, mean, moveTowards, normalizeInRect, normalizeVec2, percentileSorted, pingPong, radians, rectContains, reflectVec2, remap, rotateVec2, roundTo, scaleVec2, scaleVec2Into, setVec2, smootherstep, smoothstep, snap, subVec2, subVec2Into, vec2, wrap } from './math.js';
|
|
2
|
-
export { R as Rng, c as createRng, d as deriveSeed, g as goldenRatioSequence, h as hashString, j as jitter, r as r2Sequence, w as weightedPick } from './random
|
|
2
|
+
export { R as Rng, c as createRng, d as deriveSeed, g as goldenRatioSequence, h as hashString, j as jitter, r as r2Sequence, w as weightedPick } from './random-YnhdaiIx.js';
|
|
3
3
|
import { E as EasingInput } from './types-B1FLLf3-.js';
|
|
4
4
|
export { a as EasingFn, b as EasingName } from './types-B1FLLf3-.js';
|
|
5
5
|
export { anticipate, cubicBezier, easeInBack, easeInBounce, easeInCirc, easeInCubic, easeInElastic, easeInExpo, easeInOutBack, easeInOutBounce, easeInOutCirc, easeInOutCubic, easeInOutElastic, easeInOutExpo, easeInOutQuad, easeInOutQuart, easeInOutQuint, easeInOutSine, easeInQuad, easeInQuart, easeInQuint, easeInSine, easeOutBack, easeOutBounce, easeOutCirc, easeOutCubic, easeOutElastic, easeOutExpo, easeOutQuad, easeOutQuart, easeOutQuint, easeOutSine, easings, linear, listEasings, mirrorEasing, power, readEasingTable, registerEasing, resolveEasing, reverseEasing, sampleEasing, signature, steps, unregisterEasing } from './easing.js';
|
|
6
6
|
export { CurlResult, FRACTAL_DEFAULTS, FractalOptions, GRAD3, GRAD4, Noise, Noise2DFn, Noise3DFn, NoiseTables, PerlinNoise, SimplexNoise, clearNoiseTableCache, createNoise, createNoiseTables, createPerlinNoise, createSimplexNoise, createValueNoise, curl2D, curl2DAnimated, fbm2D, fbm3D, ridged2D, tileable2D, turbulence2D, warp2D } from './noise.js';
|
|
7
|
-
import { C as ColorSpace } from './palette-
|
|
8
|
-
export { a as ColorInput, b as ColorScale, H as HarmonyKind, c as Hsl, d as Hsv, e as HueDirection, L as LinearRgb, O as Oklab, f as Oklch, P as PaletteName, g as PaletteOptions, R as Rgb, S as ScaleOptions, h as createScale, i as expandPalette, j as generatePalette, k as harmony, l as invertForSurface, p as palettes, r as resolvePalette, s as sortByLightness } from './palette-
|
|
7
|
+
import { C as ColorSpace } from './palette-Dcomsp9R.js';
|
|
8
|
+
export { a as ColorInput, b as ColorScale, H as HarmonyKind, c as Hsl, d as Hsv, e as HueDirection, L as LinearRgb, O as Oklab, f as Oklch, P as PaletteName, g as PaletteOptions, R as Rgb, S as ScaleOptions, h as createScale, i as expandPalette, j as generatePalette, k as harmony, l as invertForSurface, p as palettes, r as resolvePalette, s as sortByLightness } from './palette-Dcomsp9R.js';
|
|
9
9
|
export { ColorParseError, ContrastResult, Gradient, GradientOptions, GradientStop, MixOptions, TextSize, WcagLevel, applyGradientStops, blend, checkContrast, clearColorCache, composite, contrastRatio, createGradient, ensureContrast, fadeBy, fromUint32, gamutError, gamutMapOklch, hslToRgb, hsvToRgb, inSrgbGamut, isGamutStable, lerpHue, linearToOklab, linearToRgb, linearToSrgbChannel, listNamedColors, maxChroma, mixColors, mixParsed, namedColorToHex, oklabToLinear, oklabToOklch, oklabToRgb, oklchToOklab, oklchToRgb, oklchToRgbMapped, parseColor, perceivedLightness, pickReadable, relativeLuminance, requiredRatio, resolveComputed, resolveCssVariable, rgbToHsl, rgbToHsv, rgbToLinear, rgbToOklab, rgbToOklch, srgbToLinearChannel, toHex, toHslString, toOklchString, toRgbString, toUint32, tryParseColor, withAlpha, worstContrast } from './color.js';
|
|
10
|
-
import { F as FrameCallback, S as SubscribeOptions, U as Unsubscribe, a as FrameState, b as FramePhase } from './reduced-motion-
|
|
11
|
-
export { c as FRAME_PHASES, M as MotionResolution, d as ReducedMotionMode, R as ReducedMotionStrategy, g as getReducedMotionMode, o as onReducedMotionChange, p as prefersReducedMotion, r as resetReducedMotion, e as resolveMotion, s as setReducedMotionMode } from './reduced-motion-
|
|
12
|
-
import { S as StaggerOptions } from './index-
|
|
13
|
-
export { B as BaseBehaviourOptions, a as BehaviourDefinition, b as BehaviourHandle, c as BehaviourInstance, d as BehaviourName, M as MagneticOptions, e as MarqueeOptions, P as ParallaxOptions, R as RippleOptions, f as ScrollRevealOptions, g as SplitTextOptions, h as SplitTextResult, i as SplitUnit, j as StaggerFrom, T as
|
|
14
|
-
export { A as AnimatedGradientOptions, a as AuroraOptions, B as BaseEffectOptions,
|
|
10
|
+
import { F as FrameCallback, S as SubscribeOptions, U as Unsubscribe, a as FrameState, b as FramePhase } from './reduced-motion-DaeXwgzb.js';
|
|
11
|
+
export { c as FRAME_PHASES, M as MotionResolution, d as ReducedMotionMode, R as ReducedMotionStrategy, g as getReducedMotionMode, o as onReducedMotionChange, p as prefersReducedMotion, r as resetReducedMotion, e as resolveMotion, s as setReducedMotionMode } from './reduced-motion-DaeXwgzb.js';
|
|
12
|
+
import { S as StaggerOptions } from './index-DN0bQII7.js';
|
|
13
|
+
export { B as BaseBehaviourOptions, a as BehaviourDefinition, b as BehaviourHandle, c as BehaviourInstance, d as BehaviourName, M as MagneticOptions, e as MarqueeOptions, P as ParallaxOptions, R as RippleOptions, f as ScrollRevealOptions, g as SplitTextOptions, h as SplitTextResult, i as SplitUnit, j as StaggerFrom, T as TextScrambleOptions, k as TiltOptions, l as behaviours, m as captureStyles, n as defineBehaviour, o as getSplitResult, p as magnetic, q as marquee, r as mountBehaviour, s as parallax, t as ripple, u as scrollReveal, v as split, w as splitText, x as stagger, y as staggerDuration, z as textScramble, A as tilt } from './index-DN0bQII7.js';
|
|
14
|
+
export { A as AnimatedGradientOptions, a as AttractorKind, b as AuroraOptions, B as BaseEffectOptions, c as BlendMode, d as BlobOptions, C as ConstellationOptions, E as EffectContext, e as EffectDefinition, f as EffectFrame, g as EffectHandle, h as EffectInstance, i as EffectName, F as FirefliesOptions, j as FloatingGeometryOptions, G as GeometryShape, k as GradientCache, L as LightRaysOptions, M as MeshGradientOptions, l as MeteorsOptions, N as NoiseLayerOptions, O as OrbitOptions, P as ParticleBuffer, m as ParticleFieldOptions, n as PointerOptions, o as PointerState, p as PointerTracker, q as PowderExplosionOptions, R as RainOptions, S as Size, r as SmokeOptions, s as SnowOptions, t as SpatialGrid, u as SpotlightOptions, v as StrangeAttractorOptions, w as Surface, x as SurfaceOptions, y as SwarmOptions, U as Unsub, W as WavesOptions, z as ageAndCull, D as animatedGradient, H as aurora, I as blob, J as constellation, K as createSurface, Q as defineEffect, T as drawDot, V as drawGlow, X as effects, Y as fireflies, Z as floatingGeometry, _ as integrate, $ as lightRays, a0 as meshGradient, a1 as meteors, a2 as mountEffect, a3 as noiseLayer, a4 as orbit, a5 as particleField, a6 as powderExplosion, a7 as rain, a8 as resetFilterSupport, a9 as smoke, aa as snow, ab as spotlight, ac as strangeAttractor, ad as supportsCanvasFilter, ae as supportsOffscreenCanvas, af as supportsWorkerRendering, ag as swarm, ah as traceClosedSpline, ai as traceOpenSpline, aj as traceRoundRect, ak as trackPointer, al as waves, am as wrapBounds } from './index-SO8zHlVo.js';
|
|
15
15
|
|
|
16
16
|
/**
|
|
17
17
|
* Spring physics, solved analytically.
|
|
@@ -1119,4 +1119,5 @@ declare function resetRegistry(): void;
|
|
|
1119
1119
|
/** The package version, injected at build time and useful in bug reports. */
|
|
1120
1120
|
declare const VERSION = "0.1.0";
|
|
1121
1121
|
|
|
1122
|
-
export {
|
|
1122
|
+
export { CapabilityError, Clock, ColorSpace, DEFAULT_TWEEN_DURATION, EasingInput, FrameBudget, FrameCallback, FramePhase, FrameState, MotionValue, Registry, SPRING_DEFAULTS, StaggerOptions, SubscribeOptions, Ticker, Unsubscribe, VERSION, animate, attachLifecycle, createDecay, createSampler, createSpring, createTimeline, derived, getRegistry, getTicker, hasSpringOptions, interpolateArray, interpolateColor, interpolateKeyframes, interpolateNumber, interpolateNumericString, interpolateObject, interpolateUnitValue, mapValue, motionValue, now, observeIntersection, observeResize, observerPoolStats, perceptualToPhysical, physicalToPerceptual, resetObserverPools, resetRegistry, resetTicker, resolveInterpolator, resolveSpringOptions, setTicker, springTo, springs, trackContainerScroll, trackScroll };
|
|
1123
|
+
export type { AnimationControls, AnimationOptions, BudgetReport, CapabilityName, ClockOptions, DecayOptions, FrameBudgetOptions, FrameTiming, InterpolateOptions, Interpolator, IntersectionConfig, LifecycleOptions, MotionValueListener, MotionValueTuple, PerceptualSpringOptions, PhysicalSpringOptions, Plugin, RepeatMode, ResizeInfo, Sampler, SamplerOptions, SamplerType, ScrollAxis, ScrollEdge, ScrollOffset, ScrollProgress, ScrollTrackOptions, SpringInput, SpringOptions, SpringPresetName, SpringRestOptions, SpringSolver, SpringState, TickerOptions, Timeline, TimelineOptions, TimelinePosition };
|
package/dist/index.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
export { addScaledVec2, addVec2, addVec2Into, angleOfVec2, cloneVec2, crossVec2, distanceSqVec2, distanceVec2, dotVec2, fromAngle, lengthSqVec2, lengthVec2, lerpVec2, lerpVec2Into, limitVec2, normalizeInRect, normalizeVec2, rectContains, reflectVec2, rotateVec2, scaleVec2, scaleVec2Into, setVec2, subVec2, subVec2Into, vec2 } from './chunk-NSXKCJJ7.js';
|
|
2
|
-
export { checkContrast, contrastRatio, ensureContrast, perceivedLightness, pickReadable, requiredRatio, worstContrast } from './chunk-
|
|
3
|
-
export { GradientCache, ParticleBuffer, SpatialGrid, ageAndCull, animatedGradient, aurora, blob, constellation, createSurface, defineEffect, drawDot, drawGlow, effects, fireflies, integrate, meshGradient, meteors, mountEffect, noiseLayer, particleField, rain, resetFilterSupport, snow, spotlight, supportsCanvasFilter, supportsOffscreenCanvas, supportsWorkerRendering, traceClosedSpline, traceOpenSpline, traceRoundRect, waves, wrapBounds } from './chunk-
|
|
4
|
-
import { toRgbString, mixParsed } from './chunk-
|
|
5
|
-
export { applyGradientStops, blend, composite, createGradient, createScale, expandPalette, fadeBy, fromUint32, gamutError, gamutMapOklch, generatePalette, harmony, inSrgbGamut, invertForSurface, isGamutStable, lerpHue, maxChroma, mixColors, mixParsed, oklchToRgbMapped, palettes, resolvePalette, sortByLightness, toHex, toHslString, toOklchString, toRgbString, toUint32, withAlpha } from './chunk-
|
|
2
|
+
export { checkContrast, contrastRatio, ensureContrast, perceivedLightness, pickReadable, requiredRatio, worstContrast } from './chunk-37GPMMMT.js';
|
|
3
|
+
export { GradientCache, ParticleBuffer, SpatialGrid, ageAndCull, animatedGradient, aurora, blob, constellation, createSurface, defineEffect, drawDot, drawGlow, effects, fireflies, floatingGeometry, integrate, lightRays, meshGradient, meteors, mountEffect, noiseLayer, orbit, particleField, powderExplosion, rain, resetFilterSupport, smoke, snow, spotlight, strangeAttractor, supportsCanvasFilter, supportsOffscreenCanvas, supportsWorkerRendering, swarm, traceClosedSpline, traceOpenSpline, traceRoundRect, waves, wrapBounds } from './chunk-2DOA43UB.js';
|
|
4
|
+
import { toRgbString, mixParsed } from './chunk-YHSCAGCI.js';
|
|
5
|
+
export { applyGradientStops, blend, composite, createGradient, createScale, expandPalette, fadeBy, fromUint32, gamutError, gamutMapOklch, generatePalette, harmony, inSrgbGamut, invertForSurface, isGamutStable, lerpHue, maxChroma, mixColors, mixParsed, oklchToRgbMapped, palettes, resolvePalette, sortByLightness, toHex, toHslString, toOklchString, toRgbString, toUint32, withAlpha } from './chunk-YHSCAGCI.js';
|
|
6
6
|
export { FRACTAL_DEFAULTS, GRAD3, GRAD4, clearNoiseTableCache, createNoise, createNoiseTables, createPerlinNoise, createSimplexNoise, createValueNoise, curl2D, curl2DAnimated, fbm2D, fbm3D, ridged2D, tileable2D, turbulence2D, warp2D } from './chunk-FAVIEION.js';
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
export { CapabilityError, Clock, FRAME_PHASES, FrameBudget, Registry, Ticker, getReducedMotionMode, getRegistry, getTicker, now, observeIntersection, observeResize, observerPoolStats, onReducedMotionChange, prefersReducedMotion, resetObserverPools, resetReducedMotion, resetRegistry, resetTicker, resolveMotion, setReducedMotionMode, setTicker, trackPointer } from './chunk-BOQQHICI.js';
|
|
7
|
+
import { stagger } from './chunk-WLOGUD3G.js';
|
|
8
|
+
export { behaviours, captureStyles, defineBehaviour, getSplitResult, magnetic, marquee, mountBehaviour, parallax, ripple, scrollReveal, split, splitText, stagger, staggerDuration, textScramble, tilt } from './chunk-WLOGUD3G.js';
|
|
9
|
+
import { now, prefersReducedMotion, getTicker, observeResize } from './chunk-GQH5ZHPB.js';
|
|
10
|
+
export { CapabilityError, Clock, FRAME_PHASES, FrameBudget, Registry, Ticker, getReducedMotionMode, getRegistry, getTicker, now, observeIntersection, observeResize, observerPoolStats, onReducedMotionChange, prefersReducedMotion, resetObserverPools, resetReducedMotion, resetRegistry, resetTicker, resolveMotion, setReducedMotionMode, setTicker, trackPointer } from './chunk-GQH5ZHPB.js';
|
|
12
11
|
import { parseColor, tryParseColor } from './chunk-QALZKHWH.js';
|
|
13
12
|
export { ColorParseError, clearColorCache, hslToRgb, hsvToRgb, linearToOklab, linearToRgb, linearToSrgbChannel, listNamedColors, namedColorToHex, oklabToLinear, oklabToOklch, oklabToRgb, oklchToOklab, oklchToRgb, parseColor, relativeLuminance, resolveComputed, resolveCssVariable, rgbToHsl, rgbToHsv, rgbToLinear, rgbToOklab, rgbToOklch, srgbToLinearChannel, tryParseColor } from './chunk-QALZKHWH.js';
|
|
14
13
|
import { resolveEasing } from './chunk-7MEIXWPH.js';
|
|
15
14
|
export { anticipate, cubicBezier, easeInBack, easeInBounce, easeInCirc, easeInCubic, easeInElastic, easeInExpo, easeInOutBack, easeInOutBounce, easeInOutCirc, easeInOutCubic, easeInOutElastic, easeInOutExpo, easeInOutQuad, easeInOutQuart, easeInOutQuint, easeInOutSine, easeInQuad, easeInQuart, easeInQuint, easeInSine, easeOutBack, easeOutBounce, easeOutCirc, easeOutCubic, easeOutElastic, easeOutExpo, easeOutQuad, easeOutQuart, easeOutQuint, easeOutSine, easings, linear, listEasings, mirrorEasing, power, readEasingTable, registerEasing, resolveEasing, reverseEasing, sampleEasing, signature, steps, unregisterEasing } from './chunk-7MEIXWPH.js';
|
|
15
|
+
export { createRng, deriveSeed, goldenRatioSequence, hashString, jitter, r2Sequence, weightedPick } from './chunk-YFQXRC5R.js';
|
|
16
16
|
import { clamp, lerp } from './chunk-KU2C6GEA.js';
|
|
17
17
|
export { EPSILON, HALF_PI, PI, TAU, angleDelta, approximately, clamp, damp, degrees, finite, inverseLerp, lerp, lerpAngle, mean, moveTowards, percentileSorted, pingPong, radians, remap, roundTo, smootherstep, smoothstep, snap, wrap } from './chunk-KU2C6GEA.js';
|
|
18
18
|
|
package/dist/math.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { R as Rng, c as createRng, d as deriveSeed, g as goldenRatioSequence, h as hashString, j as jitter, r as r2Sequence, w as weightedPick } from './random
|
|
1
|
+
export { R as Rng, c as createRng, d as deriveSeed, g as goldenRatioSequence, h as hashString, j as jitter, r as r2Sequence, w as weightedPick } from './random-YnhdaiIx.cjs';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Scalar math primitives.
|
|
@@ -117,4 +117,5 @@ declare function rectContains(rect: Rect, x: number, y: number): boolean;
|
|
|
117
117
|
/** Position of `(x, y)` within `rect`, normalised to `[0,1]` on each axis. */
|
|
118
118
|
declare function normalizeInRect(rect: Rect, x: number, y: number): Vec2;
|
|
119
119
|
|
|
120
|
-
export { EPSILON, HALF_PI, PI,
|
|
120
|
+
export { EPSILON, HALF_PI, PI, TAU, addScaledVec2, addVec2, addVec2Into, angleDelta, angleOfVec2, approximately, clamp, cloneVec2, crossVec2, damp, degrees, distanceSqVec2, distanceVec2, dotVec2, finite, fromAngle, inverseLerp, lengthSqVec2, lengthVec2, lerp, lerpAngle, lerpVec2, lerpVec2Into, limitVec2, mean, moveTowards, normalizeInRect, normalizeVec2, percentileSorted, pingPong, radians, rectContains, reflectVec2, remap, rotateVec2, roundTo, scaleVec2, scaleVec2Into, setVec2, smootherstep, smoothstep, snap, subVec2, subVec2Into, vec2, wrap };
|
|
121
|
+
export type { Rect, Vec2 };
|
package/dist/math.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { R as Rng, c as createRng, d as deriveSeed, g as goldenRatioSequence, h as hashString, j as jitter, r as r2Sequence, w as weightedPick } from './random
|
|
1
|
+
export { R as Rng, c as createRng, d as deriveSeed, g as goldenRatioSequence, h as hashString, j as jitter, r as r2Sequence, w as weightedPick } from './random-YnhdaiIx.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Scalar math primitives.
|
|
@@ -117,4 +117,5 @@ declare function rectContains(rect: Rect, x: number, y: number): boolean;
|
|
|
117
117
|
/** Position of `(x, y)` within `rect`, normalised to `[0,1]` on each axis. */
|
|
118
118
|
declare function normalizeInRect(rect: Rect, x: number, y: number): Vec2;
|
|
119
119
|
|
|
120
|
-
export { EPSILON, HALF_PI, PI,
|
|
120
|
+
export { EPSILON, HALF_PI, PI, TAU, addScaledVec2, addVec2, addVec2Into, angleDelta, angleOfVec2, approximately, clamp, cloneVec2, crossVec2, damp, degrees, distanceSqVec2, distanceVec2, dotVec2, finite, fromAngle, inverseLerp, lengthSqVec2, lengthVec2, lerp, lerpAngle, lerpVec2, lerpVec2Into, limitVec2, mean, moveTowards, normalizeInRect, normalizeVec2, percentileSorted, pingPong, radians, rectContains, reflectVec2, remap, rotateVec2, roundTo, scaleVec2, scaleVec2Into, setVec2, smootherstep, smoothstep, snap, subVec2, subVec2Into, vec2, wrap };
|
|
121
|
+
export type { Rect, Vec2 };
|
package/dist/noise.d.cts
CHANGED
|
@@ -187,4 +187,5 @@ declare function createNoise(seed?: number | string): {
|
|
|
187
187
|
};
|
|
188
188
|
type Noise = ReturnType<typeof createNoise>;
|
|
189
189
|
|
|
190
|
-
export {
|
|
190
|
+
export { FRACTAL_DEFAULTS, GRAD3, GRAD4, clearNoiseTableCache, createNoise, createNoiseTables, createPerlinNoise, createSimplexNoise, createValueNoise, curl2D, curl2DAnimated, fbm2D, fbm3D, ridged2D, tileable2D, turbulence2D, warp2D };
|
|
191
|
+
export type { CurlResult, FractalOptions, Noise, Noise2DFn, Noise3DFn, NoiseTables, PerlinNoise, SimplexNoise };
|
package/dist/noise.d.ts
CHANGED
|
@@ -187,4 +187,5 @@ declare function createNoise(seed?: number | string): {
|
|
|
187
187
|
};
|
|
188
188
|
type Noise = ReturnType<typeof createNoise>;
|
|
189
189
|
|
|
190
|
-
export {
|
|
190
|
+
export { FRACTAL_DEFAULTS, GRAD3, GRAD4, clearNoiseTableCache, createNoise, createNoiseTables, createPerlinNoise, createSimplexNoise, createValueNoise, curl2D, curl2DAnimated, fbm2D, fbm3D, ridged2D, tileable2D, turbulence2D, warp2D };
|
|
191
|
+
export type { CurlResult, FractalOptions, Noise, Noise2DFn, Noise3DFn, NoiseTables, PerlinNoise, SimplexNoise };
|
|
@@ -216,4 +216,5 @@ type PaletteName = keyof typeof palettes;
|
|
|
216
216
|
/** Resolve a palette name, an explicit colour list, or `undefined` (→ the house palette). */
|
|
217
217
|
declare function resolvePalette(input: PaletteName | readonly ColorInput[] | undefined, fallback?: PaletteName): Rgb[];
|
|
218
218
|
|
|
219
|
-
export {
|
|
219
|
+
export { createScale as h, expandPalette as i, generatePalette as j, harmony as k, invertForSurface as l, palettes as p, resolvePalette as r, sortByLightness as s };
|
|
220
|
+
export type { ColorSpace as C, HarmonyKind as H, LinearRgb as L, Oklab as O, PaletteName as P, Rgb as R, ScaleOptions as S, ColorInput as a, ColorScale as b, Hsl as c, Hsv as d, HueDirection as e, Oklch as f, PaletteOptions as g };
|
|
@@ -216,4 +216,5 @@ type PaletteName = keyof typeof palettes;
|
|
|
216
216
|
/** Resolve a palette name, an explicit colour list, or `undefined` (→ the house palette). */
|
|
217
217
|
declare function resolvePalette(input: PaletteName | readonly ColorInput[] | undefined, fallback?: PaletteName): Rgb[];
|
|
218
218
|
|
|
219
|
-
export {
|
|
219
|
+
export { createScale as h, expandPalette as i, generatePalette as j, harmony as k, invertForSurface as l, palettes as p, resolvePalette as r, sortByLightness as s };
|
|
220
|
+
export type { ColorSpace as C, HarmonyKind as H, LinearRgb as L, Oklab as O, PaletteName as P, Rgb as R, ScaleOptions as S, ColorInput as a, ColorScale as b, Hsl as c, Hsv as d, HueDirection as e, Oklch as f, PaletteOptions as g };
|
|
@@ -72,4 +72,5 @@ declare function weightedPick<T>(rng: Rng, items: readonly T[], weights: readonl
|
|
|
72
72
|
/** Jitter a value by ±`amount` (absolute), clamped to an optional range. */
|
|
73
73
|
declare function jitter(rng: Rng, value: number, amount: number, min?: number, max?: number): number;
|
|
74
74
|
|
|
75
|
-
export {
|
|
75
|
+
export { createRng as c, deriveSeed as d, goldenRatioSequence as g, hashString as h, jitter as j, r2Sequence as r, weightedPick as w };
|
|
76
|
+
export type { Rng as R };
|
|
@@ -72,4 +72,5 @@ declare function weightedPick<T>(rng: Rng, items: readonly T[], weights: readonl
|
|
|
72
72
|
/** Jitter a value by ±`amount` (absolute), clamped to an optional range. */
|
|
73
73
|
declare function jitter(rng: Rng, value: number, amount: number, min?: number, max?: number): number;
|
|
74
74
|
|
|
75
|
-
export {
|
|
75
|
+
export { createRng as c, deriveSeed as d, goldenRatioSequence as g, hashString as h, jitter as j, r2Sequence as r, weightedPick as w };
|
|
76
|
+
export type { Rng as R };
|
|
@@ -117,4 +117,5 @@ declare function resolveMotion(strategy?: ReducedMotionStrategy, slowFactor?: nu
|
|
|
117
117
|
/** Reset module state. Test-only. */
|
|
118
118
|
declare function resetReducedMotion(): void;
|
|
119
119
|
|
|
120
|
-
export {
|
|
120
|
+
export { FRAME_PHASES as c, resolveMotion as e, getReducedMotionMode as g, onReducedMotionChange as o, prefersReducedMotion as p, resetReducedMotion as r, setReducedMotionMode as s };
|
|
121
|
+
export type { FrameCallback as F, MotionResolution as M, ReducedMotionStrategy as R, SubscribeOptions as S, Unsubscribe as U, FrameState as a, FramePhase as b, ReducedMotionMode as d };
|
|
@@ -117,4 +117,5 @@ declare function resolveMotion(strategy?: ReducedMotionStrategy, slowFactor?: nu
|
|
|
117
117
|
/** Reset module state. Test-only. */
|
|
118
118
|
declare function resetReducedMotion(): void;
|
|
119
119
|
|
|
120
|
-
export {
|
|
120
|
+
export { FRAME_PHASES as c, resolveMotion as e, getReducedMotionMode as g, onReducedMotionChange as o, prefersReducedMotion as p, resetReducedMotion as r, setReducedMotionMode as s };
|
|
121
|
+
export type { FrameCallback as F, MotionResolution as M, ReducedMotionStrategy as R, SubscribeOptions as S, Unsubscribe as U, FrameState as a, FramePhase as b, ReducedMotionMode as d };
|