import Coordinate from '../geo/Coordinate'; import Polygon, { PolygonOptionsType, RingsCoordinates } from './Polygon'; /** * @classdesc * Represents a Rectangle geometry. * @category geometry * @extends Polygon * @example * var rectangle = new Rectangle([100, 0], 1000, 500, { * id : 'rectangle0' * }); */ export declare class Rectangle extends Polygon { static fromJSON(json: any): Rectangle; /** * @param {Coordinate} coordinates - northwest of the rectangle * @param {Number} width - width of the rectangle, in meter * @param {Number} height - height of the rectangle, in meter * @param {Object} [options=null] - options defined in [Rectangle]{@link Rectangle#options} */ constructor(coordinates: Coordinate | Array, width: number, height: number, opts?: RectangleOptionsType); /** * Get coordinates of rectangle's northwest * @return {Coordinate} */ getCoordinates(): Coordinate; /** * Set a new coordinate for northwest of the rectangle * @param {Coordinate} nw - coordinates of new northwest * @return {Rectangle} this * @fires Rectangle#positionchange */ setCoordinates(nw: Coordinate | Array): this; /** * Get rectangle's width * @return {Number} */ getWidth(): number; /** * Set new width to the rectangle * @param {Number} width - new width * @fires Rectangle#shapechange * @return {Rectangle} this */ setWidth(width: number): this; /** * Get rectangle's height * @return {Number} */ getHeight(): number; /** * Set new height to rectangle * @param {Number} height - new height * @fires Rectangle#shapechange * @return {Rectangle} this */ setHeight(height: number): this; /** * Gets the shell of the rectangle as a polygon * @return {Coordinate[]} - shell coordinates */ getShell(): Coordinate[]; /** * Rectangle won't have any holes, always returns null * @return {Object[]} an empty array */ getHoles(): RingsCoordinates; animateShow(): this; } export default Rectangle; export type RectangleOptionsType = PolygonOptionsType; //# sourceMappingURL=Rectangle.d.ts.map