own-the-canvas 1.0.9 → 1.0.11

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.
Files changed (49) hide show
  1. package/lib/components/AuroraBorealis/AuroraBorealis.d.ts +7 -0
  2. package/lib/components/AuroraBorealis/index.d.ts +1 -1
  3. package/lib/components/BlackHole/BlackHole.d.ts +10 -0
  4. package/lib/components/BlackHole/index.d.ts +1 -1
  5. package/lib/components/Boids/Boids.d.ts +20 -0
  6. package/lib/components/Boids/index.d.ts +1 -1
  7. package/lib/components/ButterflySwarm/ButterflySwarm.d.ts +33 -0
  8. package/lib/components/ButterflySwarm/index.d.ts +2 -0
  9. package/lib/components/ButterflySwarm/useButterflySwarm.d.ts +14 -0
  10. package/lib/components/ClothSimulation/ClothSimulation.d.ts +18 -0
  11. package/lib/components/ClothSimulation/index.d.ts +1 -1
  12. package/lib/components/DeepSeaBioluminescence/DeepSeaBioluminescence.d.ts +29 -0
  13. package/lib/components/DeepSeaBioluminescence/index.d.ts +2 -0
  14. package/lib/components/DeepSeaBioluminescence/useDeepSeaBioluminescence.d.ts +12 -0
  15. package/lib/components/Fireworks/Fireworks.d.ts +15 -0
  16. package/lib/components/Fireworks/index.d.ts +1 -1
  17. package/lib/components/GalaxySpiral/GalaxySpiral.d.ts +9 -0
  18. package/lib/components/GalaxySpiral/index.d.ts +1 -1
  19. package/lib/components/GlitchOverlay/GlitchOverlay.d.ts +16 -0
  20. package/lib/components/GlitchOverlay/index.d.ts +1 -1
  21. package/lib/components/Lightning/Lightning.d.ts +17 -0
  22. package/lib/components/Lightning/index.d.ts +1 -1
  23. package/lib/components/Mandala/Mandala.d.ts +14 -0
  24. package/lib/components/Mandala/index.d.ts +1 -1
  25. package/lib/components/Rain/Rain.d.ts +14 -0
  26. package/lib/components/Rain/index.d.ts +1 -1
  27. package/lib/components/SandSimulation/SandSimulation.d.ts +9 -0
  28. package/lib/components/SandSimulation/index.d.ts +1 -1
  29. package/lib/components/Shockwave/Shockwave.d.ts +14 -0
  30. package/lib/components/Shockwave/index.d.ts +1 -1
  31. package/lib/components/SolarFlare/SolarFlare.d.ts +9 -0
  32. package/lib/components/SolarFlare/index.d.ts +1 -1
  33. package/lib/components/SpiderWeb/SpiderWeb.d.ts +38 -0
  34. package/lib/components/SpiderWeb/index.d.ts +2 -0
  35. package/lib/components/SpiderWeb/useSpiderWeb.d.ts +16 -0
  36. package/lib/components/TornadoVortex/TornadoVortex.d.ts +9 -0
  37. package/lib/components/TornadoVortex/index.d.ts +1 -1
  38. package/lib/components/Wormhole/Wormhole.d.ts +15 -0
  39. package/lib/components/Wormhole/index.d.ts +1 -1
  40. package/lib/index.cjs.js +1 -1
  41. package/lib/index.d.ts +6 -4
  42. package/lib/index.es.js +6826 -6768
  43. package/package.json +1 -1
  44. package/lib/components/LiveChart/LiveChart.d.ts +0 -46
  45. package/lib/components/LiveChart/index.d.ts +0 -2
  46. package/lib/components/LiveChart/useLiveChart.d.ts +0 -31
  47. package/lib/components/Spotlight/Spotlight.d.ts +0 -51
  48. package/lib/components/Spotlight/index.d.ts +0 -2
  49. package/lib/components/Spotlight/useSpotlight.d.ts +0 -19
@@ -1,6 +1,13 @@
1
1
  import { BaseCanvasProps } from '../../types';
2
2
 
