-
Notifications
You must be signed in to change notification settings - Fork 64
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: update output graph #143
Conversation
@@ -0,0 +1,29 @@ | |||
const int2HexColor = (num) => `#${num.toString(16).padStart(6, '0')}`; | |||
const rgb2Int = (r, g, b) => r * 255 * 255 + g * 255 + b; |
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.
"255" need to be "256" , this bug was fixed in explorer
f0d16d6
to
3d93eae
Compare
}; | ||
useEffect(() => { | ||
const close = e => { | ||
const isMenu = e.path.find(each => each.className === 'context-menu'); |
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.
safari doesn't has e.path
attribute
const isMenu = (() => {
let target = e.target;
while (target && target !== app) {
if (target.className === 'context-menu') {
return true;
}
target = target.parentElement;
}
return false;
})();
mod: code review mod: code review mod: code review
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
mod: code review mod: code review mod: code review
No description provided.