Skip to content

Commit

Permalink
fix(issue-2486): 不直接引用 @antv/matrix-util, 使用 G2 的 Util (#2499)
Browse files Browse the repository at this point in the history
  • Loading branch information
visiky authored Apr 12, 2021
1 parent 61a3ed8 commit 84fd908
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { Action, IGroup } from '@antv/g2';
import { Action, IGroup, Util } from '@antv/g2';
import { get, isArray } from '@antv/util';
import { ext } from '@antv/matrix-util';
import { deepAssign } from '../../../../utils/deep-assign';
import { transformData } from '../../utils';

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

Expand Down

0 comments on commit 84fd908

Please sign in to comment.