Commit Graph

21 Commits

Author SHA1 Message Date
Andreas Hocevar 6469d3e864 Handle pixelRatio on replay creation instead of replay 2017-08-31 21:41:07 +02:00
Andreas Hocevar 35bd92b713 Prerender labels and cache them as images 2017-08-31 21:41:07 +02:00
Tim Schaub a3e3e99baa Get rid of useless test exports 2017-08-17 15:16:58 -04:00
Tim Schaub 73afb656d7 Test fixes 2017-08-16 14:24:42 -04:00
Tim Schaub 46bcce464f Add missing requires to tests 2017-08-16 13:43:28 -04:00
Andreas Hocevar 617151c8ff Simplify the renderer function API 2017-08-05 00:15:58 +02:00
Andreas Hocevar c6b942f185 Allow styles to configure a custom renderer
Two new examples show how custom renderers can be used to render text along
paths, and to declutter labels using 3rd party libraries.
2017-07-29 17:57:38 +02:00
Andreas Hocevar 76cae0e63f Make sure moveTo is called after beginPath 2017-01-13 19:32:26 +01:00
Andreas Hocevar 2296ca3942 Do not skip moveTo calls after fill 2017-01-11 17:38:31 +01:00
Thomas Chandelle 7a4ae3a6ac Line Dash offset 2017-01-04 11:19:47 +01:00
Andreas Hocevar 132be598e7 Test array with to.eql(), not to.be.eql() 2016-12-06 16:03:35 +01:00
Thomas Chandelle 3b64133f21 Add tests for linedash for HiDPI display 2016-12-05 09:26:06 +01:00
Andreas Hocevar e7bc7121d6 Add option to skip first coordinate for use with closePath() 2016-09-13 02:14:12 +02:00
Andreas Hocevar 129757578d Do not repeat first vertex when closed is true 2016-09-13 02:13:30 +02:00
Andreas Hocevar 457de34485 Merge pull request #5708 from ahocevar/no-closepath
Remove unnecessary closePath() instructions
2016-08-25 17:05:52 +02:00
Andreas Hocevar 65d03bfbfb Bail out when there is no fill and stroke 2016-08-25 16:40:31 +02:00
Andreas Hocevar 395793b921 Additional tests and code comments 2016-08-24 11:44:15 +02:00
Andreas Hocevar 7e940e618e Introduce new overlaps option for Vector and VectorTile sources
Instead of deciding whether to batch fills and strokes by looking at the
opacity of the style, we now rely on user input.
2016-08-23 12:05:03 +02:00
Andreas Hocevar eed52552a9 Batch polygon and circle fills and strokes 2016-08-23 12:05:03 +02:00
Tim Schaub ed5dbd1293 Put test requires on top 2016-08-08 09:58:11 -06:00
Tim Schaub 424f3e5577 Move renderer files so they are named like their provides 2016-08-07 10:49:11 -06:00