Commit Graph

367 Commits

Author SHA1 Message Date
Andreas Hocevar ecadb6b685 Respect pixelRatio when scaling images 2017-07-25 11:06:27 +02:00
gkresic 719abf7265 Support for lineDashOffset 2017-07-24 18:36:39 +02:00
Marc Jansen d0ef05977b Autofix indentation issues (eslint --fix) 2017-06-19 11:58:00 +02:00
Frederic Junod 5763e1d145 Remove unused goog.require 2017-02-03 12:40:53 +01:00
Frederic Junod d59224f5eb Add missing override and inheritDoc jsdoc tags 2017-01-30 17:16:01 +01:00
Andreas Hocevar 76cae0e63f Make sure moveTo is called after beginPath 2017-01-13 19:32:26 +01:00
Andreas Hocevar 08ed00dfb0 Merge pull request #6358 from ahocevar/canvas-moveto
Ensure polygons without stroke are fully filled
2017-01-12 16:22:07 +01:00
Andreas Hocevar 7b232700d5 When applying a pending fill, also apply a pending stroke 2017-01-11 18:32:58 +01:00
Andreas Hocevar a671687133 Allow replaying with null transform 2017-01-11 17:46:28 +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
Tim Schaub 137cdc04c8 Remove ol.DEBUG 2017-01-01 20:37:52 -07:00
Tim Schaub ef04f466cd Name modules more like their provide 2016-12-18 11:24:01 -07:00
simonseyock f10ae6c474 Adressed review.
Reusing transform
Changing either size of the canvas or clearing it
adding unit of hitTolerance to jsdoc
2016-12-08 10:14:36 +01:00
simonseyock 00a4f3b410 buffering extent by resolution*hitTolerance 2016-12-08 10:14:09 +01:00
simonseyock f6ee11bb68 Documentation and linting 2016-12-08 10:14:09 +01:00
simonseyock da020d77e9 Added cache for circle arrays. Reusing context. 2016-12-08 10:14:09 +01:00
simonseyock 80e392ea52 Satisfying linter, jsdoc & compiler 2016-12-08 10:14:09 +01:00
simonseyock 2493eb2c20 Implemented midpoint circle algorithm 2016-12-08 10:13:47 +01:00
simonseyock 5ce0d8aa2a changed signature of internal methods 2016-12-08 10:13:47 +01:00
simonseyock a6c768ae07 Make forEachFeatureAtCoordinate work with variable hitContext size 2016-12-08 10:12:42 +01:00
Andreas Hocevar 89ebf0a182 Merge pull request #6091 from tchandelle/linedash
Apply pixelRatio to line dash
2016-12-06 15:53:23 +01:00
Andreas Hocevar ee7b894350 Refactor VectorTile renderer and add lower resolution clipping 2016-12-06 08:51:55 +01:00
Thomas Chandelle 7ee04ec200 Compare current linedash and new linedash as arrays 2016-12-05 09:24:13 +01:00
Thomas Chandelle a0e310700c Apply pixelRatio to line dash 2016-12-05 09:24:13 +01:00
GaborFarkas ac6408be3b Add circle replay to WebGL renderer 2016-11-23 09:51:36 +01:00
greenkeeperio-bot 71ebed07bf chore(package): update eslint to version 3.9.1
https://greenkeeper.io/
2016-11-01 11:51:06 +01:00
Andreas Hocevar aa7e54833d Do not fill when there is no fillStyle 2016-10-28 10:34:27 +02:00
Andreas Hocevar a2a2a53e08 Use geometry extent's top left corner as pattern/gradient origin 2016-10-27 21:27:17 +02:00
Andreas Hocevar fdae2e8e00 Set one-off transform instead of transforming back and forth 2016-10-14 17:54:21 +02:00
Frederic Junod 988b3f8b9b Add missing jsdoc to ol.render.canvas.Replay#fill_ function 2016-10-14 15:05:30 +02:00
Andreas Hocevar f655f6740e Move gradient and pattern fills with the view 2016-10-13 09:30:09 +02:00
Tim Schaub f444800fc6 Only call beginPath once per MultiPolygon 2016-09-26 06:13:01 -06:00
Andreas Hocevar e87c198eef Fix fillStyle or strokeStyle defined assertion 2016-09-16 14:21:10 +02:00
Frédéric Junod 7ec100f3f8 Merge pull request #5863 from fredj/stroke_pattern
Allow CanvasPattern or CanvasGradient as stroke style
2016-09-14 08:38:41 +02:00
Frederic Junod e48fda6bef Allow CanvasPattern or CanvasGradient as stroke style 2016-09-13 17:16:29 +02:00
Andreas Hocevar e7bc7121d6 Add option to skip first coordinate for use with closePath() 2016-09-13 02:14:12 +02:00
Andreas Hocevar 430aee95fd Only check for fill and stroke once 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 6e0b406c7b Always close polygon rings
This ensures that we do not optimize away the last vertex of a polygon
2016-09-01 16:19:41 +02:00
Tim Schaub 9e1a3f59e3 Restructure Canvas replay classes 2016-09-01 06:58:12 -06:00
Tim Schaub d1d3e6a37a Move ol.render.canvas.Instruction to its own file 2016-09-01 06:58:12 -06:00
Andreas Hocevar d1e4b33760 Rename goog.DEBUG to ol.DEBUG 2016-08-31 21:10:01 +02:00
Andreas Hocevar 2037e725b3 Move to 90° along the circle, not 0° 2016-08-29 09:30:23 +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 b7c84b269c Merge pull request #5196 from ahocevar/batch-fill-stroke
Batch polygon and circle fills and strokes
2016-08-24 12:02:52 +02:00
Andreas Hocevar 395793b921 Additional tests and code comments 2016-08-24 11:44:15 +02:00
Frederic Junod 8e95d94f3e Add rotateWithView option to ol.style.Text 2016-08-23 13:26:02 +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