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 {