Commit Graph

323 Commits

Author SHA1 Message Date
Vladimir Agafonkin
fc92f34eab dry up code for CSS transforms 2014-01-08 19:55:27 +02:00
John Firebaugh
3f67b1e513 Adjust fix for #2040 2013-12-10 10:17:25 -05:00
Adam Solove
4294ed4561 Fix midpoint missing after undoing split. (#2040) 2013-12-09 20:49:54 -05:00
Vladimir Agafonkin
d2df161575 Fix trembling on zoom in
As you zoom in, the rounding error in translate was multiplied by scale
because it was applied post-translate (which was rounded). This seems
to fix the issue.
2013-11-26 12:51:23 -08:00
Vladimir Agafonkin
da3bf77c35 fix pan/zoom lags in Chrome before/after move
Previously, the surface switched between HW-accelerated and
non-accelerated state due to resetting transform property to ‘’ (while
translate3d triggers HW), which caused lags in Chrone
2013-11-26 11:21:09 -08:00
John Firebaugh
e382943f0d Use .low-zoom class rather than hard-coding z16 2013-11-01 11:17:49 -07:00
John Firebaugh
1e78ee5c87 Stricter jshint 2013-10-24 16:08:48 -07:00
John Firebaugh
8323c948a7 jshint fixes 2013-10-24 15:33:52 -07:00
John Firebaugh
f9eaed7fb9 Add clipping back 2013-10-21 16:04:59 -07:00
John Firebaugh
bd1fac9c48 Fix test failure 2013-10-21 16:04:59 -07:00
John Firebaugh
382bd2abd8 Use actual projection 2013-10-21 16:04:59 -07:00
John Firebaugh
22e453eae5 Use d3.geo.mercator.raw
This bypasses a number of features of D3's default projection
stream pipeline that are unnecessary:

* Antimeridian clipping
* Spherical rotation
* Resampling

This also disables viewport clipping of lines -- I'll add it
back in a separate step.
2013-10-21 16:04:59 -07:00
John Firebaugh
6a3d62e57c Fix tests 2013-08-28 11:01:16 -07:00
John Firebaugh
8a215cac81 Add "Continue" operation 2013-08-28 09:30:28 -07:00
John Firebaugh
f3c6f3eca4 Optimize use of iD.svg.Points.points 2013-08-26 15:54:58 -07:00
John Firebaugh
010c8c7d7d Reset fastMouse after changing dimensions
Fixes #1678
2013-08-12 13:09:53 -07:00
John Firebaugh
734d53e08b Refactor background in preparation for multiple overlays 2013-07-15 14:05:11 -07:00
John Firebaugh
bba761d8ea size -> dimensions
D3 3.2 adds selection.size, where size means "number
of selected elements".
2013-06-20 13:05:20 -07:00
John Firebaugh
0689ab7f71 Restore differenced point rendering (#569, #1604) 2013-06-18 16:23:02 -07:00
John Firebaugh
e6cc20efb5 Faster Feature List (fixes #1604) 2013-06-18 15:19:04 -07:00
John Firebaugh
d03402c6df Fix feature list 2013-06-17 16:15:13 -07:00
John Firebaugh
9190a25220 Show only visible features in list 2013-06-17 15:44:14 -07:00
John Firebaugh
d79b618947 Optimize feature list 2013-06-05 10:20:00 -07:00
John Firebaugh
1d7e168763 Don't need a separate 'select' event 2013-06-03 16:49:01 -07:00
John Firebaugh
da00413632 Fix zoom-to-feature annoyances
* Zoom to feature only if map parameter isn't also
  specified.
* Don't zoom too far in (>z20). Fixes #1511.
* Don't zoom too far out (<z16). Fixes #1522.
2013-05-24 21:47:49 -07:00
John Firebaugh
67d95595ba Points always need full re-render (#569) 2013-05-20 12:05:31 -07:00
John Firebaugh
1db99586c4 Render only new features when a data tile is loaded 2013-05-20 12:05:31 -07:00
John Firebaugh
5c9c865f12 Move flush to context 2013-05-18 09:20:57 -07:00
John Firebaugh
8e05ed271d Simplify 2013-05-17 16:43:40 -07:00
John Firebaugh
8b4ef90992 Revert "Add URL flag for translate3d"
This reverts commit 228dfbe993.
2013-05-17 16:37:21 -07:00
John Firebaugh
97d74b2846 Remove entity length condition
Rendering performance stalls before this limit anyway.
2013-05-17 16:30:54 -07:00
John Firebaugh
1cfeba3da4 Don't draw offscreen vertices (fixes #1494) 2013-05-16 15:28:50 -07:00
John Firebaugh
2045d884c6 Set projection precision to 0
Might fix #1270
2013-05-15 15:35:54 -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
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
21a51be56a Only redraw vertices when selection changes
Fixes #1395
2013-05-13 12:53:03 -07:00
John Firebaugh
fcafce7517 Really fix area drawing 2013-05-13 12:19:51 -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
228dfbe993 Add URL flag for translate3d 2013-05-10 17:43:53 -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
John Firebaugh
786c2ab540 Cache transform status 2013-05-01 09:44:49 -07:00
John Firebaugh
464b387040 Bail out of translate3d in Opera 2013-04-26 17:46:19 -07:00
John Firebaugh
99fe5f615d Use translate3d 2013-04-26 17:40:45 -07:00
John Firebaugh
62e53fc98b Transform supersurface on pan/zoom 2013-04-26 17:40:45 -07:00
John Firebaugh
14b79d068e Merge branch 'perfect-resampling'
Conflicts:
	js/id/renderer/map.js
2013-04-26 17:35:04 -07:00
John Firebaugh
6941d1914b Perfect oneway markers 2013-04-26 17:33:01 -07:00
John Firebaugh
86988a09a3 Fix vertex rendering 2013-04-25 15:43:16 -07:00