Skip to content
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

Conversation

StarlaStarla
Copy link
Contributor

@StarlaStarla StarlaStarla commented Jul 25, 2023

Closes #2679

How the feature works? / How did you fix the issue?

(Screenshots, videos, or GIFs, if applicable)

Check list

  • unit-tests written
  • e2e-tests written
  • documentation updated
  • PR name follows the pattern #1234 – issue name
  • branch name doesn't contain '#'
  • PR is linked with the issue
  • base branch (master or release/xx) is correct
  • task status changed to "Code review"

@StarlaStarla StarlaStarla linked an issue Jul 25, 2023 that may be closed by this pull request
@auto-assign auto-assign bot requested review from rrodionov91 and vitaepam July 25, 2023 07:35
@StarlaStarla StarlaStarla changed the title #2679 Highlight colors for Simple Objects do not match the new design #2679 - Highlight colors for Simple Objects do not match the new design Jul 25, 2023
@StarlaStarla StarlaStarla requested a review from Nitvex July 25, 2023 07:36
Comment on lines 194 to 200
getHoverPathStyle(path: any, render: Render, type: boolean) {
if (type) {
return path.attr(render.options.hoverStyle);
} else {
return path.attr({ ...render.options.hoverStyle, fill: '#fff' });
}
}
Copy link
Collaborator

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?

Comment on lines +248 to +258
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,
Copy link
Collaborator

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

Copy link
Contributor Author

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

@Zhirnoff
Copy link
Collaborator

Bug is fixed
2023-07-31_19h06_14

@StarlaStarla StarlaStarla merged commit f725f61 into master Aug 2, 2023
@StarlaStarla StarlaStarla deleted the 2679-highlight-colors-for-simple-objects-do-not-match-the-new-design branch August 2, 2023 09:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Highlight colors for Simple Objects do not match the new design
3 participants