-
Notifications
You must be signed in to change notification settings - Fork 16
DM-8542 Add support for changing draw layer symbol and the size #255
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
Conversation
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.
Code looks good. The main part of my comments to is put the color utility routines you made into Color.js
.
I did notice some react warnings (setState
related) for ShapePickerWrapper
"violet":"#ee82ee", | ||
"wheat":"#f5deb3","white":"#ffffff","whitesmoke":"#f5f5f5", | ||
"yellow":"#ffff00","yellowgreen":"#9acd32"}; | ||
|
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.
are this colors for you background algorithm? You might want to clean it up so it uses single quotes and the keys are not quoted.
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 understand more this is a named color map to RGB. I think you want to this objects and the background utility routines to util/Color.js.
let a = hsv.value * (1.0 - hsv.saturation); | ||
let b = hsv.value * (1.0 - hsv.saturation * f); | ||
let c = hsv.value * (1.0 - hsv.saturation * (1-f)); | ||
let d = hsv.value; |
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.
you could use const
for these instead of let
Yay!! Great extra feature for catalogs use on images. I think the options are clear enough and the fact that the change is applied immediately is also a extra bonus for usability. I like it a lot. Good job! |
…-change the symbol dialog to be only one as color dialog. -update drawlayer in color dialog
Some update:
|
The development mainly adds support for the user to change the symbol and its size when overlaying a catalog on an image including the features:
x, square, cross, diamond, circle, arrow, boxcircle, and dot.