提交 26ca0b5b 编写于 作者: P pissang

fix(treemap): truncate text when exceeds height

上级 3ddf62a2
......@@ -985,6 +985,8 @@ function renderNode(
const textStyle = textEl.style;
textStyle.truncateMinChar = 2;
textStyle.width = width;
textStyle.height = height;
textStyle.lineOverflow = 'truncate';
addDrillDownIcon(textStyle, upperLabelRect, thisLayout);
const textEmphasisState = textEl.getState('emphasis');
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册