Andreas Hocevar
04bc9ff0df
Improve types and docs for getStyle/setStyle
2020-06-11 13:53:59 +02:00
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
Simon Seyock
2e1dee1994
fixed jsdoc type annotations
2019-09-29 19:35:11 +02:00
ahocevar
ebfb20440a
Simplify events and store listeners only in one place
2019-09-04 16:48:43 +02:00
Stéphane Brunner
970c1bcb66
Make the vector source geometry generic
2019-05-27 11:34:31 +02:00
ahocevar
9163558511
Replace instanceof checks with other logic
2018-10-12 20:35:59 +02:00
Kevin Schmidt
c5a9d5b0bc
Move FeatureClass and FeatureLike to ol/Feature
2018-10-01 08:59:55 -06:00
Florent gravin
8b83371272
Feature opt_geometryOrProperties cannot be null
2018-09-19 16:48:51 +02:00
Florent gravin
7f32ba4216
Use Style instead of import(./style/Style.js).default
2018-09-19 16:47:51 +02:00
Florent gravin
109f16f717
Use Geometry instead of import(./geom/Geometry.js).default
2018-09-19 16:47:51 +02:00
Florent gravin
b3127f86be
Fix cast for Geometry type
2018-09-19 16:47:51 +02:00
Marc Jansen
143bf731b6
Better type annotations / type casts
2018-09-11 21:59:54 +02:00
Frederic Junod
ea616e7751
Don't import ourselves
2018-09-06 09:05:32 +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
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
bbe0a66d07
Set api annotation on classdesc, not constructor
2018-07-21 17:25:22 +02:00
ahocevar
6f4d2e34a9
Use extends and super for Feature
2018-07-17 11:49:37 +02:00
Frederic Junod
f2d0b11d24
Move jsdoc constructor comments
2018-07-17 09:59:00 +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
ahocevar
9bfdf818e4
Rename Style~Function path type to Style~StyleFunction
2018-04-27 09:30:51 +02:00
ahocevar
3a365fab56
Fix some module links
2018-04-27 09:30:51 +02:00
ahocevar
59d904e509
Fix some types
2018-04-27 09:30:51 +02:00
ahocevar
440d1ad3e1
Shorter module paths for default exports
2018-04-25 17:25:39 +02:00
ahocevar
417dd85f83
Fix some jsdoc path types
2018-04-21 10:17:53 +02:00
Tim Schaub
f70050be12
Correct type for style
2018-03-09 20:50:51 -07:00
Andreas Hocevar
95d6251dbb
Get rid of olx.js and typedef.js typedefs for ol
2018-03-08 18:57:24 +01:00
Tim Schaub
4e6cf58de1
Remove static members from BaseObject
2018-02-25 08:49:28 -07:00
Frederic Junod
4657003811
Add named exports for createStyleFunction function
2018-02-14 11:12:56 +01:00
Frederic Junod
276d6a5dc5
Remove ol.FeatureStyleFunction support
2018-02-11 17:52:46 +01:00
Tim Schaub
7e7631c42a
Named exports from ol/events
2018-01-24 10:09:57 -07: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
4f4c90fc20
Rename _ol_style_Style_ to Style
2018-01-11 13:22:43 -07:00
Tim Schaub
24dd0ca924
Rename _ol_Object_ to BaseObject
2018-01-10 09:35:43 -07:00
Tim Schaub
22fce4f97b
Rename _ol_Feature_ to Feature
2018-01-10 09:35:35 -07:00
Frederic Junod
9349ba5403
Named export for ol/asserts
2017-12-18 10:33:41 +01:00
Marc Jansen
479c7a4668
Rename _ol_events_EventType_ to EventType
2017-12-15 16:19:03 +01:00
Tim Schaub
87e665d60e
Rename _ol_geom_Geometry_ to Geometry
2017-12-14 08:58:46 -07:00
Tim Schaub
87295a74dd
Use named exports from ol/index.js
2017-12-12 12:34:23 -07:00
Tim Schaub
7f47883c48
Transformed
2017-12-12 06:53:18 -07:00
Tim Schaub
1cdb6a66f0
Imports cased like the filename
2017-12-12 06:53:17 -07:00
Tom Payne
f3d9b3332c
Move code to be merged into src/attic
2012-07-26 00:21:37 +02:00
Éric Lemoine
2e7d361f1e
make the feature api tests pass in advanced mode
2012-06-22 12:50:06 +02:00
Mike Adair
4ea2fe3701
adding features
2012-06-20 13:33:20 -04:00