revert: typedefine PathArray is not exported

This commit is contained in:
hustcc 2023-09-27 17:31:03 +08:00
parent f3e4e4d391
commit a474d23b0a

View File

@ -1,5 +1,5 @@
import { DisplayObject } from '@antv/g';
import { isArray, PathArray } from '@antv/util';
import { isArray } from '@antv/util';
import { ComboModel, ID, IGraph, NodeModel } from '../../../types';
import { ShapeStyle } from '../../../types/item';
import { isPolygonsIntersect } from '../../../util/shape';
@ -50,7 +50,8 @@ interface HullComponentFullOptions extends HullComponentOptions {
export default class Hull {
graph: IGraph;
path: PathArray;
// TODO: PathArray is not exported by @antv/util 2.x but by 3.x. Correct the type String | PathArray after upgrading @antv/util
path: any;
members: (NodeModel | ComboModel)[];