Commit Graph

79 Commits

Author SHA1 Message Date
Peter Robins
535e8f5e35 Move top-level typedefs to typedefs.js
With one exception, those directly in the `ol` namespace can be moved without problem.
Some left-over goog.requires are also removed.
2016-05-11 17:18:05 +00:00
Peter Robins
f57065c412 Remove unneeded goog.provides/requires for typedefs
In general, typedefs do not need and should not have goog.require/provide
2016-05-09 13:21:25 +00:00
Frederic Junod
72e354dce3 Remove unused ol.extent.transform2D function 2016-04-13 17:18:57 +02:00
Andreas Hocevar
a109062b1f Rotate map canvas after composition 2016-02-15 17:00:06 +01:00
Tim Schaub
3cf8618fc7 Prefer single line assignment to 80 character limit 2016-01-11 18:56:08 -08:00
Tim Schaub
5350e9ba37 Remove goog.isDef from device orientation, dom, extent, and feature 2015-09-25 11:28:54 -06:00
Bart Nagel
b606f4996b Fix ol.extent.containsExtent documentation
The `ol.extent.containsExtent` documentation had its arguments backwards
(or the implementation did).

The documentation said "the first extent is contained by or on the edge
of the second", but the function checked the opposite.

The wording was also a little strange, since from the name of the
function alone `containsExtent` I'd guess that the first argument would
be the (potential) container, and the second would be the (potentially)
contained. But the documentation has the wording "check if one extent is
*contained by* or on the edge of another", suggesting the first argument
is the contained and the second the container.

This patch keeps the current functionality but clarifies the
documentation.
2015-05-13 12:10:06 -07:00
Tim Schaub
941f53ec80 Handle left/right segment intersections for top/bottom spans
The ol.extent.intersectsSegment function was not correctly handling segments that span from above to below an extent while intersecting the sides.
2015-04-19 09:43:06 -06:00
Tim Schaub
044ea054b1 Extent docs 2015-04-04 17:36:47 +02:00
Bart van den Eijnden
47ce127a10 Add assert messages for all assertions up until ol.renderer.vector. 2015-03-30 22:55:23 +02:00
Alexandre Dubé
e1336e1891 Fix forEachCorner extent, add TopLeft 2015-02-20 08:30:39 -05:00
Tim Schaub
9f1bdc7c83 Mark ol.extent.getIntersection as stable 2014-09-17 11:24:54 -06:00
Éric Lemoine
72e173d925 Rename ol.extent.segmentIntersects to intersectsSegment 2014-09-17 12:26:26 +02:00
Éric Lemoine
24321f6feb Add ol.extent.containsXY 2014-09-17 12:17:31 +02:00
Éric Lemoine
b5db9db453 Add ol.extent.forEachCorner 2014-09-17 12:17:31 +02:00
Éric Lemoine
22fd6872f4 Add @api stable annotations for ol.extent 2014-08-22 17:04:24 +02:00
Tim Schaub
dd5e7693da General purpose getCorner function for extents 2014-08-18 14:55:49 -06:00
Tim Schaub
42f953d08d Function for getting extent intersection 2014-07-24 10:26:07 -06:00
Tim Schaub
4cf5ab4620 Use @api annotation instead of @todo api 2014-07-05 15:41:14 -04:00
Tim Schaub
e802902f9b Rename ol.extent.getForView2DAndSize to ol.extent.getForViewAndSize 2014-06-27 09:59:39 -04:00
Peter Robins
dbe3729857 Correct minor typo in ol.extent.buffer docs 2014-06-21 14:01:08 +01:00
Tim Schaub
015aab8af3 Rename ol.extent.transform to ol.extent.applyTransform
This gives more consistency with ol.proj.applyTransform, allowing us to add a more convenient ol.extent.transform method that takes projection-like arguments.
2014-05-02 10:13:28 -06: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
Tom Payne
b8869805a7 Rename ol.loading to ol.loadingstrategy 2014-04-03 15:12:22 +02:00
Tim Schaub
af1bd0228c Function for applying a 2d transform to an extent 2014-02-25 22:07:16 -07:00
Tim Schaub
6b018bbaf9 Testing segment intersection with extent
If needed, this function can be modified to take two additional coorinates that will be set to the intersection points.
2014-02-25 21:47:57 -07:00
Tim Schaub
cb11959f01 Determining coordinate relationship to extent 2014-02-25 21:47:57 -07:00
Tom Payne
3c16e03ae2 Pass offset and end to ol.extent.extendFlatCoordinates 2014-02-03 15:49:05 +01:00
Tom Payne
784f3500f2 Make ol.extent.buffer return an extent instead of mutating 2014-01-09 15:27:56 +01:00
Tom Payne
66f1826358 Add ol.extent.closestSquaredDistanceXY 2013-12-09 16:40:54 +01:00
Tom Payne
85c9ca2000 Add optional destination argument to ol.extent.clone 2013-11-26 12:15:09 +01:00
Tom Payne
7967edb8f0 Add ol.extent.getMargin 2013-11-26 11:57:37 +01:00
Tom Payne
8c6e5287b5 Add ol.extent.getIntersectionArea 2013-11-26 11:57:36 +01:00
Tom Payne
61afebb1ec Add ol.extent.getEnlargedArea 2013-11-26 11:57:36 +01:00
Tom Payne
0294691446 Add ol.extent.getArea 2013-11-26 11:57:36 +01:00
Tom Payne
b99fac9901 Return extent from ol.extent.extend 2013-11-26 11:57:36 +01:00
Tom Payne
676792692e Add ol.extent.createOrUpdateFromFlatCoordinates 2013-11-20 11:41:57 +01:00
Tom Payne
2d2140ebf4 Add ol.extent.extendFlatCoordinates 2013-11-20 11:41:57 +01:00
Tom Payne
3368576505 Add more extent functions 2013-11-20 11:41:06 +01:00
Tom Payne
18aa1b8ae5 Fix order of arguments to ol.extent.createOrUpdate 2013-11-20 11:41:06 +01:00
Tom Payne
530d8b67a3 Add ol.extent.extendXY 2013-11-20 11:39:20 +01:00
Glenn Vorhes
0fc727f989 Remove declared iteration variables before for-loop 2013-11-04 22:31:04 -06:00
Tim Schaub
b0cea7139b Function to buffer an extent 2013-11-04 13:21:11 -07:00
Paul Spencer
bada596b45 Add default stability level to docs of exported things. 2013-10-24 18:20:24 -04:00
Frederic Junod
ef929e9a72 Fix jsdoc formating 2013-09-24 12:18:00 +02:00
Tom Payne
aa44547565 Remove ol.extent.toString 2013-09-20 12:14:41 +01:00
Éric Lemoine
70c66d4cf1 Add ol.extent.touches 2013-09-16 15:51:12 +02:00
Tim Schaub
e806f51b3d Changing extent structure back to single array: [minX, minY, maxX, maxY]
This means we'll have to have a new structure and new methods for 3D envelopes.
2013-09-15 00:31:32 -06:00