Commit Graph

36 Commits

Author SHA1 Message Date
Andreas Hocevar
3de2ea0624 More convenience with condition chaining 2020-06-13 08:39:59 +02:00
Andreas Hocevar
aa5de5db60 Use drag-pan default condition with onFocusOnly 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
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
Tobias Kohr
38124d770b Revert delete Select interaction commit 3838b68427 2019-09-25 16:37:28 +02:00
Simon Seyock
3838b68427 Removed SelectInteraction 2019-09-24 10:12:30 +02:00
Frédéric Junod
c321c90497 Merge pull request #9300 from fredj/f9299
Fix documentation about zoomDelta for ol.interaction.default function
2019-03-12 08:31:30 +01:00
Frederic Junod
9e89047e6a Fix documentation about zoomDelta for ol.interaction.default function 2019-03-07 14:22:33 +01:00
Olivier Guyot
49662b019c View / add a constrainResolution option
This introduces a breaking change.

This options replaces the various `constrainResolution` options on interactions
and the `fit` method.

Since constraints are now the responsibility of the View, the fact that intermediary
zoom levels are allowed or not is now set in the view options.

By default, the view resolution is unconstrained.
2019-02-22 15:01:30 +01:00
simonseyock
c18a833880 event chain documentation 2019-01-28 20:50:33 +01: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
Frederic Junod
5b8b470568 Fix imports in jsdoc blocks 2018-09-03 09:41:00 +02:00
ahocevar
55fb62c551 Add onFocusOnly option to interaction defaults 2018-07-31 09:01:42 +02:00
Tim Schaub
2eb07aa081 Use Template<Foo> instead of Template.<Foo> 2018-07-25 18:37:08 -07:00
ahocevar
440d1ad3e1 Shorter module paths for default exports 2018-04-25 17:25:39 +02:00
Tim Schaub
0cb1c18778 Re-export interaction constructors from ol/interaction 2018-04-24 08:40:15 -06:00
Andreas Hocevar
95d6251dbb Get rid of olx.js and typedef.js typedefs for ol 2018-03-08 18:57:24 +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
176021e188 Rename _ol_Collection_ to Collection 2018-01-11 12:06:58 -07:00
Frederic Junod
e59109e807 Rename _ol_interaction_KeyboardZoom_ to KeyboardZoom 2018-01-11 13:52:27 +01:00
Frederic Junod
c6104b7860 Rename _ol_interaction_KeyboardPan_ to KeyboardPan 2018-01-11 13:51:59 +01:00
Frederic Junod
cb46dd2dbd Rename _ol_interaction_PinchRotate_ to PinchRotate 2018-01-11 13:50:35 +01:00
Frederic Junod
120c42f7a4 Rename _ol_interaction_PinchZoom_ to PinchZoom 2018-01-11 13:49:48 +01:00
Frederic Junod
43377c1332 Rename _ol_interaction_MouseWheelZoom_ to MouseWheelZoom 2018-01-08 10:45:39 +01:00
Frederic Junod
f23590a479 Named export for ol/interaction 2017-12-17 19:05:05 +01:00
Frederic Junod
935133755e Rename _ol_Kinetic_ to Kinetic 2017-12-16 08:06:48 +01:00
Marc Jansen
b92118b5ab Rename _ol_interaction_DragZoom_ to DragZoom 2017-12-15 09:42:55 -07:00
Marc Jansen
3a933df1f1 Rename _ol_interaction_DragRotate_ to DragRotate 2017-12-15 09:42:55 -07:00
Marc Jansen
de6006c6e2 Rename _ol_interaction_DragPan_ to DragPan 2017-12-15 09:42:55 -07:00
Marc Jansen
66c5f9b63d Rename _ol_interaction_DoubleClickZoom_ to DoubleClickZoom 2017-12-15 09:39:10 -07:00
Tim Schaub
7f47883c48 Transformed 2017-12-12 06:53:18 -07:00
Marc Jansen
d0ef05977b Autofix indentation issues (eslint --fix) 2017-06-19 11:58:00 +02:00
Frederic Junod
15e6fa454d Add new constrainResolution option to olx.interaction.DefaultsOptions 2017-04-11 13:27:11 +02:00
Tim Schaub
f5aea97d3b All @api annotations imply stability 2017-02-06 09:22:05 -07:00
Frederic Junod
5763e1d145 Remove unused goog.require 2017-02-03 12:40:53 +01:00
Tim Schaub
ef04f466cd Name modules more like their provide 2016-12-18 11:24:01 -07:00