import { Condition } from "ol/events/condition"; import VectorSource from "ol/source/Vector"; import { Geometry } from "ol/geom"; export enum InteractionType { DRAW = "draw", MODIFY = "modify", SNAP = "snap", } export interface LolOpenLayersDrawInteraction { type: InteractionType.DRAW; layerName: string; geometryType?: any; finishCondition?: Condition; dragVertexDelay?: number; condition?: Condition; } export interface LolOpenLayersSnapInteraction { type: InteractionType.SNAP; layerName: string; pixelTolerance?: number; } export interface LolOpenLayersModifyInteraction { type: InteractionType.MODIFY; layerName: string; // for checking source: VectorSource | undefined; condition?: Condition; style?: []; pixelTolerance?: number; }