File size: 439 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
import { Vector2 } from './../../math/Vector2';
import { Path } from './Path';

/**
 * Defines a 2d shape plane using paths.
 */
export class Shape extends Path {
	constructor(points?: Vector2[]);

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

	uuid: string;

	/**
	 * @default []
	 */
	holes: Path[];

	getPointsHoles(divisions: number): Vector2[][];

	extractPoints(divisions: number): {
		shape: Vector2[];
		holes: Vector2[][];
	};
}