@ambuj.bhaskar/react-component-library 0.18.17-alpha → 0.18.19-alpha

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -111,6 +111,94 @@ export declare type AwiAnnotationHotkeysProps = {
111
111
  controlMinusHotkey?: () => void;
112
112
  };
113
113
 
114
+ export declare const AwiAnnotationTools: React.FC<AwiAnnotationToolsProps>;
115
+
116
+ export declare type AwiAnnotationToolsProps = {
117
+ handleSelectTool?: (tool: "edit" | "annotate") => void;
118
+ handleSAMToggle?: (tool: "SAM" | "Normal") => void;
119
+ isEditing: boolean;
120
+ loggedUser: LoggedUser;
121
+ annotator_name: string;
122
+ hasAnnotation: boolean;
123
+ SAMToggleValue: boolean;
124
+ currentSelectedSAMTool: any;
125
+ handleCopyAnnotations: any;
126
+ setOpenRequestDetails?: (a: any) => void;
127
+ openRequestDetails: boolean;
128
+ show_guidelines_first: boolean;
129
+ handleZoomInClick: () => void;
130
+ zoomProperties: any;
131
+ handleReset: () => void;
132
+ handleZoomOutClick: () => void;
133
+ handleCompleteAnnotation: () => void;
134
+ toggleFullscreen: () => void;
135
+ selectAnnotationId?: any;
136
+ selectedAnnotationInfo?: any;
137
+ undoLastStateAnnotation: () => void;
138
+ usingSamFunction: boolean;
139
+ samAPIactive: boolean;
140
+ handleSendToSamFunction: () => void;
141
+ coordinates: any;
142
+ handleSendToSamFunctionPrompt: () => void;
143
+ reLoadAndReDrawAnnotations: () => void;
144
+ showGuidelinesFirst: boolean;
145
+ isMobile?: boolean;
146
+ toggleSelectAnnotation: () => void;
147
+ handleLeftKeyDown: () => void;
148
+ handleRightKeyDown: () => void;
149
+ handleUpKeyDown: () => void;
150
+ handleDownKeyDown: () => void;
151
+ undoAnnotationPoint: () => void;
152
+ togglePagination: () => void;
153
+ switchToEditMode?: () => void;
154
+ switchToCreateMode?: () => void;
155
+ goToNextImage?: () => void;
156
+ goToPreviousImage?: () => void;
157
+ handleGoToPendingAnnotations?: () => void;
158
+ handleCopyByCtrlC?: () => void;
159
+ handlePasteAnnotationsByControlV?: () => void;
160
+ showPagination?: boolean;
161
+ isControlViaToolPress: boolean;
162
+ isAltViaToolPress: boolean;
163
+ setIsControlViaToolPress: (boolean: any) => void;
164
+ setIsAltViaToolPress: (boolean: any) => void;
165
+ isCarousel: boolean;
166
+ allowedToCopyPreview: boolean;
167
+ classColorMapToSend?: any;
168
+ request: any;
169
+ parentReqData: any;
170
+ RequestInfoModal: any;
171
+ setCrossHair: (boolean: any) => void;
172
+ isCrossHair: boolean;
173
+ annotationViewType?: string;
174
+ REACT_APP_SAM_ENABLED?: string;
175
+ controlMinusHotkey?: () => void;
176
+ controlPlusHotkey?: () => void;
177
+ Carousel?: any;
178
+ };
179
+
180
+ export declare const AwiCanvasContainer: React.FC<AwiCanvasContainerProps>;
181
+
182
+ export declare type AwiCanvasContainerProps = {
183
+ title?: string;
184
+ canvasDimensions: any;
185
+ zoomProperties: any;
186
+ isEditing: any;
187
+ canvasRef: any;
188
+ bgCanvasRef: any;
189
+ overlayCanvasRef: any;
190
+ handleMouseDown: any;
191
+ handleMouseUp: any;
192
+ handleMouseMove: any;
193
+ handleMouseMoveOut: any;
194
+ handleOnMouseLeave: any;
195
+ handleWheel: any;
196
+ handleTouchStart: any;
197
+ handleTouchMove: any;
198
+ handleTouchEnd: any;
199
+ handleTouchCancel: any;
200
+ };
201
+
114
202
  export declare const AwiEmptyState: React.FC<AwiEmptyStateProps>;
115
203
 
116
204
  export declare type AwiEmptyStateProps = {
@@ -608,6 +696,38 @@ declare type EventType = {
608
696
  icon?: string;
609
697
  };
610
698
 
699
+ export declare const Heatmap: React.FC<HeatmapProps>;
700
+
701
+ export declare type HeatmapData = {
702
+ ylabels: string[];
703
+ xlabels: string[];
704
+ datasets: {
705
+ [label: string]: HeatmapDatapoint[];
706
+ };
707
+ };
708
+
709
+ export declare type HeatmapDatapoint = {
710
+ value: number;
711
+ hoverContent?: React.ReactNode;
712
+ color?: Color;
713
+ };
714
+
715
+ export declare type HeatmapProps = {
716
+ data: HeatmapData;
717
+ colorRange: Color[];
718
+ valueRange: [number, number];
719
+ width?: CSSstring;
720
+ height?: CSSstring;
721
+ cellWidth?: CSSstring;
722
+ cellHeight?: CSSstring;
723
+ yLabelWidth?: CSSstring;
724
+ xLabelHeight?: CSSstring;
725
+ cellBorderColor?: Color;
726
+ borderColor?: Color;
727
+ cellTextColor?: Color;
728
+ labelTextColor?: Color;
729
+ };
730
+
611
731
  declare type HTMLButtonProps = ComponentProps<"button">;
612
732
 
613
733
  declare type HTMLInputProps = ComponentProps<"input">;