Tom MacWright
4b76b136fa
Fix tests for faux click
2013-02-05 15:58:54 -05:00
Tom MacWright
f70c9037b0
Fix tests, finish work here. Needs a design hit.
2013-02-05 12:52:56 -05:00
Tom MacWright
d159b37ab6
Fix tests
2013-02-05 12:10:05 -05:00
Ansis Brammanis
d3d0851596
Fix svg/midpoint tests
...
Proper solution waiting on 369
2013-02-05 00:51:54 -05: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
bd7f302730
Show deprecated tags in save commit, validate them, add deprecatedTags
...
to entity type.
2013-02-04 16:45:18 -05:00
Tom MacWright
3449a680a7
Add tag deprecation action and data, not yet integrated.
2013-02-04 16:02:34 -05:00
John Firebaugh
80a5a083b0
Remove unused
2013-02-02 19:57:36 -05:00
John Firebaugh
fc00f154a9
Dispatch a change event on merge
2013-02-02 19:47:56 -05:00
John Firebaugh
11d723819d
Difference#extantIDs
2013-02-02 19:47:56 -05:00
John Firebaugh
ddc5e324f6
Extract iD.Difference
...
iD.Difference represents the difference between two graphs.
It knows how to calculate the set of entities that were
created, modified, or deleted, and also contains the logic
for recursively extending a difference to the complete set
of entities that will require a redraw, taking into account
child and parent relationships.
Additionally, all history mutators now return a difference.
2013-02-02 19:47:56 -05:00
John Firebaugh
a8410be6eb
iD.actions.Join
2013-02-01 17:31:32 -05:00
John Firebaugh
20730e5f1a
Entity#mergeTags
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
3da0e70c0f
Shift-selection
2013-02-01 14:31:47 -05:00
Tom MacWright
031c8d655e
Fallback for browsers that do not support localStorage. Fixes #591
2013-02-01 13:12:46 -05:00
John Firebaugh
fe49e8fb77
Pass around context rather than map
2013-02-01 12:40:16 -05:00
John Firebaugh
000ceb6467
iD.Context -> iD
...
All the UI setup code moved to iD.ui.
2013-02-01 12:40:15 -05:00
John Firebaugh
7e68e8e114
Add iD.Context
...
This is a facade interface that ties together a bunch of
different internal objects and will make it easier to write
tests for behaviors, modes, and operations.
2013-02-01 12:40:15 -05:00
Tom MacWright
72536229c7
Merge branch 'master' into presets
...
Conflicts:
test/index.html
2013-02-01 12:03:40 -05:00
John Firebaugh
bbccec75be
Convert Hash to a behavior
2013-01-31 18:28:24 -05:00
Tom MacWright
681bf7c724
Be more specific in tests about which form we are interested in
2013-01-31 15:24:45 -05:00
Tom MacWright
ecb27eaf2f
Merge branch 'master' into presets
...
Conflicts:
js/id/modes/select.js
2013-01-31 15:14:28 -05:00
John Firebaugh
402a9424c0
Make selection an array of entity IDs
...
Should have no visible effect yet.
2013-01-31 13:51:12 -05:00
Ansis Brammanis
846cf6e43d
Add difference tests
2013-01-31 13:37:54 -05:00
John Firebaugh
3605895dfa
ChangeEntityTags -> ChangeTags
2013-01-31 12:41:29 -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
208ed6a2ed
Move iD.geo tests to own file
2013-01-31 08:30:46 -05:00
John Firebaugh
6ae360a533
These tests now pass
2013-01-31 08:28:10 -05:00
Ansis Brammanis
b73d18cbf5
Merge remote-tracking branch 'systemed/master' into graph-perf2
2013-01-30 16:58:44 -05:00
Ansis Brammanis
a82b81a3c2
Add tests for #replace #remove #rebase
2013-01-30 16:40:00 -05:00
John Firebaugh
e381b6ab26
Extract AddMidpoint action
2013-01-30 15:47:33 -05:00
John Firebaugh
459dc00ce5
Change the midpoint data a bit
...
Store the ways which share the segment and the index of
the segment. This will be used in both DragWay and Draw
behaviors.
2013-01-30 15:47:33 -05:00
Ansis Brammanis
a317859b0f
Don't re-add removed parentways, don't duplicate
2013-01-30 15:44:03 -05:00
Ansis Brammanis
1b5a1b8268
Merge takes an entities object, not graph
2013-01-30 14:20:39 -05:00
Ansis Brammanis
e08364d492
working parentRels
2013-01-30 13:18:44 -05:00
Ansis Brammanis
ba68a238fe
Working rebase
2013-01-30 12:26:40 -05:00
John Firebaugh
b37ef978f4
Snap to ways/vertices/midpoints when drawing ( #240 )
...
Also add anti-snapping behavior when option key is down.
2013-01-29 11:16:12 -05:00
John Firebaugh
c5d691d79d
Graph#rebase
2013-01-28 16:08:08 -05:00
John Firebaugh
e69f613b51
Order deletions in osmChange XML ( fixes #541 )
...
This relies on iteration order of JS objects, which
is technically undefined. But currently all relevant
browsers implement first-defined-first-iterated order
for non-numeric keys. And I've written the specs so that
they will fail on browsers that don't adhere to this.
2013-01-28 11:47:59 -05:00
John Firebaugh
05e3dd73a8
Push JXON.stringify's down for easier testing
2013-01-28 11:24:52 -05:00
John Firebaugh
08bd7e583a
Define Relation#asJXON (allow relations to be saved)
2013-01-28 10:19:11 -05:00
John Firebaugh
2ac0f1dc26
Don't rely on OSM IDs being in range of JS numbers
2013-01-28 10:15:17 -05:00