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
525d37c647
Preset#matchTags -> Preset#matchScore
2013-05-13 17:48:18 -07:00
John Firebaugh
9495f8f1c0
Optimize area rendering
...
Use iD.svg.Path for caching, and teach iD.svg.Path to
round coordinates.
2013-05-13 17:48:18 -07:00
John Firebaugh
ba08ba6109
Fix tests
2013-05-13 13:07:30 -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
70e5411114
Optimize vertex rendering
...
* Cache icon
* Append rather than insert
* Do fewer things on update
* Don't create a fill unless needed
* Don't apply tag and member classes (never used)
* Drop down to raw setAttribute (d3 is slow :trollface:)
2013-05-13 09:37:48 -07:00
John Firebaugh
6060e886cb
Reduce calls to iD.svg.TagClasses
...
For fills and shadows, style changes can happen only when
a new version of the feature is produced. If we include a
version number in the key, we need only call TagClasses on
the enter selection.
We cannot apply the same optimization for strokes, since
stroke style can depend on the tags of parent relations
as well.
2013-05-13 09:37:48 -07:00
John Firebaugh
0ae54abdcc
Extract iD.actions.DiscardTags
2013-05-13 09:26:41 -07:00
John Firebaugh
a53d5cbb44
Optimize label hover
...
Add entity IDs to the element class list, so that specific
elements can be selected by ID rather than needing `filter`.
2013-05-12 11:47:48 -07:00
Tom MacWright
e434cab107
Basic tests for padByMeters
2013-05-09 12:25:38 -04:00
John Firebaugh
c7dedcb5ba
Fix test
2013-05-08 13:28:40 -07:00
Tom MacWright
d585fb1ceb
Test another corner case in geo
2013-05-08 09:12:16 -04:00
Tom MacWright
cadd50a7d5
Test iD.util.editDistance
2013-05-08 09:09:42 -04:00
John Firebaugh
08949d2fe9
Redo iD.geo.chooseIndex
...
It now calculates proper orthogonal projections and finds
the minimal one. Rename it iD.geo.chooseEdge and minimize
its coupling to context.
This version also copes with 0- and 1-node ways.
Fixes #1428 .
2013-05-07 18:35:45 -07:00
John Firebaugh
4ffaba1def
Prefer to keep existing ways when joining ( fixes #1424 )
2013-05-07 12:34:04 -07:00
John Firebaugh
d247962324
Handle incomplete relations in simpleMultipolygonOuterMember
2013-05-01 10:28:40 -07:00
John Firebaugh
6941d1914b
Perfect oneway markers
2013-04-26 17:33:01 -07:00
John Firebaugh
fdd49233b1
Avoid recomputing geometry in an inner loop
2013-04-25 11:27:53 -07:00
Ansis Brammanis
2fa8ca174f
add test case for stale tree bug, a0e8292
2013-04-24 19:41:23 -04:00
John Firebaugh
c50c3121d8
Make Graph#entity strict
...
Use Graph#hasEntity for the previous behavior.
2013-04-24 09:27:37 -07:00
John Firebaugh
78aee5b6aa
Fix tests
2013-04-23 20:09:36 -07:00
John Firebaugh
765fedef15
Omit changeset comment if empty ( fixes #1360 )
2013-04-22 12:09:22 -07:00
John Firebaugh
c8dcba31ad
Auto-zoom to entity specified by id param
2013-04-18 14:24:10 -07:00
Ansis Brammanis
c6200931e1
update tests for iD.Difference fix
2013-04-18 17:02:19 -04:00
John Firebaugh
dca9bec450
Move Connection to core
2013-04-17 17:35:34 -07:00
John Firebaugh
a63e17ef15
Remove context dependency from Connection
2013-04-17 17:32:48 -07:00
John Firebaugh
a0edf68cbf
URL, not Url
2013-04-17 17:25:04 -07:00
John Firebaugh
f4d9ec23c7
Fix tests
2013-04-17 16:57:46 -07:00
John Firebaugh
77ce20c8c1
Add configurable image path
2013-04-16 17:20:21 -07:00
John Firebaugh
d8e58c62ff
Fix tests
2013-04-15 16:33:06 -07:00
John Firebaugh
94e2c8d8d6
Prevent duplicate consecutive nodes ( #1296 )
2013-04-12 10:55:53 -04: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
872b148bc0
Add access field ( #934 )
2013-04-06 17:55:53 -07:00
John Firebaugh
05c659bdd7
Render oneway arrows for junction=roundabout ( fixes #1255 )
2013-04-05 12:27:36 -07:00
John Firebaugh
e950042922
Fix cursors, add tests
2013-04-05 11:57:13 -07:00
Ansis Brammanis
2b13de1e3f
fix and add tests
2013-04-05 12:30:36 -04:00
Ansis Brammanis
a997dbb3cc
Merge branch 'master' of github.com:systemed/iD into create-multipolygon
2013-04-04 16:39:00 -04:00
Ansis Brammanis
8470090d7c
add multipolygon creation tests
2013-04-03 15:08:03 -04:00
John Firebaugh
fb16dc8af6
Custom d3 3.1 build ( fixes #1232 )
2013-04-02 15:00:32 -07:00
Ansis Brammanis
cf5eb8a1c9
fix tests
2013-04-02 13:31:08 -04:00
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
7100054707
Use preset names in commit dialog
2013-04-01 08:33:07 -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
Tom MacWright
0e104431fa
Fix references to iD.OAuth
2013-03-28 17:04:35 -04:00
John Firebaugh
f7fb12be76
Fix #1120 , inconsistent undo for line/area drawing
...
Gulp!
2013-03-27 16:25:10 -07:00
Tom MacWright
b59f28424c
Translatable documentation, Fixes #1108
...
* Adds Marked
* Fixes a global leak in toGeoJSON
* Removes marked from package.json
* Adds documentation to core.yaml
* Removes stray console.log from tests
2013-03-27 14:34:34 -04:00