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
John Firebaugh
5ea855e18d
Replace Graph#fetch with Graph#childNodes
...
Having two kinds of Ways (fetched and non-fetched)
introduced some accidental complexity. This brings things
more in line with how parentWays/parentRelations work.
Fixes #73 .
2013-01-25 15:10:44 -05:00
John Firebaugh
3105923371
Wrap all actions in Graph#update
2013-01-25 13:43:35 -05:00
John Firebaugh
61a1f35a70
Use Graph#update in MoveWay
2013-01-25 13:27:33 -05:00
Tom MacWright
1f3319f7b0
Add circularize action. Fixes #491
2013-01-24 22:52:19 -05:00
John Firebaugh
b6d8ddc2f8
Remove unused branch and obsolete test
2013-01-24 11:21:12 -05:00
Tom MacWright
32ea30c3fb
Use isPoi for determining whether points are pois or not
2013-01-23 19:14:54 -05:00
John Firebaugh
3138ba2805
Handle incomplete relations in SplitWay ( fixes #466 )
2013-01-23 15:52:35 -05:00
John Firebaugh
72618574f3
Rename permitted -> enabled and add to more actions
2013-01-23 15:33:30 -05:00
John Firebaugh
278bb4a51c
Fix some cases where a degenerate way was created
2013-01-23 12:40:27 -05:00