You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Most text highlighting for large blocks break down into 3 parts, first line, body, and last line. This gives the selection a really nice outline, and also avoids the N^2 computation in the bezier path construction as more and more lines are selected.
Here's an example implementation that assumes the input rects were added to an array before the bezier path is computed:
Most text highlighting for large blocks break down into 3 parts, first line, body, and last line. This gives the selection a really nice outline, and also avoids the N^2 computation in the bezier path construction as more and more lines are selected.
Here's an example implementation that assumes the input rects were added to an array before the bezier path is computed:
https://gist.github.com/ocrickard/d07e30f9ba2c29fef7e491ab42c19d08
This can be done waaaaay more elegantly in Swift.
The text was updated successfully, but these errors were encountered: