-
Notifications
You must be signed in to change notification settings - Fork 183
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
#2679 - Highlight colors for Simple Objects do not match the new design #2955
#2679 - Highlight colors for Simple Objects do not match the new design #2955
Conversation
getHoverPathStyle(path: any, render: Render, type: boolean) { | ||
if (type) { | ||
return path.attr(render.options.hoverStyle); | ||
} else { | ||
return path.attr({ ...render.options.hoverStyle, fill: '#fff' }); | ||
} | ||
} |
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.
Not sure that "type" is a good name here. Could you please change it or describe what is it?
tfx(Math.min(point[0].x, point[1].x) - scaleFactor / 8), | ||
tfx(Math.min(point[0].y, point[1].y) - scaleFactor / 8), | ||
tfx( | ||
Math.max(point[0].x, point[1].x) - | ||
Math.min(point[0].x, point[1].x) + | ||
scaleFactor / 4, | ||
), | ||
tfx( | ||
Math.max(point[0].y, point[1].y) - | ||
Math.min(point[0].y, point[1].y) + | ||
scaleFactor / 4, |
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.
If you understood what "tfx" is please rename it
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 found there is a separate Jira for this #2675, so I just skip it for now
…ghlight-colors-for-simple-objects-do-not-match-the-new-design
Closes #2679
How the feature works? / How did you fix the issue?
(Screenshots, videos, or GIFs, if applicable)
Check list
#1234 – issue name