Files
lan-manager/web/node_modules/@antv/g-base/lib/util/text.d.ts
openclaw 0a5f6a8047 Initial commit: Lan-manager project code
- Go backend (server/)
- Frontend (web/, server/static/)
- Database and deployment files
- Scripts and docs

Co-Authored-By: 狸花猫/Claude-Qwen3.6-Plus 🐾
2026-04-20 00:52:58 +08:00

22 lines
696 B
TypeScript

import { ShapeAttrs } from '../types';
/**
* 获取文本的高度
* @param text 文本
* @param fontSize 字体大小
* @param lineHeight 行高,可以为空
*/
export declare function getTextHeight(text: string, fontSize: number, lineHeight?: number): number;
/**
* 获取行间距如果文本多行,需要获取文本间距
* @param fontSize 字体大小
* @param lineHeight 行高
*/
export declare function getLineSpaceing(fontSize: number, lineHeight?: number): number;
/**
* 字体宽度
* @param text 文本
* @param font 字体
*/
export declare function getTextWidth(text: string, font: string): number;
export declare function assembleFont(attrs: ShapeAttrs): string;