Commit Graph

533 Commits

Author SHA1 Message Date
Frederic Junod d8fd51a537 Remove unused private variable 2018-03-28 08:56:36 +02:00
Frederic Junod e9ce23a461 Move the temporary arrays to the module level
No need to create a new variable for each instance.
2018-03-28 08:55:27 +02:00
Frederic Junod 7cbc22fece Module type for ol.style.* 2018-03-27 15:09:52 +02:00
Frederic Junod ce726ed9dd Module type for ol.layer.Vector 2018-03-23 08:44:21 +01:00
Frederic Junod 48740f0026 Move RBush typedefs out of src/ol/typedefs.js 2018-03-22 17:13:48 +01:00
Frederic Junod f5aa7d7867 Module type for ol.ColorLike 2018-03-19 09:24:32 +01:00
Tim Schaub cf80733e41 Module type for ol/Feature 2018-03-12 08:32:09 -06:00
Tim Schaub ef70d71636 Module types for ol/geom 2018-03-12 08:32:09 -06:00
Andreas Hocevar 95d6251dbb Get rid of olx.js and typedef.js typedefs for ol 2018-03-08 18:57:24 +01:00
Frederic Junod 3435ac575e Better type definition
Fixes the `Invalid type(s) for operator IN.` warnings from the closure compiler.
2018-03-07 16:45:46 +01:00
Frederic Junod 500a017faf Better code indentation 2018-03-05 15:36:40 +01:00
Frederic Junod b50a47114e Move the nullFunction to ol/functions
And rename it to `UNDEFINED`.
2018-03-01 14:41:18 +01:00
Kevin Schmidt 791f8b9917 Don't assume fill for canvas polygon hit detection.
This brings canvas polygon hit detection in parity with WebGL, where an
unfilled polygon will not be hit detected hovering inside the polygon.

Fixes #4846
2018-02-27 13:12:46 -07:00
Frederic Junod 2132229d68 Named exports from ol/render/canvas/ReplayGroup 2018-02-21 09:15:53 +01:00
Frederic Junod 16b732472f Named exports from ol/render/canvas/TextReplay 2018-02-21 09:13:33 +01:00
Tim Schaub fba4d82bdb Named exports from ol/geom/SimpleGeometry 2018-02-19 10:05:30 -07:00
Tim Schaub 4e0eaae9da Merge pull request #7840 from raiyni/render_webgl
More export renaming
2018-02-18 21:46:54 -07:00
Frederic Junod 4cad77089a Better code indentation 2018-02-16 14:34:00 +01:00
raiyni b5b3e256f8 ol/render/replay export 2018-02-15 22:54:02 -06:00
Marc Jansen 183b8e29c4 Named exports from ol/transform 2018-02-15 17:55:54 +01:00
Tim Schaub 0948d4002f Named exports from ol/render/canvas 2018-02-14 09:43:20 -07:00
Tim Schaub d2c18a505a Merge pull request #7820 from raiyni/geom
ol/geom/flat/* exports
2018-02-14 04:07:09 -07:00
raiyni b2d920bbf1 ol/geom/flat/transform export 2018-02-13 09:22:00 -06:00
Frederic Junod 95dff19070 Add new canvas instruction array in ol/render/canvas/Instruction
Don't re-create the arrays on every replay group
2018-02-13 08:31:44 +01:00
raiyni 837490b4a4 ol/geom/flat/simplify export 2018-02-13 00:08:20 -06:00
raiyni 78b418ba9d ol/geom/flat/straightchunk export 2018-02-12 23:42:11 -06:00
raiyni 2550ab1691 ol/geom/flat/textpath export 2018-02-12 23:34:21 -06:00
raiyni 05a648d4f3 ol/geom/flat/length export 2018-02-12 23:27:38 -06:00
raiyni fd78aa9798 ol/geom/flate/inflate exports 2018-02-12 23:06:02 -06:00
Frederic Junod 11f464f7ff Remove private static members from ol/render/canvas/ReplayGroup 2018-02-10 09:08:47 +01:00
Tim Schaub 9cfee0f40b Named exports from ol/has 2018-02-05 10:42:47 -07:00
Frederic Junod 4504c422ae Rename _ol_render_canvas_Instruction_ to CanvasInstruction 2018-02-05 12:40:44 +01:00
Frederic Junod 039d4dc714 Better variables scoping 2018-01-17 16:07:36 +01:00
Frederic Junod 4c5ca75ca6 Better variables scoping 2018-01-17 10:54:18 +01:00
Frederic Junod 31e30d28b7 Named exports from ol/obj 2018-01-16 14:14:17 +01:00
Frederic Junod 2139db7437 Rename _ol_render_canvas_LineStringReplay_ to CanvasLineStringReplay 2018-01-15 10:09:32 +01:00
Frederic Junod 73db907e99 Rename _ol_render_canvas_PolygonReplay_ to CanvasPolygonReplay 2018-01-15 10:08:31 +01:00
Frederic Junod c890db50b9 Rename _ol_render_canvas_TextReplay_ to CanvasTextReplay 2018-01-15 10:07:22 +01:00
Frederic Junod e0f910a7ba Rename _ol_render_canvas_Replay_ to CanvasReplay 2018-01-15 10:04:14 +01:00
Frederic Junod 5657f3a3fa Rename _ol_render_webgl_ImageReplay_w_ol_render_canvas_ImageReplay_ to CanvasImageReplay 2018-01-15 09:57:57 +01:00
Frederic Junod 85e1a6b54f Rename _ol_render_canvas_ReplayGroup_ to CanvasReplayGroup 2018-01-15 09:50:15 +01:00
Frederic Junod 53dc86b1b2 Rename _ol_render_ReplayGroup_ to ReplayGroup 2018-01-15 09:47:53 +01:00
Tim Schaub 50890c93e2 Declare feature in the correct scope 2018-01-12 00:51:13 -07:00
Tim Schaub ad62739a6e Use blocked scoped variables
In addition to using const and let, this also upgrades our linter config and removes lint (mostly whitespace).
2018-01-12 00:50:30 -07:00
Tim Schaub d840eab615 Rename _ol_render_canvas_Immediate_ to ImmediateCanvasRenderer 2018-01-11 11:58:26 -07:00
Frederic Junod d0cdd0441a Rename _ol_render_VectorContext_ to VectorContext 2018-01-11 14:05:55 +01:00
Andreas Hocevar 953c5d6151 Refactor to avoid replayType member and binding 2018-01-09 15:43:20 +01:00
Andreas Hocevar 9397c41e6c Use declutter tree only for text and image replays 2018-01-09 15:41:45 +01:00
Andreas Hocevar ad8f847465 Consider background box with stroke for hit detection 2018-01-01 12:32:26 +01:00
Andreas Hocevar 745bf3d79f Hit-detect background fill and stroke 2018-01-01 12:32:26 +01:00