import type { Map as _ol_Map_ } from 'ol' import type { Coordinate } from 'ol/coordinate' import type { Style } from 'ol/style' import { Interaction } from 'ol/interaction' /** User actions that change the state of the map. Some are similar to controls, * but are not associated with a DOM element. * @namespace interaction * @see {@link https://openlayers.org/en/master/apidoc/module-ol_interaction.html} */ export interface Options { targetStyle?: Style | Style[]; composite?: string; } /** Handles coordinates on the center of the viewport. * It can be used as abstract base class used for creating subclasses. * The CenterTouch interaction modifies map browser event coordinate and pixel properties to force pointer on the viewport center to any interaction that them. * Only pointermove pointerup are concerned with it. * @constructor * @extends {Interaction} */ export default class CenterTouch extends Interaction { /** * @param {olx.interaction.InteractionOptions} options Options * - targetStyle {Style|Array