| 1234567891011121314151617 |
- import type { DisplayObject, Text } from '../shapes';
- /**
- * 计算文本在画布中的宽度
- */
- export declare const measureTextWidth: {
- (...args: any[]): any;
- cache: Map<any, any>;
- };
- export declare const getFont: (textShape: Text) => {
- fontSize: number;
- fontFamily: string;
- fontWeight: number | "unset" | "initial" | "inherit" | "normal" | "bold" | "bolder" | "lighter";
- fontStyle: "unset" | "initial" | "inherit" | "normal" | "italic" | "oblique";
- fontVariant: string | undefined;
- };
- export declare function textOf(node: DisplayObject): Text | null;
- export declare function applyToText(node: DisplayObject, style: Record<string, any>): void;
|