File size: 716 Bytes
2b7aae2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
import { Vector2 } from './../../math/Vector2';
import { Shape } from './Shape';
import { Color } from '../../math/Color';

export class ShapePath {
	constructor();

	/**
	 * @default 'ShapePath'
	 */
	type: string;

	/**
	 * @default new THREE.Color()
	 */
	color: Color;

	/**
	 * @default []
	 */
	subPaths: any[];

	/**
	 * @default null
	 */
	currentPath: any;

	moveTo(x: number, y: number): this;
	lineTo(x: number, y: number): this;
	quadraticCurveTo(aCPx: number, aCPy: number, aX: number, aY: number): this;
	bezierCurveTo(aCP1x: number, aCP1y: number, aCP2x: number, aCP2y: number, aX: number, aY: number): this;
	splineThru(pts: Vector2[]): this;
	toShapes(isCCW: boolean, noHoles?: boolean): Shape[];
}