import Coordinate from '../geo/Coordinate'; import Polygon, { PolygonOptionsType, RingCoordinates, RingsCoordinates } from './Polygon'; import Point from '../geo/Point'; import Extent from '../geo/Extent'; declare const Ellipse_base: { new (...args: any[]): { _coordinates: Coordinate; _pcenter: Coordinate; _dirtyCoords: boolean; getMap?(): import("..").Map; _getProjection?(): { code: string; is(code: string): boolean; project(p: Coordinate): Coordinate; unproject(p: Coordinate): Coordinate; projectCoords(coordinates: Coordinate[] | Coordinate[][] | Coordinate[][][], antiMeridian?: boolean): Coordinate[] | Coordinate[][] | Coordinate[][][]; unprojectCoords(projCoords: Coordinate[] | Coordinate[][] | Coordinate[][][]): Coordinate[] | Coordinate[][] | Coordinate[][][]; isSphere(): boolean; isOutSphere(pcoord: Coordinate): boolean; wrapCoord(pcoord: Coordinate): Coordinate; getCircum(): Record; getSphereExtent(): Extent; }; onPositionChanged?(): void; _verifyProjection?(): void; _clearCache?(): void; _translateRotatePivot?(coordinate: Coordinate): any; getCoordinates(): Coordinate; setCoordinates(coordinates: Coordinate | number[]): any; _getCenter2DPoint(res?: number): Point; _getPrjCoordinates(): Coordinate; _setPrjCoordinates(pcenter: Coordinate): void; _updateCache(): void; _clearProjection(): void; _computeCenter(): Coordinate; }; } & typeof Polygon; /** * 表示椭圆几何体 * @english * Represents a Ellipse Geometry.
* @category geometry * @extends Polygon * @mixes CenterMixin * @example * var ellipse = new Ellipse([100, 0], 1000, 500, { * id : 'ellipse0' * }); */ export declare class Ellipse extends Ellipse_base { width: number; height: number; options: EllipseOptionsType; static fromJSON(json: Record): Ellipse; /** * @param {Coordinate} center - center of the ellipse * @param {Number} width - width of the ellipse, in meter * @param {Number} height - height of the ellipse, in meter * @param {Object} [options=null] - construct options defined in [Ellipse]{@link Ellipse#options} */ constructor(coordinates: Coordinate | Array, width: number, height: number, options?: EllipseOptionsType); /** * 获取椭圆的宽度 * @english * Get ellipse's width * @return {Number} */ getWidth(): number; /** * 设置椭圆的宽度 * Set new width to ellipse * @param {Number} width - new width * @fires Ellipse#shapechange * @return {Ellipse} this */ setWidth(width: number): this; /** * 获取椭圆高度 * @english * Get ellipse's height * @return {Number} */ getHeight(): number; /** * 设置椭圆高度 * @english * Set new height to ellipse * @param {Number} height - new height * @fires Ellipse#shapechange * @return {Ellipse} this */ setHeight(height: number): this; /** * 获取作为多边形的椭圆的外壳,外壳点数由决定 * @english * Gets the shell of the ellipse as a polygon, number of the shell points is decided by [options.numberOfShellPoints]{@link Circle#options} * @return {Coordinate[]} - shell coordinates */ getShell(): RingCoordinates; /** * 椭圆没有任何孔,总是返回null * @english * Ellipse won't have any holes, always returns null * @return {Object[]} an empty array */ getHoles(): RingsCoordinates; animateShow(): any; } export default Ellipse; export type EllipseOptionsType = PolygonOptionsType & { numberOfShellPoints?: number; debug?: boolean; }; //# sourceMappingURL=Ellipse.d.ts.map