Skip to content

Commit 84fd908

Browse files
authored
fix(issue-2486): 不直接引用 @antv/matrix-util, 使用 G2 的 Util (#2499)
1 parent 61a3ed8 commit 84fd908

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/plots/treemap/interactions/actions/treemap-drill-down-action.ts

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
import { Action, IGroup } from '@antv/g2';
1+
import { Action, IGroup, Util } from '@antv/g2';
22
import { get, isArray } from '@antv/util';
3-
import { ext } from '@antv/matrix-util';
43
import { deepAssign } from '../../../../utils/deep-assign';
54
import { transformData } from '../../utils';
65

@@ -164,7 +163,7 @@ export class TreemapDrillDownAction extends Action {
164163
const point = coord.convert({ x: 0, y: 1 });
165164
const breadCrumbGroup = this.breadCrumbGroup;
166165
const bbox = breadCrumbGroup.getBBox();
167-
const matrix = ext.transform(null, [['t', point.x + PADDING_LEFT, point.y + bbox.height + PADDING_TOP]]);
166+
const matrix = Util.transform(null, [['t', point.x + PADDING_LEFT, point.y + bbox.height + PADDING_TOP]]);
168167
breadCrumbGroup.setMatrix(matrix);
169168
}
170169

0 commit comments

Comments
 (0)