import { MixinConstructor } from '../core/Mixin'; import Coordinate from '../geo/Coordinate'; import Point from '../geo/Point'; import { CommonProjectionType } from '../geo/projection'; import type { Map } from '../map'; /** * 基于几何图形的通用方法 * @english * Common methods for geometry classes that base on a center, e.g. Marker, Circle, Ellipse , etc * @mixin CenterMixin */ export default function (Base: T): { new (...args: any[]): { _coordinates: Coordinate; _pcenter: Coordinate; _dirtyCoords: boolean; getMap?(): Map; _getProjection?(): CommonProjectionType; onPositionChanged?(): void; _verifyProjection?(): void; _clearCache?(): void; _translateRotatePivot?(coordinate: Coordinate): this; /** * 获取几何图形的中心点 * @english * Get geometry's center * @return {Coordinate} - center of the geometry * @function CenterMixin.getCoordinates */ getCoordinates(): Coordinate; /** * 设置几何图形的中心点 * @english * Set a new center to the geometry * @param {Coordinate|Number[]} coordinates - new center * @return {Geometry} this * @fires Geometry#positionchange * @function CenterMixin.setCoordinates */ setCoordinates(coordinates: Coordinate | Array): any; _getCenter2DPoint(res?: number): Point; _getPrjCoordinates(): Coordinate; _setPrjCoordinates(pcenter: Coordinate): void; _updateCache(): void; _clearProjection(): void; _computeCenter(): Coordinate | null; }; } & T; //# sourceMappingURL=CenterMixin.d.ts.map