Commit Graph

85 Commits

Author SHA1 Message Date
Huy Nguyen
0c889da99c add stylus and touch mode to drawing a shape 2019-02-20 13:55:22 +07:00
Frederic Junod
0b53a3229b Remove unneeded type cast 2019-02-04 09:58:49 +01:00
ahocevar
409c962caf Reset lastDragTime when condition is not met 2018-12-21 22:26:05 +01:00
Frederic Junod
6d608c361a Simplify import path in ol/interaction/ 2018-11-05 16:26:45 +01:00
ahocevar
9163558511 Replace instanceof checks with other logic 2018-10-12 20:35:59 +02:00
Kevin Schmidt
942a0976be Move interaction event handlers to class methods 2018-10-03 06:30:09 -06:00
ahocevar
3f79edba67 Use setTimeout with any return type 2018-10-03 10:50:44 +02:00
Kevin Schmidt
b6846d6b3d Use window.setTimeout to avoid TS conflict with Node's setTimeout 2018-10-01 15:41:03 -06:00
Kevin Schmidt
d62dd67942 Fix TypeScript errors in ol/interaction/Draw 2018-10-01 15:38:31 -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
Frederic Junod
595009726f Fix freehand polygon drawing
Fixes #8360
2018-09-03 11:56:31 +02:00
ahocevar
8ab1589f9a Add getOverlay method to access sketch and selection layers 2018-08-15 10:59:38 +02: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
Andreas Hocevar
a89ae25134 Merge pull request #8396 from iamplex/fix-createRegularPolygon
Fix ol.interaction.Draw~createRegularPolygon
2018-07-23 10:51:32 +02:00
ahocevar
bbe0a66d07 Set api annotation on classdesc, not constructor 2018-07-21 17:25:22 +02:00
ahocevar
45cf296ed4 Simplify calculation and add tests 2018-07-21 10:22:42 +02:00
plex
b377bbac59 fix: change the start angle of the regular polygon to match the sketch 2018-07-21 09:44:00 +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
97f6171b4c Rename setFlatCoordinatesInternal to setFlatCoordinates 2018-07-07 18:04:13 +02:00
ahocevar
160f1bc286 Accept flat coordinates in LineString constructor 2018-07-07 16:04:43 +02:00
ahocevar
1da43d90af Allow flat coordinates for Polygon constructor 2018-07-07 14:16:39 +02:00
ahocevar
28409486a5 Make classes in ol/ available as named exports from ol 2018-06-21 18:08:17 +02:00
Frederic Junod
af1f6836af Shorter module paths for default exports 2018-05-09 11:24:43 +02:00
Tim Schaub
167bc1ec78 Remove externs/oli.js 2018-05-08 08:38:34 -06:00
ahocevar
9bfdf818e4 Rename Style~Function path type to Style~StyleFunction 2018-04-27 09:30:51 +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
c23a5086ae Fix enum types 2018-04-21 10:48:38 +02:00
ahocevar
417dd85f83 Fix some jsdoc path types 2018-04-21 10:17:53 +02:00
Frederic Junod
cb6ecdb94b Add missing undefined type to timout variables 2018-03-19 17:27:25 +01:00
ahocevar
b19f00d893 No olx and ol types for ol/interaction/Draw 2018-03-15 17:51:19 +01:00
ahocevar
12581b6a77 No olx and ol types for ol/interaction/DragBox 2018-03-15 16:49:50 +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
Andreas Hocevar
d818817117 Fix exports and use of constants 2018-03-02 17:26:17 +01:00
Tim Schaub
4e6cf58de1 Remove static members from BaseObject 2018-02-25 08:49:28 -07:00
Tim Schaub
580c2c6545 Named exports from ol/style/Style 2018-02-22 23:34:52 -08:00
Tim Schaub
f81f3e2e9f Remove static members from Draw interaction 2018-02-21 15:55:22 -08:00
Tim Schaub
1be61fdb09 Only export handleEvent where it is used by other interactions 2018-02-19 14:00:59 -07:00
Tim Schaub
380abd2be2 Remove private static members from Draw interaction 2018-02-12 06:15:37 -07:00
Tim Schaub
b97554f2f3 Named exports from ol/coordinate 2018-02-09 14:31:20 -07:00
Marc Jansen
6e764a20b3 Import events conditions explicitly 2018-02-05 20:36:42 +01:00