Til Schneider
09cab72cf2
Fix export of geoVecLengthSquare
2020-08-11 11:47:04 +02:00
Katarzyna Król
48ccc7900e
improve checking circularity and unit tests
2019-10-29 22:51:05 +01:00
Quincy Morgan
4eedfa8b25
Don't allow autofixing unsquare buildings unless they are already very close to square
...
Allow autofixing buildings with tags
2019-05-13 16:28:08 -04:00
Bryan Housel
05949608aa
Support straightening of points
...
(closes #6217 )
- Split `actionStraighten` into `actionStraightenWay` and `actionStraightenNodes`
- Now `operationStraighten` chooses the correct action depending on selected entities
- Also move `getSmallestSurroundingRectangle` from `actionReflect` to `geo.js`
2019-04-24 01:55:43 -04:00
Quincy Morgan
34fcd01f98
Add validation warning for unsquare buildings
2019-04-23 15:50:52 -07:00
Bryan Housel
b47ab4ac50
Change orthogonalize to support degenerate shapes, non-closed ways
...
Also adds a handful of useful vector math functions to geo module
2019-02-28 22:52:45 -05:00
Bryan Housel
e44dfcb5e3
Add geoVecNormalizedDot
2019-02-25 23:07:03 -05:00
Bryan Housel
c3ac083b32
Reuse math code, add geoVecNormalize, code cleanups
2019-02-25 21:15:20 -05:00
Quincy Morgan
b25d75a6cc
Use existing nodes where possible in almost junction connection fix
2019-02-06 12:47:12 -05:00
Bryan Housel
1dbf273878
Remove flow
...
https://github.com/openstreetmap/iD/issues/3744#issuecomment-374950519
2018-03-22 16:51:53 -04:00
Bryan Housel
efddfd271c
More flow coverage of geo submodule
...
(re: #3744 )
also:
- Move types to index and export/import them
- add return types
2018-03-17 09:29:12 -04:00
Bryan Housel
d5bf2d9762
Add geoHasLineIntersections, better for testing multipolygon rings
...
(closes #4741 )
2018-01-24 23:16:51 -05:00
Bryan Housel
9c27893748
Check for valid multipolygon geometry when dragging nodes
...
(this can get a bit expensive for large/complex multipolygons)
2017-12-31 02:26:19 -05:00
Bryan Housel
4f02340374
Extract self-intersection code to geoHasSelfIntersections
...
Test for self-intersecting areas in both drag_node and draw_way
2017-12-28 23:10:52 -05:00
Bryan Housel
7af73c10ef
Refactor geometric math functions from geo.js to geom.js
2017-12-28 01:28:38 -05:00
Bryan Housel
96afbbd785
Refactor vector math functions from geo.js to vector.js
2017-12-28 01:08:11 -05:00
Bryan Housel
9fbb4d350f
Add geoVecEquals for strict comparisons
2017-12-23 22:33:35 -05:00
Bryan Housel
2e2b037e36
Move a bunch of commonly used vector and projection math functions into geo
...
- geoVecAdd
- geoVecSubtract
- geoVecScale
- geoZoomToScale
- geoScaleToZoom
2017-12-18 15:05:42 -05:00
Bryan Housel
18c97d52c8
Extract viewport nudging code from several places to geoViewportEdge
2017-12-18 09:50:17 -05:00
Bryan Housel
cad4c0090c
Refactor rotation code to geoRotate, add tests
2016-12-21 11:21:06 -05:00
Bryan Housel
063e7712b8
Move geo functions from index.js to geo.js
2016-12-20 23:08:22 -05:00
Bryan Housel
0d0b9b0d9b
Use geoEuclideanDistance for simpler code
2016-10-18 00:56:18 -04:00
Bryan Housel
f50e80d0b5
Refactor Intersection, Multipolygon from geo to osm
2016-10-11 23:09:27 -04:00
Bryan Housel
0d0e54fdff
Fix more namespaces that were missed in the first pass
2016-10-04 21:15:30 -04:00
Bryan Housel
3102a4ae6a
Rename all the things to include pseudonamespaces
2016-10-04 19:06:20 -04:00
Bryan Housel
a86f34b4ef
Pacify eslint, get build and tests running again
2016-08-26 01:15:07 -04:00
Tom MacWright
604d1e2719
import lodash ( #3257 )
2016-07-19 12:04:16 -04:00
Kushan Joshi
b2095a502a
convert iD.geo to geo modules
2016-06-15 21:11:10 +05:30