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
Frederic Junod
854c95f37a
Ignore 'this' type in function typedef
2018-05-09 13:49:59 +02:00
Frederic Junod
5b4063fa17
Remove wrong override tags
2018-05-09 12:38:21 +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
ahocevar
12581b6a77
No olx and ol types for ol/interaction/DragBox
2018-03-15 16:49:50 +01:00
Andreas Hocevar
395b26832a
Get rid of olx.js and typedef.js typedefs for ol/events
2018-03-08 18:57:24 +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
b50a47114e
Move the nullFunction to ol/functions
...
And rename it to `UNDEFINED`.
2018-03-01 14:41:18 +01:00
Andreas Hocevar
2d67c15ea9
Add focus condition, e.g. for wheel zoom
2018-02-27 21:39:02 +01:00
Tim Schaub
a480b0065b
Named exports from ol/events/Event
2018-02-18 23:08:04 -07:00
Marc Jansen
1c8e60487c
Named exports from events/condition
2018-02-05 20:36:42 +01:00
Tim Schaub
9cfee0f40b
Named exports from ol/has
2018-02-05 10:42:47 -07:00
Tim Schaub
7e7631c42a
Named exports from ol/events
2018-01-24 10:09:57 -07:00
Andreas Hocevar
6bb88026ea
Avoid context menu for long tap when editing on mobile
2018-01-14 23:26:28 +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