import { Map as _ol_Map_ } from 'ol'; import Collection from 'ol/Collection'; import Feature from 'ol/Feature'; import { Point, Polygon } from 'ol/geom'; import { Layer } from 'ol/layer'; import { StyleLike } from 'ol/style/Style'; import { Interaction } from 'ol/interaction'; import MapBrowserEvent from 'ol/MapBrowserEvent'; import { Condition as EventsConditionType } from 'ol/events/condition'; export interface Options { source: Layer[]; features: Collection; style: StyleLike; sides: number; squareCondition: EventsConditionType | undefined; centerCondition: EventsConditionType | undefined; canRotate: boolean; clickTolerance: number; maxCircleCoordinates: number; } /** Interaction rotate * @constructor * @extends {Interaction} * @fires drawstart, drawing, drawend, drawcancel * @param {olx.interaction.TransformOptions} options * @param {Array} source Destination source for the drawn features * @param {Collection} features Destination collection for the drawn features * @param {Style | Array.