Skip to content

feat(highlights): Better rect smoothing#596

Merged
mergify[bot] merged 5 commits intobox:masterfrom
ConradJChan:smoothen-rect-more
Sep 17, 2020
Merged

feat(highlights): Better rect smoothing#596
mergify[bot] merged 5 commits intobox:masterfrom
ConradJChan:smoothen-rect-more

Conversation

@ConradJChan
Copy link
Contributor

@ConradJChan ConradJChan commented Sep 16, 2020

Attempted an improvement to the existing rect combining strategy. Previously, we would round the rect's y coordinate to the nearest integer and use that as the key to combine all of those rects into such "rows".

This approach attempts to combine rects that have the y coordinate within a certain threshold (% of height).
An additional enhancement is that it also combines based on whether the x coordinate is also within a certain threshold (% of width).

Before:
Screen Shot 2020-09-16 at 11 43 56 AM

After:
Screen Shot 2020-09-16 at 11 43 39 AM

Before:
Screen Shot 2020-09-16 at 11 44 57 AM

After:
Screen Shot 2020-09-16 at 11 44 47 AM

Before:
Screen Shot 2020-09-16 at 11 46 52 AM

After:
Screen Shot 2020-09-16 at 11 46 37 AM

@ConradJChan ConradJChan requested a review from a team as a code owner September 16, 2020 21:40
mingzexiao6
mingzexiao6 previously approved these changes Sep 17, 2020
@ConradJChan ConradJChan changed the title feat(highlights): Better rect smoothening feat(highlights): Better rect smoothing Sep 17, 2020
@mergify mergify bot merged commit 2535357 into box:master Sep 17, 2020
@ConradJChan ConradJChan deleted the smoothen-rect-more branch September 17, 2020 17:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants