提交 10ab1f52 编写于 作者: P pissang

fix: export truncateText

上级 5b170785
...@@ -200,6 +200,7 @@ function updateElCommon( ...@@ -200,6 +200,7 @@ function updateElCommon(
seriesScope: ParallelDrawSeriesScope seriesScope: ParallelDrawSeriesScope
) { ) {
el.useStyle(data.getItemVisual(dataIndex, 'style')); el.useStyle(data.getItemVisual(dataIndex, 'style'));
el.style.fill = null;
seriesScope.smooth && (el.shape.smooth = seriesScope.smooth); seriesScope.smooth && (el.shape.smooth = seriesScope.smooth);
} }
......
...@@ -242,4 +242,7 @@ export function formatTime(tpl: string, value: number | string | Date, isUTC?: b ...@@ -242,4 +242,7 @@ export function formatTime(tpl: string, value: number | string | Date, isUTC?: b
*/ */
export function capitalFirst(str: string): string { export function capitalFirst(str: string): string {
return str ? str.charAt(0).toUpperCase() + str.substr(1) : str; return str ? str.charAt(0).toUpperCase() + str.substr(1) : str;
} }
\ No newline at end of file
export {truncateText} from 'zrender/src/graphic/helper/parseText';
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册