@turbox3d/graphic-component-pixi
Version:
Graphic component library based on pixi
22 lines (21 loc) • 515 B
TypeScript
import * as PIXI from 'pixi.js';
interface IXY {
x: number;
y: number;
}
interface ITransform {
offset?: IXY;
size?: number;
rotation?: number;
}
/**
* 绘制字体
* @param {PIXI} graphics graphics
* @param {string} string 文本
* @param {ITransform} transform 绘制的 model matrix decompose
*/
export declare function drawText(graphics: PIXI.Graphics, string: string | number, transform?: ITransform, options?: {
color?: number;
fontUrl?: string;
}): Promise<void>;
export {};