Commit Graph

642 Commits

Author SHA1 Message Date
Frederic Junod caf11a71f2 Simplify import path in ol/geom/ 2018-11-05 16:26:45 +01:00
ahocevar 1cdd040c96 Throw when calling abstract methods; fix abstract return types 2018-10-30 18:55:49 +01:00
ahocevar d1395d005c Fix comments for JSDoc 2018-10-23 17:58:50 +02:00
Andreas Hocevar e37039d85e Merge pull request #8820 from hmdavidjunior/master
Polygon intersectsExtent failure - Issue #8795
2018-10-16 14:12:09 +02:00
Hermes David Junior 7ec19645e9 Polygon intersectsExtent failure - Issue #8795 2018-10-15 10:00:37 -04:00
Kevin Schmidt d308288eed Fix TypeScript errors in ol/format/GML 2018-10-08 05:36:21 -06:00
Frederic Junod 720993431c Fix indentation 2018-10-08 08:50:40 +02:00
Kevin Schmidt 7d5a81d40f Fix TypeScript errors in ol/geom/* 2018-09-28 09:00:28 -06:00
Florent gravin 9c6e14b050 Remove duplicate containsXY fn 2018-09-19 16:51:43 +02:00
Florent gravin 8b83371272 Feature opt_geometryOrProperties cannot be null 2018-09-19 16:48:51 +02:00
Florent gravin cd169ede0d Correct cast of Projection in Geometry.transform 2018-09-19 16:48:51 +02:00
Florent gravin bd655b325d Implement Geometry containsXY with correct signature 2018-09-19 16:48:51 +02:00
Frederic Junod 31c392b63c Remove containsXY function from ol/geom/SimpleGeometry
The function is already present in the base class (ol/geom/Geometry)
2018-09-19 08:40:14 +02:00
Frederic Junod 7cb85fa975 Don't define functions in the prototype
If `VOID` is used, TypeScript is not able to figure out what the function parameters are.

Before:
```
$ npx tsc | wc -l
    1188
```

After:
```
$ npx tsc | wc -l
    1169
```
2018-09-19 08:40:14 +02:00
Marc Jansen 143bf731b6 Better type annotations / type casts 2018-09-11 21:59:54 +02:00
Frederic Junod 81bab31efb Remove extra imports in jsdoc
The symbols are already imported (es6 import)
2018-09-08 11:01:02 +02:00
Tim Schaub 82675d0bee Mark optional geom constructor args as optional 2018-09-06 09:29:44 -06:00
Frederic Junod ea616e7751 Don't import ourselves 2018-09-06 09:05:32 +02:00
Frederic Junod 71328530fe Remove unnecessary 'function' in jsdoc blocks 2018-09-05 16:40:45 +02:00
Tim Schaub ccfacc5ee6 Transformed types
Using the [ts.js codemod](https://gist.github.com/tschaub/1ea498c9d1e5268cf36d212b3949be4e):

    jscodeshift --transform ts.js src
2018-09-05 08:05:29 -06:00
ahocevar 2f92e48e93 Use super.method instead of prototype.method.call 2018-08-06 15:30:17 +02:00
Frederic Junod b3586bed8d Remove extra translate function in Geometry, add missing api tag 2018-07-27 13:19:12 +02:00
Tim Schaub affbf59b77 Use Object<Foo, Bar> instead of Object.<Foo, Bar> 2018-07-25 18:33:49 -07:00
Tim Schaub d12ef20b12 Use Array<Foo> instead of Array.<Foo> 2018-07-25 18:32:43 -07:00
Paul Golmann e3e6a28e18 Add abstract translate to ol/geom/Geometry 2018-07-20 15:40:53 +02:00
Tim Schaub e1e34e5636 Replace @see with See. 2018-07-19 08:37:32 -06:00
Frederic Junod c707b4c746 Use extends and super for geom 2018-07-17 16:21:54 +02:00
Tim Schaub d0ab8dce38 Lint removal 2018-07-16 17:57:57 -06:00
Tim Schaub 7b4a73f3b9 Automated class transform
npx lebab --replace src --transform class
2018-07-16 16:18:16 -06:00
Ben Kuster 88fbd6e35d moved copying of ZM values to Polygon.fromCircle 2018-07-12 17:25:31 +02:00
Ben Kuster 33ef64c912 copy ZM values to polygon in makeRegular 2018-07-12 12:52:05 +02:00
ahocevar 97f6171b4c Rename setFlatCoordinatesInternal to setFlatCoordinates 2018-07-07 18:04:13 +02:00
ahocevar e2f8d96763 Accept flat coordinates in Circle constructor 2018-07-07 18:02:38 +02:00
ahocevar ce97cee6a6 Accept polygons and flat coordinates in MultiPolygon constructor 2018-07-07 17:31:35 +02:00
ahocevar 0ec0491ef6 Accept flat coordinates in LinearRing constructor 2018-07-07 17:12:12 +02:00
ahocevar a09b6c91c9 Accept linestrings and flat coordinates in MultiLineString constructor 2018-07-07 17:01:39 +02:00
ahocevar 3871f7785a Accept flat coordinates for MultiPoint constructor 2018-07-07 16:26:24 +02:00
ahocevar 160f1bc286 Accept flat coordinates in LineString constructor 2018-07-07 16:04:43 +02:00
ahocevar c0d04ea077 Do not accept null coordinates in Point constructor 2018-07-07 14:48:46 +02:00
ahocevar 1da43d90af Allow flat coordinates for Polygon constructor 2018-07-07 14:16:39 +02:00
ahocevar 28409486a5 Make classes in ol/ available as named exports from ol 2018-06-21 18:08:17 +02:00
Frederic Junod af1f6836af Shorter module paths for default exports 2018-05-09 11:24:43 +02:00
Tim Schaub 5a9fad218b Remove *.jsdoc files 2018-05-07 21:53:20 -06:00
ahocevar 440d1ad3e1 Shorter module paths for default exports 2018-04-25 17:25:39 +02:00
ahocevar c23a5086ae Fix enum types 2018-04-21 10:48:38 +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
Tim Schaub 414792f707 Module type for BaseObject 2018-03-18 09:50:48 -06:00
Tim Schaub a743ec3989 Module types for ol/proj 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