Commit Graph

60 Commits

Author SHA1 Message Date
Bryan Housel
6cfe7a2e71 When reversing a way, reverse traffic_signals:direction on child nodes
(closes #4595)
2017-12-06 20:48:21 -05:00
Bryan Housel
c40f242b82 Depend on bhousel/node-diff3 which includes fix for hunk sorting bug
(closes #3544, closes #3058)
2017-10-24 15:38:52 -04:00
Bryan Housel
a98f57cdcb Convert lodah-es and d3 to named imports for actions 2017-09-24 21:06:52 -04:00
Lee Haugen
2343198bc2 Check final poly hull edge in search for smallest rectangle 2017-08-29 16:02:04 -05:00
Bryan Housel
01bfc67ea5 After splitting a way, update all matching relation members
(closes #4140)
2017-07-10 18:35:30 -04:00
Bryan Housel
73e27c9657 Now that updateNode preserves circularity, provide close/unclose functions
This lets us break closed ways at their connecting node in the few situations where
we actually want that behavior (disconnect action for circular non-area ways)
2017-01-09 19:41:38 -05:00
Bryan Housel
8ce6b9e185 Merge branch 'transitioned-actions' 2017-01-04 17:26:22 -05:00
Bryan Housel
c2713c3a3f For node-way merge, preserve original node if possible
(closes #3683)
2016-12-31 02:01:13 -05:00
Bryan Housel
cb70b8028f Pacify eslint 2016-12-23 12:26:00 -05:00
Bryan Housel
c48cdc7c70 Clearer intent for right triangle code 2016-12-23 12:22:48 -05:00
Bryan Housel
cc5f238042 Support transitioned orthogonalize action 2016-12-23 12:04:53 -05:00
Bryan Housel
3e82a7352c Support transitioned straighten action 2016-12-23 11:09:17 -05:00
Bryan Housel
fdc37287ec Support transitioned circularize action 2016-12-23 10:52:00 -05:00
Bryan Housel
1685e4c2b4 Support transitioned reflect actions 2016-12-23 00:56:44 -05:00
Bryan Housel
37534aed0e More cleanup of operations and post-paste behavior
* Support move, rotate, reflect, delete post paste on multiselection
* Improve text and error msgs for singular vs multi selections
* Move `disabled` checks from actions to operations
* Reproject center of rotation (closes #3667)
* Cleanup tests
2016-12-21 23:58:13 -05:00
Bryan Housel
cad4c0090c Refactor rotation code to geoRotate, add tests 2016-12-21 11:21:06 -05:00
Bryan Housel
573f476cdd Rename actionRotateWay -> actionRotate 2016-12-20 22:38:30 -05:00
Bryan Housel
6ab9489fe7 Add utilGetAllNodes to get all nodes and descendants 2016-12-20 22:37:53 -05:00
Bryan Housel
2267035dfb Support both reflect long axis and reflect short axis operations 2016-12-16 13:59:33 -05:00
Bryan Housel
e88f53ac07 Reflect around long axis by default, provide method to choose long/short 2016-12-15 18:13:28 -05:00
Bryan Housel
94933ac455 Attempt to detect shape orientation and reflect accordingly 2016-12-15 17:43:46 -05:00
Bryan Housel
72c51bc283 Add getSmallestSurroundingRectangle 2016-12-14 17:21:32 -05:00
Jon D
73f3069c59 Rename for consistency, add logic to prevent flip if all of object not visible and if linked to hidden. Label does not render for message when not enabled 2016-11-06 11:15:15 +00:00
Jon D
23990214be Update to only flip around the vertical axis. Start renaming to 'reflect' 2016-11-06 10:48:48 +00:00
Jon D
c1edd0f3f9 Remove unused projection parameter 2016-11-05 20:39:43 +00:00
Jon D
1eaa284afe More tests, add uniq operator 2016-11-05 20:36:34 +00:00
Jon D
05421e1c25 Start adding tests 2016-11-05 20:20:27 +00:00
Jon D
dd16112aa3 Fix midpoint 2016-11-05 18:48:11 +00:00
Jon D
45635f7cdc Basic horizontal flip works, but midpoint seems incorrect 2016-11-05 18:32:26 +00:00
Jon D
a4b7b341ed Alter implementation. Need to see if projection.translate is required 2016-11-05 18:23:40 +00:00
Jon D
3052466f75 Other changes to expose new operation 2016-11-05 15:04:27 +00:00
Jon D
79a69b5241 Add initial version of action and operation. Not working 2016-11-05 14:52:22 +00:00
Bryan Housel
b054eb31e9 Merge branch '3076' of https://github.com/Psigio/iD into Psigio-3076 2016-10-31 16:06:32 -04: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
07fa5fcc34 Refactor Entity, Node, Relation, Tags, Way from core to osm 2016-10-11 22:41:24 -04:00
Bryan Housel
87950fd472 Fix lib export, flatten names in tests and docs 2016-10-04 21:56:09 -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
348a973f68 A few changes to make things work and test with Node 4, 5, 6 2016-09-29 10:53:07 -04:00
Bryan Housel
e4509cc123 Update all dependencies, remove d3 from the greenkeeper ignore list
Also add a few workarounds for a few weird rollup v0.36 issues
2016-09-26 00:42:51 -04:00
Tom MacWright
9c902dbf71 geoCentroid -> polygonCentroid 2016-09-06 18:13:50 -04:00
Tom MacWright
0236389611 Fix Circularize logic 2016-09-03 19:33:19 -04:00
Bryan Housel
a86f34b4ef Pacify eslint, get build and tests running again 2016-08-26 01:15:07 -04:00
Jon D
1dfa5aa77d Fix comment 2016-08-25 07:07:10 +01:00
Jon D
1b09b0dd60 Add implementation for left/right exchange on direction tags. 2016-08-25 07:03:35 +01:00
Jon D
08ca3e6fa3 Add implementation for directional tag reversal for nodes on a way. 2016-08-25 00:10:30 +01:00
Tom MacWright
cdb533fa84 Begin d3 v4 update 2016-08-21 15:19:27 -04:00
Tom MacWright
8819d3d061 Remove continued iD references (#3341)
* Remove continued iD references

* make build.js safe enough to dodge json plugin bug

* Package as an iife to avoid var name issue
2016-08-10 20:06:45 -07:00
Bryan Housel
fd0803f89c Don't limit movement if this is vertex joins 2 endpoints..
(closes #2731)
2016-07-24 17:30:35 -07:00