@@ -116,6 +116,7 @@ abstract class AnnotationTool extends AnnotationDisplayTool {
116
116
}
117
117
118
118
static toolName ;
119
+
119
120
// ===================================================================
120
121
// Abstract Methods - Must be implemented.
121
122
// ===================================================================
@@ -147,11 +148,12 @@ abstract class AnnotationTool extends AnnotationDisplayTool {
147
148
/**
148
149
* @abstract cancel Used to cancel the ongoing tool drawing and manipulation
149
150
*
151
+ * @param element - The HTML element
150
152
*/
151
- abstract cancel ( element : HTMLDivElement ) ;
153
+ abstract cancel ( element : HTMLDivElement ) : void ;
152
154
153
155
/**
154
- * handleSelectedCallback Custom callback for when a handle is selected.
156
+ * @abstract handleSelectedCallback Custom callback for when a handle is selected.
155
157
*
156
158
* @param evt - The normalized mouse event
157
159
* @param annotation - The annotation selected.
@@ -166,7 +168,7 @@ abstract class AnnotationTool extends AnnotationDisplayTool {
166
168
) : void ;
167
169
168
170
/**
169
- * Custom callback for when an annotation is selected
171
+ * @abstract toolSelectedCallback Custom callback for when an annotation is selected
170
172
*
171
173
* @param evt - The normalized mouse event
172
174
* @param annotation - The `Annotation` to check.
@@ -180,7 +182,7 @@ abstract class AnnotationTool extends AnnotationDisplayTool {
180
182
) : void ;
181
183
182
184
/**
183
- * Returns true if the provided canvas coordinate tool is near the annotation
185
+ * @abstract isPointNearTool Returns true if the provided canvas coordinate tool is near the annotation
184
186
*
185
187
* @param element - The HTML element
186
188
* @param annotation - The annotation to check
@@ -201,7 +203,6 @@ abstract class AnnotationTool extends AnnotationDisplayTool {
201
203
/**
202
204
* @virtual Event handler for Cornerstone MOUSE_MOVE event.
203
205
*
204
- *
205
206
* @param evt - The normalized mouse event
206
207
* @param filteredAnnotations - The annotations to check for hover interactions
207
208
* @returns True if the annotation needs to be re-drawn by the annotationRenderingEngine.
0 commit comments