Commit Graph

72 Commits

Author SHA1 Message Date
Maximilian Krög bcebd73388 Improve performance when adding features to Snap 2022-03-07 19:54:43 +01:00
Maximilian Krög 444763f47b Set correct extent for multipoint points in Snap 2022-03-07 19:54:40 +01:00
Maximilian Krög 49acb39f72 Return null when not snapped 2022-03-07 08:57:31 +01:00
pala e47bd0bb93 Snap Interaction can snap to Point on line segment
Fixes #13440
2022-03-07 08:57:31 +01:00
Maximilian Krög b29ab8f104 Link to class instead of module pages 2022-02-14 21:53:07 +01:00
EvertEt e3d3d24f05 Improve some null types to prepare for strictNullChecks 2022-01-31 19:35:25 +01:00
Andreas Hocevar 79f5f46d27 Remove lint 2021-06-28 18:10:51 +02:00
Simon Seyock 2ad5789797 Add descriptions for properties. 2021-02-04 18:19:33 +01:00
Simon Seyock 8facb252f1 Replace google closure syntax = with brackets around name 2021-02-03 14:06:02 +01: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
Frederic Junod da8ef43db7 Remove all inheritDoc tags from src/ol/interaction 2020-04-03 07:52:51 +02:00
mike-000 9d8609dd08 Modify and snap to circle in user coordinates
Correct modify interaction at center and at drawn circle circumference
Correct snap interaction at drawn circle circumference

Test circle geometry in a user projection
2019-12-13 16:40:39 +00:00
Tim Schaub 07678d960a User coordinates during snapping 2019-09-27 11:55:48 +02:00
Tobias Kohr d4c1589a01 Seperate internal and API methods for the map 2019-09-24 17:58:56 +02:00
Frederic Junod 701e19c1c9 Remove type cast in ol/interaction/Snap 2018-12-12 14:43:51 +01:00
Niklas Alt 4bc9216e41 Add ': void' to non returning functions (error TS7014) 2018-12-06 19:57:45 +01:00
Frederic Junod 6d608c361a Simplify import path in ol/interaction/ 2018-11-05 16:26:45 +01:00
Frederic Junod 041836c645 Change getUid return type from number to string 2018-10-17 10:22:53 +02:00
ahocevar 9163558511 Replace instanceof checks with other logic 2018-10-12 20:35:59 +02:00
Kevin Schmidt 9d4821aafc Fix type check errors in ol/interaction/Snap 2018-10-03 11:20:56 -06:00
Kevin Schmidt 942a0976be Move interaction event handlers to class methods 2018-10-03 06:30:09 -06: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 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
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 59d904e509 Fix some types 2018-04-27 09:30:51 +02: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
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 bc33d871e1 No olx and ol types for ol/interaction/Snap 2018-03-16 17:12:14 +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
Tim Schaub ef70d71636 Module types for ol/geom 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
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
Tim Schaub dfefe7d465 Remove static members from Snap 2018-02-25 09:03:46 -07:00
Tim Schaub 9b75dc949f Named exports from ol/source/Vector 2018-02-25 08:13:31 -07:00
Tim Schaub 1be61fdb09 Only export handleEvent where it is used by other interactions 2018-02-19 14:00:59 -07:00
Tim Schaub 9aae8aeb26 Export CollectionEvent from ol/Collection 2018-02-18 22:29:50 -07:00
Frederic Junod 4cad77089a Better code indentation 2018-02-16 14:34:00 +01:00
Tim Schaub 1c63234508 Remove private static members from Snap interaction 2018-02-12 07:12:02 -07:00
Tim Schaub b97554f2f3 Named exports from ol/coordinate 2018-02-09 14:31:20 -07:00