Andreas Hocevar
2e5c1f2af9
Updates for TypeScript v4.6.0-beta
2022-01-26 22:40:27 +01:00
Andreas Hocevar
79f5f46d27
Remove lint
2021-06-28 18:10:51 +02:00
Tim Schaub
f798902ecd
Fix JSDoc generated links
2021-06-17 21:54:07 -06:00
Simon Seyock
2ad5789797
Add descriptions for properties.
2021-02-04 18:19:33 +01:00
Simon Seyock
8facb252f1
Replace google closure syntax = with brackets around name
2021-02-03 14:06:02 +01: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
Björn Harrtell
05a5f162d4
Move logic from dom to xml module
2020-01-05 13:12:27 +01:00
Björn Harrtell
5b661ed84c
Fix jsdoc
2020-01-05 13:00:44 +01:00
Björn Harrtell
bdc20e0293
Rework to register Document and add XMLSerializer
2020-01-05 13:00:44 +01:00
Björn Harrtell
90d61033e0
Rework to make DOMImplementation lazy and injectable
2020-01-05 13:00:44 +01:00
Andreas Hocevar
ac50cc3460
New eslint config with no-multi-assign
2019-11-02 15:20:21 +01:00
Simon Seyock
bb0b94fedf
fixed typescript issues
2019-09-25 14:10:05 +02:00
Niklas Alt
4bc9216e41
Add ': void' to non returning functions (error TS7014)
2018-12-06 19:57:45 +01:00
ahocevar
9163558511
Replace instanceof checks with other logic
2018-10-12 20:35:59 +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
Frederic Junod
20a347b0c9
Use 'Element' type instead of 'Node'
2018-08-31 11:36:16 +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
Tim Schaub
6f22f1b7ac
Param name on same line as type
2018-07-23 16:28:22 -07:00
Frederic Junod
104a9a56e9
Simplify opt param test for undefined value
...
To make the closure compiler happy
2018-06-06 16:14:22 +02:00
Frederic Junod
9c13e041e3
Add missing typecast in ol/xml
2018-05-09 14:48:17 +02:00
Frederic Junod
05b11759b7
Handle undefined 'this' in ol/xml
2018-05-09 14:48:05 +02:00
Frederic Junod
de5ac6b7c6
Fix typing in ol/xml module
2018-05-09 14:28:14 +02:00
Frederic Junod
ac3c114477
Remove setAttributeNS function from ol/xml
...
And create a const for the `XMLSchema-instance` URI
2018-03-12 09:22:20 +01:00
Andreas Hocevar
95d6251dbb
Get rid of olx.js and typedef.js typedefs for ol
2018-03-08 18:57:24 +01:00
Frederic Junod
735798a88c
Add some typecast for the closure-compiler
2018-03-08 08:29:20 +01:00
Frederic Junod
3435ac575e
Better type definition
...
Fixes the `Invalid type(s) for operator IN.` warnings from the closure compiler.
2018-03-07 16:45:46 +01:00
raiyni
4449da3e63
named exports from ol/xml
2018-02-07 14:42:01 -06: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
Marc Jansen
02002082bf
Named exports from ol/array module
2017-12-19 17:22:58 +01:00
Tim Schaub
7f47883c48
Transformed
2017-12-12 06:53:18 -07:00
Marc Jansen
7d6929c710
Manual adjustment of indentation
2017-06-20 10:41:03 +02:00
Marc Jansen
d0ef05977b
Autofix indentation issues (eslint --fix)
2017-06-19 11:58:00 +02:00
Frederic Junod
5763e1d145
Remove unused goog.require
2017-02-03 12:40:53 +01:00
Tim Schaub
137cdc04c8
Remove ol.DEBUG
2017-01-01 20:37:52 -07:00
Andreas Hocevar
d1e4b33760
Rename goog.DEBUG to ol.DEBUG
2016-08-31 21:10:01 +02:00
Andreas Hocevar
e0015b3d4e
Use goog.DEBUG instead of ol.DEBUG for now
2016-08-04 11:29:54 +02:00
Andreas Hocevar
6f5ed17fc5
Remove goog.asserts.*
...
This pull requests replaces type check hint assertions with type casts,
library sanity check assertions with conditional console.assert statements
in debug mode, and runtime sanity checks with assertions that throw an
ol.AssertionError with an error code for lookup outside the library.
2016-08-04 11:29:54 +02:00
Peter Robins
1775a5aeea
Remove outdated comments re goog.dom
2016-07-01 08:56:24 +00:00
nicholas
6b465902cd
Remove goog.dom
2016-06-23 22:06:35 +12:00
Peter Robins
2117f2e3b1
Convert all typedefs to CamelCase
2016-05-18 19:44:45 +00:00
Peter Robins
176ddd3403
Rename non-api sub-namespace typedefs
2016-05-13 10:24:57 +00:00
Peter Robins
4f0b4dacbd
Move sub-namespace typedefs to typedefs.js
...
Here too there is one problem case.
2016-05-11 19:45:59 +00:00
Frederic Junod
6002d4c3e8
Remove duplicate type in type annotation
2016-04-27 12:24:01 +02:00
Frederic Junod
80e984a9c3
Use Array.isArray instead of goog.isArray
2016-04-04 09:06:29 +02:00
Frederic Junod
e9cf0bbf6e
Remove unused ol.xml.getAttributeNodeNS function
2016-03-23 14:45:06 +01:00
Frederic Junod
7da7cba812
Don't use goog.dom.xml.createDocument
...
Use DOMImplementation.createDocument instead, available for IE >= 9
2016-03-03 15:46:29 +01:00
Frederic Junod
57f7811cd0
Remove ol.xml.isNode workaround for IE
2016-03-03 15:46:29 +01:00
Frederic Junod
90b4eea1cd
Remove ol.xml.isDocument workaround for IE
2016-03-03 15:46:29 +01:00
Frederic Junod
544de3b91c
Remove ol.xml.setAttributeNS workaround for IE
2016-03-03 15:46:29 +01:00