Commit Graph

137 Commits

Author SHA1 Message Date
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
John Firebaugh
b08722fd3f Pass just the projection to Circularize 2013-02-02 19:59:05 -05: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
John Firebaugh
a8410be6eb iD.actions.Join 2013-02-01 17:31:32 -05:00
John Firebaugh
9120f33aa7 ReverseWay -> Reverse 2013-02-01 17:31:32 -05:00
John Firebaugh
c86792a77b SplitWay -> Split 2013-02-01 17:31:32 -05:00
John Firebaugh
e1d5a0cb03 Unjoin -> Disconnect 2013-02-01 17:31:32 -05:00
John Firebaugh
58fcf746a2 Delete multiple 2013-02-01 15:08:41 -05:00
John Firebaugh
7ba31f05d2 Support deleting relations 2013-02-01 14:48:11 -05:00
John Firebaugh
df72ef254f ChangeEntityTags -> ChangeTags 2013-01-31 12:07:54 -05:00
John Firebaugh
6f7079d11c AddWay/AddNode -> AddEntity 2013-01-31 12:06:21 -05:00
John Firebaugh
1bfe1359ec AddWayNode -> AddVertex 2013-01-31 12:06:21 -05:00
John Firebaugh
e381b6ab26 Extract AddMidpoint action 2013-01-30 15:47:33 -05:00
John Firebaugh
6576ec6501 Operation sprites 2013-01-30 11:56:49 -05:00
John Firebaugh
69d95a6082 Refactor operations
They're something distinct from actions. Actions are independent
of UI, operations are actions + UI (title, keybinding, modality,
etc.)
2013-01-29 12:05:52 -05:00
John Firebaugh
c981fe5d80 Revert "Wrap all actions in Graph#update"
This reverts commit 3105923371.

See #508.
2013-01-25 16:17:26 -05:00