Граф коммитов

15 Коммитов

Автор SHA1 Сообщение Дата
Mike Bostock 84a6255236 Checkpoint example cleanup. 2012-10-11 16:34:17 -07:00
Mike Bostock d3f855ae01 Rename d3.v3.js to d3.js.
We'll still use the major-versioned name file for d3js.org, but this is simpler.
2012-10-05 18:46:05 -07:00
Kristofer Monisit 6b76d014bd Follow coding conventions 2012-04-06 18:42:22 +08:00
Kristofer Monisit 02764fd2f3 Bring brush examples up-to-date 2012-04-06 10:29:02 +08:00
Mike Bostock 380a2f4eb6 Merge branch 'decorative-brush-resizers' into v2.8.0 2012-02-19 13:24:57 -08:00
Mike Bostock 3081dd45ef Consolidate everything into d3.v2.js.
Rather than producing separate files for each module, the default build now
produces a single file. This should encourage better page-load performance as
the files were relatively small. Also, it's easier to deal with only one file
rather than many, especially if you're not quite sure what the dependencies are.
You may still create minimized builds, if you don't want every feature.

This commit also demotes the chart components to the examples directory, rather
than keeping them as part of the core library. As always, D3 is not a charting
library, and these were ever only intended to serve as examples.
2012-02-18 14:04:01 -08:00
Mike Bostock 79708d8d2c Show or hide resizers automatically.
The brush component now hides the resizers when empty, rather than requiring you
to do this in CSS. In addition, the brush component also temporarily overrides
the body's cursor style, so that the cursor doesn't flicker when dragging.
2012-02-14 22:07:57 -08:00
Mike Bostock 50bf5d3e38 Allow decorative brush resizers.
The brush component now allows you to add decorative elements to serve as brush
resizers, while keeping the default behavior of a few invisible pixels on the
edge of the extent. Any element you add to ".resize" containers can serve as
visible handles for the brush.

This commit also fixes two small bugs with the brush component. First, we now
track the offset between the extent edge and the mouse, rather than immediately
jumping the extent edge to the mouse position; this was barely noticeable
previously due to the resizers being so thin, but it is very noticeable with
large resizers. Second, the default behavior for the SPACE key is not prevented
whilst dragging.
2012-02-14 20:19:31 -08:00
Jason Davies 5a87998694 Examples: namespaces are optional as of v2.6.0. 2011-11-23 22:48:13 +00:00
Mike Bostock 532bf71766 Brushing for ordinal scales.
Since the ordinal scale's domain is not continuous, the brush extent is reported
in the range rather than in the domain for ordinal scales. We'll leave it to the
caller to interpret this as desired.
2011-11-23 12:30:49 -08:00
Mike Bostock af5fccdca1 Use inclusive bounds for brush examples. 2011-11-04 19:42:59 -07:00
Jason Davies 6651c1785a Remove stray global in example. 2011-11-02 12:32:50 +00:00
Mike Bostock 6e1cad402d Brush refinements.
The brush component now reports brushstart and brushend events at the start and
end of a brushing gesture, which is useful for some types of interaction. You
can now set the brush extent programmatically, as well. Note, however, that
you'll probably want to redraw the brush after setting the extent.
2011-11-01 16:53:09 -07:00
Mike Bostock a475cd5e5c Query the brush selection.
You can now query the brush for its selection. This commit also includes a new
d3.random.normal for generating random numbers with a normal distribution. This
is useful for jittering points for display.
2011-11-01 13:30:58 -07:00
Mike Bostock e3d59bd581 First cut at a brush component.
The d3.svg.brush component allows one- or two-dimensional rectangular brushing.
A future commit will allow the brushed region to be resized by grabbing an edge,
and also provide some way of reporting the selection (duh)!
2011-10-31 16:59:17 -07:00