import { IVisualizerEntity } from '@ansyn/imagery'; import { FeatureCollection } from 'geojson'; import olFeature from 'ol/Feature'; import OLGeoJSON from 'ol/format/GeoJSON'; import olStyle from 'ol/style/Style'; import { Observable, Subject } from 'rxjs'; import { OpenLayersProjectionService } from '../../projection/open-layers-projection.service'; import { EntitiesVisualizer } from '../entities-visualizer'; import { IOLPluginsConfig } from '../plugins.config'; import { AnnotationMode, IAnnotationBoundingRect, IDrawEndEvent } from './annotations.model'; import { TranslateService } from '@ngx-translate/core'; export declare const annotationsClassNameForExport = "annotations-layer"; export interface ILabelTranslateMode { originalFeature: olFeature; labelFeature: olFeature; } export interface IEditAnnotationMode { originalFeature: olFeature; centerFeature: olFeature; } export declare class AnnotationsVisualizer extends EntitiesVisualizer { protected projectionService: OpenLayersProjectionService; protected olPluginsConfig: IOLPluginsConfig; protected translator: TranslateService; private skipNextMapClickHandler; disableCache: boolean; mode: AnnotationMode; mapSearchIsActive: boolean; selected: string[]; geoJsonFormat: OLGeoJSON; dragBox: any; translationSubscriptions: any[]; currentAnnotationEdit: IEditAnnotationMode; labelTranslate: ILabelTranslateMode; events: { onClick: Subject; onSelect: Subject; onHover: Subject; onChangeMode: Subject<{ mode: AnnotationMode; forceBroadcast: boolean; }>; onDrawEnd: Subject; removeEntity: Subject; updateEntity: Subject; offsetEntity: Subject; onLabelTranslateStart: Subject; onLabelTranslateEnd: Subject; onAnnotationEditEnd: Subject; onAnnotationEditStart: Subject; }; clearLabelTranslate$: any; clearAnnotationEditMode$: import("rxjs").MonoTypeOperatorFunction; selected$: Observable; labelTranslate$: Observable; editAnnotation$: Observable; modeDictionary: { Arrow: { type: string; geometryFunction: any; }; Rectangle: { type: string; geometryFunction: any; }; }; protected measuresTextStyle: { font: string; fill: any; stroke: any; placement: string; overflow: boolean; }; private iconSrc; constructor(projectionService: OpenLayersProjectionService, olPluginsConfig: IOLPluginsConfig, translator: TranslateService); findFeatureWithMinimumArea(featuresArray: any[]): any; annotationsLayerToEntities(annotationsLayer: FeatureCollection): IVisualizerEntity[]; setMode(mode: any, forceBroadcast: boolean): void; getFeatureBoundingRect(selectedFeature: any): IAnnotationBoundingRect; findMinMax(array: any): any; onInit(): void; featureAtPixel: (pixel: any) => any; onDrawEndEvent({ feature }: { feature: any; }): void; removeInteractions(): void; rectangleGeometryFunction([topLeft, bottomRight]: [any, any], opt_geometry: any): any; arrowGeometryFunction(coordinates: any, opt_geometry: any): any; onDispose(): void; featureStyle(feature: olFeature, state?: string): any[]; getMeasuresAsStyles(feature: olFeature): olStyle[]; getLeftRightResult(coordinates: any): any; getCenterIndicationStyle(feature: olFeature): olStyle; convertPixelStringToNumeric(pixelString: any): number; getFeatureWidth(feature: any): number; getFeatureHeight(feature: any): number; areaStyles(feature: any): olStyle[]; removeFeature(featureId: string, internal?: boolean): void; updateFeature(featureId: any, props: Partial): void; setVisibility(isVisible: boolean): void; setIconSrc(src: string): void; labelTranslateMode(featureId: any): void; setEditAnnotationMode(featureId: string, enable: boolean): void; private createCenterFeatureToDrag; private createModifyInteraction; private createAnnotationTranslateInteraction; private annotationEditEnd; private createLabelFeature; private moveLabelInteraction; private clearLabelTranslateMode; onResetView(): Observable; dispose(): void; protected mapClick: (event: any) => void; protected mapPointermove: (event: any) => void; protected mapBoxstart: () => void; protected mapBoxdrag: ({ target }: { target: any; }) => void; private isNumArray; private findMinMaxHelper; clearAnnotationEditMode(): void; }