You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by GitBox <gi...@apache.org> on 2021/03/15 12:52:28 UTC

[GitHub] [echarts] plainheart commented on a change in pull request #14246: perf(tooltip): improve the performance of tooltip.

plainheart commented on a change in pull request #14246:
URL: https://github.com/apache/echarts/pull/14246#discussion_r594307721



##########
File path: src/component/tooltip/helper.ts
##########
@@ -27,3 +30,37 @@ export function shouldTooltipConfine(tooltipModel: Model<TooltipOption>): boolea
         // In richText mode, the outside part can not be visible.
         : tooltipModel.get('renderMode') === 'richText';
 }
+
+function testStyle(styleProps: string[]): string | undefined {
+	const style = document.documentElement.style;

Review comment:
       I used zrender `env.domSupported` to detect it.




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org