UNPKG

@awayjs/graphics

Version:
23 lines 1.29 kB
import { LineElements, LineScaleMode, TriangleElements } from '@awayjs/renderer'; import { GraphicsPath } from './GraphicsPath'; import { Graphics } from '../Graphics'; /** * The Graphics class contains a set of methods that you can use to create a * vector shape. Display objects that support drawing include Sprite and Shape * objects. Each of these classes includes a <code>graphics</code> property * that is a Graphics object. The following are among those helper functions * provided for ease of use: <code>drawRect()</code>, * <code>drawRoundRect()</code>, <code>drawCircle()</code>, and * <code>drawEllipse()</code>. * * <p>You cannot create a Graphics object directly from ActionScript code. If * you call <code>new Graphics()</code>, an exception is thrown.</p> * * <p>The Graphics class is final; it cannot be subclassed.</p> */ export declare class GraphicsFactoryStrokes { static draw_pathes(targetGraphics: Graphics): void; static fillLineElements(graphic_pathes: Array<GraphicsPath>, curves: boolean, scaleMode?: LineScaleMode, target?: LineElements): LineElements; static getTriangleElements(graphic_pathes: Array<GraphicsPath>, curves: boolean, scaleMode?: LineScaleMode): TriangleElements; } //# sourceMappingURL=GraphicsFactoryStrokes.d.ts.map