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

Improved Text Selection By Padding Text Elements #5545

Closed

Commits on Mar 11, 2015

  1. Improve text selection by giving all text elements a right and bottom…

    … padding, that pads the element right to the nearest right and bottom element. Also, certain elements got top and left padding too.
    
    Calculating the proper amount of padding is not straightforward. To do so, we must find the nearest right and nearest bottom element, which can be an O(N^2) operation if it is done naively. Instead, we use a quadtree data structure which makes it easy to do lookups based on location.
    
    Also add a number of tests for the quadtree.
    speedplane committed Mar 11, 2015
    Configuration menu
    Copy the full SHA
    a058ed1 View commit details
    Browse the repository at this point in the history