Simon Seyock
ce4f6ccb0d
OnSignatures return more specific type
2021-09-10 16:11:38 +02:00
Simon Seyock
0641bd47ce
Add DragAndDropInteraction.
2021-07-10 11:28:50 +02:00
Simon Seyock
c8f43050c4
Revert "Merge pull request #12416 from ahocevar/eventtype-generics"
...
This reverts commit b6c143deb2 , reversing
changes made to 7777821df5 .
2021-07-10 11:28:46 +02:00
Andreas Hocevar
018ad97f25
Use generics to limit event types in on(), once() and un()
2021-06-20 22:25:47 +02:00
Simon Seyock
8facb252f1
Replace google closure syntax = with brackets around name
2021-02-03 14:06:02 +01:00
mike-000
a6860118c7
Support formats that read ArrayBuffer sources
...
Drag-and-Drop support for formats that read arraybuffer sources
Add TextDecoder to polyfills
Add custom Drag-and-Drop examples for KMZ and MVT
Add sample download and KML styles option to existing example
Test arraybuffer and constructed formats
2020-11-09 17:02:31 +00:00
Stéphane Brunner
23e5c7ced8
Export all the Event sub class
...
Actually only some are exported
This is useful to type the received events
2020-09-25 13:15:49 +02:00
mike-000
926d740a8e
fix syntax of return with typecast
2020-07-20 19:24:56 +01:00
mike-000
f9f90ea766
move type cast to tryReadFeatures_
2020-07-20 19:16:49 +01:00
mike-000
9fb45aa2d2
fix prettier
2020-07-20 17:06:52 +01:00
mike-000
21f4d4998b
type casting
2020-07-20 17:02:38 +01:00
mike-000
1812ce8b28
update source and fire event only if features added
2020-07-20 16:08:00 +01:00
Andreas Hocevar
8ba051add3
Fix private scope issues in ol/interaction/*
2020-04-15 10:53:25 +02: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
Frederic Junod
da8ef43db7
Remove all inheritDoc tags from src/ol/interaction
2020-04-03 07:52:51 +02:00
Frederic Junod
f67476dd8f
Mark properties as nullable
2019-09-27 13:57:59 +02:00
ahocevar
ebfb20440a
Simplify events and store listeners only in one place
2019-09-04 16:48:43 +02:00
Frederic Junod
6d608c361a
Simplify import path in ol/interaction/
2018-11-05 16:26:45 +01:00
Frederic Junod
3746ba99cf
Change target type from Element to HTMLElement
...
Same as the parent class type for `MousePosition` and the type returned by the
`getViewport` function.
2018-10-23 09:17:17 +02:00
Andreas Hocevar
023ad3c531
Merge pull request #8757 from schmidtk/ts-typeof-ctor
...
Use typeof to simplify JSDoc class types
2018-10-01 18:33:35 +02:00
Kevin Schmidt
26f1cba808
Remove JSDoc to work around issue solved by typeof
2018-10-01 10:24:55 -06:00
Kevin Schmidt
c5a9d5b0bc
Move FeatureClass and FeatureLike to ol/Feature
2018-10-01 08:59:55 -06:00
Kevin Schmidt
accdc79c05
Use typeof to simplify JSDoc class types
2018-10-01 08:30:06 -06:00
Kevin Schmidt
7056eb8536
Allow returning RenderFeature in ol/format/Feature
...
Resolves #8760
2018-10-01 08:24:30 -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
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
ahocevar
e79add2e77
Use extends, super and proper constructor jsdoc for ol/interaction
2018-07-17 21:09:06 +02:00
Tim Schaub
f78d0d4cfa
Manual class transform
2018-07-16 17:09:50 -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
Frederic Junod
6444e6989d
Add missing properties in option typedef
2018-06-06 16:14:22 +02:00
Tim Schaub
167bc1ec78
Remove externs/oli.js
2018-05-08 08:38:34 -06:00
ahocevar
440d1ad3e1
Shorter module paths for default exports
2018-04-25 17:25:39 +02:00
Frederic Junod
3dbabb734b
Module type for ol.source.Vector
2018-04-19 15:39:26 +02:00
Frederic Junod
d8c0e6e69b
Module type for ol.format.Feature
2018-03-23 08:44:21 +01:00
Frederic Junod
857b946f3e
Module type for ol.events.Event
2018-03-19 14:31:04 +01:00
Frederic Junod
0477f6cfdf
Mark optional property with square brackets
2018-03-19 14:31:04 +01:00
Frederic Junod
61f944d4a9
Module type for ol.ProjectionLike
2018-03-19 10:38:39 +01:00
ahocevar
7c7e002ee4
No olx and ol types for ol/interaction/DragAndDrop
2018-03-15 16:49:50 +01:00
Tim Schaub
cf80733e41
Module type for ol/Feature
2018-03-12 08:32:09 -06:00
Tim Schaub
a743ec3989
Module types for ol/proj
2018-03-12 08:32:09 -06:00
Tim Schaub
4eb6603af7
Move ReadOptions to ol/format/Feature
2018-03-11 15:51:16 -06: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
8df89356f1
Better variables scoping
2018-02-26 08:51:33 +01:00
Tim Schaub
8c20bf5d7d
Make DragAndDropEvent private to module
2018-02-19 14:01:03 -07:00
Tim Schaub
1be61fdb09
Only export handleEvent where it is used by other interactions
2018-02-19 14:00:59 -07:00
Tim Schaub
4edc1fec30
Remove private static members from DragAndDrop interaction
2018-02-12 06:07:05 -07:00
Tim Schaub
7e7631c42a
Named exports from ol/events
2018-01-24 10:09:57 -07:00