Commit Graph

21 Commits

Author SHA1 Message Date
Bryan Housel
6d82ae4146 add iD.geo.Extent#contains 2015-02-06 13:56:51 -05:00
Bryan Housel
a2703f10c8 fix tests affected by change in equality testing re #2388 2014-10-28 21:49:31 -04:00
Bryan Housel
1f544e883b bump chai to 1.9.2 and fix tests affected by change in equality testing
re #2388
2014-10-28 21:37:04 -04:00
John Firebaugh
69af20e44d Add mutating extent extend, for performance 2014-10-13 16:34:38 -07:00
Bryan Housel
874a3e2ad6 disable Move and Rotate operations if area < 80% contained in the viewport
see #542.
Also included:
1. DRY up code for "% contained in" extent testing.
2. If action.disabled() returns a better reason, show that instead of the too_large one.
2014-07-11 17:11:50 -04:00
John Firebaugh
8b6ce214a2 Initial support for only_* restrictions 2014-05-19 15:53:46 -07:00
John Firebaugh
6089a6aaea Better solution for maintaining selection 2014-05-18 16:02:48 -07:00
John Firebaugh
9d5df793b5 Fix turn generation from ways that need splitting 2014-05-18 16:02:48 -07:00
John Firebaugh
573237e94e Render U-turns 2014-05-18 16:02:48 -07:00
John Firebaugh
3d210ac3c1 Implement basic restriction toggling 2014-05-18 16:02:47 -07:00
John Firebaugh
26422d9c9a Show ways in restriction editor as if they were split 2014-05-18 16:02:47 -07:00
John Firebaugh
f39ae89177 Render turns of selected way 2014-05-18 16:02:47 -07:00
Bryan Housel
1df54a700a Disable circularize and orthogonalize operations when way is <80% contained in the viewport 2014-03-27 22:47:34 -04:00
John Firebaugh
14bfc52e33 Remove repetition of entity IDs in tests
There were several places where the key and entity id
didn't match up.
2013-10-31 15:57:47 -07:00
John Firebaugh
156aa90e27 Add more turn logic 2013-08-30 19:27:21 -07:00
John Firebaugh
ddd9e4e8cc Make iD.actions.Join agnostic to selection order
This is accomplished by reusing iD.geo.joinMemberWays,
which was refactored, generalized, and renamed to joinWays.
2013-06-18 12:19:53 -07:00
John Firebaugh
33cf029d43 Extract and refactor iD.geo.joinMemberWays 2013-06-05 16:00:12 -07:00
John Firebaugh
1db99586c4 Render only new features when a data tile is loaded 2013-05-20 12:05:31 -07:00
Tom MacWright
e434cab107 Basic tests for padByMeters 2013-05-09 12:25:38 -04:00
John Firebaugh
d247962324 Handle incomplete relations in simpleMultipolygonOuterMember 2013-05-01 10:28:40 -07:00
John Firebaugh
5a2444b551 Extract and fix extent/intersection calculations
Extents are now [[min x, min y], [max x, max y]].
2013-01-17 14:27:01 -08:00