From 892e46f2e11e86ae63c1caf4d977b292872caaaa Mon Sep 17 00:00:00 2001 From: AlbertAZ1992 Date: Tue, 23 Mar 2021 19:30:04 +0800 Subject: [PATCH] fix: import g-base --- packages/mobile/package.json | 2 +- packages/mobile/src/behavior/drag-node.ts | 2 +- packages/mobile/src/element/edges/polyline-util.ts | 2 +- packages/mobile/src/graph/graph.ts | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/mobile/package.json b/packages/mobile/package.json index 5e36dd3402..d835bdb8dc 100644 --- a/packages/mobile/package.json +++ b/packages/mobile/package.json @@ -71,7 +71,7 @@ "@antv/algorithm": "^0.0.6", "@antv/dom-util": "^2.0.1", "@antv/event-emitter": "~0.1.0", - "@antv/g-base": "^0.5.6-beta.1", + "@antv/g-base": "0.5.6-beta.1", "@antv/g-canvas": "^0.5.2", "@antv/g-math": "^0.1.1", "@antv/g-mobile": "0.0.1-beta.7", diff --git a/packages/mobile/src/behavior/drag-node.ts b/packages/mobile/src/behavior/drag-node.ts index f5d4e4300f..bd9f15b466 100644 --- a/packages/mobile/src/behavior/drag-node.ts +++ b/packages/mobile/src/behavior/drag-node.ts @@ -5,7 +5,7 @@ * @LastEditTime: 2019-08-22 18:41:45 * @Description: 拖动节点的Behavior */ -import { Point } from '@antv/g-base/lib/types'; +import { Point } from '@antv/g-base'; import { deepMix, clone } from '@antv/util'; import { G6Event, IG6GraphEvent, Item, NodeConfig, INode, ICombo } from '@antv/g6-core'; import { IGraph } from '../interface/graph'; diff --git a/packages/mobile/src/element/edges/polyline-util.ts b/packages/mobile/src/element/edges/polyline-util.ts index 10126656ba..5a5f65b505 100644 --- a/packages/mobile/src/element/edges/polyline-util.ts +++ b/packages/mobile/src/element/edges/polyline-util.ts @@ -1,6 +1,6 @@ import { each } from '@antv/util'; import { INode, ICombo } from '@antv/g6-core'; -import { Point } from '@antv/g-base/lib/types'; +import { Point } from '@antv/g-base'; export interface PolyPoint { x: number; diff --git a/packages/mobile/src/graph/graph.ts b/packages/mobile/src/graph/graph.ts index 7bc39244a1..5d9338ce30 100644 --- a/packages/mobile/src/graph/graph.ts +++ b/packages/mobile/src/graph/graph.ts @@ -1,5 +1,5 @@ import { Canvas as GMobileCanvas } from '@antv/g-mobile'; -import { ICanvas, IGroup, Point } from '@antv/g-base'; +import { IGroup } from '@antv/g-base'; import { mat3 } from '@antv/matrix-util'; import { clone, deepMix, each, isString, isNumber } from '@antv/util'; import { IGraph, DataUrlType } from '../interface/graph';