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
ahocevar
2df911e0a8
Import options directly instead of importing a typedef
2019-06-04 08:41:08 +02:00
Florent gravin
d21a88edce
Remove map renderer dependency in layer renderer
2018-11-13 12:51:04 +01:00
Tim Schaub
f6b838c635
Make webgl layer renderers dependencies of webgl layers
2018-11-12 14:54:11 +01:00
Tim Schaub
ae1f3afd66
Base for tile layers, renderer-specific tile layer types
2018-11-12 14:54:11 +01:00
Frederic Junod
6a797e84ff
Simplify import path in ol/layer/
2018-11-05 16:26:45 +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
Frederic Junod
db04052b7a
Fix default zIndex value and documentation for layer options
2018-08-29 11:33:09 +02:00
ahocevar
bbe0a66d07
Set api annotation on classdesc, not constructor
2018-07-21 17:25:22 +02: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
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
ahocevar
28409486a5
Make classes in ol/ available as named exports from ol
2018-06-21 18:08:17 +02:00
ahocevar
e810387956
Fix some JSDoc issues
...
Also makes a few minor changes to the template, so it can be used until
we have a new doc generation process. JSDoc output is written to
build/apidoc.
2018-05-10 17:14:17 +02: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
ahocevar
c23a5086ae
Fix enum types
2018-04-21 10:48:38 +02:00
ahocevar
417dd85f83
Fix some jsdoc path types
2018-04-21 10:17:53 +02:00
Frederic Junod
05f92c0333
Module type for ol.source.Tile
2018-04-20 14:37:46 +02:00
Frederic Junod
ae5e24a6c3
Module type for ol.render.Event
2018-04-20 14:32:23 +02:00
Frederic Junod
b08edd8dfe
Module type for ol.PluggableMap
2018-03-26 10:45:28 +02:00
Frederic Junod
1cad0c665f
Module type for ol.Extent
2018-03-26 10:38:55 +02:00
Roman Zoller
c24b369523
Move olx.layer.TileOptions to ol/layer/Tile
2018-03-23 18:39:46 +01:00
Roman Zoller
c0148cae7c
Move olx.layer.LayerOptions to ol/layer/Layer
2018-03-23 18:38:57 +01:00
Frederic Junod
bd9e603036
Module type for ol.layer.Layer
2018-03-23 08:44:21 +01:00
Frederic Junod
a6a8da2d23
Module type for ol.LayerType
2018-03-19 14:31:04 +01:00
Tim Schaub
414792f707
Module type for BaseObject
2018-03-18 09:50:48 -06:00
Frederic Junod
a8f4348add
Fix parens grouping in typecasts
2018-02-15 08:44:35 +01:00
Frederic Junod
8076a8313b
Rename _ol_layer_TileProperty_ to TileProperty
2018-02-15 08:29:12 +01: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
f94d69c7a8
Rename _ol_layer_Layer_ to Layer
2018-01-11 12:06:58 -07:00
Marc Jansen
1aa7313a7b
Merge pull request #7634 from marcjansen/tilelayer-rename
...
Rename _ol_layer_Tile_ to TileLayer
2017-12-19 10:06:15 +01:00
Marc Jansen
25946b4541
Rename _ol_layer_Tile_ to TileLayer
2017-12-19 08:45:00 +01:00
Frederic Junod
c64aada38f
Rename _ol_LayerType_ to LayerType
2017-12-18 16:43:10 +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