3
3
  type AuroraBorealisPreset = "default" | "arctic" | "solar" | "tropical" | "neon" | "midnight";
4
+ interface AuroraBorealisPresetValues {
5
+ colors?: string[];
6
+ backgroundColor?: string;
7
+ intensity?: number;
8
+ speed?: number;
9
+ }
10
+ export declare const PRESETS: Record<AuroraBorealisPreset, AuroraBorealisPresetValues>;
4
11
  export interface AuroraBorealisProps extends BaseCanvasProps {
5
12
  /** Aurora band colors (default: monochrome whites/grays) */
6
13
  colors?: string[];
@@ -1,2 +1,2 @@
1
- export { AuroraBorealis } from './AuroraBorealis';
1
+ export { AuroraBorealis, PRESETS } from './AuroraBorealis';
2
2
  export type { AuroraBorealisProps } from './AuroraBorealis';
@@ -1,6 +1,16 @@
1
1
  import { BaseCanvasProps } from '../../types';
2
2
 
3
3
  type BlackHolePreset = "default" | "cosmic" | "inferno" | "neon" | "void";
4
+ interface BlackHolePresetValues {
5
+ diskColor?: string;
6
+ backgroundColor?: string;
7
+ jetColor?: string;
8
+ particleCount?: number;
9
+ diskWidth?: number;
10
+ gravity?: number;
11
+ eventHorizonRadius?: number;
12
+ }
13
+ export declare const PRESETS: Record<BlackHolePreset, BlackHolePresetValues>;
4
14
  export interface BlackHoleProps extends BaseCanvasProps {
5
15
  /** Accretion disk particle color (default: "#ffffff") */
6
16
  diskColor?: string;
@@ -1,2 +1,2 @@
1
- export { BlackHole } from './BlackHole';
1
+ export { BlackHole, PRESETS } from './BlackHole';
2
2
  export type { BlackHoleProps } from './BlackHole';
@@ -1,6 +1,26 @@
1
1
  import { BaseCanvasProps } from '../../types';
2
2
 
3
3
  type BoidsPreset = "default" | "birds" | "fish" | "swarm" | "neon";
4
+ interface BoidsPresetValues {
5
+ count?: number;
6
+ maxSpeed?: number;
7
+ separationRadius?: number;
8
+ alignmentRadius?: number;
9
+ cohesionRadius?: number;
10
+ separationForce?: number;
11
+ alignmentForce?: number;
12
+ cohesionForce?: number;
13
+ color?: string;
14
+ trailLength?: number;
15
+ trailOpacity?: number;
16
+ boidSize?: number;
17
+ backgroundColor?: string;
18
+ interactive?: boolean;
19
+ mouseRadius?: number;
20
+ mouseForce?: number;
21
+ wrapEdges?: boolean;
22
+ }
23
+ export declare const PRESETS: Record<BoidsPreset, BoidsPresetValues>;
4
24
  export interface BoidsProps extends BaseCanvasProps {
5
25
  /** Number of boids. (default: 80) */
6
26
  count?: number;
@@ -1,2 +1,2 @@
1
- export { Boids } from './Boids';
1
+ export { Boids, PRESETS } from './Boids';
2
2
  export type { BoidsProps } from './Boids';
@@ -0,0 +1,33 @@
1
+ import { BaseCanvasProps } from '../../types';
2
+
3
+ type ButterflySwarmPreset = "default" | "monarch" | "morpho" | "meadow" | "night";
4
+ interface ButterflySwarmPresetValues {
5
+ wingColor?: string;
6
+ patternColor?: string;
7
+ backgroundColor?: string;
8
+ }
9
+ export declare const PRESETS: Record<ButterflySwarmPreset, ButterflySwarmPresetValues>;
10
+ export interface ButterflySwarmProps extends BaseCanvasProps {
11
+ /** Number of butterflies (default: 12) */
12
+ butterflyCount?: number;
13
+ /** Primary wing color (default: "#f97316") */
14
+ wingColor?: string;
15
+ /** Wing pattern and body color (default: "#111111") */
16
+ patternColor?: string;
17
+ /** Canvas background (default: "#111111") */
18
+ backgroundColor?: string;
19
+ /** Wing flap speed multiplier (default: 1) */
20
+ flapSpeed?: number;
21
+ /** Movement speed multiplier (default: 1) */
22
+ speed?: number;
23
+ /** Cursor attraction/scatter radius in px (default: 120) */
24
+ attractRadius?: number;
25
+ /** Enable cursor interaction (default: true) */
26
+ interactive?: boolean;
27
+ /** Show faint motion trails (default: false) */
28
+ showTrails?: boolean;
29
+ /** Named preset */
30
+ preset?: ButterflySwarmPreset | string;
31
+ }
32
+ export declare const ButterflySwarm: import('react').ForwardRefExoticComponent<ButterflySwarmProps & import('react').RefAttributes<HTMLCanvasElement>>;
33
+ export {};
@@ -0,0 +1,2 @@
1
+ export { ButterflySwarm, PRESETS } from './ButterflySwarm';
2
+ export type { ButterflySwarmProps } from './ButterflySwarm';
@@ -0,0 +1,14 @@
1
+ import { RefObject } from 'react';
2
+
3
+ export interface UseButterflySwarmOptions {
4
+ butterflyCount: number;
5
+ wingColor: string;
6
+ patternColor: string;
7
+ backgroundColor: string;
8
+ flapSpeed: number;
9
+ speed: number;
10
+ attractRadius: number;
11
+ interactive: boolean;
12
+ showTrails: boolean;
13
+ }
14
+ export declare function useButterflySwarm(canvasRef: RefObject<HTMLCanvasElement | null>, options: UseButterflySwarmOptions): void;
@@ -1,6 +1,24 @@
1
1
  import { BaseCanvasProps } from '../../types';
2
2
 
3
3
  type ClothPreset = "default" | "silk" | "net" | "heavy" | "spider";
4
+ interface ClothPresetValues {
5
+ cols?: number;
6
+ rows?: number;
7
+ spacing?: number;
8
+ gravity?: number;
9
+ friction?: number;
10
+ stiffness?: number;
11
+ iterations?: number;
12
+ lineColor?: string;
13
+ pinColor?: string;
14
+ lineWidth?: number;
15
+ backgroundColor?: string;
16
+ wind?: number;
17
+ windSpeed?: number;
18
+ tearable?: boolean;
19
+ tearDistance?: number;
20
+ }
21
+ export declare const PRESETS: Record<ClothPreset, ClothPresetValues>;
4
22
  export interface ClothSimulationProps extends BaseCanvasProps {
5
23
  /** Grid columns (default: 25) */
6
24
  cols?: number;
@@ -1,2 +1,2 @@
1
- export { ClothSimulation } from './ClothSimulation';
1
+ export { ClothSimulation, PRESETS } from './ClothSimulation';
2
2
  export type { ClothSimulationProps } from './ClothSimulation';
@@ -0,0 +1,29 @@
1
+ import { BaseCanvasProps } from '../../types';
2
+
3
+ type DeepSeaBioluminescencePreset = "default" | "abyssal" | "coral" | "aurora" | "crimson";
4
+ interface DeepSeaBioluminescencePresetValues {
5
+ jellyfishColor?: string;
6
+ glowColor?: string;
7
+ waterColor?: string;
8
+ }
9
+ export declare const PRESETS: Record<DeepSeaBioluminescencePreset, DeepSeaBioluminescencePresetValues>;
10
+ export interface DeepSeaBioluminescenceProps extends BaseCanvasProps {
11
+ /** Number of jellyfish (default: 5) */
12
+ jellyfishCount?: number;
13
+ /** Number of plankton particles (default: 200) */
14
+ planktonCount?: number;
15
+ /** Jellyfish bell color (default: "#88ccff") */
16
+ jellyfishColor?: string;
17
+ /** Bioluminescent glow color (default: "#00ffcc") */
18
+ glowColor?: string;
19
+ /** Background water color (default: "#020c14") */
20
+ waterColor?: string;
21
+ /** Cursor movement spawns bioluminescent ripples (default: true) */
22
+ interactive?: boolean;
23
+ /** Overall animation speed multiplier (default: 1) */
24
+ speed?: number;
25
+ /** Named preset */
26
+ preset?: DeepSeaBioluminescencePreset | string;
27
+ }
28
+ export declare const DeepSeaBioluminescence: import('react').ForwardRefExoticComponent<DeepSeaBioluminescenceProps & import('react').RefAttributes<HTMLCanvasElement>>;
29
+ export {};
@@ -0,0 +1,2 @@
1
+ export { DeepSeaBioluminescence, PRESETS } from './DeepSeaBioluminescence';
2
+ export type { DeepSeaBioluminescenceProps } from './DeepSeaBioluminescence';
@@ -0,0 +1,12 @@
1
+ import { RefObject } from 'react';
2
+
3
+ export interface UseDeepSeaBioluminescenceOptions {
4
+ jellyfishCount: number;
5
+ planktonCount: number;
6
+ jellyfishColor: string;
7
+ glowColor: string;
8
+ waterColor: string;
9
+ interactive: boolean;
10
+ speed: number;
11
+ }
12
+ export declare function useDeepSeaBioluminescence(canvasRef: RefObject<HTMLCanvasElement | null>, options: UseDeepSeaBioluminescenceOptions): void;
@@ -1,6 +1,21 @@
1
1
  import { BaseCanvasProps } from '../../types';
2
2
 
3
3
  type FireworksPreset = "default" | "celebration" | "subtle" | "neon" | "golden";
4
+ interface FireworksPresetValues {
5
+ colors?: string[];
6
+ particleCount?: number;
7
+ gravity?: number;
8
+ friction?: number;
9
+ fadeSpeed?: number;
10
+ spread?: number;
11
+ glowEffect?: boolean;
12
+ glowBlur?: number;
13
+ backgroundColor?: string;
14
+ shellSpeed?: number;
15
+ trailLength?: number;
16
+ particleSize?: number;
17
+ }
18
+ export declare const PRESETS: Record<FireworksPreset, FireworksPresetValues>;
4
19
  export interface FireworksProps extends BaseCanvasProps {
5
20
  /** Particle burst colors (default: multi-color) */
6
21
  colors?: string[];
@@ -1,2 +1,2 @@
1
- export { Fireworks } from './Fireworks';
1
+ export { Fireworks, PRESETS } from './Fireworks';
2
2
  export type { FireworksProps } from './Fireworks';
@@ -1,6 +1,15 @@
1
1
  import { BaseCanvasProps } from '../../types';
2
2
 
3
3
  type GalaxySpiralPreset = "default" | "andromeda" | "neon" | "void" | "golden";
4
+ interface GalaxySpiralPresetValues {
5
+ coreColor?: string;
6
+ diskColor?: string;
7
+ backgroundColor?: string;
8
+ armCount?: number;
9
+ armTightness?: number;
10
+ rotationSpeed?: number;
11
+ }
12
+ export declare const PRESETS: Record<GalaxySpiralPreset, GalaxySpiralPresetValues>;
4
13
  export interface GalaxySpiralProps extends BaseCanvasProps {
5
14
  /** Total star particle count (default: 3000) */
6
15
  starCount?: number;
@@ -1,2 +1,2 @@
1
- export { GalaxySpiral } from './GalaxySpiral';
1
+ export { GalaxySpiral, PRESETS } from './GalaxySpiral';
2
2
  export type { GalaxySpiralProps } from './GalaxySpiral';
@@ -1,6 +1,22 @@
1
1
  import { BaseCanvasProps } from '../../types';
2
2
 
3
3
  type GlitchPreset = "default" | "crt" | "cyberpunk" | "subtle" | "corrupt";
4
+ interface GlitchPresetValues {
5
+ intensity?: number;
6
+ speed?: number;
7
+ rgbShift?: number;
8
+ scanlines?: boolean;
9
+ scanlineOpacity?: number;
10
+ scanlineSpacing?: number;
11
+ blockGlitch?: boolean;
12
+ blockCount?: number;
13
+ noiseOpacity?: number;
14
+ flickerRate?: number;
15
+ color?: string;
16
+ rgbShiftColor?: string;
17
+ backgroundColor?: string;
18
+ }
19
+ export declare const PRESETS: Record<GlitchPreset, GlitchPresetValues>;
4
20
  export interface GlitchOverlayProps extends BaseCanvasProps {
5
21
  /** Glitch probability 0–1 (default: 0.6) */
6
22
  intensity?: number;
@@ -1,2 +1,2 @@
1
- export { GlitchOverlay } from './GlitchOverlay';
1
+ export { GlitchOverlay, PRESETS } from './GlitchOverlay';
2
2
  export type { GlitchOverlayProps } from './GlitchOverlay';
@@ -1,6 +1,23 @@
1
1
  import { BaseCanvasProps } from '../../types';
2
2
 
3
3
  type LightningPreset = "default" | "neon" | "storm" | "plasma" | "subtle";
4
+ interface LightningPresetValues {
5
+ segments?: number;
6
+ roughness?: number;
7
+ branchChance?: number;
8
+ branchDecay?: number;
9
+ flickerCount?: number;
10
+ glowBlur?: number;
11
+ color?: string;
12
+ coreColor?: string;
13
+ backgroundColor?: string;
14
+ autoInterval?: number;
15
+ interactive?: boolean;
16
+ startX?: number;
17
+ startY?: number;
18
+ endY?: number;
19
+ }
20
+ export declare const PRESETS: Record<LightningPreset, LightningPresetValues>;
4
21
  export interface LightningProps extends BaseCanvasProps {
5
22
  /** Recursion depth for bolt segments. (default: 8) */
6
23
  segments?: number;
@@ -1,2 +1,2 @@
1
- export { Lightning } from './Lightning';
1
+ export { Lightning, PRESETS } from './Lightning';
2
2
  export type { LightningProps } from './Lightning';
@@ -1,6 +1,20 @@
1
1
  import { BaseCanvasProps } from '../../types';
2
2
 
3
3
  type MandalaPreset = "default" | "neon" | "lotus" | "cosmic" | "minimal";
4
+ interface MandalaPresetValues {
5
+ symmetry?: number;
6
+ colors?: string[];
7
+ lineWidth?: number;
8
+ speed?: number;
9
+ layers?: number;
10
+ glowEffect?: boolean;
11
+ glowBlur?: number;
12
+ strokeOpacity?: number;
13
+ mirror?: boolean;
14
+ noiseAmount?: number;
15
+ backgroundColor?: string;
16
+ }
17
+ export declare const PRESETS: Record<MandalaPreset, MandalaPresetValues>;
4
18
  export interface MandalaProps extends BaseCanvasProps {
5
19
  /** Number of rotational symmetry arms (default: 8) */
6
20
  symmetry?: number;
@@ -1,2 +1,2 @@
1
- export { Mandala } from './Mandala';
1
+ export { Mandala, PRESETS } from './Mandala';
2
2
  export type { MandalaProps } from './Mandala';
@@ -1,6 +1,20 @@
1
1
  import { BaseCanvasProps } from '../../types';
2
2
 
3
3
  type RainPreset = "default" | "storm" | "drizzle" | "neon" | "golden";
4
+ interface RainPresetValues {
5
+ dropCount?: number;
6
+ speed?: number;
7
+ wind?: number;
8
+ windSpeed?: number;
9
+ dropLength?: number;
10
+ dropWidth?: number;
11
+ dropOpacity?: number;
12
+ dropColor?: string;
13
+ splashColor?: string;
14
+ showSplashes?: boolean;
15
+ backgroundColor?: string;
16
+ }
17
+ export declare const PRESETS: Record<RainPreset, RainPresetValues>;
4
18
  export interface RainProps extends BaseCanvasProps {
5
19
  /** Number of rain drops. (default: 200) */
6
20
  dropCount?: number;
@@ -1,2 +1,2 @@
1
- export { Rain } from './Rain';
1
+ export { Rain, PRESETS } from './Rain';
2
2
  export type { RainProps } from './Rain';
@@ -2,6 +2,15 @@ import { BaseCanvasProps } from '../../types';
2
2
  import { SandMaterial } from './useSandSimulation';
3
3
 
4
4
  type SandSimulationPreset = "default" | "desert" | "ocean" | "inferno" | "neon";
5
+ interface SandSimulationPresetValues {
6
+ sandColor?: string;
7
+ waterColor?: string;
8
+ fireColor?: string;
9
+ wallColor?: string;
10
+ backgroundColor?: string;
11
+ material?: SandMaterial;
12
+ }
13
+ export declare const PRESETS: Record<SandSimulationPreset, SandSimulationPresetValues>;
5
14
  export interface SandSimulationProps extends BaseCanvasProps {
6
15
  /** Cell size in pixels (default: 4) */
7
16
  cellSize?: number;
@@ -1,3 +1,3 @@
1
- export { SandSimulation } from './SandSimulation';
1
+ export { SandSimulation, PRESETS } from './SandSimulation';
2
2
  export type { SandSimulationProps } from './SandSimulation';
3
3
  export type { SandMaterial } from './useSandSimulation';
@@ -1,6 +1,20 @@
1
1
  import { BaseCanvasProps } from '../../types';
2
2
 
3
3
  type ShockwavePreset = "default" | "neon" | "explosion" | "ripple" | "minimal";
4
+ interface ShockwavePresetValues {
5
+ color?: string;
6
+ secondaryColor?: string;
7
+ ringCount?: number;
8
+ ringSpacing?: number;
9
+ speed?: number;
10
+ maxRadius?: number;
11
+ lineWidth?: number;
12
+ fadeSpeed?: number;
13
+ glowEffect?: boolean;
14
+ glowBlur?: number;
15
+ backgroundColor?: string;
16
+ }
17
+ export declare const PRESETS: Record<ShockwavePreset, ShockwavePresetValues>;
4
18
  export interface ShockwaveProps extends BaseCanvasProps {
5
19
  /** Primary ring color (default: "#7C3AED") */
6
20
  color?: string;
@@ -1,2 +1,2 @@
1
- export { Shockwave } from './Shockwave';
1
+ export { Shockwave, PRESETS } from './Shockwave';
2
2
  export type { ShockwaveProps } from './Shockwave';
@@ -1,6 +1,15 @@
1
1
  import { BaseCanvasProps } from '../../types';
2
2
 
3
3
  type SolarFlarePreset = "default" | "inferno" | "plasma" | "neon" | "white-dwarf";
4
+ interface SolarFlarePresetValues {
5
+ sunColor?: string;
6
+ coronaColor?: string;
7
+ flareColor?: string;
8
+ backgroundColor?: string;
9
+ sunRadius?: number;
10
+ glowBlur?: number;
11
+ }
12
+ export declare const PRESETS: Record<SolarFlarePreset, SolarFlarePresetValues>;
4
13
  export interface SolarFlareProps extends BaseCanvasProps {
5
14
  /** Photosphere color (default: "#ffffff") */
6
15
  sunColor?: string;
@@ -1,2 +1,2 @@
1
- export { SolarFlare } from './SolarFlare';
1
+ export { SolarFlare, PRESETS } from './SolarFlare';
2
2
  export type { SolarFlareProps } from './SolarFlare';
@@ -0,0 +1,38 @@
1
+ import { BaseCanvasProps } from '../../types';
2
+
3
+ type SpiderWebPreset = "default" | "night" | "forest" | "neon" | "frost";
4
+ interface SpiderWebPresetValues {
5
+ webColor?: string;
6
+ backgroundColor?: string;
7
+ spiderColor?: string;
8
+ glowColor?: string;
9
+ }
10
+ export declare const PRESETS: Record<SpiderWebPreset, SpiderWebPresetValues>;
11
+ export interface SpiderWebProps extends BaseCanvasProps {
12
+ /** Number of radial spokes (default: 12) */
13
+ spokeCount?: number;
14
+ /** Number of concentric rings (default: 10) */
15
+ ringCount?: number;
16
+ /** Strand color (default: "#d8d8d8") */
17
+ webColor?: string;
18
+ /** Canvas background color (default: "#0a0a0a") */
19
+ backgroundColor?: string;
20
+ /** Spider body color (default: "#c0c0c0") */
21
+ spiderColor?: string;
22
+ /** Show dew drop glow points (default: true) */
23
+ dewDrops?: boolean;
24
+ /** Dew drop glow color (default: "#e0e0e0") */
25
+ glowColor?: string;
26
+ /** Ambient sway speed multiplier (default: 1) */
27
+ swaySpeed?: number;
28
+ /** Cursor disturbance radius in px (default: 80) */
29
+ disturbRadius?: number;
30
+ /** Enable cursor disturbance (default: true) */
31
+ interactive?: boolean;
32
+ /** Show spider (default: true) */
33
+ showSpider?: boolean;
34
+ /** Named preset */
35
+ preset?: SpiderWebPreset | string;
36
+ }
37
+ export declare const SpiderWeb: import('react').ForwardRefExoticComponent<SpiderWebProps & import('react').RefAttributes<HTMLCanvasElement>>;
38
+ export {};
@@ -0,0 +1,2 @@
1
+ export { SpiderWeb, PRESETS } from './SpiderWeb';
2
+ export type { SpiderWebProps } from './SpiderWeb';
@@ -0,0 +1,16 @@
1
+ import { RefObject } from 'react';
2
+
3
+ export interface UseSpiderWebOptions {
4
+ spokeCount: number;
5
+ ringCount: number;
6
+ webColor: string;
7
+ backgroundColor: string;
8
+ spiderColor: string;
9
+ dewDrops: boolean;
10
+ glowColor: string;
11
+ swaySpeed: number;
12
+ disturbRadius: number;
13
+ interactive: boolean;
14
+ showSpider: boolean;
15
+ }
16
+ export declare function useSpiderWeb(canvasRef: RefObject<HTMLCanvasElement | null>, options: UseSpiderWebOptions): void;
@@ -1,6 +1,15 @@
1
1
  import { BaseCanvasProps } from '../../types';
2
2
 
3
3
  type TornadoVortexPreset = "default" | "storm" | "fire" | "neon" | "void";
4
+ interface TornadoVortexPresetValues {
5
+ funnelColor?: string;
6
+ debrisColor?: string;
7
+ lightningColor?: string;
8
+ backgroundColor?: string;
9
+ rotationSpeed?: number;
10
+ funnelHeight?: number;
11
+ }
12
+ export declare const PRESETS: Record<TornadoVortexPreset, TornadoVortexPresetValues>;
4
13
  export interface TornadoVortexProps extends BaseCanvasProps {
5
14
  /** Number of funnel wall particles (default: 600) */
6
15
  particleCount?: number;
@@ -1,2 +1,2 @@
1
- export { TornadoVortex } from './TornadoVortex';
1
+ export { TornadoVortex, PRESETS } from './TornadoVortex';
2
2
  export type { TornadoVortexProps } from './TornadoVortex';
@@ -1,6 +1,21 @@
1
1
  import { BaseCanvasProps } from '../../types';
2
2
 
3
3
  type WormholePreset = "default" | "hyperspace" | "neon" | "vortex" | "minimal";
4
+ interface WormholePresetValues {
5
+ ringCount?: number;
6
+ speed?: number;
7
+ colors?: string[];
8
+ backgroundColor?: string;
9
+ twist?: number;
10
+ fov?: number;
11
+ depth?: number;
12
+ lineWidth?: number;
13
+ opacity?: number;
14
+ starCount?: number;
15
+ starColor?: string;
16
+ interactive?: boolean;
17
+ }
18
+ export declare const PRESETS: Record<WormholePreset, WormholePresetValues>;
4
19
  export interface WormholeProps extends BaseCanvasProps {
5
20
  /** Number of tunnel rings. (default: 30) */
6
21
  ringCount?: number;
@@ -1,2 +1,2 @@
1
- export { Wormhole } from './Wormhole';
1
+ export { Wormhole, PRESETS } from './Wormhole';
2
2
  export type { WormholeProps } from './Wormhole';