@geogirafe/lib-geoportal
Version:
GeoGirafe is a flexible application to build online geoportals.
12 lines (11 loc) • 688 B
TypeScript
import { Coordinate } from 'ol/coordinate.js';
import Geometry from 'ol/geom/Geometry.js';
import Feature from 'ol/Feature.js';
import { DrawingShape } from './drawingFeature.js';
export declare function calculateCenterAndMinRadius(geometry: Geometry): {
center: Coordinate;
minRadius: number;
};
export declare function createScaledAndRotatedGeometry(geometry0: Geometry, center: Coordinate, minRadius: number, initialPoint: Coordinate, currentPoint: Coordinate): Geometry;
export declare function getGeometryForRendering(feature: Feature<Geometry>): Geometry | undefined;
export declare function shouldAllowVertexInsertionForShape(shapeType: DrawingShape | undefined): boolean;