参考 textWidth()

textWidth()

调用 text() 时,计算绘制的文本字符串的最大宽度。

示例

语法

textWidth(str)

参数

str

要测量的文本字符串。

Notice any errors or typos? Please let us know. Please feel free to edit src/typography/attributes.js and open a pull request!

相关参考