Commit Graph

48 Commits

Author SHA1 Message Date
Tim Schaub
1b8310a6fe Rename ol/objectutil.js to ol/obj.js 2016-08-07 10:49:12 -06:00
Andreas Hocevar
b25ce40781 Merge pull request #5619 from ahocevar/remove-goog-asserts
Remove goog.asserts.*
2016-08-04 23:02:38 +02:00
Tim Schaub
795cee876e Add a method to scale geometries 2016-08-04 10:23:00 -06:00
Andreas Hocevar
e0015b3d4e Use goog.DEBUG instead of ol.DEBUG for now 2016-08-04 11:29:54 +02:00
Andreas Hocevar
6f5ed17fc5 Remove goog.asserts.*
This pull requests replaces type check hint assertions with type casts,
library sanity check assertions with conditional console.assert statements
in debug mode, and runtime sanity checks with assertions that throw an
ol.AssertionError with an error code for lookup outside the library.
2016-08-04 11:29:54 +02:00
Peter Robins
0713e680e1 Replace goog.abstractMethod 2016-07-19 09:08:23 +00:00
Andreas Hocevar
6b4ee42c90 Refactor to a more convenient internal API 2016-06-23 13:10:41 +02:00
Andreas Hocevar
cf7ff841a7 Remove use of goog.vec.* 2016-06-23 13:10:41 +02:00
Frederic Junod
e289bfbb7d Use ol.inherits instead of goog.inherits 2016-06-08 08:38:12 +02:00
Björn Harrtell
44e04be67f Get rid of goog.functions 2016-04-01 10:32:15 +02:00
Frederic Junod
d5564a04db Add new ol.geom.Geometry#rotate function 2016-03-08 17:05:19 +01:00
Tim Schaub
fd394151fd Replace goog.object.clear() with ol.object.clear() 2016-02-04 06:54:44 -07:00
Guillaume Beraudo
289e571fb0 Remove all remaining unnecessary casts
There is still such a cast in the goog library itself.
See https://github.com/google/closure-library/pull/637
2016-02-03 16:26:43 +01:00
Tim Schaub
13a981c94b Fewer blank lines 2016-01-11 22:03:23 -08:00
Tim Schaub
3cf8618fc7 Prefer single line assignment to 80 character limit 2016-01-11 18:56:08 -08:00
Marc Jansen
3c4e663224 Remove goog.isNull in geom classes 2015-10-01 09:17:14 +02:00
Tim Schaub
b0fe36e609 Remove goog.isDef for geometries 2015-09-25 11:28:54 -06:00
Andreas Hocevar
4e94908440 Define getCoordinates and setCoordinates in the base class
Since these methods are implemented by all subclasses, it makes sense to
define them in the base class as abstract method.
2015-05-14 23:24:29 +02:00
Marc Jansen
77a06433be Add basic docs for geom.simplegeometry 2015-04-22 21:10:00 +02:00
Éric Lemoine
e45c44fa01 Add missing goog.provide's 2015-04-07 13:49:36 +02:00
Tim Schaub
d79abe7448 Stable geometry methods 2015-04-02 16:23:53 +02:00
Frederic Junod
e669b20ed5 Add new geometry layout option for polyline format
To be able to choose the geometry layout of the feature geometries created by
the format reader.

Default is `ol.geom.GeometryLayout.XY`
2015-03-24 11:39:18 +01:00
Frederic Junod
8bd0a1232a Add geom.ol.geom.Geometry#computeExtent function 2015-01-14 11:01:18 +01:00
Éric Lemoine
14ea2bf413 Add ol.geom.Geometry#translate 2014-12-18 18:42:36 +01:00
Frederic Junod
c701ad6749 Mark applyTransform api stable 2014-11-13 10:46:06 +01:00
Andreas Hocevar
ebe3b48e0a Rename ol.Observable#dispatchChangeEvent() to #changed()
Since dispatchChangeEvent does not only dispatch a change event, but
also increases the revision counter, the method name should reflect
this.
2014-09-04 19:30:48 -06:00
Éric Lemoine
7383a1df06 Merge pull request #2565 from elemoine/apistable5
Add @api stable annotations for ol.Feature and the ol.geom namespace
2014-08-22 07:37:28 +02:00
Frederic Junod
fb1d7e0c50 Replace 'throw new Error' by 'goog.asserts.fail' 2014-08-21 15:22:01 +02:00
Éric Lemoine
feba61af25 Add @api stable annotations for ol.geom.SimpleGeometry 2014-08-21 10:56:49 +02:00
Peter Robins
652fcede22 Document LinearRing as abstract class 2014-08-04 10:05:01 +00:00
Éric Lemoine
d57a35ffcb Fix stride related bug in Canvas immediate API 2014-07-10 14:21:56 +02:00
Tim Schaub
4cf5ab4620 Use @api annotation instead of @todo api 2014-07-05 15:41:14 -04:00
Peter Robins
75be215497 Add standard docs text to abstract base classes 2014-06-14 07:20:33 -04:00
Peter Robins
41d9f0360a Add @classdesc to classes 2014-06-09 12:10:19 -04:00
Tim Schaub
0b8f1e8944 Mark applyTransform as part of the API for all geometries 2014-05-02 13:24:04 -06:00
Tim Schaub
4f9968d106 Rename transform to applyTransform for geometries 2014-05-02 09:27:53 -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
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
a1e8ff0a8f Add ol.geom.SimpleGeometry#getLastCoordinate 2014-02-28 15:36:18 +01:00
Tom Payne
7ca47e3b2a Add ol.geom.SimpleGeometry#getFirstCoordinate 2014-02-28 15:36:06 +01:00
Tom Payne
3c16e03ae2 Pass offset and end to ol.extent.extendFlatCoordinates 2014-02-03 15:49:05 +01:00
Tom Payne
c4b7a32751 Add stability annotation to ol.geom.SimpleGeometry 2014-02-03 14:45:00 +01:00
Tom Payne
edcb38232f Use inherited dispatchChangeEvent and getRevision in ol.geom.Geometry 2014-01-21 11:43:13 +01:00
Tom Payne
7ee2747948 Always use goog.vec.Mat4.Number instead of goog.vec.Mat.AnyType 2014-01-06 09:29:36 +01:00
Tom Payne
76a6e08ec1 Factor out ol.geom.SimpleGeometry 2013-12-11 16:49:47 +01:00