-
Notifications
You must be signed in to change notification settings - Fork 47
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
feat(region): Add region manager logic and renderers #406
Conversation
c2ac662
to
7eab2e0
Compare
onSelect(annotationId); | ||
}; | ||
const handleKeyPress = (event: React.KeyboardEvent): void => { | ||
if (event.key !== KEYS.enter) { |
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.
Should we include space too?
&:focus, | ||
&:hover { |
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.
Do focus and hover also need the thicker stroke width?
src/region/RegionManager.tsx
Outdated
|
||
format({ annotations = [], scale = 1 }: Props): Annotation[] { | ||
return annotations | ||
.filter(annotation => annotation.type.indexOf('region') >= 0) |
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.
===
vs indexOf
? Also could destructure type
out of annotation
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.
LGTM!
No description provided.