• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

caleb531 / flip-book / 113
100%

Build:
DEFAULT BRANCH: master
Ran 29 Jul 2019 01:37AM UTC
Jobs 5
Files 4
Run time 8s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
113

push

travis-ci

caleb531
Optimize stroke groups while drawing

The algorithm works as follows:

1. If the slope of the coordinates to be added is equal to the slope of
the previously-added point, then the new coordinates are combined into
that last point.

2. Otherwise, the coordinates are added to the stroke group as an
entirely new point.

For example, with this optimization in place, drawing a
perfectly-straight line adds only 2 points to the stroke group, rather
than a point for every mousemove.

29 of 30 branches covered (96.67%)

Branch coverage included in aggregate %.

117 of 119 relevant lines covered (98.32%)

88.23 hits per line

Jobs
ID Job ID Ran Files Coverage
1 113.1 29 Jul 2019 01:37AM UTC 0
97.99
Travis Job 113.1
2 113.2 29 Jul 2019 01:37AM UTC 0
97.99
Travis Job 113.2
3 113.3 29 Jul 2019 01:37AM UTC 0
97.99
Travis Job 113.3
4 113.4 29 Jul 2019 01:37AM UTC 0
97.99
Travis Job 113.4
5 113.5 29 Jul 2019 01:37AM UTC 0
Travis Job 113.5
Source Files on build 113
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #113
  • fa093d4a on github
  • Prev Build on master (#112)
  • Next Build on master (#114)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc