From 723e13b37e3a539ee561e9ff5c1947fbcc5ceebd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8D=B1=E7=BF=B0?= Date: Fri, 31 Mar 2023 18:04:36 +0800 Subject: [PATCH] refactor: rename customContainer to container --- src/component/tooltip/TooltipHTMLContent.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/component/tooltip/TooltipHTMLContent.ts b/src/component/tooltip/TooltipHTMLContent.ts index a4a2288587..491266d11b 100644 --- a/src/component/tooltip/TooltipHTMLContent.ts +++ b/src/component/tooltip/TooltipHTMLContent.ts @@ -212,14 +212,14 @@ function assembleCssText(tooltipModel: Model, enableTransition?: } // If not able to make, do not modify the input `out`. -function makeStyleCoord(out: number[], zr: ZRenderType, customContainer: HTMLElement | null, zrX: number, zrY: number) { +function makeStyleCoord(out: number[], zr: ZRenderType, container: HTMLElement | null, zrX: number, zrY: number) { const zrPainter = zr && zr.painter; - if (customContainer) { + if (container) { const zrViewportRoot = zrPainter && zrPainter.getViewportRoot(); if (zrViewportRoot) { // Some APPs might use scale on body, so we support CSS transform here. - transformLocalCoord(out, zrViewportRoot, customContainer, zrX, zrY); + transformLocalCoord(out, zrViewportRoot, container, zrX, zrY); } } else {