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

[Editor] Remove the outline which is inside the free highlight shape #17586

Merged

Conversation

calixteman
Copy link
Contributor

When an highlight is self-intersecting, the outline was drawn inside. In order to remove it, we use a svg mask to exclude the shape inside when drawing the outlines.
That leads to change the outline 1px,white-2px,blue-1px,white to a 2px,white-2px,blue: the part of the stroke which is inside the shape is removed because of the mask.

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Linux m4)


Received

Command cmd_preview from @Snuffleupagus received. Current queue size: 0

Live output at: http://54.241.84.105:8877/fcac16daa84f76c/output.txt

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Linux m4)


Success

Full output at http://54.241.84.105:8877/fcac16daa84f76c/output.txt

Total script time: 1.24 mins

Published

Copy link
Collaborator

@Snuffleupagus Snuffleupagus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is the new additional gray(?) border used outside of the selected FreeHighlight intended to be this "thick", since it feels noticeably different compared to the existing editors?

web/draw_layer_builder.css Outdated Show resolved Hide resolved
When an highlight is self-intersecting, the outline was drawn inside.
In order to remove it, we use a svg mask to exclude the shape inside
when drawing the outlines.
That leads to change the outline 1px,white-2px,blue-1px,white to a
2px,white-2px,blue: the part of the stroke which is inside the shape
is removed because of the mask.
@calixteman calixteman force-pushed the editor_freehighlight_outline_inside branch from e495206 to b88c6f9 Compare January 30, 2024 13:41
@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Linux m4)


Received

Command cmd_preview from @Snuffleupagus received. Current queue size: 0

Live output at: http://54.241.84.105:8877/9d8b8f9d35452cc/output.txt

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Linux m4)


Success

Full output at http://54.241.84.105:8877/9d8b8f9d35452cc/output.txt

Total script time: 1.19 mins

Published

@Snuffleupagus
Copy link
Collaborator

Snuffleupagus commented Jan 30, 2024

It seems that, depending on the zoom-level, the editor-toolbar can obscure part of the outline for FreeHighlight. While this may perhaps be difficult to address generally (depending on the FreeHighlight shape), it doesn't seem to happen for any other type of editor.

toolbar

@calixteman
Copy link
Contributor Author

It seems that, depending on the zoom-level, the editor-toolbar can obscure part of the outline for FreeHighlight. While this may perhaps be difficult to address generally (depending on the FreeHighlight shape), it doesn't seem to happen for any other type of editor.

It's unrelated to this patch and I'll fix the issue in an other one.

@calixteman
Copy link
Contributor Author

@Snuffleupagus see #17602 for the issue you just mentioned.

Copy link
Collaborator

@Snuffleupagus Snuffleupagus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

r=me, thank you!

@calixteman
Copy link
Contributor Author

/botio integrationtest

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Windows)


Received

Command cmd_integrationtest from @calixteman received. Current queue size: 0

Live output at: http://54.193.163.58:8877/84e925ef93a1929/output.txt

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Linux m4)


Received

Command cmd_integrationtest from @calixteman received. Current queue size: 0

Live output at: http://54.241.84.105:8877/0cf79f4fddaff1e/output.txt

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Linux m4)


Success

Full output at http://54.241.84.105:8877/0cf79f4fddaff1e/output.txt

Total script time: 6.31 mins

  • Integration Tests: Passed

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Windows)


Success

Full output at http://54.193.163.58:8877/84e925ef93a1929/output.txt

Total script time: 15.84 mins

  • Integration Tests: Passed

@calixteman calixteman merged commit 245fd02 into mozilla:master Jan 30, 2024
9 checks passed
@calixteman calixteman deleted the editor_freehighlight_outline_inside branch January 30, 2024 16:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants