Andreas Hocevar
f99dc1e9ec
Better fix for changing pointer ids on event target change
2022-06-15 16:29:07 +02:00
Andreas Hocevar
1852ad78a2
Clean up tracked pointers when the event target has changed
2022-06-15 12:56:52 +02:00
Maximilian Krög
a0dd0054a9
Fix jsdoc references
2022-02-13 13:39:06 +01: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
Greg Gianforcaro
92f93e8e94
Resolve some test failures
2020-12-09 01:17:19 -05:00
Tim Schaub
bfee5c00c9
Update function return types
2020-05-18 17:11:13 -06:00
Andreas Hocevar
33ce206bab
Get rid of MapBrowserPointerEvent
2020-05-10 16:54:34 +02:00
Andreas Hocevar
51194c69eb
Always prevent default after handleDragEvent
2020-04-17 22:47:09 +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
Andreas Hocevar
8911b96d3c
Do not preventDefault on pointerdown
2019-12-10 12:25:23 +01:00
Andreas Hocevar
88b8b2f7cb
Conditional default prevention instead of touch-action: none
2019-11-25 01:09:05 +01:00
Bobo Häggström
395b59c01e
Fix documentation for handleMoveEvent
...
This fixes #9814
2019-10-10 10:40:47 +02:00
ahocevar
74e8e013cf
Use pepjs instead of our own pointerevent polyfill
2019-08-29 18:58:53 +02:00
Frederic Junod
6d608c361a
Simplify import path in ol/interaction/
2018-11-05 16:26:45 +01:00
ahocevar
9163558511
Replace instanceof checks with other logic
2018-10-12 20:35:59 +02:00
Kevin Schmidt
942a0976be
Move interaction event handlers to class methods
2018-10-03 06:30:09 -06:00
ahocevar
9586c7cbc7
Get rid of private handler members
2018-10-03 05:06:01 -06:00
Kevin Schmidt
18570841d8
Move interaction event handlers to class methods
2018-10-03 05:06:01 -06:00
Frederic Junod
81bab31efb
Remove extra imports in jsdoc
...
The symbols are already imported (es6 import)
2018-09-08 11:01:02 +02: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
ahocevar
c74b9c1d55
Do not prevent default on pointermove
...
Instead, only prevent default on handled pointerdown events. This makes
the `focus` condition work with interactions that involve dragging on
touch devices.
2018-07-31 08:33:15 +02:00
Tim Schaub
6cfa2b22a7
Explicit void
2018-07-26 10:46:39 -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
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
ahocevar
e79add2e77
Use extends, super and proper constructor jsdoc for ol/interaction
2018-07-17 21:09:06 +02: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
ahocevar
440d1ad3e1
Shorter module paths for default exports
2018-04-25 17:25:39 +02:00
Frederic Junod
0477f6cfdf
Mark optional property with square brackets
2018-03-19 14:31:04 +01:00
Frederic Junod
bbfaa333c0
Fix class name in jsdoc type annotation
2018-03-19 09:56:14 +01:00
ahocevar
c53a13fc26
No olx and ol types for ol/interaction/Pointer
2018-03-16 16:47:04 +01:00
Frédéric Junod
ba17527d29
Merge pull request #7974 from fredj/cleanup
...
Fix spelling
2018-03-12 16:10:22 +01:00
Tim Schaub
8907339963
Module type for ol/MapBrowserEvent
2018-03-12 08:32:09 -06:00
Frederic Junod
35158efbf0
Fix spelling
2018-03-12 15:18:58 +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
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
Frederic Junod
b50a47114e
Move the nullFunction to ol/functions
...
And rename it to `UNDEFINED`.
2018-03-01 14:41:18 +01:00
Tim Schaub
78e0cb294c
Remove static members from Pointer
2018-02-25 09:10:51 -07:00
Frederic Junod
fa1fcc79b6
Named exports from ol/interaction/Pointer
2018-02-21 16:52:00 +01:00
Tim Schaub
1be61fdb09
Only export handleEvent where it is used by other interactions
2018-02-19 14:00:59 -07:00
Frederic Junod
31e30d28b7
Named exports from ol/obj
2018-01-16 14:14:17 +01: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
dce1790886
Rename _ol_interaction_Pointer_ to PointerInteraction
2018-01-11 12:09:58 -07:00