/*! * Copyright (c) Microsoft Corporation. * Licensed under the MIT License. */ import { vec3, quat, vec4 } from "gl-matrix"; import { Font } from "../font.js"; export interface ITextMetric { width: number; maxHeight: number; maxTop: number; } export declare class TextHelper { private static _vec2; private static _vec3; private static _topLeft; private static _topRight; private static _bottomLeft; private static _bottomRight; static truncate(text: string, length: number): string; static measure(font: Font, text: string, size: ITextMetric): void; static wrap(font: Font, text: string, maxWidth: number): string[]; static addString(font: Font, text: string, vertices: DataView, indices: Uint16Array | Uint32Array, index: number, position: vec3, scale: number, offset: vec3, rotation: quat, idColor: vec4): void; static addGlyph(font: Font, char: string, vertices: DataView, indices: Uint16Array | Uint32Array, index: number, position: vec3, scale: number, offset: vec3, rotation: quat, idColor: vec4): void; }