-
Notifications
You must be signed in to change notification settings - Fork 306
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Smartpen Milestone-1 #526
Smartpen Milestone-1 #526
Conversation
Menu, Both modes, undo align To do: Better heuristics
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have an observation and a question. Good work :)
@@ -155,6 +155,12 @@ | |||
<script src="https://unpkg.com/@popperjs/core@2"></script> | |||
<script src="https://unpkg.com/tippy.js@6"></script> | |||
|
|||
<!-- Smartpen --> | |||
<script type="text/javascript" src="../../common/enhance.js"></script> | |||
<script type="text/javascript" src="../../common/smartpen/autoalign.js"></script> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't quite understand why you've added this here, I couldn't notice anything in the heatmap app. Is this coming functionality?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually the smartpen is a part of openseadragon-canvas-draw-overlay. Currently, even if not used, the file has to be included with it. Haven't explored the heatmaps section, but if there is any need, smartpen can be activated with a line of code.
saveAnnotation(); | ||
$CAMIC.viewer.canvasDrawInstance.isOn = false; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just noting that this looks like it changes the behavior of the pencil in single draw mode to not save automatically. I'm ok with this, but @nanli-emory may have the same/different opionion.
Smartpen Milestone 1 #523
Contains
I have added the feature to annotations and preset label. This can be extended to anyother tab easily. I tested it, it works well. It supports any kind of annotations (freestyle, rectangles etc).
Code details
Written the edge detection in
enhance.js
. Written the smartpen class inautoalign.js
,autoalign.css
. Integrated the code inopenseadragon-canvas-draw-overlay
, added it to viewer inuicallbacks.js
To dos
Feel free to provide suggestions, improvements, contributions related to the implementation or UI. And please review