|
| 1 | +import "./leaflet_annotation.css"; |
| 2 | +declare const React: any; |
| 3 | +declare const Draw: Promise<any>; |
| 4 | +export { Draw }; |
| 5 | +export declare class LeafletAnnotation extends React.Component { |
| 6 | + constructor(props: any); |
| 7 | + componentDidMount: () => void; |
| 8 | + componentWillUnmount: () => void; |
| 9 | + componentDidUpdate: () => void; |
| 10 | + renderForSpectrogram: (targetHeight?: number) => void; |
| 11 | + fillMapPrev: () => void; |
| 12 | + turnOffDrag: () => void; |
| 13 | + turnOffZoom: () => void; |
| 14 | + panTo: (x: any) => void; |
| 15 | + enableEditing: () => void; |
| 16 | + disableEditing: () => void; |
| 17 | + enableHotKeys: () => void; |
| 18 | + disableHotKeys: () => void; |
| 19 | + handleKeyDown: (e: any) => void; |
| 20 | + getBoxPathStyle: (index: any) => any; |
| 21 | + createBoxLayer: () => void; |
| 22 | + addAnnotation: (annotation: any, annotationIndex: any) => { |
| 23 | + bbox: any; |
| 24 | + segmentation: any; |
| 25 | + }; |
| 26 | + addLayer: (layer: any) => void; |
| 27 | + removeLayer: (layer: any) => void; |
| 28 | + restrictPointToImageBounds: (x: any, y: any) => any[]; |
| 29 | + clipRectangleLayerToImageBounds: (layer: any) => any; |
| 30 | + showAnnotation: (annotation_layer: any) => void; |
| 31 | + handleClassifyWaveform: (waveform: Float32Array) => Promise<(string[] | Float32Array)[]>; |
| 32 | + handleClassify: (annotationIndex: number) => void; |
| 33 | + hideAnnotation: (annotation_layer: any) => void; |
| 34 | + annotateBBox: ({ isNewInstance, annotationIndex }?: { |
| 35 | + isNewInstance?: boolean; |
| 36 | + annotationIndex?: any; |
| 37 | + }) => void; |
| 38 | + bboxCursorUpdate: (e: any) => void; |
| 39 | + cancelAnnotation: () => void; |
| 40 | + duplicateAnnotationAtIndex({ annotationIndex, objectCenter, isKey }?: { |
| 41 | + annotationIndex: any; |
| 42 | + objectCenter?: any; |
| 43 | + isKey?: boolean; |
| 44 | + }): any[]; |
| 45 | + duplicateAnnotationDrawShortcut: (annotationIndex: any) => any[]; |
| 46 | + setAnnotationsModified: (modified: any) => void; |
| 47 | + _layerMoved: (e: any) => void; |
| 48 | + _layerResized: (e: any) => void; |
| 49 | + _drawStartEvent: (e: any) => void; |
| 50 | + _drawStopEvent: () => void; |
| 51 | + _drawCreatedEvent: (e: any) => void; |
| 52 | + _handleLeafletDuplicate: (mouseEvent?: any) => void; |
| 53 | + handleCreateNewIndividual: () => void; |
| 54 | + handleHideAllAnnotations: () => void; |
| 55 | + handleShowAllAnnotations: () => void; |
| 56 | + handleAnnotationDelete: (annotationIndex: any) => void; |
| 57 | + handleAnnotationFocus: (annotationIndex: any) => void; |
| 58 | + handleHideOtherAnnotations: (annotationIndex: any) => void; |
| 59 | + handleAnnotationCategoryChange: (annotationIndex: any) => void; |
| 60 | + handleAnnotationSupercategoryChange: (annotationIndex: any) => void; |
| 61 | + handleAnnotationIsCrowdChange: (annotationIndex: any, isCrowd: any) => void; |
| 62 | + handleAnnotationDrawBox: (annotationIndex: any) => void; |
| 63 | + handleCategorySelected: (categoryIndex: any) => void; |
| 64 | + handleCategoryRemoved: () => void; |
| 65 | + handleCategorySelectionCancelled: () => void; |
| 66 | + extractBBox: (layer: any) => number[]; |
| 67 | + getAnnotations: ({ modifiedOnly, excludeDeleted }?: { |
| 68 | + modifiedOnly?: boolean; |
| 69 | + excludeDeleted?: boolean; |
| 70 | + }) => any[]; |
| 71 | + render(): any; |
| 72 | +} |
0 commit comments