shape text 计算文字尺寸的过程中丢失 context 导致 measureText 时尝试新建 canvas #1015
Closed
Description
- I have searched the issues of this repository and believe that this is not a duplicate.
Reproduction link
Steps to reproduce
chart.tooltip({
showXTip: true
});
使用 showXTip
属性, 会调用 graphic/shape/text.js
中的 calculateBox
方法.
Lines 147 to 151 in d9611fe
其中用到了 util/dom.js
中的 measureText
函数.
但不知是什么原因, 这中间的 context 丢失了. 导致 measureText
函数尝试创建新的 canvas 用来计算文字尺寸.
Lines 148 to 150 in d9611fe
Environment | Info |
---|---|
f2 | 3.7.0 |
System | - |
Browser | - |
Metadata
Assignees
Labels
No labels