API 参考
正在准备搜索索引…

GeneratedTextLine

Rml::ElementText::GenerateLine 的输出快照。

interface GeneratedTextLine {
    line: string;
    lineLength: number;
    lineWidth: number;
    reachedEnd: boolean;
}
源码与继承
成员目录4

属性

属性

line: string

经空白处理和可选实体解码后的文本行。

源码与继承
lineLength: number

消耗的源文本 UTF-8 字节数,不是码点数或 JavaScript 字符串长度。

源码与继承
lineWidth: number

测得的像素宽度。

源码与继承
reachedEnd: boolean

原生结果:到达末尾或字体不可用时为 true。

源码与继承

Icons made by Lorc, Delapouite & Skoll · game-icons.net · CC BY 3.0