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

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

Merged

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

@mxiao6 mxiao6 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.

src/drawing/DrawingSVG.tsx Outdated Show resolved Hide resolved
@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 mxiao6 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