Mike Bostock
b6b64946ce
Merge branch 'zoom-center' into 3.3
...
Conflicts:
src/behavior/zoom.js
2013-08-13 14:16:39 -07:00
Mike Bostock
d11205b4d9
Merge remote-tracking branch 'origin/geo-identity' into 3.3
2013-08-13 14:13:55 -07:00
Mike Bostock
b82d85ca3d
Merge branch 'scale-nice' into 3.3
2013-08-13 14:13:21 -07:00
Mike Bostock
5203dc132c
Merge branch 'xhr-beforesend' into 3.3
2013-08-13 14:12:43 -07:00
Mike Bostock
2fbae9680d
Merge branch 'zoom-events' into 3.3
2013-08-13 14:12:06 -07:00
Mike Bostock
f1e796a99f
Restructure state to shave a few bytes.
2013-08-13 11:00:38 -07:00
Mike Bostock
e7a1ff72a8
Only notify when extent changes.
...
This avoids unnecessary work and some infinite loops.
2013-08-13 10:07:51 -07:00
Mike Bostock
fb4f262440
Use the "brush" namespace for brush events.
2013-08-12 17:08:58 -07:00
Mike Bostock
9732e0c93e
No brushstart and brushend on immediate change.
2013-08-12 16:50:08 -07:00
Mike Bostock
f18298b8ae
Simplify.
2013-08-12 16:47:39 -07:00
Mike Bostock
7bf2524be3
Interrupt transition on brushstart, if any.
2013-08-12 16:39:23 -07:00
Mike Bostock
1a54808d8f
Fix copy-on-write on clear.
2013-08-12 16:35:17 -07:00
Mike Bostock
3a11f933ca
Dispatch brush events on redraw.
...
The brush can interpolate its extent automatically during a transition,
dispatching brush events to notify listeners of the changing extent.
2013-08-12 16:34:19 -07:00
Mike Bostock
76d52a2396
Add brush transitions. Fixes #1385 .
...
However, since the new extent is set to trigger the transition, this does not
provide interpolation of the extent in data-space, making it somewhat cumbersome
to perform live brush intersection during the transition.
2013-08-12 16:34:03 -07:00
Mike Bostock
e7e6c3a616
Fix #1410 - add selection.interrupt.
...
This also changes the imports so that it’s possible to build a version of D3
with selections but without transitions.
2013-08-12 16:33:20 -07:00
Mike Bostock
41bfffe63e
Add --ascii to uglifyjs. Related #1195 .
2013-08-12 08:17:45 -07:00
Mike Bostock
c7461b0de3
Add zoomstart and zoomend events. Fixes #1422 .
2013-08-09 21:09:43 -07:00
Mike Bostock
774a081c0d
More readable.
2013-08-09 20:52:03 -07:00
Mike Bostock
8e8fcbe6eb
Add test for beforesend listener.
2013-08-09 20:32:19 -07:00
Mike Bostock
9f59f949f3
Merge branch 'xhr-beforesend-event' of git://github.com/adnan-wahab/d3 into xhr-beforesend
2013-08-09 20:19:52 -07:00
Mike Bostock
1462c5f6df
Save two bytes.
2013-08-05 10:47:22 -07:00
Mike Bostock
84793153d5
Fix #1437 - add identity projection.
...
The identity projection is equivalent to setting path.projection(null), except
that you can apply post-projection features such as viewport clipping.
2013-08-05 10:44:59 -07:00
Mike Bostock
7169511d5b
Fix #1435 - use ten ticks by default.
...
This applies to linear.ticks and linear.tickFormat, and their equivalents on pow
and sqrt scales. In addition it changes the behavior of linear.nice() so that it
is equivalent to linear.nice(10) for consistency.
2013-08-02 15:03:24 -07:00
Mike Bostock
23ee2c08a6
Merge branch '3.2.8'
2013-08-01 07:37:51 -07:00
Mike Bostock
4c6b28d18f
Merge branch 'map-copy-constructor' into 3.2.8
2013-08-01 07:37:00 -07:00
Mike Bostock
b56349531c
Merge branch 'fix-zoom-touch' into 3.2.8
2013-08-01 07:36:26 -07:00
Mike Bostock
af85c4e497
Merge branch 'fix-degenerate-log-ticks' into 3.2.8
2013-08-01 07:36:02 -07:00
Mike Bostock
7f03c05c2d
Merge branch 'fix-sort-null' into 3.2.8
2013-08-01 07:35:38 -07:00
Mike Bostock
4530a2e526
Style tweak.
2013-08-01 07:33:51 -07:00
Mike Bostock
b32286cea7
Revert microoptimization of d3_number.
2013-08-01 07:31:53 -07:00
Mike Bostock
23904ccb70
Revert breakage of d3.{as,des}cending.
2013-08-01 07:30:31 -07:00
Mike Bostock
46472b1d67
Merge branch 'patch-3' of git://github.com/LeoDutra/d3 into micro-optimizations
...
Conflicts:
src/core/array.js
2013-08-01 07:29:32 -07:00
Mike Bostock
c234c58bbf
Merge branch 'patch-2' of git://github.com/LeoDutra/d3 into micro-optimizations
...
Conflicts:
src/arrays/set.js
2013-08-01 07:28:49 -07:00
Mike Bostock
e2a44099a5
Merge branch 'master' of git://github.com/LeoDutra/d3 into micro-optimizations
2013-08-01 07:27:59 -07:00
Jason Davies
43f439e34f
Minor optimisation.
2013-07-31 22:39:01 +01:00
Mike Bostock
a85b05e803
Fix dbltap detection.
2013-07-31 14:31:22 -07:00
Jason Davies
993017ff22
Add a few comments.
2013-07-31 21:28:41 +01:00
Mike Bostock
9192c11ba9
Fix #1431 - sort with null nodes.
2013-07-31 11:00:11 -07:00
Mike Bostock
c247e16261
Better test for automatic tick precision.
2013-07-31 10:40:07 -07:00
Leonardo Dutra
ab68440f2e
Optimized array.js
2013-07-29 17:27:08 -03:00
Leonardo Dutra
fe5b68d096
Optimized set.js
2013-07-29 17:25:05 -03:00
adnan
6d20d95c91
add beforesend event to xhr. fixes #1397
2013-07-29 10:24:53 -07:00
Leonardo Dutra
0befad2225
Optimized number.js
2013-07-24 18:39:27 -03:00
Leonardo Dutra
5cb34b8f5f
Optimized array.js
...
Less operators, vars and:
http://jsperf.com/array-constructor-vs-literal-modalities
2013-07-24 18:04:52 -03:00
Leonardo Dutra
1240174396
Optimized set.js
...
length cache, ++i faster operator.
2013-07-24 17:59:28 -03:00
Leonardo Dutra
1bec3a67b0
Update permute.js
...
Why? Less vars, less operators, and this difference:
http://jsperf.com/array-constructor-vs-literal-modalities
2013-07-24 17:51:35 -03:00
Leonardo Dutra
48f27ae5cf
Optimized descending.js
...
No need to repeat ">="... "===" is faster (same type comparison operator)
2013-07-24 16:01:18 -03:00
Leonardo Dutra
4a7e69772a
Optimized ascending.js
...
No need to repeat ">="
"a < b ? -1 : a > b ? 1 : 0" would be better, but I don't know if it would break logic.
2013-07-24 15:58:58 -03:00
Mike Bostock
0015231c07
Fix #1420 - regression with degenerate log ticks.
...
Commit 59554738
broke the check for a degenerate domain; this restores the
original check and adds a test to verify this behavior.
2013-07-24 14:13:12 -04:00
Jason Davies
120fb558a6
Fix issue with drag suppression for multitouch.
...
Due to the touchend listener being overwritten for every touchstart, two
touchstart events would result in d3_event_dragSuppress being called
twice, with only a single drag restore, meaning that a document's
user-select style could be lost.
This restructuring means that the first touchstart creates the closures
for subsequent touchstart, touchmove and touchend events. A nice
side-benefit is that fewer closures are created for multitouch.
2013-07-23 23:23:38 +01:00