2011-08-18 20:54:50 +04:00
|
|
|
# See the README for installation instructions.
|
|
|
|
|
|
|
|
JS_COMPILER = ./node_modules/uglify-js/bin/uglifyjs
|
|
|
|
JS_TESTER = ./node_modules/vows/bin/vows
|
2010-09-28 22:26:55 +04:00
|
|
|
|
2010-11-05 08:27:21 +03:00
|
|
|
all: \
|
2010-11-05 10:25:24 +03:00
|
|
|
d3.js \
|
|
|
|
d3.min.js \
|
2011-04-07 20:54:03 +04:00
|
|
|
d3.chart.js \
|
|
|
|
d3.chart.min.js \
|
2010-11-29 00:15:07 +03:00
|
|
|
d3.layout.js \
|
|
|
|
d3.layout.min.js \
|
2010-11-05 10:25:24 +03:00
|
|
|
d3.csv.js \
|
2010-11-06 02:23:53 +03:00
|
|
|
d3.csv.min.js \
|
2010-11-08 00:49:59 +03:00
|
|
|
d3.geo.js \
|
|
|
|
d3.geo.min.js \
|
|
|
|
d3.geom.js \
|
|
|
|
d3.geom.min.js \
|
2010-11-06 02:23:53 +03:00
|
|
|
d3.time.js \
|
|
|
|
d3.time.min.js
|
2010-09-28 22:26:55 +04:00
|
|
|
|
2011-08-24 00:09:39 +04:00
|
|
|
# Modify this rule to build your own custom release.
|
|
|
|
# Run `make d3.custom.min.js` to produce the minified version.
|
|
|
|
|
|
|
|
d3.custom.js: \
|
|
|
|
d3.js \
|
|
|
|
d3.geom.js \
|
|
|
|
d3.layout.js
|
2010-09-28 22:26:55 +04:00
|
|
|
|
2010-10-31 02:30:10 +04:00
|
|
|
.INTERMEDIATE d3.js: \
|
2011-01-11 03:02:43 +03:00
|
|
|
src/start.js \
|
2010-10-31 02:30:10 +04:00
|
|
|
d3.core.js \
|
|
|
|
d3.scale.js \
|
2011-01-05 22:35:39 +03:00
|
|
|
d3.svg.js \
|
2011-08-23 23:47:46 +04:00
|
|
|
d3.behavior.js \
|
2011-01-05 22:35:39 +03:00
|
|
|
src/end.js
|
2010-10-31 02:30:10 +04:00
|
|
|
|
|
|
|
d3.core.js: \
|
|
|
|
src/core/core.js \
|
|
|
|
src/core/date.js \
|
|
|
|
src/core/object.js \
|
|
|
|
src/core/array.js \
|
2011-08-25 04:46:10 +04:00
|
|
|
src/core/this.js \
|
2010-11-28 01:13:02 +03:00
|
|
|
src/core/functor.js \
|
2011-01-28 23:09:20 +03:00
|
|
|
src/core/rebind.js \
|
2010-11-29 00:15:07 +03:00
|
|
|
src/core/ascending.js \
|
|
|
|
src/core/descending.js \
|
2011-01-17 23:27:29 +03:00
|
|
|
src/core/min.js \
|
|
|
|
src/core/max.js \
|
2011-06-15 20:44:58 +04:00
|
|
|
src/core/sum.js \
|
2011-07-10 02:15:14 +04:00
|
|
|
src/core/quantile.js \
|
2011-05-27 12:36:36 +04:00
|
|
|
src/core/zip.js \
|
2011-05-22 04:26:29 +04:00
|
|
|
src/core/bisect.js \
|
2011-06-30 05:50:42 +04:00
|
|
|
src/core/first.js \
|
|
|
|
src/core/last.js \
|
2011-01-09 02:18:38 +03:00
|
|
|
src/core/nest.js \
|
|
|
|
src/core/keys.js \
|
|
|
|
src/core/values.js \
|
|
|
|
src/core/entries.js \
|
2011-05-12 21:25:05 +04:00
|
|
|
src/core/permute.js \
|
2010-11-27 21:35:11 +03:00
|
|
|
src/core/merge.js \
|
|
|
|
src/core/split.js \
|
2010-12-01 00:40:05 +03:00
|
|
|
src/core/collapse.js \
|
2010-10-31 02:30:10 +04:00
|
|
|
src/core/range.js \
|
2010-12-01 00:40:05 +03:00
|
|
|
src/core/requote.js \
|
2011-05-21 01:20:17 +04:00
|
|
|
src/core/round.js \
|
2010-12-10 02:04:24 +03:00
|
|
|
src/core/xhr.js \
|
2010-11-05 08:27:21 +03:00
|
|
|
src/core/text.js \
|
2010-11-03 01:27:45 +03:00
|
|
|
src/core/json.js \
|
2010-12-10 02:04:24 +03:00
|
|
|
src/core/html.js \
|
|
|
|
src/core/xml.js \
|
2010-10-31 02:30:10 +04:00
|
|
|
src/core/ns.js \
|
|
|
|
src/core/dispatch.js \
|
|
|
|
src/core/format.js \
|
|
|
|
src/core/ease.js \
|
|
|
|
src/core/event.js \
|
|
|
|
src/core/interpolate.js \
|
2011-05-08 10:20:02 +04:00
|
|
|
src/core/uninterpolate.js \
|
2010-10-31 02:30:10 +04:00
|
|
|
src/core/rgb.js \
|
|
|
|
src/core/hsl.js \
|
Prototype injection!
This changes the core implementation of selections and transitions to use
prototype injection rather than direct extension. This offers better performance
by eliminating per-instance overhead from closures and assignment. On browsers
that don't support prototype injection, we fall back to direct extension.
This commit isn't just about performance, though; the code ends up being a lot
cleaner and more separable if we force methods to rely solely on `this`, rather
than capturing surrounding variables with closures.
Most importantly, transitions are now "transparent", like selections. Rather
than opaque objects, transitions are now arrays of nodes, similar to selections.
The nodes are wrapped in an object that stores the delay and duration, which
means you can now inspect the computed delay and duration. (This was the
original motivation for this commit, and will allow chart components to be
call'd on transitions as well as selections.)
Transitions now support the `each` operator with one argument, which has the
same behavior as on selections. The `each` operator now passes a third argument
containing the group index (`j`). Transitions now also support a `tween`
operator, which is a generic mechanism for doing things during a transition; use
this in place of a "tick" event.
This commit also fixes a few bugs. The enter selection now supports the empty
operator; we can add other operators in the future more easily, if we so choose.
Transition's attr operator now supports namespaced attributes. Selection's
property operator no longer parses property namespaces.
2011-08-21 03:27:25 +04:00
|
|
|
src/core/select.js \
|
|
|
|
src/core/selectAll.js \
|
2010-10-31 02:30:10 +04:00
|
|
|
src/core/selection.js \
|
Prototype injection!
This changes the core implementation of selections and transitions to use
prototype injection rather than direct extension. This offers better performance
by eliminating per-instance overhead from closures and assignment. On browsers
that don't support prototype injection, we fall back to direct extension.
This commit isn't just about performance, though; the code ends up being a lot
cleaner and more separable if we force methods to rely solely on `this`, rather
than capturing surrounding variables with closures.
Most importantly, transitions are now "transparent", like selections. Rather
than opaque objects, transitions are now arrays of nodes, similar to selections.
The nodes are wrapped in an object that stores the delay and duration, which
means you can now inspect the computed delay and duration. (This was the
original motivation for this commit, and will allow chart components to be
call'd on transitions as well as selections.)
Transitions now support the `each` operator with one argument, which has the
same behavior as on selections. The `each` operator now passes a third argument
containing the group index (`j`). Transitions now also support a `tween`
operator, which is a generic mechanism for doing things during a transition; use
this in place of a "tick" event.
This commit also fixes a few bugs. The enter selection now supports the empty
operator; we can add other operators in the future more easily, if we so choose.
Transition's attr operator now supports namespaced attributes. Selection's
property operator no longer parses property namespaces.
2011-08-21 03:27:25 +04:00
|
|
|
src/core/selection-select.js \
|
|
|
|
src/core/selection-selectAll.js \
|
|
|
|
src/core/selection-attr.js \
|
|
|
|
src/core/selection-classed.js \
|
|
|
|
src/core/selection-style.js \
|
|
|
|
src/core/selection-property.js \
|
|
|
|
src/core/selection-text.js \
|
|
|
|
src/core/selection-html.js \
|
|
|
|
src/core/selection-append.js \
|
|
|
|
src/core/selection-insert.js \
|
|
|
|
src/core/selection-remove.js \
|
|
|
|
src/core/selection-data.js \
|
|
|
|
src/core/selection-enter.js \
|
|
|
|
src/core/selection-enter-select.js \
|
|
|
|
src/core/selection-filter.js \
|
|
|
|
src/core/selection-map.js \
|
|
|
|
src/core/selection-sort.js \
|
|
|
|
src/core/selection-on.js \
|
|
|
|
src/core/selection-each.js \
|
|
|
|
src/core/selection-call.js \
|
|
|
|
src/core/selection-empty.js \
|
|
|
|
src/core/selection-node.js \
|
|
|
|
src/core/selection-transition.js \
|
2010-10-31 02:30:10 +04:00
|
|
|
src/core/transition.js \
|
Prototype injection!
This changes the core implementation of selections and transitions to use
prototype injection rather than direct extension. This offers better performance
by eliminating per-instance overhead from closures and assignment. On browsers
that don't support prototype injection, we fall back to direct extension.
This commit isn't just about performance, though; the code ends up being a lot
cleaner and more separable if we force methods to rely solely on `this`, rather
than capturing surrounding variables with closures.
Most importantly, transitions are now "transparent", like selections. Rather
than opaque objects, transitions are now arrays of nodes, similar to selections.
The nodes are wrapped in an object that stores the delay and duration, which
means you can now inspect the computed delay and duration. (This was the
original motivation for this commit, and will allow chart components to be
call'd on transitions as well as selections.)
Transitions now support the `each` operator with one argument, which has the
same behavior as on selections. The `each` operator now passes a third argument
containing the group index (`j`). Transitions now also support a `tween`
operator, which is a generic mechanism for doing things during a transition; use
this in place of a "tick" event.
This commit also fixes a few bugs. The enter selection now supports the empty
operator; we can add other operators in the future more easily, if we so choose.
Transition's attr operator now supports namespaced attributes. Selection's
property operator no longer parses property namespaces.
2011-08-21 03:27:25 +04:00
|
|
|
src/core/transition-select.js \
|
|
|
|
src/core/transition-selectAll.js \
|
|
|
|
src/core/transition-attr.js \
|
|
|
|
src/core/transition-style.js \
|
|
|
|
src/core/transition-text.js \
|
|
|
|
src/core/transition-remove.js \
|
|
|
|
src/core/transition-delay.js \
|
|
|
|
src/core/transition-duration.js \
|
|
|
|
src/core/transition-each.js \
|
2011-08-25 04:46:10 +04:00
|
|
|
src/core/transition-transition.js \
|
2011-08-01 22:16:38 +04:00
|
|
|
src/core/timer.js \
|
|
|
|
src/core/noop.js
|
2010-10-31 02:30:10 +04:00
|
|
|
|
|
|
|
d3.scale.js: \
|
|
|
|
src/scale/scale.js \
|
2011-06-11 23:17:47 +04:00
|
|
|
src/scale/nice.js \
|
2010-10-31 02:30:10 +04:00
|
|
|
src/scale/linear.js \
|
2011-05-08 10:20:02 +04:00
|
|
|
src/scale/bilinear.js \
|
|
|
|
src/scale/polylinear.js \
|
2010-10-31 02:30:10 +04:00
|
|
|
src/scale/log.js \
|
|
|
|
src/scale/pow.js \
|
|
|
|
src/scale/sqrt.js \
|
|
|
|
src/scale/ordinal.js \
|
2011-01-03 21:30:36 +03:00
|
|
|
src/scale/category.js \
|
2011-01-25 22:31:54 +03:00
|
|
|
src/scale/quantile.js \
|
|
|
|
src/scale/quantize.js
|
2010-10-31 02:30:10 +04:00
|
|
|
|
|
|
|
d3.svg.js: \
|
|
|
|
src/svg/svg.js \
|
|
|
|
src/svg/arc.js \
|
|
|
|
src/svg/line.js \
|
2011-06-23 00:17:18 +04:00
|
|
|
src/svg/line-radial.js \
|
2010-11-05 10:11:34 +03:00
|
|
|
src/svg/area.js \
|
2011-06-24 07:49:33 +04:00
|
|
|
src/svg/area-radial.js \
|
2010-11-27 12:07:00 +03:00
|
|
|
src/svg/chord.js \
|
2011-04-14 10:13:06 +04:00
|
|
|
src/svg/diagonal.js \
|
2011-06-23 01:33:34 +04:00
|
|
|
src/svg/diagonal-radial.js \
|
2011-02-14 10:20:10 +03:00
|
|
|
src/svg/mouse.js \
|
2011-05-11 20:26:48 +04:00
|
|
|
src/svg/touches.js \
|
2011-08-23 23:02:12 +04:00
|
|
|
src/svg/symbol.js \
|
|
|
|
src/svg/axis.js
|
2010-10-31 02:30:10 +04:00
|
|
|
|
2011-02-12 00:00:41 +03:00
|
|
|
d3.behavior.js: \
|
|
|
|
src/behavior/behavior.js \
|
2011-08-18 23:21:47 +04:00
|
|
|
src/behavior/drag.js \
|
2011-08-23 23:47:46 +04:00
|
|
|
src/behavior/zoom.js
|
2011-02-12 00:00:41 +03:00
|
|
|
|
2011-04-07 20:54:03 +04:00
|
|
|
d3.chart.js: \
|
|
|
|
src/start.js \
|
|
|
|
src/chart/chart.js \
|
2011-04-14 01:31:53 +04:00
|
|
|
src/chart/box.js \
|
2011-04-07 20:54:03 +04:00
|
|
|
src/chart/bullet.js \
|
2011-05-21 12:10:16 +04:00
|
|
|
src/chart/horizon.js \
|
2011-04-24 13:18:03 +04:00
|
|
|
src/chart/qq.js \
|
2011-04-07 20:54:03 +04:00
|
|
|
src/end.js
|
|
|
|
|
2010-11-29 00:15:07 +03:00
|
|
|
d3.layout.js: \
|
2011-01-11 03:02:43 +03:00
|
|
|
src/start.js \
|
|
|
|
src/layout/layout.js \
|
2011-06-17 19:59:34 +04:00
|
|
|
src/layout/bundle.js \
|
2011-01-11 03:02:43 +03:00
|
|
|
src/layout/chord.js \
|
2011-03-04 02:43:57 +03:00
|
|
|
src/layout/force.js \
|
2011-03-12 21:27:05 +03:00
|
|
|
src/layout/partition.js \
|
2011-02-25 01:13:05 +03:00
|
|
|
src/layout/pie.js \
|
2011-01-17 23:27:29 +03:00
|
|
|
src/layout/stack.js \
|
2011-05-01 12:48:01 +04:00
|
|
|
src/layout/histogram.js \
|
2011-03-12 21:27:05 +03:00
|
|
|
src/layout/hierarchy.js \
|
2011-04-11 12:54:33 +04:00
|
|
|
src/layout/pack.js \
|
2011-04-11 13:50:34 +04:00
|
|
|
src/layout/cluster.js \
|
2011-04-10 13:46:13 +04:00
|
|
|
src/layout/tree.js \
|
2011-03-04 02:43:57 +03:00
|
|
|
src/layout/treemap.js \
|
2011-01-11 03:02:43 +03:00
|
|
|
src/end.js
|
2010-11-29 00:15:07 +03:00
|
|
|
|
2010-11-03 01:27:45 +03:00
|
|
|
d3.geo.js: \
|
2011-01-11 03:02:43 +03:00
|
|
|
src/start.js \
|
2010-11-05 10:25:24 +03:00
|
|
|
src/geo/geo.js \
|
2011-04-23 14:39:35 +04:00
|
|
|
src/geo/azimuthal.js \
|
2010-11-05 10:25:24 +03:00
|
|
|
src/geo/albers.js \
|
2010-11-10 01:45:02 +03:00
|
|
|
src/geo/mercator.js \
|
2011-01-05 22:35:39 +03:00
|
|
|
src/geo/path.js \
|
2011-02-12 06:42:52 +03:00
|
|
|
src/geo/bounds.js \
|
2011-01-11 03:02:43 +03:00
|
|
|
src/end.js
|
2010-11-03 01:27:45 +03:00
|
|
|
|
2010-11-05 08:27:21 +03:00
|
|
|
d3.csv.js: \
|
2011-01-11 03:02:43 +03:00
|
|
|
src/start.js \
|
2010-11-05 10:25:24 +03:00
|
|
|
src/csv/csv.js \
|
|
|
|
src/csv/parse.js \
|
2011-01-05 22:35:39 +03:00
|
|
|
src/csv/format.js \
|
2011-01-11 03:02:43 +03:00
|
|
|
src/end.js
|
2010-11-05 08:27:21 +03:00
|
|
|
|
2010-11-06 02:23:53 +03:00
|
|
|
d3.time.js: \
|
2011-01-11 03:02:43 +03:00
|
|
|
src/start.js \
|
2010-11-06 02:23:53 +03:00
|
|
|
src/time/time.js \
|
2011-01-05 22:35:39 +03:00
|
|
|
src/time/format.js \
|
2011-06-15 11:16:46 +04:00
|
|
|
src/time/format-utc.js \
|
|
|
|
src/time/format-iso.js \
|
2011-07-19 04:56:30 +04:00
|
|
|
src/time/range.js \
|
|
|
|
src/time/second.js \
|
|
|
|
src/time/seconds.js \
|
|
|
|
src/time/minute.js \
|
|
|
|
src/time/minutes.js \
|
|
|
|
src/time/hour.js \
|
|
|
|
src/time/hours.js \
|
|
|
|
src/time/day.js \
|
|
|
|
src/time/days.js \
|
|
|
|
src/time/week.js \
|
|
|
|
src/time/weeks.js \
|
|
|
|
src/time/month.js \
|
|
|
|
src/time/months.js \
|
|
|
|
src/time/year.js \
|
|
|
|
src/time/years.js \
|
2011-07-20 04:08:40 +04:00
|
|
|
src/time/scale.js \
|
2011-07-21 00:56:44 +04:00
|
|
|
src/time/scale-utc.js \
|
2011-01-11 03:02:43 +03:00
|
|
|
src/end.js
|
2010-11-06 02:23:53 +03:00
|
|
|
|
2010-11-08 00:49:59 +03:00
|
|
|
d3.geom.js: \
|
2011-01-11 03:02:43 +03:00
|
|
|
src/start.js \
|
2010-11-08 00:49:59 +03:00
|
|
|
src/geom/geom.js \
|
2010-12-07 07:27:25 +03:00
|
|
|
src/geom/contour.js \
|
2010-11-23 03:21:46 +03:00
|
|
|
src/geom/hull.js \
|
2010-11-08 08:09:59 +03:00
|
|
|
src/geom/polygon.js \
|
|
|
|
src/geom/voronoi.js \
|
2011-01-05 22:35:39 +03:00
|
|
|
src/geom/delaunay.js \
|
2011-01-18 01:55:50 +03:00
|
|
|
src/geom/quadtree.js \
|
2011-01-11 03:02:43 +03:00
|
|
|
src/end.js
|
2010-11-08 00:49:59 +03:00
|
|
|
|
2011-08-16 03:28:48 +04:00
|
|
|
test: all
|
2011-08-18 20:54:50 +04:00
|
|
|
@$(JS_TESTER)
|
2011-03-05 02:25:09 +03:00
|
|
|
|
2011-01-05 22:35:39 +03:00
|
|
|
%.min.js: %.js Makefile
|
2010-11-05 08:27:21 +03:00
|
|
|
@rm -f $@
|
2011-03-25 13:25:43 +03:00
|
|
|
$(JS_COMPILER) < $< > $@
|
2010-09-28 22:26:55 +04:00
|
|
|
|
2010-10-31 02:30:10 +04:00
|
|
|
d3.js d3%.js: Makefile
|
2010-11-05 08:27:21 +03:00
|
|
|
@rm -f $@
|
|
|
|
cat $(filter %.js,$^) > $@
|
|
|
|
@chmod a-w $@
|
2010-09-28 22:26:55 +04:00
|
|
|
|
|
|
|
clean:
|
2010-10-31 02:30:10 +04:00
|
|
|
rm -f d3*.js
|