Tim Schaub
054af09032
Make code prettier
...
This updates ESLint and our shared eslint-config-openlayers to use Prettier. Most formatting changes were automatically applied with this:
npm run lint -- --fix
A few manual changes were required:
* In `examples/offscreen-canvas.js`, the `//eslint-disable-line` comment needed to be moved to the appropriate line to disable the error about the `'worker-loader!./offscreen-canvas.worker.js'` import.
* In `examples/webpack/exapmle-builder.js`, spaces could not be added after a couple `function`s for some reason. While editing this, I reworked `ExampleBuilder` to be a class.
* In `src/ol/format/WMSGetFeatureInfo.js`, the `// @ts-ignore` comment needed to be moved down one line so it applied to the `parsersNS` argument.
2020-04-06 12:54:09 -06:00
Frederic Junod
6522e6a17f
Pass the id field name as a new param
2020-04-03 07:52:51 +02:00
Frederic Junod
d7c83e4651
Remove all inheritDoc tags from src/ol/format
2020-04-03 07:52:51 +02:00
Michael Parry
a8e31dddee
FIx #9510 : EsriJSON readGeometry should not mutate input
2019-07-14 18:56:49 +02:00
Frederic Junod
97b21145c4
Simplify typing in EsriJSON format
2019-02-05 10:27:26 +01:00
Frederic Junod
787fd4aa44
Don't dispatch change events when reading features
...
Based on initial work by https://github.com/Jinkwon
2019-01-15 09:08:15 +01:00
Frederic Junod
d838de32b7
Rework transformWithOptions
...
Create one function per input/output type: `transformGeometryWithOptions` and `transformExtentWithOptions`.
2018-12-16 08:28:26 +01:00
Frederic Junod
4010a644c0
Remove type cast in ol/format/EsriJSON
2018-12-12 14:41:12 +01:00
Frederic Junod
711afac80f
Simplify import path in ol/format/
2018-11-05 16:26:45 +01:00
Kevin Schmidt
02d5d21d0d
Use EsriJSON types from @types/arcgis-rest-api
...
Resolves #8597
2018-09-25 12:31:22 -06: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
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
ahocevar
44bea898b8
Use extends and super for format/JSONFeature
2018-07-17 16:10:11 +02:00
Frederic Junod
540b1793e7
Move jsdoc constructor comments
2018-07-17 10:20:26 +02:00
Tim Schaub
7b4a73f3b9
Automated class transform
...
npx lebab --replace src --transform class
2018-07-16 16:18:16 -06: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
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
83dcc82cf7
Module type for ol.format.JSONFeature
2018-03-23 08:44:21 +01:00
Frederic Junod
8a4d60192f
Mark optional property with square brackets
2018-03-19 08:29:50 +01:00
Tim Schaub
cf80733e41
Module type for ol/Feature
2018-03-12 08:32:09 -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
Tim Schaub
a7c5ae1ca3
Move Options to ol/format/EsriJSON
2018-03-11 16:03:30 -06:00
Tim Schaub
8eaee5618e
Move WriteOptions to ol/format/Feature
2018-03-11 15:55:48 -06:00
Tim Schaub
4eb6603af7
Move ReadOptions to ol/format/Feature
2018-03-11 15:51:16 -06:00
Frederic Junod
500a017faf
Better code indentation
2018-03-05 15:36:40 +01:00
raiyni
6573b308b6
ol/geom/flat/orient export
2018-02-13 08:57:35 -06:00
raiyni
fb548b1b45
ol/geom/flat/deflate exports
2018-02-12 23:18:53 -06:00
Tim Schaub
0ac689387a
Remove private static members from EsriJSON format
2018-02-09 15:28:38 -07:00
Frederic Junod
31e30d28b7
Named exports from ol/obj
2018-01-16 14:14:17 +01: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
22fce4f97b
Rename _ol_Feature_ to Feature
2018-01-10 09:35:35 -07:00
Frederic Junod
3843beafa7
Add named export for transformWithOptions function
2017-12-22 15:45:11 +01:00
Frederic Junod
9349ba5403
Named export for ol/asserts
2017-12-18 10:33:41 +01:00
Tim Schaub
b908361895
Rename _ol_format_JSONFeature_ to JSONFeature
2017-12-17 01:56:20 -07:00
Tim Schaub
96a05fa0ed
Rename _ol_format_Feature_ to FeatureFormat
2017-12-17 01:41:11 -07:00
Tim Schaub
b648f4b7e1
Rename _ol_format_EsriJSON_ to EsriJSON
2017-12-17 01:39:08 -07:00
Tim Schaub
64a0d40361
Rename _ol_geom_LinearRing_ to LinearRing
2017-12-14 09:01:39 -07:00
Tim Schaub
504368369c
Rename _ol_geom_GeometryType_ to GeometryType
2017-12-14 09:00:57 -07:00
Tim Schaub
2be36c375d
Rename _ol_geom_GeometryLayout_ to GeometryLayout
2017-12-14 09:00:20 -07:00
Tim Schaub
9d396280b0
Rename _ol_geom_MultiPolygon_ to MultiPolygon
2017-12-14 08:56:51 -07:00
Tim Schaub
c502f016f7
Rename _ol_geom_Polygon_ to Polygon
2017-12-14 08:56:12 -07:00
Tim Schaub
3c78cb7872
Rename _ol_geom_MultiLineString_ to MultiLineString
2017-12-14 08:55:33 -07:00
Tim Schaub
f7b3876c1b
Rename _ol_geom_LineString_ to LineString
2017-12-14 08:54:53 -07:00
Tim Schaub
ad5806c29d
Rename _ol_geom_MultiPoint_ to MultiPoint
2017-12-14 08:51:53 -07:00
Tim Schaub
eadec38ae2
Rename _ol_geom_Point_ to Point
2017-12-14 08:49:10 -07:00
Tim Schaub
6f72ffe498
Named exports from ol/proj
2017-12-14 13:08:40 +01:00