drawTextShape 列头怎么画两个不同样式的文字呢,大家有什么思路么 #1458
-
|
Beta Was this translation helpful? Give feedback.
Answered by
lijinke666
Jun 20, 2022
Replies: 1 comment
-
把文字拆分成两个 参考 S2/packages/s2-core/src/cell/base-cell.ts Line 183 in 2bf686c 伪代码如下:
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
YardWill
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
把文字拆分成两个
shape
, 分别绘制, 测量前一个文字String
的文字宽度, 得到name
的起始 X 坐标参考
S2/packages/s2-core/src/cell/base-cell.ts
Line 183 in 2bf686c
伪代码如下: