Permalink
Browse files

Checkpoint 4.0 branch.

0 parents commit d030eee80e9102e46e411688a69b7f8168345bf9 @mbostock mbostock committed Jan 2, 2016
Showing with 373 additions and 0 deletions.
  1. +5 −0 .gitignore
  2. +3 −0 .npmignore
  3. +27 −0 LICENSE
  4. +17 −0 README.md
  5. +13 −0 d3.sublime-project
  6. +255 −0 index.js
  7. +44 −0 package.json
  8. +9 −0 rollup.config.js
@@ -0,0 +1,5 @@
+*.sublime-workspace
+.DS_Store
+build/
+node_modules
+npm-debug.log
@@ -0,0 +1,3 @@
+*.sublime-*
+build/*.zip
+test/
@@ -0,0 +1,27 @@
+Copyright 2010-2016 Mike Bostock
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without modification,
+are permitted provided that the following conditions are met:
+
+* Redistributions of source code must retain the above copyright notice, this
+ list of conditions and the following disclaimer.
+
+* Redistributions in binary form must reproduce the above copyright notice,
+ this list of conditions and the following disclaimer in the documentation
+ and/or other materials provided with the distribution.
+
+* Neither the name of the author nor the names of contributors may be used to
+ endorse or promote products derived from this software without specific prior
+ written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
+ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
+ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
+ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
@@ -0,0 +1,17 @@
+# d3
+
+This branch contains the prerelease of D3 4.0. This API is unstable and may change at any point prior to the release!
+
+…
+
+## Installing
+
+If you use NPM, `npm install d3`. Otherwise, download the [latest release](https://github.com/mbostock/d3/releases/latest). The released bundle supports AMD, CommonJS, and vanilla environments. Create a custom build using [Rollup](https://github.com/rollup/rollup) or your preferred bundler. You can also load directly from [d3js.org](https://d3js.org):
+
+```html
+<script src="https://d3js.org/d3.v4pre.min.js"></script>
+```
+
+## API Reference
+
+…
@@ -0,0 +1,13 @@
+{
+ "folders": [
+ {
+ "path": ".",
+ "file_exclude_patterns": [
+ "*.sublime-workspace"
+ ],
+ "folder_exclude_patterns": [
+ "build"
+ ]
+ }
+ ]
+}
@@ -0,0 +1,255 @@
+export {version} from "./package.json";
+
+import {
+ bisect,
+ bisectRight,
+ bisectLeft,
+ histogram,
+ thresholdFreedmanDiaconis,
+ thresholdScott,
+ thresholdSturges
+} from "d3-array";
+
+bisect.right = bisectRight;
+bisect.left = bisectLeft;
+
+histogram.thresholdFreedmanDiaconis = thresholdFreedmanDiaconis;
+histogram.thresholdScott = thresholdScott;
+histogram.thresholdSturges = thresholdSturges;
+
+export {
+ bisect,
+ ascending,
+ bisector,
+ descending,
+ deviation,
+ entries,
+ extent,
+ histogram,
+ keys,
+ map,
+ max,
+ mean,
+ median,
+ merge,
+ min,
+ nest,
+ pairs,
+ permute,
+ quantile,
+ range,
+ scan,
+ set,
+ shuffle,
+ sum,
+ ticks,
+ transpose,
+ values,
+ variance,
+ zip
+} from "d3-array";
+
+export {
+ bisect,
+ ascending,
+ bisector,
+ descending,
+ deviation,
+ entries,
+ extent,
+ histogram,
+ keys,
+ map,
+ max,
+ mean,
+ median,
+ merge,
+ min,
+ nest,
+ pairs,
+ permute,
+ quantile,
+ range,
+ scan,
+ set,
+ shuffle,
+ sum,
+ ticks,
+ transpose,
+ values,
+ variance,
+ zip
+} from "d3-array";
+
+import {
+ uniform as randomUniform,
+ normal as randomNormal,
+ logNormal as randomLogNormal,
+ bates as randomBates,
+ irwinHall as randomIrwinHall,
+ exponential as randomExponential
+} from "d3-random";
+
+export var random = {
+ uniform: randomUniform,
+ normal: randomNormal,
+ logNormal: randomLogNormal,
+ bates: randomBates,
+ irwinHall: randomIrwinHall,
+ exponential: randomExponential
+};
+
+import {
+ bind as easeBind,
+ linearIn,
+ linearOut,
+ linearInOut,
+ quadIn,
+ quadOut,
+ quadInOut,
+ cubicIn,
+ cubicOut,
+ cubicInOut,
+ polyIn,
+ polyOut,
+ polyInOut,
+ sinIn,
+ sinOut,
+ sinInOut,
+ expIn,
+ expOut,
+ expInOut,
+ circleIn,
+ circleOut,
+ circleInOut,
+ bounceIn,
+ bounceOut,
+ bounceInOut,
+ backIn,
+ backOut,
+ backInOut,
+ elasticIn,
+ elasticOut,
+ elasticInOut
+} from "d3-ease";
+
+export var ease = {
+ bind: easeBind,
+ linear: linearIn,
+ linearIn: linearIn,
+ linearOut: linearOut,
+ linearInOut: linearInOut,
+ quad: quadIn,
+ quadIn: quadIn,
+ quadOut: quadOut,
+ quadInOut: quadInOut,
+ cubic: cubicIn,
+ cubicIn: cubicIn,
+ cubicOut: cubicOut,
+ cubicInOut: cubicInOut,
+ poly: polyIn,
+ polyIn: polyIn,
+ polyOut: polyOut,
+ sin: sinIn,
+ sinIn: sinIn,
+ sinOut: sinOut,
+ sinInOut: sinInOut,
+ exp: expIn,
+ expIn: expIn,
+ expOut: expOut,
+ expInOut: expInOut,
+ circle: circleIn,
+ circleIn: circleIn,
+ circleOut: circleOut,
+ circleInOut: circleInOut,
+ bounce: bounceIn,
+ bounceIn: bounceIn,
+ bounceOut: bounceOut,
+ bounceInOut: bounceInOut,
+ back: backIn,
+ backIn: backIn,
+ backOut: backOut,
+ backInOut: backInOut,
+ elastic: elasticIn,
+ elasticIn: elasticIn,
+ elasticOut: elasticOut,
+ elasticInOut: elasticInOut
+};
+
+export {
+ path
+} from "d3-path";
+
+import {
+ arc,
+ area,
+ line,
+ pie,
+ radialArea,
+ radialLine,
+ symbol,
+ symbols,
+ circle,
+ cross,
+ diamond,
+ square,
+ star,
+ triangle,
+ wye,
+ basisClosed,
+ basisOpen,
+ basis,
+ bundle,
+ cardinalClosed,
+ cardinalOpen,
+ cardinal,
+ catmullRomClosed,
+ catmullRomOpen,
+ catmullRom,
+ linearClosed,
+ linear,
+ monotone,
+ natural,
+ step,
+ stepAfter,
+ stepBefore
+} from "d3-shape"
+
+area.radial = radialArea;
+line.radial = radialLine;
+
+export var shape = {
+ arc: arc,
+ area: area,
+ line: line,
+ pie: pie,
+ symbol: symbol,
+ symbols: symbols,
+ circle: circle,
+ cross: cross,
+ diamond: diamond,
+ square: square,
+ star: star,
+ triangle: triangle,
+ wye: wye
+};
+
+export var curve = {
+ basisClosed: basisClosed,
+ basisOpen: basisOpen,
+ basis: basis,
+ bundle: bundle,
+ cardinalClosed: cardinalClosed,
+ cardinalOpen: cardinalOpen,
+ cardinal: cardinal,
+ catmullRomClosed: catmullRomClosed,
+ catmullRomOpen: catmullRomOpen,
+ catmullRom: catmullRom,
+ linearClosed: linearClosed,
+ linear: linear,
+ monotone: monotone,
+ natural: natural,
+ step: step,
+ stepAfter: stepAfter,
+ stepBefore: stepBefore
+};
@@ -0,0 +1,44 @@
+{
+ "name": "d3",
+ "version": "4.0.0pre",
+ "description": "Data-Driven Documents",
+ "keywords": [
+ "dom",
+ "visualization",
+ "svg",
+ "animation",
+ "canvas"
+ ],
+ "homepage": "https://github.com/mbostock/d3",
+ "license": "BSD-3-Clause",
+ "author": {
+ "name": "Mike Bostock",
+ "url": "http://bost.ocks.org/mike"
+ },
+ "main": "build/d3.js",
+ "jsnext:main": "index",
+ "repository": {
+ "type": "git",
+ "url": "https://github.com/mbostock/d3.git"
+ },
+ "scripts": {
+ "pretest": "mkdir -p build && rollup -c -o build/d3.js -- index.js",
+ "test": "faucet `find test -name '*-test.js'`",
+ "prepublish": "npm run test && uglifyjs build/d3.js -c -m -o build/d3.min.js && rm -f build/d3.zip && zip -j build/d3.zip -- LICENSE README.md build/d3.js build/d3.min.js"
+ },
+ "devDependencies": {
+ "faucet": "0.0",
+ "rollup": "0.23",
+ "rollup-plugin-json": "2",
+ "rollup-plugin-npm": "1",
+ "tape": "4",
+ "uglify-js": "2"
+ },
+ "dependencies": {
+ "d3-array": "0.6.2",
+ "d3-ease": "0.3.1",
+ "d3-path": "0.1.3",
+ "d3-random": "0.1.1",
+ "d3-shape": "0.3.0"
+ }
+}
@@ -0,0 +1,9 @@
+import json from "rollup-plugin-json";
+import npm from "rollup-plugin-npm";
+
+export default {
+ plugins: [npm({jsnext: true}), json()],
+ moduleId: "d3",
+ moduleName: "d3",
+ format: "umd"
+};

0 comments on commit d030eee

Please sign in to comment.