Simon Seyock
ce4f6ccb0d
OnSignatures return more specific type
2021-09-10 16:11:38 +02:00
mike-000
207fc99295
Remove option conflicts and update documentation
2021-08-21 14:57:11 +01:00
Simon Seyock
d6e0eb75fa
Use Source as default parameter for Layer.
2021-08-06 17:14:17 +02:00
Andreas Hocevar
e9e664f3c9
Add typed signature for Observable#un()
2021-07-10 11:28:50 +02:00
Simon Seyock
d914006d51
Add signatures for once.
2021-07-10 11:28:49 +02:00
Simon Seyock
1870a64984
Add CombinedOnSignature.
2021-07-10 11:28:49 +02:00
Simon Seyock
e9a161740a
controls and interactions.
2021-07-10 11:28:48 +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
b6c143deb2
Merge pull request #12416 from ahocevar/eventtype-generics
...
Use generics to limit event types in on(), once() and un()
2021-06-21 09:36:25 +02:00
Andreas Hocevar
018ad97f25
Use generics to limit event types in on(), once() and un()
2021-06-20 22:25:47 +02:00
Andreas Hocevar
343e0ffce9
Replace getChangeEventType() with add/removeChangeListener methods
2021-06-19 23:16:26 +02:00
mike-000
666c996f8e
Update src/ol/interaction/Translate.js
...
Co-authored-by: Tim Schaub <tschaub@users.noreply.github.com >
2021-05-10 19:53:30 +01:00
mike-000
41cc956b52
Add condition option
2021-05-10 16:03:01 +01:00
Simon Seyock
8facb252f1
Replace google closure syntax = with brackets around name
2021-02-03 14:06:02 +01:00
Simon Seyock
f590cb3473
Harmonize jsdoc
2021-02-02 12:14:56 +01: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
Andreas Hocevar
cb8fb147ec
Do not scroll page during feature translation
2020-04-07 08:53:54 +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
ac50cc3460
New eslint config with no-multi-assign
2019-11-02 15:20:21 +01:00
flexJoly
391bae35f2
minor fixes
...
and keep original parameters in TranslateEvent the same
2019-09-26 19:30:24 +02:00
flexJoly
180e1c86fc
Cache starting coordinates and add mapBrowserEvent to translateEvent
2019-09-26 18:48:51 +02:00
ahocevar
ebfb20440a
Simplify events and store listeners only in one place
2019-09-04 16:48:43 +02:00
André Garneau
7817cf31c6
Changes following code review
...
Add a type for FilterFunction and add tests for filter option.
2019-06-04 17:45:28 -04:00
André Garneau
b42ee8ca0f
Add filter function to translate interaction
...
Add a filter function to the translate interaction. This filter is similar to the one present in the select interaction options and provides the ability to dynamically filter which features to include in the translate interaction. Adding the existing "features" options allows further filtering to take place. In this case the filter is first applied, and features that are passing the filtering need to be present in the "features" options to be further kept. The default filter function always return true (no filtering).
2019-05-31 14:51:13 -04:00
Frederic Junod
0189e8345d
Remove WebGL references in comments
2018-11-16 14:05:06 +01:00
Frederic Junod
6d608c361a
Simplify import path in ol/interaction/
2018-11-05 16:26:45 +01:00
Kevin Schmidt
942a0976be
Move interaction event handlers to class methods
2018-10-03 06:30:09 -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
Tim Schaub
2eb07aa081
Use Template<Foo> instead of Template.<Foo>
2018-07-25 18:37:08 -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
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
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
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
417dd85f83
Fix some jsdoc path types
2018-04-21 10:17:53 +02:00
Tim Schaub
20bbd71702
Correct type for Translate interaction options
2018-04-19 18:13:20 -06:00
Frederic Junod
0477f6cfdf
Mark optional property with square brackets
2018-03-19 14:31:04 +01:00
ahocevar
c496b4edca
Fix type typos
2018-03-16 17:22:45 +01:00
ahocevar
00d65ccddc
No olx and ol types for ol/interaction/Translate
2018-03-16 17:15:41 +01:00
Tim Schaub
8907339963
Module type for ol/MapBrowserEvent
2018-03-12 08:32:09 -06:00
Tim Schaub
cf80733e41
Module type for ol/Feature
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