mioxs posted onGitHub
v4功能 Util.getTextSize和Util.getLetterWidth
通过如下配置即可开启文本省略:
{ labelWordWrap: true, labelWordWrapWidth: 100 }
<img width="133" alt="image" src="https://github.com/antvis/G6/assets/25787943/160757c0-c674-4ad8-a641-6783039d2038">
参考:https://g.antv.antgroup.com/api/basic/text#wordwrapwidth
Fund this Issue
Pull requests
© 2019 BoostIO, Inc.