Michał Zielański
e706a5cd67
Restore {Object <...>} instead of {? Object <...>}
2020-06-24 10:05:41 +02:00
Michał Zielański
235babfd7f
Adaptation of previous changes to the change from 61241e7 (null instead of undefined as the initial value)
2020-06-24 09:54:56 +02:00
Andreas Hocevar
61241e7f90
Do nut use name annotation and avoid changing types
2020-06-23 23:07:35 +02:00
Michał Zielański
517c9e6b52
Late object initialization in Target class
2020-06-15 19:06:36 +02:00
Andreas Hocevar
dbe080d362
Rename chain function to all
2020-06-13 08:40:00 +02:00
Andreas Hocevar
3de2ea0624
More convenience with condition chaining
2020-06-13 08:39:59 +02:00
Andreas Hocevar
2cac6c4f39
Re-enable onFocusOnly option for interaction defaults
2020-06-03 13:13:59 +02:00
Andreas Hocevar
33ce206bab
Get rid of MapBrowserPointerEvent
2020-05-10 16:54:34 +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
Andreas Hocevar
4330697ed2
Fix focus condition
2020-04-06 11:57:10 +02:00
Frederic Junod
d15ec1c12c
Remove all inheritDoc tags from disposeInternal functions
2020-04-03 08:10:41 +02:00
Andreas Hocevar
e59aa02a15
Remove duplicated for loop
2020-03-10 14:20:20 +01:00
Andreas Hocevar
4fa454f2b3
Fix types
2020-03-10 14:20:12 +01:00
Lydia de Jongh
e099257461
Add support for EventListener Object
...
See: https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener
Support for native javascript eventListener.handleEvent()
Typedef not correct yet.
2020-03-10 12:51:05 +01:00
Andreas Hocevar
88b8b2f7cb
Conditional default prevention instead of touch-action: none
2019-11-25 01:09:05 +01:00
Frederic Junod
fc7cb5cd51
Use the originalEvent in the targetNotEditable condition
2019-11-11 14:41:39 +01:00
Andreas Hocevar
ac50cc3460
New eslint config with no-multi-assign
2019-11-02 15:20:21 +01:00
Andreas Hocevar
cc24ec1be6
Set touch-action to allow page scrolling
2019-10-24 16:18:40 +02:00
Edward Nash
9eb4816b27
Fix property name collision target_ with Control
...
* As described in #10158 , Control uses the property target_ for
a custom parent HTMLElement, leading to Events on the Control being
dispatched with that as the target and not the Control itself.
* Solved by renaming the target_ property on Target to eventTarget_
2019-10-22 09:37:05 +02:00
Simon Seyock
2e1dee1994
fixed jsdoc type annotations
2019-09-29 19:35:11 +02:00
Andreas Hocevar
ac8f8f4e88
Merge pull request #10024 from ahocevar/focus-condition-target
...
Allow EventTarget to use a different default target
2019-09-26 19:59:27 +02:00
Andreas Hocevar
fd594c2001
Do not remove listeners that do not exist
2019-09-26 19:02:06 +02:00
Andreas Hocevar
899af3e5c7
Allow EventTarget to use a different default target
2019-09-26 17:56:51 +02:00
Andreas Hocevar
25d9fa1efe
Require type and listener for addEventListener/removeEventListener
2019-09-26 14:58:18 +02:00
ahocevar
ebfb20440a
Simplify events and store listeners only in one place
2019-09-04 16:48:43 +02:00
ahocevar
d416866108
Use pointer events everywhere
2019-08-31 23:40:11 +02:00
ahocevar
74e8e013cf
Use pepjs instead of our own pointerevent polyfill
2019-08-29 18:58:53 +02:00
Tim Schaub
811e5f60eb
Document existing error event type
2019-05-14 14:28:00 -06:00
Huy Nguyen
c3709ef51a
remove arrow function, add JSDoc and restore original Draw
2019-02-20 17:23:50 +07:00
Huy Nguyen
0c889da99c
add stylus and touch mode to drawing a shape
2019-02-20 13:55:22 +07:00
Frederic Junod
43def3194f
Simplify import path in ol/events/
2018-11-05 16:26:45 +01:00
ahocevar
9163558511
Replace instanceof checks with other logic
2018-10-12 20:35:59 +02:00
Andreas Hocevar
682fe47914
Merge pull request #8666 from schmidtk/ts-condition-fixes
...
Fix condition TypeScript errors
2018-10-02 21:10:10 +02:00
Kevin Schmidt
34323c0618
Fix TypeScript error in Target
2018-09-19 14:42:45 -06:00
Kevin Schmidt
f8396d8f35
Fix condition TypeScript errors
2018-09-18 15:29:13 -06:00
Frederic Junod
ea616e7751
Don't import ourselves
2018-09-06 09:05:32 +02:00
Frederic Junod
71328530fe
Remove unnecessary 'function' in jsdoc blocks
2018-09-05 16:40:45 +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
6cfa2b22a7
Explicit void
2018-07-26 10:46:39 -06:00
Tim Schaub
40486a0ecc
Avoid shadowing EventTarget
2018-07-26 10:14:58 -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
Tim Schaub
e1e34e5636
Replace @see with See.
2018-07-19 08:37:32 -06:00
Tim Schaub
d46471d763
Replace {@link https://www.example.com/ } with https://www.example.com/
2018-07-19 08:34:35 -06:00
Tim Schaub
9ce36da349
Remove @extends and @constructor annotations
2018-07-18 00:36:29 -06:00
ahocevar
a235dc906f
Use extends and super for events/EventTarget
2018-07-17 16:01:04 +02:00
ahocevar
2fd022d215
Use extends and super for Observable
2018-07-17 14:15:32 +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