Skip to content

Commit

Permalink
docs(AnnotationTool): update JSDoc comments
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-stout committed Dec 18, 2024
1 parent dcb9f77 commit 22a899c
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions packages/tools/src/tools/base/AnnotationTool.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ abstract class AnnotationTool extends AnnotationDisplayTool {
}

static toolName;

// ===================================================================
// Abstract Methods - Must be implemented.
// ===================================================================
Expand Down Expand Up @@ -147,11 +148,12 @@ abstract class AnnotationTool extends AnnotationDisplayTool {
/**
* @abstract cancel Used to cancel the ongoing tool drawing and manipulation
*
* @param element - The HTML element
*/
abstract cancel(element: HTMLDivElement);
abstract cancel(element: HTMLDivElement): void;

/**
* handleSelectedCallback Custom callback for when a handle is selected.
* @abstract handleSelectedCallback Custom callback for when a handle is selected.
*
* @param evt - The normalized mouse event
* @param annotation - The annotation selected.
Expand All @@ -166,7 +168,7 @@ abstract class AnnotationTool extends AnnotationDisplayTool {
): void;

/**
* Custom callback for when an annotation is selected
* @abstract toolSelectedCallback Custom callback for when an annotation is selected
*
* @param evt - The normalized mouse event
* @param annotation - The `Annotation` to check.
Expand All @@ -180,7 +182,7 @@ abstract class AnnotationTool extends AnnotationDisplayTool {
): void;

/**
* Returns true if the provided canvas coordinate tool is near the annotation
* @abstract isPointNearTool Returns true if the provided canvas coordinate tool is near the annotation
*
* @param element - The HTML element
* @param annotation - The annotation to check
Expand All @@ -201,7 +203,6 @@ abstract class AnnotationTool extends AnnotationDisplayTool {
/**
* @virtual Event handler for Cornerstone MOUSE_MOVE event.
*
*
* @param evt - The normalized mouse event
* @param filteredAnnotations - The annotations to check for hover interactions
* @returns True if the annotation needs to be re-drawn by the annotationRenderingEngine.
Expand Down

0 comments on commit 22a899c

Please sign in to comment.