Commit Graph

153 Commits

Author SHA1 Message Date
John Firebaugh
af7d003b88 Don't overload constructor parameters 2013-04-01 15:58:10 -07:00
John Firebaugh
79404c47d9 Multiselect control over disconnection (#1220) 2013-04-01 15:46:13 -07:00
John Firebaugh
93dd4a2658 Multiselect vertex/way to control splitting 2013-03-29 15:32:19 -07:00
John Firebaugh
2bd6178f07 Split on self-intersections 2013-03-29 15:32:19 -07:00
John Firebaugh
bbd4cb80b6 Split ways at intersections (fixes #750) 2013-03-29 15:32:19 -07:00
John Firebaugh
b1daf85cfd Tooltips for disabled operations (fixes #573) 2013-03-29 12:29:07 -07:00
Ansis Brammanis
3384598c60 Add ability to disconnect self-intersecting ways
Fixes #1155
2013-03-26 17:46:32 -04: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
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
Tom MacWright
29b6f34403 Prevent orthogonalization of <3 node ways. Fixes #776 2013-03-18 15:44:19 -04:00
John Firebaugh
4fa88acc85 Fix connecting adjacent vertices
Can't unconditionally delete the node; it may be a member
of other ways.

I didn't preserve the behavior of dragging a midpoint to
an adjacent node being a no-op. In general we don't try to
eliminate compound operations whose net result is a no-op;
I don't think it's important to do so for this special case.

The degenerate case of connecting the endpoints of a two-vertex
line now results in a point. This is what naturally resulted
from the code, and seems ok.

Fixes #983.
2013-03-12 16:26:40 -07:00
John Firebaugh
68cc99c412 Disable Move operation on incomplete relations (fixes #972) 2013-03-11 16:43:06 -07:00
John Firebaugh
cb0e02d56f Support merging point + line 2013-03-06 17:37:17 -08:00
Tom MacWright
e071c15579 Remove unused variables and arguments 2013-03-05 16:29:23 -05:00
John Firebaugh
b7894ceaf0 Calculate participating ways in AddMidpoint
Due to differenced redraw, midpoint.ways was getting stale,
so sometimes dragging a midpoint didn't add the new node to
all ways. Better to calculate participating ways when needed.
This also simplifies the code for adding a midpoint via double
click. It does make filtering midpoints on redraw a bit more
expensive, but a cursory profile didn't show it being a problem.

Fixes #763.
2013-02-27 20:41:38 -08:00
Ansis Brammanis
4e6a3c322f Merge branch 'master' of git://github.com/systemed/iD into rotate2
Conflicts:
	index.html
	test/index.html
2013-02-27 21:41:26 -05:00
Ansis Brammanis
404488c54a Fix a couple of rotate bugs 2013-02-27 21:38:40 -05:00
John Firebaugh
78f6a00029 Fix moving multiple entities which share nodes
While here, implement moving multipolygons too.
2013-02-27 17:12:39 -08:00
John Firebaugh
7a1800fd68 Delete orphaned relation members 2013-02-27 16:32:52 -08:00
John Firebaugh
b751c1ece9 Simplify, fix spec 2013-02-27 16:32:26 -08:00
Ian B
9f5564508f Add rotate shape operation (addresses #838) 2013-02-25 21:09:41 +01:00
Tom MacWright
61d7ec45b5 Banish function ( style 2013-02-12 16:35:47 -05:00
John Firebaugh
f1079a644a Fix relation role in Split (#694) 2013-02-08 20:44:14 -08: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
d59320ee4b Extract Way#replaceNode 2013-02-08 12:07:57 -08:00
Tom MacWright
5e328435e6 jshint 2013-02-07 16:58:38 -05:00
John Firebaugh
e1bc78871b Handle entities that are already deleted (fixes #672) 2013-02-07 13:46:25 -08:00
Ansis Brammanis
02d4b8f1aa Remove unnecessary code from orthogonalize 2013-02-07 15:48:32 -05:00
Tom MacWright
b9d80538b1 jshinting 2013-02-07 15:41:14 -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
0af51a0ef6 Improvements to Split
* Split a closed way at selected and antipode point (fixes #651)
* Split an area into a multipolygon (fixes #572)
2013-02-06 16:00:19 -08:00
John Firebaugh
f6e726bcd6 Join should run Reverse where necessary (fixes #652) 2013-02-06 14:31:11 -08:00
John Firebaugh
bd8c9d6a00 Support merging points into an area (#435) 2013-02-06 13:42:34 -08:00
John Firebaugh
d7639acb22 Set up iD.actions.Join to be more flexible 2013-02-06 13:42:34 -08:00
John Firebaugh
b62f106be8 Extract Relation#replaceMember 2013-02-06 13:42:34 -08:00
John Firebaugh
c9fb1444db Connect via drag and drop
Fixes #598.
2013-02-04 16:48:54 -08:00
John Firebaugh
73098d259e Specify type for relation member 2013-02-04 16:48:40 -08:00
Tom MacWright
3e71dd56cd Wipe out some tags entirely, refs #585 2013-02-04 17:20:06 -05:00
Tom MacWright
3449a680a7 Add tag deprecation action and data, not yet integrated. 2013-02-04 16:02:34 -05:00
John Firebaugh
8699b4a49e Adjust for style, formatting, and jshint 2013-02-04 09:18:15 -08:00
John Firebaugh
50de4155f4 Merge pull request #612 from porjo/master
Added orthogonalize function
2013-02-04 09:14:49 -08:00
Tom MacWright
e5ad28feb7 JShint fixups 2013-02-04 12:10:23 -05: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
90aa734f53 Merge remote branch 'upstream/master' 2013-02-03 07:40:07 +01: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