graphic-pixi/lib/graphic/VectorText.d.ts
2023-12-14 13:07:43 +08:00

17 lines
605 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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<ITextStyle> | TextStyle, canvas?: ICanvas);
updateOnScaled(): void;
/**
* 设置矢量文字的字体大小
*/
setVectorFontSize(fontSize: number): void;
}
//# sourceMappingURL=VectorText.d.ts.map