Commit Graph

285 Commits

Author SHA1 Message Date
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
Paul Spencer 570a0c23a7 Merge pull request #2183 from pagameba/classdesc
Use @classdesc notation
2014-07-07 08:30:33 -04:00
Tim Schaub 4cf5ab4620 Use @api annotation instead of @todo api 2014-07-05 15:41:14 -04:00
Paul Spencer abe953e4e5 Use @classdesc notation (continuing #2178) 2014-07-03 08:09:25 -04:00
Paul Spencer a93f7b8190 Fix spelling of GEOMETRY_RENDERERS_ 2014-07-02 21:54:53 -04:00
Andreas Hocevar efc3e3244a Merge pull request #2254 from elemoine/replaygroup
Use replay groups for feature overlays
2014-06-27 12:59:06 +02:00
Andreas Hocevar f67767aaf0 Add ol.renderer.vector.getSquaredTolerance and ol.SIMPLIFY_TOLERANCE 2014-06-27 12:10:46 +02:00
Éric Lemoine b25e577865 Do not "export" ol.render.Event#replayGroup 2014-06-26 14:11:43 +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 49a1215f75 Pass a replay group to ol.render.Event 2014-06-14 14:21:34 +02:00
Tim Schaub 097909516a Account for null or undefined geometry
The change in #2098 made it so a feature's geometry could be undefined.  This is consistent with the return type for the getGeometry method.  Where calling code needs to ensure that it has a geometry instance, it can use instanceof, goog.isDefAndNotNull(), or test for a truthy value.
2014-05-23 10:00:15 -06:00
Andreas Hocevar f903849882 Remove all docstrings from oli.js
Instead, make sure that the properties are documented in the
implementing class.
2014-05-22 18:00:10 +02:00
Andreas Hocevar 547334e211 Move oli.* stability notes to the corresponding ol.* symbol 2014-05-22 16:01:35 +02:00
Andreas Hocevar eb6a938062 Do not document object literals as interfaces
Instead, object literals with properties that should not be
renamed can go in externs/olx.js.
2014-05-22 15:48:47 +02:00
Éric Lemoine 6758e0905b Fix icon rendering on hidpi devices 2014-05-09 08:44:23 +02:00
Éric Lemoine 511e3f7810 Avoid defining default values at multiple locations 2014-05-07 09:58:56 +02:00
Éric Lemoine 6cd403945a Set snapToPixel defaut value to true 2014-05-07 09:58:56 +02:00
Éric Lemoine a7aab4eb47 Make Immediate API use ol.style.Image "origin" 2014-05-05 09:56:12 +02:00
Éric Lemoine 562d74dbed Make Replay API use ol.style.Image "origin" 2014-05-05 09:55:58 +02:00
Andreas Hocevar fbdbbfb7a7 Get rid of stability annotations and document stability with api
This change adds a stability value to the api annotation, with
'experimental' as default value.

enum, typedef and event annotations are never exportable, but
api annotations are needed there to make them appear in the
docs.

Nested typedefs are no longer inlined recursively, because the
resulting tables get too wide with the current template.
2014-04-29 09:53:07 -06:00
Andreas Hocevar c17ac0cae3 Greatly simplify and document the usage of JSDoc
This commit simplifies the exports.js plugin so it only relies
on the stability notes to generate the documentation, which
completely decouples it from the exportable API.

As a rule of thumb, whenever something has an 'api' annotation,
it should also have a 'stability' annotation. A more verbose
documentation of ol3 specific annotation usage is available in
the new 'apidoc/readme.md' file.

This commit also modifies all source files to implement these
usage suggestions.
2014-04-29 09:53:06 -06:00
Tim Schaub fb497f5288 Annotations for exports 2014-04-29 09:53:05 -06:00
Éric Lemoine f59b3e968b Rework handling of skipped features in replay 2014-04-16 19:12:31 +02:00
Frederic Junod 1da879ef06 Don't use a named color for defaultFillStyle
Named color support is optional (see ol.color.ENABLE_NAMED_COLORS)
2014-04-15 16:58:06 +02:00
Frederic Junod 55de0a54b9 Add ol.dom.createCanvasContext2D function 2014-04-02 09:37:41 +02:00
Tom Payne ba0d35668f Stop draw order from preventing batch reuse 2014-04-01 13:45:15 +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
Andreas Hocevar 0dcdd58396 Merge pull request #1904 from ahocevar/doc-improvements
API doc improvements
2014-03-26 23:47:02 +01:00
ahocevar 19ed446f43 Make ol.render.canvas.Immediate available in the docs 2014-03-26 18:33:45 +01:00
ahocevar 0c5e232d66 Do not export the ol.render.canvas.Immediate constructor 2014-03-26 15:25:30 +01:00
ahocevar a3b5376520 Add missing event documentation and stability tags 2014-03-26 14:04:58 +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
Tom Payne 0e26ee3181 Merge pull request #1828 from twpayne/frame-state-extern
Prevent renaming of frameState properties
2014-03-11 14:21:54 +01:00
Frederic Junod 4a893f7837 Add offsetX and offsetY properties to ol.style.Text 2014-03-11 14:06:51 +01:00
Paul Spencer a8f1f74b3a Merge pull request #1835 from pagameba/doc-canvas-immediate
Add and export documentation for ol.render.canvas.Immediate
2014-03-11 08:10:45 -04:00
Paul Spencer 10d855afd4 Add and export documentation for ol.render.canvas.Immediate 2014-03-11 07:48:37 -04: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
Tom Payne 022a7a03e0 Use oli.FrameState instead of ol.FrameState 2014-03-10 14:48:23 +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