-
Notifications
You must be signed in to change notification settings - Fork 105
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature: Drawing boundary updates on each action (#356)
* Update: drawing boundary update * Update: merge from master * Update: tests for drawing boundary on each stroke * Update: docs on DocDrawingDialog
- Loading branch information
Showing
7 changed files
with
269 additions
and
126 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
import AnnotationDialog from '../AnnotationDialog'; | ||
|
||
class DocDrawingDialog extends AnnotationDialog { | ||
/** | ||
* Empty stub to avoid unexpected behavior. | ||
* | ||
* @override | ||
* @protected | ||
*/ | ||
addAnnotation() {} | ||
|
||
/** | ||
* Empty stub to avoid unexpected behavior. | ||
* | ||
* @override | ||
* @protected | ||
*/ | ||
removeAnnotation() {} | ||
|
||
/** | ||
* Sets up the drawing dialog element. | ||
* | ||
* @param {Annotation[]} annotations - Annotations to show in the dialog | ||
* @param {HTMLElement} threadEl - Annotation icon element | ||
* @return {void} | ||
* @protected | ||
*/ | ||
/* eslint-disable no-unused-vars */ | ||
setup(annotations, threadEl) {} | ||
/* eslint-enable no-unused-vars */ | ||
|
||
/** | ||
* Display the dialog in the browser | ||
* | ||
* @protected | ||
* @return {void} | ||
*/ | ||
show() {} | ||
} | ||
|
||
export default DocDrawingDialog; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.