Commit Graph

198 Commits

Author SHA1 Message Date
Tim Schaub
1ff43686f5 Use bracket notation instead of goog.object.get 2015-01-07 22:31:01 -07:00
Éric Lemoine
ddc51ee267 Unconditionally draw Replay's 2014-12-18 13:04:29 +01:00
Frederic Junod
c167b2b49d Transform the coordinates in place 2014-12-15 09:30:37 +01:00
Éric Lemoine
fdf52c1865 Simplify hit detection code 2014-12-05 15:42:54 +01:00
Éric Lemoine
a820ccea5a Use alphabetical order for canvas ReplayGroup methods 2014-12-05 12:32:54 +01:00
Éric Lemoine
9421bbd362 More clean-ups in the canvas replay code 2014-12-05 12:29:53 +01:00
Éric Lemoine
4c2a0d2053 Remove unused code in the canvas replay code 2014-12-05 12:24:54 +01:00
Éric Lemoine
b3ad50018d Remove unused local variable 2014-12-05 12:24:54 +01:00
Éric Lemoine
27d30e4286 Replay replays in correct order for hit detection 2014-12-05 12:24:54 +01:00
Éric Lemoine
33adcd3903 Add very basic webgl vector renderer 2014-10-27 09:18:19 +01:00
Tim Schaub
947b049799 Rename ol.browserfeature to ol.has 2014-08-22 07:34:35 -06:00
Frederic Junod
0f4e56978b Remove unnecessary newlines 2014-08-19 11:58:25 +02:00
Peter Robins
e35531e7c6 Rename BrowserFeature to browserfeature 2014-08-15 13:53:20 +00:00
Éric Lemoine
d57a35ffcb Fix stride related bug in Canvas immediate API 2014-07-10 14:21:56 +02:00
Frederic Junod
2c6b22f55c Use the right coordinates when drawing circles 2014-06-24 12:25:21 +02:00
Andreas Hocevar
85ddd2446e Add endGeometry after hit detection stroke and fill 2014-06-24 12:23:47 +02:00
Frederic Junod
52b1ba30fa Don't scale the text stroke width by pixel ratio 2014-06-16 15:34:54 +02:00
Éric Lemoine
6758e0905b Fix icon rendering on hidpi devices 2014-05-09 08:44:23 +02:00
Éric Lemoine
6cd403945a Set snapToPixel defaut value to true 2014-05-07 09:58:56 +02:00
Éric Lemoine
562d74dbed Make Replay API use ol.style.Image "origin" 2014-05-05 09:55:58 +02:00
Éric Lemoine
f59b3e968b Rework handling of skipped features in replay 2014-04-16 19:12:31 +02:00
Frederic Junod
55de0a54b9 Add ol.dom.createCanvasContext2D function 2014-04-02 09:37:41 +02:00
Frederic Junod
e0278e0e9c Scale the text offset by the device's pixel ratio
Fixes #1918
2014-03-28 12:22:12 +01:00
Antoine Abt
78039aceb8 Use a hash to store features uids 2014-03-20 13:03:31 +01:00
Antoine Abt
9f7cba0ac0 Skipped features replaces RenderGeometryFunction 2014-03-19 12:31:45 +01:00
Tim Schaub
88efda1a1f Track resolution and buffer max extent to capture strokes 2014-03-13 20:40:18 -04:00
Tom Payne
78c8d976eb Remove empty ol.geom.flat 2014-03-12 13:26:14 +01:00
Tom Payne
ca44c6328c Factor out ol.geom.flat.transform 2014-03-12 13:26:14 +01:00
Tom Payne
c8165a8168 Factor out ol.geom.flat.simplify 2014-03-12 13:26:13 +01:00
Frédéric Junod
7f46a293d2 Merge pull request #1839 from fredj/text-offset
Add offsetX and offsetY properties to ol.style.Text
2014-03-11 14:35:38 +01:00
Frederic Junod
4a893f7837 Add offsetX and offsetY properties to ol.style.Text 2014-03-11 14:06:51 +01:00
ahocevar
127cce7973 Fix the pointer index
It has to point to the end of the current block, not to the
beginning of the next block. See L581.
2014-03-10 18:18:41 +01:00
Andreas Hocevar
97da6b4874 Merge pull request #1824 from ahocevar/replay-hit-detection
Iterating through the hit detection replay batch fails when geometryRenderFunction returns false
2014-03-10 12:38:25 +01:00
ahocevar
c6ba9787b5 Update the pointer to the next block when reversing
Just reversing the array is not enough, the pointers to the
beginning of the next block must be changed to the reversed
array index.
2014-03-10 12:37:45 +01:00
Tim Schaub
8317317127 Always add first segment when appending coordinates
When we have only a single point, we want to make sure it gets added (fixes #1821).

Because this code doesn't differentiate coordinates that are part of a linestring or linearring from those that are independent points, we always add the first segment (or pair of points).  In addition, coordinates for segments are appended whenever they represent a change in relationship with respect to the extent.  This keeps the code simpler for handling fills and properly capturing intersection points for linestrings.  This could be modified to save a few extra coordinates, but it provides for simpler code at a very minimal cost.
2014-03-07 11:02:25 -07:00
Tim Schaub
50001132be Transform extent coordinates before clipping 2014-03-05 13:27:40 -07:00
Tim Schaub
2750f53fda Clip to max extent 2014-02-25 21:47:57 -07:00
Tim Schaub
50822a4d58 Skip coordinates that don't affect the rendered extent
Segments that intersect the replay group's extent are drawn.  Any segment that represents a change in coordinate-extent relationship is drawn.  This maintains the left/right relationship (or cross product) between points in the rendered extent and every rendered segment.

Still left undone: clip the replay group's rendering to the max extent.
2014-02-25 21:47:57 -07:00
Tim Schaub
f4746687e8 Keep track of max extent for replay 2014-02-25 21:47:57 -07:00
Tom Payne
7a34929b15 Rename rotateWithMap to rotateWithView 2014-02-21 14:32:06 +01:00
Tom Payne
222fafcb77 Activate rotateWithMap option in ol.render.canvas.Replay 2014-02-21 11:57:11 +01:00
Tom Payne
fe420ce1eb Pass view rotation to replay 2014-02-21 11:56:34 +01:00
Frederic Junod
fca0942c30 Handle image opacity in ol.render.canvas.ImageReplay 2014-02-19 11:40:40 +01:00
Tom Payne
5cc3983cdb Fix handling of line dash state in ol.render.canvas.Replay 2014-02-12 17:59:11 +01:00
Tom Payne
a74da436d2 Use ol.BrowserFeature.HAS_CANVAS_LINE_DASH in ol.render.canvas.Replay 2014-02-12 17:57:29 +01:00
Tom Payne
09d5d31fc7 Rename ol.render.IRender to ol.render.IVectorContext 2014-02-06 18:03:27 +01:00
Tom Payne
b6a7bc1248 Add ol.render.canvas.TextReplay 2014-02-03 15:49:06 +01:00
Tom Payne
f24bd65f40 Add ol.render.canvas.Instruction.SET_TEXT_STYLE 2014-02-03 15:49:06 +01:00
Tom Payne
c29b88c0e2 Add ol.render.canvas.Instruction.DRAW_TEXT 2014-02-03 15:49:06 +01:00
Tom Payne
090e3cbdd6 Add ol.render.IRender#drawText 2014-02-03 15:49:04 +01:00