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
bb8e91da31
Eliminate context dependency
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
16e05fd657
Revert "Don't use :active pseudo-class"
...
Now seeing this cause poor pan performance.
This reverts commit 9fafd6b56a .
2013-05-13 14:16:14 -07:00
John Firebaugh
1a6a9b5b9e
Better way of doing hover suppression
2013-05-13 12:53:03 -07:00
John Firebaugh
21a51be56a
Only redraw vertices when selection changes
...
Fixes #1395
2013-05-13 12:53:03 -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
1455c5e551
Use entity ID selectors in more places
2013-05-13 12:29:29 -07:00
John Firebaugh
07fb94fee2
Fix node dragging
2013-05-13 12:27:20 -07:00
John Firebaugh
fcafce7517
Really fix area drawing
2013-05-13 12:19:51 -07:00
John Firebaugh
a7bc5d367b
Fix area drawing
2013-05-13 10:29:31 -07:00
John Firebaugh
9fafd6b56a
Don't use :active pseudo-class
...
It's slow (500 ms recalculate style vs 1ms).
2013-05-13 09:49:29 -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
63321b7bec
Clean up and simplify iD.svg.Areas
2013-05-13 09:37:00 -07:00
John Firebaugh
1823f2619f
Clean up and simplify iD.svg.Lines
2013-05-13 09:37:00 -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
John Firebaugh
578224bd63
Optimize hover behavior
...
Add entity IDs to the element class list, so that specific
elements can be selected by ID rather than needing `filter`.
2013-05-12 09:40:34 -07:00
John Firebaugh
2c631c6a0f
Remove unused
2013-05-12 09:40:34 -07:00
John Firebaugh
c829cbb463
Cleanup
2013-05-11 13:13:06 -07:00
John Firebaugh
228dfbe993
Add URL flag for translate3d
2013-05-10 17:43:53 -07:00
John Firebaugh
ec12d2100c
Bump version
2013-05-10 11:17:32 -07:00
John Firebaugh
72bcd94815
Force a positive-length path for menu background ( fixes #1305 )
2013-05-09 22:06:35 -07:00
John Firebaugh
1641f38632
Use context.mouse()
2013-05-09 21:55:05 -07:00
John Firebaugh
bb487ba0ee
Use fastMouse
2013-05-09 21:55:05 -07:00
John Firebaugh
1b72bba425
Workaround Opera SVG event dispatch bug
...
Opera will not dispatch mouse events to an absolutely
positioned SVG element:
http://bl.ocks.org/jfirebaugh/6fbfbd922552bf776c16
We need layers to be absolutely positioned in order to
obtain the correct positioning and z-order simultaneously.
Therefore we must wrap the SVG in a div and absolutely
position that instead.
Fixes #1416 .
2013-05-09 14:50:51 -07:00
John Firebaugh
79ae9346e7
Simplify layer structure
...
Also, always give SVG elements an explicit size -- seems
to be necessary for Firefox to render them correctly.
Fixes #1436 .
2013-05-08 13:10:55 -07:00
Tom MacWright
b73028029e
Remember background opacity setting. Fixes #967
2013-05-08 11:45:26 -04:00
Ansis Brammanis
58a038b553
fix textarea field
2013-05-08 11:00:45 -04:00
Tom MacWright
d0f5fc4637
Bump osm-auth to 0.2.1 with ohauth update
2013-05-08 10:42:26 -04:00
John Firebaugh
09c7a7833c
Fix #1433
2013-05-07 19:25:18 -07: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
Tom MacWright
08dca79f9e
Translate "Okay" in confirm dialogs
2013-05-07 15:31:20 -04:00
Tom MacWright
044bd937a7
Make success UI translatable. Fixes #1425
2013-05-07 15:28:34 -04:00
Tom MacWright
fc8ae64890
Make intro phases translatable. Fixes #1411 .
2013-05-07 15:04:37 -04:00
John Firebaugh
606f31c40f
Version 1.0.0
2013-05-06 12:29:50 -07:00
John Firebaugh
a540759a8e
Manually apply d3 clipExtent fix ( fixes #1406 )
2013-05-04 11:26:50 -07:00
John Firebaugh
22249c40fa
Configurable locale
2013-05-03 13:32:28 -07:00
Ansis Brammanis
56eb281c4b
fix node dragging
2013-05-02 13:31:57 -04:00
Ansis Brammanis
b0abe207ed
Revert "save to localstorage more frequently, fixes #1345 "
...
This reverts commit 56413563c3 .
2013-05-02 11:54:14 -04:00
Ansis Brammanis
56413563c3
save to localstorage more frequently, fixes #1345
2013-05-01 15:19:50 -04:00
John Firebaugh
d247962324
Handle incomplete relations in simpleMultipolygonOuterMember
2013-05-01 10:28:40 -07:00
John Firebaugh
786c2ab540
Cache transform status
2013-05-01 09:44:49 -07:00
Ansis Brammanis
5ded5fca4e
added support for oneway=1 and oneway=-1
...
fixes #1400
2013-05-01 11:10:02 -04:00
John Firebaugh
31b3f2887a
Merge branch 'preset-list'
2013-04-29 14:50:54 -07:00
John Firebaugh
13d7144298
Remove preset list limit, fix insertBox
2013-04-29 14:48:25 -07:00
John Firebaugh
7f3d0c94c7
detectedLocale can be undefined
2013-04-29 13:13:15 -07:00