Commit Graph

23 Commits

Author SHA1 Message Date
Paul Mach 4078d353b2 Bump threshold for Orthogonalize to 12 degrees 2014-01-16 12:06:54 -08:00
John Firebaugh 1e78ee5c87 Stricter jshint 2013-10-24 16:08:48 -07:00
John Firebaugh 30bf1cd87c Remove unused variables 2013-09-30 10:14:40 -07:00
Paul Mach 0e080b3ed6 Limit squaring to near square or near straight nodes 2013-09-29 13:44:30 -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 3ac12a1e70 Orthononalize bug fixes 2013-09-27 22:24:32 -07:00
John Firebaugh 690a04e538 Make straighten/orthogonalize act like a single operation
- Display only one or the other in the radial menu
- Rename "Orthogonalize" to "Square"
- Use "S" as shortcut for both

Refs #1839
2013-09-25 14:26:30 -07:00
Paul Mach 76e0ef7c26 Better orthogonalization of skinny quads. Fixes #1812 2013-09-21 21:21:36 -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 bc7b5908ba Code style 2013-03-25 17:04:13 -07:00
Ian B db2dc79e60 Refactor Orthogonalize 2013-03-23 21:20:05 +01:00
Ian B c56aa25930 Orthogonalize three-node ways (addresses #1077) 2013-03-23 16:22:08 +01:00
Tom MacWright 29b6f34403 Prevent orthogonalization of <3 node ways. Fixes #776 2013-03-18 15:44:19 -04:00
Tom MacWright e071c15579 Remove unused variables and arguments 2013-03-05 16:29:23 -05:00
Ansis Brammanis 02d4b8f1aa Remove unnecessary code from orthogonalize 2013-02-07 15:48:32 -05:00
Ansis Brammanis 9a2bafac1b Power through less square iterations 2013-02-07 15:30:44 -05:00
Ansis Brammanis cf96055781 Fix scale calculation in orthogonalize 2013-02-07 14:08:07 -05:00
John Firebaugh 8699b4a49e Adjust for style, formatting, and jshint 2013-02-04 09:18:15 -08:00
Dr Ian b912097ee4 Tidy up: fix indents, spaces etc.
- Update orthogonalize to match new circularize.
- Add orthoganalize to test index.html
- Revert whitespace on index.html
2013-02-03 20:12:04 +01:00
Dr Ian 26b8b8789e Fix case where parentnodes present 2013-02-03 00:05:11 +01:00
Dr Ian 8b6bb964ad Added orthogonalize function (square corners) 2013-02-02 23:52:16 +01:00