Skip to content

Commit

Permalink
refactor: rename customContainer to container
Browse files Browse the repository at this point in the history
  • Loading branch information
危翰 committed Mar 31, 2023
1 parent 92bcf21 commit 723e13b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/component/tooltip/TooltipHTMLContent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -212,14 +212,14 @@ function assembleCssText(tooltipModel: Model<TooltipOption>, 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 {
Expand Down

0 comments on commit 723e13b

Please sign in to comment.