-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[Canvas][Layout Engine] Annotation showing node rotation angle #30702
Conversation
7d2b45e
to
1cd80c7
Compare
Pinging @elastic/kibana-canvas |
1cd80c7
to
3db3604
Compare
@monfera is this good to test or would you prefer I wait? |
@alexfrancoeur thanks, it'd be good to test, I indicate it on my PRs with the blue |
3db3604
to
9c52e0f
Compare
💚 Build Succeeded |
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.
The functionality is great!
I've created a PR against this branch with some design changes - #30950
I'm not sure if you can merge it in or just make the changes on your local branch as they are quite minor.
Thanks!
LGTM. I tested a few different scenarios out manually and didn't run into any issues. 15 degree intervals look nice, single degree intervals work as expected as well. As far as the styling of labeling goes I have two questions and may need to defer to @ryankeairns here.
|
@alexfrancoeur I've linked to a PR in my previous comment that styles the annotation tooltip like an EUI tooltip. This way it will work in both light and dark mode as seen below (i.e. white text on dark background in both cases; same as tooltips across Kibana): Dark modeLight mode |
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 👍 It's such a nice improvement to see the rotate angle.
I just came across one issue. If you're rotating an element and drag the mouse outside of the workpad, it gets hidden under the workpad header and the sidebar. Is there anyway we can increase the z-index and have it display on top?
This isn't that big of a visual bug and isn't a blocker for this PR.
@cqliu1 thanks, will take a look, there's a small, expected merge conflict I need to solve due to the merged other PRs. If it's easy I'll push a change, although maybe it can even be done with a CSS change? Will see in a bit |
💚 Build Succeeded |
8fc0425
to
a65820d
Compare
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
a65820d
to
3e44998
Compare
💔 Build Failed |
💔 Build Failed |
3e44998
to
95040ac
Compare
💚 Build Succeeded |
…ic#30702) * Feat: angle rotation annotation (in degrees) added * Style annotation like EUI tooltip (elastic#30950)
…ic#30702) * Feat: angle rotation annotation (in degrees) added * Style annotation like EUI tooltip (elastic#30950)
…ic#30702) * Feat: angle rotation annotation (in degrees) added * Style annotation like EUI tooltip (elastic#30950)
Shows rotation degree. This change also enabled that instead of 45 degree increments, the snapping is done in 15 degree increments. (It still works such that snapping threshold is tighter if the cursor is close to the shape origin but less restrictive if it's far from the origin)
Completes some usability items here and is rebased on other things in the backed-up PR pipeline, so see the last commit only.
@ryankeairns it'd benefit from a bit of design and CSS implementation, I believe :-) Eg. black number won't be seen on a dark background, so maybe it could get a backing color like in eg. Ai.