Simon Seyock
8facb252f1
Replace google closure syntax = with brackets around name
2021-02-03 14:06:02 +01:00
mjjurkoic
1842170b20
Eliminate redundant code
...
Co-authored-by: Stéphane Brunner <stephane.brunner@camptocamp.com >
2021-01-08 09:21:49 -08:00
Michael Jurkoic
81901c72c4
Pass the renderer function to the cloned style
2021-01-07 22:33:08 -08: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
Andreas Hocevar
6b9791eeed
Fix stylefunction return type
2020-02-20 11:47:42 +01:00
Andreas Hocevar
13713bab51
Fix type and documentation of style function
2020-02-20 11:09:12 +01:00
Simon Seyock
09cad9b5f9
fixed jsdoc problems
2019-09-26 17:00:46 +02:00
Niklas Alt
4bc9216e41
Add ': void' to non returning functions (error TS7014)
2018-12-06 19:57:45 +01:00
Frederic Junod
caaf8cb86f
Simplify import path in ol/style/
2018-11-05 16:26:45 +01:00
ahocevar
9163558511
Replace instanceof checks with other logic
2018-10-12 20:35:59 +02: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
Kevin Schmidt
124fccf127
Fix style TypeScript errors
2018-09-17 12:38:00 -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
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
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
f78d0d4cfa
Manual class transform
2018-07-16 17:09:50 -06:00
Frederic Junod
bb3bd7380f
Fix style documentation
2018-06-21 11:32:58 +02:00
Tim Schaub
5a9fad218b
Remove *.jsdoc files
2018-05-07 21:53:20 -06:00
ahocevar
9bfdf818e4
Rename Style~Function path type to Style~StyleFunction
2018-04-27 09:30:51 +02:00
ahocevar
59d904e509
Fix some types
2018-04-27 09:30:51 +02: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
Frederic Junod
7701c5fd3a
Module type for ol.render.Feature
2018-04-20 14:53:56 +02:00
Michael Kuenzli
5e810ccc6a
Move olx.render.State to ol/render
2018-04-19 17:41:00 +02:00
Michael Kuenzli
e388527200
Move ol.StyleRenderFunction from typedefs.js to ol/style/Style
2018-04-17 17:22:04 +02:00
Michael Kuenzli
4f183f33f1
Move ol.StyleGeometryFunction from typedefs.js to ol/style/Style
2018-04-17 17:22:04 +02:00
Michael Kuenzli
663d2bb1bb
Move olx.style.StyleOptions to ol/style/Style
2018-04-17 17:22:04 +02:00
Frederic Junod
7cbc22fece
Module type for ol.style.*
2018-03-27 15:09:52 +02:00
Tim Schaub
cf80733e41
Module type for ol/Feature
2018-03-12 08:32:09 -06:00
Tim Schaub
ef70d71636
Module types for ol/geom
2018-03-12 08:32:09 -06:00
Andreas Hocevar
95d6251dbb
Get rid of olx.js and typedef.js typedefs for ol
2018-03-08 18:57:24 +01:00
Tim Schaub
580c2c6545
Named exports from ol/style/Style
2018-02-22 23:34:52 -08:00
Tim Schaub
f60f32effd
Remove private static members from Style
2018-02-12 07:12:02 -07: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
14ddcf843d
Rename _ol_style_Circle_ to CircleStyle
2018-01-11 13:27:54 -07:00
Tim Schaub
f4484455aa
Rename _ol_style_Stroke_ to Stroke
2018-01-11 13:24:13 -07:00
Tim Schaub
dc6ae2293d
Rename _ol_style_Fill_ to Fill
2018-01-11 13:23:27 -07:00
Tim Schaub
4f4c90fc20
Rename _ol_style_Style_ to Style
2018-01-11 13:22:43 -07:00
Frederic Junod
9349ba5403
Named export for ol/asserts
2017-12-18 10:33:41 +01:00
Tim Schaub
504368369c
Rename _ol_geom_GeometryType_ to GeometryType
2017-12-14 09:00:57 -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