UNPKG

@turbox3d/graphic-component-pixi

Version:

Graphic component library based on pixi

20 lines (19 loc) 420 B
import * as PIXI from 'pixi.js'; import { IGraphicOption } from './option'; interface IPathParam { path: Array<{ x: number; y: number; }>; /** * 绘制的路径是否闭合 * * 默认:false,不闭合 */ closed?: boolean; } /** * 绘制一条路径 */ export declare function drawPath(graphic: PIXI.Graphics, param: IPathParam & IGraphicOption): void; export {};