Commit Graph

3505 Commits

Author SHA1 Message Date
John Firebaugh
1cfeba3da4 Don't draw offscreen vertices (fixes #1494) 2013-05-16 15:28:50 -07:00
John Firebaugh
fdc5824c5a Simplify 2013-05-16 15:28:50 -07:00
Saman Bemel-Benrud
bf982c5c9d fixed the width rules for add tag button. 2013-05-16 17:53:39 -04:00
Saman Bemel-Benrud
0e2c7c4b3e animate transitions for translate UI. 2013-05-16 00:40:43 -04:00
Saman Bemel-Benrud
d9a54008c7 fixed broken sprite. 2013-05-15 23:59:28 -04:00
Saman Bemel-Benrud
8a83aca9f8 Merge pull request #1490 from systemed/design-cleanup
Design cleanup
2013-05-15 20:43:51 -07:00
Saman Bemel-Benrud
c27da981e0 merging in master 2013-05-15 23:36:06 -04:00
Saman Bemel-Benrud
b17fd80617 resolve cnflic 2013-05-15 23:35:17 -04:00
John Firebaugh
4de0eada5f Merge pull request #1486 from systemed/checkboxes
styles for check-boxes. Closes #1297
2013-05-15 15:36:42 -07:00
John Firebaugh
2045d884c6 Set projection precision to 0
Might fix #1270
2013-05-15 15:35:54 -07:00
Saman Bemel-Benrud
aa446c074a better placeholder text / proper translation 2013-05-15 17:31:16 -04:00
Saman Bemel-Benrud
d8308cbb6c icon+tooltip for 'report a bug' link in footer 2013-05-15 17:15:49 -04:00
Saman Bemel-Benrud
c1bee88d8a adding bug to sprite. 2013-05-15 17:09:56 -04:00
Saman Bemel-Benrud
8159f075e9 backtracking on changes to about section. 2013-05-15 17:08:04 -04:00
Saman Bemel-Benrud
6ecbf3778f cleanup / polish new changes 2013-05-15 16:57:04 -04:00
Saman Bemel-Benrud
be933a72cb style cleanup + fleshed out translate UI 2013-05-15 16:15:42 -04:00
Saman Bemel-Benrud
6423455c66 starting to add basic translate ui adjustments. 2013-05-15 14:23:30 -04:00
Saman Bemel-Benrud
a88deef839 adding translate icon to sprite + css. 2013-05-15 14:19:56 -04:00
Saman Bemel-Benrud
0bdea49ffb minor cosmetic + ui improvements. 2013-05-15 14:08:25 -04:00
Saman Bemel-Benrud
e97a957e0a remove left border from modal header button. 2013-05-15 13:19:18 -04:00
Saman Bemel-Benrud
c4f4ee1313 fixed typo. 2013-05-15 13:00:00 -04:00
John Firebaugh
6075367015 Don't store unused parts of OSM XML 2013-05-14 20:47:58 -07:00
John Firebaugh
d238e4eaeb Convert Tail to a behavior
This avoids an extra mousemove listener in base modes.
2013-05-14 17:51:24 -07:00
John Firebaugh
5b69387ea0 Fix unknown entity error on delete 2013-05-14 17:23:06 -07:00
John Firebaugh
6431fca8a3 Fix area caching (fixes #1485) 2013-05-14 16:52:02 -07:00
Saman Bemel-Benrud
9e8ae25339 styles for check-boxes. Closes #1297 2013-05-14 15:33:24 -04:00
John Firebaugh
271ddace64 Revert "prevent accidental drags"
Not sure this helps a whole lot, and it requires a mousemove listener.

This reverts commit b7760e8747.
2013-05-14 09:33:27 -07:00
John Firebaugh
51cb9af907 Cache area 2013-05-13 22:46:29 -07:00
John Firebaugh
544c493eba Cache isIntersection 2013-05-13 22:40:43 -07:00
John Firebaugh
afc8f109e8 Render areas in one pass 2013-05-13 22:28:24 -07:00
John Firebaugh
29f4006526 Set pattern only on enter 2013-05-13 21:50:32 -07:00
John Firebaugh
878a4c0074 Don't need member tags for area strokes
Member tags are for multipolygon members, and multipolygon
member strokes are rendered by iD.svg.Lines.
2013-05-13 21:45:26 -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
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
ba08ba6109 Fix tests 2013-05-13 13:07:30 -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
feed896baa Remove unnecessary pseudo-selector
This was causing a hugely expensive style recalculation
on map mouseover/exit.
2013-05-13 09:49:18 -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