debug-vfx 0.0.0

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 (3) hide show
  1. package/dist/index.d.ts +74 -0
  2. package/dist/index.js +37130 -0
  3. package/package.json +40 -0
@@ -0,0 +1,74 @@
1
+ import * as THREE from 'three';
2
+
3
+ declare function renderDebugPanel(values: any, onChange: any): void;
4
+ declare function updateDebugPanel(values: any, onChange: any): void;
5
+ declare function destroyDebugPanel(): void;
6
+ declare const GeometryType: Readonly<{
7
+ NONE: "none";
8
+ BOX: "box";
9
+ SPHERE: "sphere";
10
+ CYLINDER: "cylinder";
11
+ CONE: "cone";
12
+ TORUS: "torus";
13
+ PLANE: "plane";
14
+ CIRCLE: "circle";
15
+ RING: "ring";
16
+ DODECAHEDRON: "dodecahedron";
17
+ ICOSAHEDRON: "icosahedron";
18
+ OCTAHEDRON: "octahedron";
19
+ TETRAHEDRON: "tetrahedron";
20
+ CAPSULE: "capsule";
21
+ }>;
22
+ declare const DEFAULT_VALUES: Readonly<{
23
+ maxParticles: 10000;
24
+ size: number[];
25
+ colorStart: string[];
26
+ colorEnd: null;
27
+ fadeSize: number[];
28
+ fadeSizeCurve: null;
29
+ fadeOpacity: number[];
30
+ fadeOpacityCurve: null;
31
+ velocityCurve: null;
32
+ gravity: number[];
33
+ lifetime: number[];
34
+ direction: number[][];
35
+ startPosition: number[][];
36
+ speed: number[];
37
+ friction: {
38
+ intensity: number;
39
+ easing: string;
40
+ };
41
+ appearance: "gradient";
42
+ rotation: number[][];
43
+ rotationSpeed: number[][];
44
+ rotationSpeedCurve: null;
45
+ geometryType: "none";
46
+ geometryArgs: null;
47
+ orientToDirection: false;
48
+ orientAxis: "z";
49
+ stretchBySpeed: null;
50
+ lighting: "standard";
51
+ shadow: false;
52
+ blending: 1;
53
+ intensity: 1;
54
+ position: number[];
55
+ autoStart: true;
56
+ delay: 0;
57
+ emitCount: 1;
58
+ emitterShape: 1;
59
+ emitterRadius: number[];
60
+ emitterAngle: number;
61
+ emitterHeight: number[];
62
+ emitterSurfaceOnly: false;
63
+ emitterDirection: number[];
64
+ turbulence: null;
65
+ attractors: null;
66
+ attractToCenter: false;
67
+ startPositionAsDirection: false;
68
+ softParticles: false;
69
+ softDistance: 0.5;
70
+ collision: null;
71
+ }>;
72
+ declare function createGeometry(type: any, args?: {}): THREE.BoxGeometry | THREE.SphereGeometry | THREE.CylinderGeometry | THREE.TorusGeometry | THREE.PlaneGeometry | THREE.CircleGeometry | THREE.RingGeometry | THREE.DodecahedronGeometry | THREE.IcosahedronGeometry | THREE.OctahedronGeometry | THREE.TetrahedronGeometry | THREE.CapsuleGeometry | null;
73
+
74
+ export { DEFAULT_VALUES, GeometryType, createGeometry, destroyDebugPanel, renderDebugPanel, updateDebugPanel };