import { AnimationOptionsType, Frame, Player } from '../core/Animation'; import Coordinate from '../geo/Coordinate'; import Geometry, { GeometryOptionsType } from './Geometry'; import { FillSymbol, LineSymbol } from '../symbol'; type animateShowCallback = (frame: Frame, currentCoord: Coordinate) => void; export type PathCoordinates = Array; export type PathsCoordinates = Array; export type MultiPathsCoordinates = Array; /** * 一个抽象类Path,包含Path几何类的常用方法,例如LineString、Polygon * @english * An abstract class Path containing common methods for Path geometry classes, e.g. LineString, Polygon * @abstract * @category geometry * @extends Geometry */ export declare class Path extends Geometry { hasHoles?(): boolean; /** * 动画展示线条 * @english * Show the linestring with animation * @param {Object} [options=null] animation options * @param {Number} [options.duration=1000] duration * @param {String} [options.easing=out] animation easing * @param {Function} [cb=null] callback function in animation, function parameters: frame, currentCoord * @example * line.animateShow({ * duration : 2000, * easing : 'linear' * }, function (frame, currentCoord) { * //frame is the animation frame * //currentCoord is current coordinate of animation * }); * @return {LineString} this */ animateShow(options?: (AnimationOptionsType | animateShowCallback), cb?: animateShowCallback): Player | undefined; } export default Path; export type PathOptionsType = GeometryOptionsType & { 'smoothness'?: boolean; 'enableClip'?: boolean; 'strictClip'?: boolean; 'groundClip'?: boolean; 'enableSimplify'?: boolean; 'simplifyTolerance'?: number; 'symbol'?: FillSymbol | LineSymbol; }; //# sourceMappingURL=Path.d.ts.map