William Wall
016436ae18
Check that tile is ImageTile before using it
2018-09-19 15:04:14 -06:00
William Wall
7525c57688
Check the type of the source before using it
...
This satisfies tsc in addition to making the class more defensive
against source types that it does not support.
2018-09-19 14:39:10 -06:00
Tim Schaub
d44ba929ab
Merge pull request #8675 from wallw-bits/fix-typecheck-zoomify
...
Get width as number from number|Size
2018-09-19 11:55:35 -06:00
William Wall
45f2324a4e
Get width as number from number|Size
...
This satisfies tsc in addition to being a bit more defensive from
custom tile grids, even if using them is very uncommon for this
source.
2018-09-19 10:02:33 -06:00
Frédéric Junod
978b039ddc
Merge pull request #8654 from fredj/import
...
Remove extra imports in jsdoc
2018-09-19 15:12:10 +02:00
Frédéric Junod
65066a0505
Merge pull request #8655 from fredj/webkit_touch
...
Remove webkit specific properties from Touch
2018-09-19 15:05:20 +02:00
Frédéric Junod
43bc3020a1
Merge pull request #8663 from schmidtk/ts-vendor-fullscreen
...
Add vendor-specific TS declarations for the Fullscreen API.
2018-09-19 15:05:05 +02:00
Frédéric Junod
5f63575106
Merge pull request #8658 from fredj/proto_void
...
Don't define functions in the prototype
2018-09-19 14:53:59 +02:00
Frederic Junod
9c52e0d6d9
Remove extra imports in jsdoc
...
The symbols are already imported (es6 import)
2018-09-19 14:52:58 +02:00
Tim Schaub
77dbf2fdb0
Merge pull request #8662 from wallw-bits/fix-typecheck-ol-tile
...
Explicitly define type of 'this'
2018-09-19 06:50:59 -06:00
Tim Schaub
ad399246a3
Merge pull request #8664 from schmidtk/ts-listener-fn
...
Add native Event to ListenerFunction signature.
2018-09-19 06:47:18 -06:00
Frédéric Junod
23be1ac56d
Merge pull request #8668 from fredj/module_doc
...
Add missing 'module' annotation
2018-09-19 14:07:09 +02:00
Frederic Junod
600d156d01
Add missing 'module' annotation
2018-09-19 11:51:34 +02:00
Frédéric Junod
40227db7be
Merge pull request #8656 from openlayers/greenkeeper/rollup-plugin-commonjs-9.1.8
...
chore(package): update rollup-plugin-commonjs to version 9.1.8
2018-09-19 11:29:51 +02:00
Frederic Junod
54cdaddf3a
Don't use Chrome only ALLOW_KEYBOARD_INPUT param
2018-09-19 11:12:27 +02:00
Frédéric Junod
5a62d403c0
Merge pull request #8667 from openlayers/greenkeeper/uglifyjs-webpack-plugin-2.0.1
...
chore(package): update uglifyjs-webpack-plugin to version 2.0.1
2018-09-19 09:26:28 +02:00
Frédéric Junod
eade74384a
Merge pull request #8661 from openlayers/greenkeeper/webpack-4.19.1
...
Update webpack to the latest version 🚀
2018-09-19 09:24:58 +02:00
Frederic Junod
31c392b63c
Remove containsXY function from ol/geom/SimpleGeometry
...
The function is already present in the base class (ol/geom/Geometry)
2018-09-19 08:40:14 +02:00
Frederic Junod
7cb85fa975
Don't define functions in the prototype
...
If `VOID` is used, TypeScript is not able to figure out what the function parameters are.
Before:
```
$ npx tsc | wc -l
1188
```
After:
```
$ npx tsc | wc -l
1169
```
2018-09-19 08:40:14 +02:00
Kevin Schmidt
4d26ab751d
Add vendor-specific TS declarations for the Fullscreen API.
...
Fixes #8660 .
2018-09-18 13:22:55 -06:00
Kevin Schmidt
f819ed137b
Add native Event to ListenerFunction signature.
2018-09-18 13:10:36 -06:00
greenkeeper[bot]
91d31b57ec
chore(package): update uglifyjs-webpack-plugin to version 2.0.1
...
Closes #8639
2018-09-18 17:00:44 +00:00
William Wall
1fbefcab64
Explicitly define type of 'this'
...
I'm not entirely sure that I like this pattern, but there does not
appear to be a better option since TypeScript would recommend:
function(this: SomeClass, ...)
tsdoc does not appear to support an associated annotation for the
function a la @this {SomeClass}.
2018-09-18 10:38:23 -06:00
greenkeeper[bot]
b2bcbcbc04
chore(package): update webpack to version 4.19.1
2018-09-18 14:27:10 +00:00
Frederic Junod
960b433a2c
Remove webkit specific properties from Touch
...
Remove the following errors from the TypeScript checks:
```
src/ol/pointer/TouchSource.js(231,23): error TS2339: Property 'webkitRadiusX' does not exist on type 'Touch'.
src/ol/pointer/TouchSource.js(232,24): error TS2339: Property 'webkitRadiusY' does not exist on type 'Touch'.
src/ol/pointer/TouchSource.js(233,26): error TS2339: Property 'webkitForce' does not exist on type 'Touch'.
```
The only reference that I've found for these properties is a warning message from Google Chrome:
```
'Touch.webkitRadiusX' is deprecated and will be removed in M47, around November 2015. Please use 'Touch.radiusX' instead.
```
2018-09-18 13:36:38 +02:00
greenkeeper[bot]
d777a6319b
chore(package): update rollup-plugin-commonjs to version 9.1.8
...
Closes #8653
2018-09-18 10:54:15 +00:00
Frédéric Junod
5910e4d207
Merge pull request #8644 from openlayers/greenkeeper/rollup-0.66.0
...
Update rollup to the latest version 🚀
2018-09-18 09:12:34 +02:00
Tim Schaub
340a446b51
Merge pull request #8643 from schmidtk/style-typescript-cleanup
...
Fix style TypeScript errors
2018-09-17 14:35:50 -06:00
Kevin Schmidt
124fccf127
Fix style TypeScript errors
2018-09-17 12:38:00 -06:00
greenkeeper[bot]
457cbc9d9b
chore(package): update rollup to version 0.66.0
2018-09-16 08:42:40 +00:00
Andreas Hocevar
7912c5d711
Merge pull request #8638 from ahocevar/fix-haslistener-check
...
Fix event type in hasListener check
2018-09-15 09:08:55 +02:00
ahocevar
90403421af
Fix event type in hasListener check
2018-09-14 18:15:18 +02:00
Frédéric Junod
fe0ac80ba4
Merge pull request #8618 from fredj/topojson_types
...
Use TopoJSON types from @types/topojson
2018-09-14 13:09:43 +02:00
Frederic Junod
ba53b5e8aa
Quotes topojson properties
2018-09-14 13:02:30 +02:00
Frederic Junod
abc3279752
Use TopoJSON types from @types/topojson
2018-09-14 13:02:30 +02:00
Frédéric Junod
84c689d456
Merge pull request #8619 from fredj/typing
...
Remove wrong Geometry type in KML format
2018-09-14 12:46:31 +02:00
Andreas Hocevar
693d1b24c6
Merge pull request #8631 from openlayers/greenkeeper/webpack-4.19.0
...
Update webpack to the latest version 🚀
2018-09-14 10:32:01 +02:00
greenkeeper[bot]
cdaca7b0ff
chore(package): update webpack to version 4.19.0
2018-09-14 06:02:06 +00:00
Andreas Hocevar
3ccfc2ea61
Merge pull request #8630 from openlayers/greenkeeper/webpack-4.18.1
...
Update webpack to the latest version 🚀
2018-09-13 17:14:58 +02:00
greenkeeper[bot]
b351eaef29
chore(package): update webpack to version 4.18.1
2018-09-13 12:51:18 +00:00
Andreas Hocevar
14eb3fde14
Merge pull request #8627 from ahocevar/fix-textstate-type
...
Fix several type imports
2018-09-13 14:50:31 +02:00
ahocevar
f29e6ac397
Fix more incorrect type imports
2018-09-13 11:42:59 +02:00
ahocevar
79674363e6
Fix imports in TextState
2018-09-13 11:42:59 +02:00
Andreas Hocevar
0ce7402d61
Merge pull request #8629 from megawac/patch-1
...
Enable circle primitive in draw-shapes example
2018-09-13 07:25:09 +02:00
Graeme Yeates
00474dc038
Enable circle primitive in draw-shapes example
...
For some reason the circle polygon type was not available in the select despite the example code handling drawing circles.
2018-09-12 16:50:59 -04:00
Marc Jansen
8d054a404a
Merge pull request #8626 from marcjansen/less-TS2345
...
Better type annotations / type casts
2018-09-12 05:45:51 +02:00
Marc Jansen
143bf731b6
Better type annotations / type casts
2018-09-11 21:59:54 +02:00
Tim Schaub
d4bbbcb690
Merge pull request #8622 from tschaub/unused
...
Remove unused method
2018-09-11 12:36:49 -06:00
Tim Schaub
f9f2f981f1
Remove unused method
2018-09-11 10:13:26 -06:00
Tim Schaub
8b45011cd5
Merge pull request #8615 from tschaub/geojson-types
...
Use GeoJSON types from @types/geojson
2018-09-11 09:57:31 -06:00