From 224cdc5016bc2c1dedd5cd36daf8a728571bf533 Mon Sep 17 00:00:00 2001 From: lijinke666 Date: Fri, 3 Jan 2025 16:52:44 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=B0=83=E6=95=B4=E5=AF=BC=E5=85=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../s2-core/src/extends/pivot-chart/facet/pivot-chart-facet.ts | 2 +- packages/s2-core/src/facet/base-facet.ts | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/packages/s2-core/src/extends/pivot-chart/facet/pivot-chart-facet.ts b/packages/s2-core/src/extends/pivot-chart/facet/pivot-chart-facet.ts index 8bb2ab3767..ae937ab193 100644 --- a/packages/s2-core/src/extends/pivot-chart/facet/pivot-chart-facet.ts +++ b/packages/s2-core/src/extends/pivot-chart/facet/pivot-chart-facet.ts @@ -9,6 +9,7 @@ import { getCellWidth, getDataCellId, getHeaderTotalStatus, + round, type FrameConfig, type LayoutResult, type S2CellType, @@ -24,7 +25,6 @@ import { isNumber, last, merge, - round, sum, } from 'lodash'; import { diff --git a/packages/s2-core/src/facet/base-facet.ts b/packages/s2-core/src/facet/base-facet.ts index 0301d79b7b..7c79426d81 100644 --- a/packages/s2-core/src/facet/base-facet.ts +++ b/packages/s2-core/src/facet/base-facet.ts @@ -26,7 +26,6 @@ import { max, maxBy, reduce, - round, size, sumBy, } from 'lodash'; @@ -99,7 +98,7 @@ import { getAllChildCells } from '../utils/get-all-child-cells'; import { getColsForGrid, getRowsForGrid } from '../utils/grid'; import { diffPanelIndexes, type PanelIndexes } from '../utils/indexes'; import { isMobile, isWindows } from '../utils/is-mobile'; -import { floor } from '../utils/math'; +import { floor, round } from '../utils/math'; import { CornerBBox } from './bbox/corner-bbox'; import { PanelBBox } from './bbox/panel-bbox'; import {