import { ICanvas, ITextStyle, Text, TextStyle } from 'pixi.js'; import { VectorGraphic } from '.'; /** * 矢量文字.实现原理:在缩放发生变化时,更新fontSize */ export declare class VectorText extends Text implements VectorGraphic { vectorFontSize: number; scaled: number; scaledListenerOn: boolean; constructor(text?: string | number, style?: Partial | TextStyle, canvas?: ICanvas); updateOnScaled(): void; /** * 设置矢量文字的字体大小 */ setVectorFontSize(fontSize: number): void; }