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

12 Коммитов

Автор SHA1 Сообщение Дата
Yves Le Maout b5ddd2b07b Update to JSDom 1.0.0
To fix this issue : https://github.com/petkaantonov/bluebird/issues/291
2014-10-02 13:28:44 +02:00
Mike Bostock d7f2ce3a9a Fix global restore. 2014-01-09 14:03:03 -08:00
Mike Bostock 99ff885b96 Support AMD/RequireJS.
When d3.js is loaded, it now prefers the AMD define function or module.exports
if available; the global `d3` is only set if neither of these are available. A
side benefit of this change is that browserify, bower and component can now load
the D3 library directly rather than needing a custom definition.
2014-01-09 13:54:49 -08:00
Mike Bostock 822e0af79a Fix relative path. 2013-06-29 17:47:17 -07:00
Mike Bostock 91fb859400 Simplify loading without globals. 2013-06-27 09:46:35 -07:00
Mike Bostock 0991f3b010 Use captured references for document and window.
This avoids an inconsistency (discussed in #1044) when using D3 inside Node.js,
where D3 internally creates a JSDOM document during initialization, but then
subsequently depends on the current global document, which is not exposed. D3
now always refers to the global document at the time of initialization, and
does not depend on the current global document or window.
2013-01-31 15:11:40 -08:00
Mike Bostock 183060d40f Upgrade dependencies; remove Sizzle dependency. 2013-01-24 09:26:22 -08: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
Mike Bostock 4a01fb17e2 Fix index and package specification. 2012-03-29 22:00:15 -07:00
David Poncelow 7ac9a5db20 Add sizzle selector dependency to node module build. 2012-03-08 15:44:09 -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 3a4f45fc5c Add index.js for easier usage within Node.
This allows you to require("d3") with no additional dependencies, and without
polluting the global namespace. Fixes #475.
2012-02-09 09:09:23 -08:00