-
Notifications
You must be signed in to change notification settings - Fork 1
/
THREE.MeshLine.d.ts
65 lines (60 loc) · 1.63 KB
/
THREE.MeshLine.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
import * as THREE from "three";
export class MeshLine extends THREE.BufferGeometry {
constructor();
geometry: MeshLine;
points: Float32Array | Array<number>;
isMeshLine: boolean;
setPoints(
points: Float32Array | Array<number>,
wcb?: (p: number) => any
): void;
setMatrixWorld(matrixWorld: THREE.Matrix4): void;
setGeometry(g: THREE.BufferGeometry, c: (p: number) => any): void;
raycast: (
raycaster: THREE.Raycaster,
intersects: THREE.Intersection[]
) => void;
compareV3(a: number, b: number): number;
copyV3(a: number): [number, number, number];
}
export class MeshLineMaterial extends THREE.ShaderMaterial {
constructor(parametes?: {
lineWidth?: number;
map?: THREE.Texture;
useMap?: number;
alphaMap?: THREE.Texture;
useAlphaMap?: number;
color?: string | THREE.Color | number;
opacity?: number;
resolution: THREE.Vector2; // required
sizeAttenuation?: number;
dashArray?: number;
dashOffset?: number;
dashRatio?: number;
useDash?: number;
visibility?: number;
alphaTest?: number;
repeat?: THREE.Vector2;
});
lineWidth: number;
map: THREE.Texture;
useMap: number;
alphaMap: THREE.Texture;
useAlphaMap: number;
color: THREE.Color | string | number;
opacity: number;
resolution: THREE.Vector2;
sizeAttenuation: number;
dashArray: number;
dashOffset: number;
dashRatio: number;
useDash: number;
visibility: number;
alphaTest: number;
repeat: THREE.Vector2;
copy(source: MeshLineMaterial): MeshLineMaterial;
}
export function MeshLineRaycast(
raycaster: THREE.Raycaster,
intersects: THREE.Intersection[]
): void;