├── .gitignore ├── .npmignore ├── LICENSE ├── README.md ├── index.js ├── package.json ├── src └── foo.js └── test └── foo-test.js /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | build/ 3 | node_modules 4 | npm-debug.log 5 | -------------------------------------------------------------------------------- /.npmignore: -------------------------------------------------------------------------------- 1 | build/*.zip 2 | test/ 3 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Copyright {YEAR}, {OWNER} 2 | All rights reserved. 3 | 4 | Redistribution and use in source and binary forms, with or without modification, 5 | are permitted provided that the following conditions are met: 6 | 7 | * Redistributions of source code must retain the above copyright notice, this 8 | list of conditions and the following disclaimer. 9 | 10 | * Redistributions in binary form must reproduce the above copyright notice, 11 | this list of conditions and the following disclaimer in the documentation 12 | and/or other materials provided with the distribution. 13 | 14 | * Neither the name of the author nor the names of contributors may be used to 15 | endorse or promote products derived from this software without specific prior 16 | written permission. 17 | 18 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 19 | ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 20 | WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 21 | DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR 22 | ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 23 | (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 24 | LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON 25 | ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 26 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 27 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # d3-isolines-3d 2 | 3 | d3 plugin for visualising 3D isolines with CSS3 transforms. 4 | 5 | This repo is still an empty d3 template, so don't try to download and install it. 6 | 7 | Check a demo about what will it do [here](http://digenti.jorditost.com/dem/topo/). 8 | 9 | Inspired by this [Mapbox Mars](https://www.mapbox.com/bites/00102/) visualization. 10 | 11 | ## Installing 12 | 13 | If you use NPM, `npm install d3-isolines-3d`. Otherwise, download the [latest release](https://github.com/jorditost/d3-isolines-3d/releases/latest). 14 | 15 | 22 | -------------------------------------------------------------------------------- /index.js: -------------------------------------------------------------------------------- 1 | export {default as foo} from "./src/foo"; 2 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "d3-foo", 3 | "version": "0.0.1", 4 | "description": "{DESCRIPTION}", 5 | "keywords": [ 6 | "d3" 7 | ], 8 | "license": "BSD-3-Clause", 9 | "main": "build/d3-foo.js", 10 | "jsnext:main": "index", 11 | "homepage": "https://github.com/{USERNAME}/d3-foo", 12 | "repository": { 13 | "type": "git", 14 | "url": "https://github.com/{USERNAME}/d3-foo.git" 15 | }, 16 | "scripts": { 17 | "pretest": "rm -rf build && mkdir build && json2module package.json > build/package.js && rollup -f umd -n d3_foo -o build/d3-foo.js -- index.js", 18 | "test": "tape 'test/**/*-test.js'", 19 | "prepublish": "npm run test && uglifyjs build/d3-foo.js -c -m -o build/d3-foo.min.js", 20 | "postpublish": "zip -j build/d3-foo.zip -- LICENSE README.md build/d3-foo.js build/d3-foo.min.js" 21 | }, 22 | "devDependencies": { 23 | "json2module": "0.0", 24 | "rollup": "0.25", 25 | "tape": "4", 26 | "uglify-js": "2" 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /src/foo.js: -------------------------------------------------------------------------------- 1 | export default function() { 2 | return 42; 3 | }; 4 | -------------------------------------------------------------------------------- /test/foo-test.js: -------------------------------------------------------------------------------- 1 | var tape = require("tape"), 2 | foo = require("../"); 3 | 4 | tape("foo() returns the answer to the ultimate question of life, the universe, and everything.", function(test) { 5 | test.equal(foo.foo(), 42); 6 | test.end(); 7 | }); 8 | --------------------------------------------------------------------------------