UNPKG

awayjs-display

Version:
41 lines (39 loc) 1.38 kB
/** * Defines the values to use for specifying path-drawing commands. * The values in this class are used by the Graphics.drawPath() method, *or stored in the commands vector of a GraphicsPath object. */ declare class GraphicsPath { /** * The Vector of drawing commands as integers representing the path. */ private _commands; /** * The Vector of Numbers containing the parameters used with the drawing commands. */ private _data; private _draw_directions; private _contours_closed; /** * Specifies the winding rule using a value defined in the GraphicsPathWinding class. */ private _winding; private _startPoint; private _tmp_point; private _cur_point; private _direction; private _isFill; constructor(commands?: Array<number>, data?: Array<number>, winding?: string); readonly draw_directions: Array<number>; readonly contours_closed: Array<boolean>; isFill: boolean; readonly commands: Array<Array<number>>; readonly data: Array<Array<number>>; curveTo(controlX: number, controlY: number, anchorX: number, anchorY: number): void; lineTo(x: number, y: number): void; moveTo(x: number, y: number): void; finalizeContour(): void; wideLineTo(x: number, y: number): void; wideMoveTo(x: number, y: number): void; } export default GraphicsPath;