Tim Schaub
0091bfa106
Remove unnecessary type casts in canvas layer renderer
2018-11-04 09:57:19 -07:00
Andreas Hocevar
3f69066d79
Merge pull request #8869 from ahocevar/typescript-fixes
...
Fix more types for TypeScript
2018-10-31 12:07:28 +01:00
ahocevar
1cdd040c96
Throw when calling abstract methods; fix abstract return types
2018-10-30 18:55:49 +01:00
ahocevar
1df9189d7f
Fix more types for TypeScript
2018-10-30 18:55:03 +01:00
Éric Lemoine
29b21da608
Remove unneeded code in VectorTile renderer
2018-10-23 07:55:34 +02:00
Frederic Junod
7e142080a1
Remove hasFeatureAtCoordinate from ol/renderer/webgl/ImageLayer
2018-10-17 17:08:53 +02:00
Frederic Junod
648ee4f4a4
Remove forEachFeatureAtCoordinate from ol/renderer/webgl/ImageLayer
2018-10-17 15:44:45 +02:00
Frédéric Junod
3d72490241
Merge pull request #8827 from schmidtk/remove-source-foreachfeatureatcoordinate
...
Removed unused forEachFeatureAtCoordinate from ol/source/Source
2018-10-17 15:09:37 +02:00
Kevin Schmidt
df4ef724b6
Removed unused forEachFeatureAtCoordinate from ol/source/Source
...
Fixes #8826 .
2018-10-17 06:10:10 -06:00
Frederic Junod
041836c645
Change getUid return type from number to string
2018-10-17 10:22:53 +02:00
Kevin Schmidt
fb11aad1d1
Fix geometry type in ol/renderer/vector#renderGeometry
2018-10-16 08:34:02 -06:00
Kevin Schmidt
f7adeac774
Fix arguments passed to forEachLayerAtCoordinate
2018-10-16 08:34:02 -06:00
Bobo Häggström
dded939a07
Do not draw image with width or height < 0.5
2018-10-11 15:22:48 +02:00
Kevin Schmidt
8d9fe7f688
Use void for optional return type
2018-10-03 13:23:05 -06:00
Tim Schaub
4cb5dc695b
Merge pull request #8774 from schmidtk/ts-renderer-webgl
...
Fix type check errors in ol/renderer/webgl
2018-10-03 03:48:07 -06:00
Andreas Hocevar
cbd6aabea2
Merge pull request #8773 from schmidtk/ts-renderer-canvas
...
Fix type check errors in ol/renderer/canvas
2018-10-03 10:29:29 +02:00
Kevin Schmidt
e30293d07f
Fix type check errors in ol/renderer/webgl
2018-10-02 15:36:02 -06:00
Kevin Schmidt
b26d81fd7e
Fix type check errors in canvas tile renderers
2018-10-02 15:24:51 -06:00
Kevin Schmidt
d3e34f95c9
Fix type check errors in ol/renderer/canvas/VectorLayer
2018-10-02 15:24:51 -06:00
Kevin Schmidt
16faf064de
Fix type check errors in ol/renderer/canvas/Map
2018-10-02 15:24:51 -06:00
Kevin Schmidt
be4afde507
Fix type check errors in ol/renderer/canvas/ImageLayer
2018-10-02 15:24:51 -06:00
Frederic Junod
ae87cad7ef
Use FeatureLike typedef
...
Use `import("./Feature.js").FeatureLike` typedef instead of `import("./Feature.js").default|import("./render/Feature.js").default`
2018-10-02 12:58:56 +02:00
Frederic Junod
f58cd03f3b
Remove extra parameters
2018-09-28 09:13:43 +02:00
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
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
Tim Schaub
f9f2f981f1
Remove unused method
2018-09-11 10:13:26 -06: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
Frédéric Junod
d84c64b3e7
Merge pull request #8524 from NeoRaider/xhtml-fixes
...
Fix compatiblity with XHTML content type
2018-08-22 13:13:22 +02:00
ahocevar
1baa8be269
Add 'rendercomplete' event
2018-08-22 09:53:24 +02:00
Matthias Schiffer
321166849b
Consistently use lowercase HTML tag names
...
Unlike HTML, XHTML is case-sensitive.
2018-08-18 12:48:14 +02:00
ahocevar
b9aceb23ac
Let renderer decide whether to snapToPixel or not, also for text
2018-08-09 18:16:58 +02:00
ahocevar
2f92e48e93
Use super.method instead of prototype.method.call
2018-08-06 15:30:17 +02:00
Guillaume Beraudo
fe86d2e7f7
Expose original getGutter
...
TileWMS objects take a gutter option but do not have a public getter
for it. This makes it convoluted for user code to recreate the object
(ex: in the case of serialization/deserialization).
- the getGutterInternal() method is renamed to getGutter;
- the getGutter(projection) method is renamed to getGutterForProjection,
which is also more explicit.
The getGutter method was not API and is only used by the renderer.
2018-08-02 17:12:41 +02:00
Tim Schaub
6cfa2b22a7
Explicit void
2018-07-26 10:46:39 -06:00
Tim Schaub
2eb07aa081
Use Template<Foo> instead of Template.<Foo>
2018-07-25 18:37:08 -07: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
Jaap Koelewijn
2769953204
Fix JSDoc such that ng build --prod with angular/cli 6.0.8 succeeds again.
2018-07-23 01:05:26 +02:00
ahocevar
bbe0a66d07
Set api annotation on classdesc, not constructor
2018-07-21 17:25:22 +02:00
Tim Schaub
e5493d1288
Add ol/pixel module for Pixel type
2018-07-19 10:17:00 -06:00
Tim Schaub
b8c9125602
Remove lint
2018-07-18 10:35:54 -06:00
Frederic Junod
65b306891b
Remove 'struct' jsdoc tags, code indentation
2018-07-18 09:07:27 +02:00
Tim Schaub
9ce36da349
Remove @extends and @constructor annotations
2018-07-18 00:36:29 -06:00
Tim Schaub
c4e5a7467e
Clean up ol/renderer classes
2018-07-17 18:26:51 -06:00
Tim Schaub
9ee5edf19c
Clean up ol/renderer/webgl classes
2018-07-17 18:23:52 -06:00
Tim Schaub
792e7e54f1
Clean up ol/renderer/canvas classes
2018-07-17 18:15:47 -06:00
Frederic Junod
f2d0b11d24
Move jsdoc constructor comments
2018-07-17 09:59:00 +02:00