Commit Graph

17 Commits

Author SHA1 Message Date
Bryan Housel
33782a3958 Require 2 uniq points for circularize. Handle 2 point case, where D3 centroid() fails. 2014-04-21 23:29:25 -04:00
Bryan Housel
210e7889a1 Factor makeConvex into new method, fix missing comma and style issues.. 2014-04-14 23:54:03 -04:00
Bryan Housel
52f631f4a0 Coax concave ways to convex before circularizing.. 2014-04-10 15:26:31 -04:00
Bryan Housel
4c0c078045 When circularizing a way, try to add inBetweenNodes to shared ways too.. 2014-04-07 22:42:34 -04:00
John Firebaugh
1e78ee5c87 Stricter jshint 2013-10-24 16:08:48 -07:00
tyr
e8d637f2bb Add iD.geo.sphericalDistance
iD.geo.euclideanDistance should only be used for calculations of 
projected coordinates or display (pixel) coordinates.

iD.geo.sphericalDistance calculates approximate geographical 
distances, accounting for distortions at higher latitudes. This 
can be used for determining the nearest node (operations.Delete,
actions.Circularize) or relative length comparisons (actions.Split).
2013-09-29 07:45:04 -07:00
Paul Mach
be30344cfd Improve Circularize Action 2013-09-28 14:33:39 -07:00
John Firebaugh
c50c3121d8 Make Graph#entity strict
Use Graph#hasEntity for the previous behavior.
2013-04-24 09:27:37 -07:00
John Firebaugh
781f540b3c Add diagnostic for common sentry errors 2013-04-23 11:29:00 -07:00
John Firebaugh
b1daf85cfd Tooltips for disabled operations (fixes #573) 2013-03-29 12:29:07 -07:00
John Firebaugh
80b6e4325f Circularize preserves direction (fixes #1082) 2013-03-19 16:42:30 -07:00
John Firebaugh
e40090b758 Fix circularize with > 12 vertices (fixes #1054) 2013-03-18 17:48:15 -07:00
John Firebaugh
e05531ad6c Fix circularize boundary cases (fixes #494)
There are still more boundary cases even farther out. But this is
probably sufficient for the real world.
2013-02-08 12:08:48 -08:00
John Firebaugh
441be74539 Simplify 2013-02-02 21:28:56 -05:00
John Firebaugh
0b3e0fb3db Use iD.actions.DeleteNode when removing nodes
They need to be removed from any parent relations.
Also, make sure to uniq child nodes, otherwise the
start/end node over-contributes to the centroid
calculation.

This action needs tests.
2013-02-02 21:17:10 -05:00
John Firebaugh
b08722fd3f Pass just the projection to Circularize 2013-02-02 19:59:05 -05:00
John Firebaugh
6576ec6501 Operation sprites 2013-01-30 11:56:49 -05:00