Commit Graph

85 Commits

Author SHA1 Message Date
Aaron Lidman
ff97d44395 Add tests for suggestNames 2013-11-01 16:57:33 -07:00
John Firebaugh
497c80f0a5 Add translated name tag only when language and value are both present
Fixes #1796
Fixes #1797
2013-10-11 15:18:10 -07:00
John Firebaugh
81bc280aba More reliable method for mutexed localStorage saves
Fixes #1883
2013-10-10 14:59:48 -07:00
John Firebaugh
965fb47680 Preserve existing Wikipedia language (fixes #1868) 2013-10-09 15:36:28 -07:00
John Firebaugh
44cd18aab5 Test with iD.js
Uglification can hide errors (#1865)
2013-09-30 16:20:16 -07:00
John Firebaugh
156aa90e27 Add more turn logic 2013-08-30 19:27:21 -07:00
John Firebaugh
405a49506b Building logic for turn restrictions 2013-08-30 14:23:05 -07:00
John Firebaugh
11e2f1d1fe Merge geocoder into feature search UI 2013-07-25 19:24:07 -07:00
John Firebaugh
734d53e08b Refactor background in preparation for multiple overlays 2013-07-15 14:05:11 -07:00
John Firebaugh
7ec1222402 Try to insert relation members at a sensible index (#1539) 2013-06-05 16:00:53 -07:00
John Firebaugh
40526764bf Test / fix ChangePreset action 2013-05-29 08:44:59 -07:00
John Firebaugh
5a8bf0fada Fix tests 2013-05-28 19:50:40 -07:00
John Firebaugh
cac654e8ab Add iD.actions.ChangeMember 2013-05-22 17:41:06 -07:00
John Firebaugh
1276672783 Add iD.actions.DeleteMember 2013-05-22 17:37:26 -07:00
John Firebaugh
ebadc90ac7 Rename Taglist -> RawTagEditor 2013-05-22 16:51:18 -07:00
John Firebaugh
9502729f5e Optimize presets.match
Previous implementation was linear in the number of
presets. This should be near constant time.
2013-05-13 21:07:26 -07:00
John Firebaugh
fd1573fa08 Abandon iD.svg.MemberClasses
Substantial performance hit for something that's barely used.
2013-05-13 12:46:01 -07:00
John Firebaugh
0ae54abdcc Extract iD.actions.DiscardTags 2013-05-13 09:26:41 -07:00
John Firebaugh
d247962324 Handle incomplete relations in simpleMultipolygonOuterMember 2013-05-01 10:28:40 -07:00
John Firebaugh
aedd5ee46e Create a dist directory
This directory will contain the built sources (iD.js, iD.css)
and images. On a release branch, we will check in the generated
files. For the osm.us/master deploy, it should run make and use
dist/ as the root.

Paths in css are relative, e.g. url(img/foo.png).
2013-04-22 10:50:36 -07:00
John Firebaugh
dca9bec450 Move Connection to core 2013-04-17 17:35:34 -07:00
John Firebaugh
687b7516d6 Split locales into individual files
This avoids a fragile regexp for the en special case.
2013-04-06 18:26:37 -07:00
John Firebaugh
e950042922 Fix cursors, add tests 2013-04-05 11:57:13 -07:00
John Firebaugh
f3caa77057 Manage rest of test libs with npm 2013-04-04 10:48:13 -07:00
John Firebaugh
d72ede2e2d Update to mocha 1.9, manage with npm 2013-04-04 10:36:11 -07:00
John Firebaugh
55a9d74553 Fix up Taglist test 2013-03-17 19:44:32 -07:00
John Firebaugh
113ae58de8 Fix up tests 2013-03-11 15:45:27 -07:00
John Firebaugh
2c874545eb Fix tests 2013-03-10 20:08:18 -07:00
John Firebaugh
da902061d6 Fix tests 2013-03-08 20:37:19 -08:00
John Firebaugh
d60ec2bd8e Sync tests 2013-03-06 16:16:12 -08: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
Tom MacWright
61d7ec45b5 Banish function ( style 2013-02-12 16:35:47 -05:00
John Firebaugh
502f35869c Fall back to en strings (fixes #738) 2013-02-12 10:40:41 -08:00
John Firebaugh
843baa11c0 graph -> core
This matches how it's described in ARCHITECTURE.md.
2013-02-09 15:18:54 -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
104b02eda1 Move common setup to spec_helpers.js 2013-02-06 14:04:19 -08:00
John Firebaugh
bd8c9d6a00 Support merging points into an area (#435) 2013-02-06 13:42:34 -08:00
John Firebaugh
5eb0644242 Improve multipolygon rendering
Multipolygon relations report their geometry as 'area' and are rendered
as such. However, they do not render a stroke. The stroke rendering
will come from the individual lines, which are given the tag
classes of their parent relations, allowing them to have a stroke
style matching the style of simple areas with the same tags.

Untagged circular ways are no longer considered areas. This prevents
an untagged inner way of a multipolygon from rendering as an area and
is consistent with how P2 and JOSM treat them.

In the CSS, it's no longer necessary to deal with multipolygons
explicitly in selectors. But keep in mind that area boundaries can
now be rendered either as lines or as area strokes. In most cases
the selector should be `path.stroke.tag-_____`, i.e. an explicit
`.area` or `.line` classes should not be included.

Finally, the parent ways of selected multipolygons are given the 'selected'
class.
2013-02-05 15:20:11 -08:00
John Firebaugh
c9fb1444db Connect via drag and drop
Fixes #598.
2013-02-04 16:48:54 -08: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
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
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
John Firebaugh
bbccec75be Convert Hash to a behavior 2013-01-31 18:28:24 -05:00
John Firebaugh
3605895dfa ChangeEntityTags -> ChangeTags 2013-01-31 12:41:29 -05:00