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
Andreas Hocevar
61c4fa8cd6
Document that map render events do not have a context set
2019-10-24 16:32:04 +02:00
Frederic Junod
1f00da8d83
Remove glContext from RenderEvent
2019-06-17 13:52:56 +02:00
Tim Schaub
af10f6a75c
Use the inverse pixel transform in pre/post render events
2018-11-17 16:28:28 +01:00
ahocevar
6c0b3f773b
New render event API (non functional yet)
2018-11-16 14:57:12 +01:00
Olivier Guyot
a84559d1fb
Added documentation & fixed linting for WebGL classes
2018-11-16 14:02:10 +01: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
9ce36da349
Remove @extends and @constructor annotations
2018-07-18 00:36:29 -06:00
Tim Schaub
b7b15eb7f0
Remove unused inherits
2018-07-18 00:13:43 -06:00
Tim Schaub
1a5cf52b61
Remove remaining use of inherits in src
2018-07-17 23:43:10 -06:00
Tim Schaub
f78d0d4cfa
Manual class transform
2018-07-16 17:09:50 -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
Tim Schaub
167bc1ec78
Remove externs/oli.js
2018-05-08 08:38:34 -06:00
Tim Schaub
8e7c88d9a5
Updated type annotations
2018-05-07 15:50:56 -06:00
ahocevar
440d1ad3e1
Shorter module paths for default exports
2018-04-25 17:25:39 +02:00
Frederic Junod
3c0c4cd155
Module type for ol.render.VectorContext
2018-04-20 14:41:11 +02:00
Frederic Junod
3629cef3a5
Module type for ol.render.EventType
2018-04-20 14:31:00 +02:00
Frederic Junod
5306490733
Module type for ol.webgl.Context
2018-03-23 12:17:42 +01:00
Frederic Junod
857b946f3e
Module type for ol.events.Event
2018-03-19 14:31:04 +01:00
Frederic Junod
8c58bb4332
Use 'module:ol/PluggableMap~FrameState' instead of 'olx.FrameState'
2018-03-13 16:06:46 +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
0113b9283c
Rename _ol_render_Event_ to RenderEvent
2018-01-11 11:58:26 -07:00
Marc Jansen
1cc682e488
Rename _ol_events_Event_ to Event
2017-12-15 16:17:56 +01: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