Skip to content

fix(drawing): apply blur to smaller drawn annotations#665

Merged
ChenCodes merged 2 commits intobox:masterfrom
ChenCodes:only-part-of-annotation-is-highlighted
Jan 13, 2021
Merged

fix(drawing): apply blur to smaller drawn annotations#665
ChenCodes merged 2 commits intobox:masterfrom
ChenCodes:only-part-of-annotation-is-highlighted

Conversation

@ChenCodes
Copy link
Contributor

@ChenCodes ChenCodes commented Jan 13, 2021

Main Issue:
We were seeing a bug where because we were using primitiveUnits="objectBoundingBox", this was causing the annotated elements that were smaller to not have a prominent blur applied. Removing the primitiveUnits attribute + making the opacity darker helped solve this issue.

Demo:
Chrome
Screen Shot 2021-01-12 at 4 22 47 PM

Safari
safari

Firefox
firefox

Edge
edge

IE11
ie11

@ChenCodes ChenCodes requested a review from a team as a code owner January 13, 2021 00:27
Copy link
Contributor

@mingzexiao6 mingzexiao6 left a comment

Choose a reason for hiding this comment

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

Don't forget to do cross-browser testing.

@jstoffan
Copy link
Collaborator

The commit message should try to describe what was fixed rather than what code was changed.

@ChenCodes ChenCodes changed the title fix(drawing): adjust filter attributes fix(drawing): apply blur to smaller drawn annotations Jan 13, 2021
@ChenCodes ChenCodes requested a review from mingzexiao6 January 13, 2021 01:01
@ChenCodes ChenCodes merged commit 9223f2f into box:master Jan 13, 2021
@ChenCodes ChenCodes deleted the only-part-of-annotation-is-highlighted branch January 13, 2021 01:53
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.

3 participants