https://github.com/ldd/tech-tree-js
Generate tech trees using d3.js
https://github.com/ldd/tech-tree-js
javascript tech-tree tech-tree-js
Last synced: about 1 year ago
JSON representation
Generate tech trees using d3.js
- Host: GitHub
- URL: https://github.com/ldd/tech-tree-js
- Owner: ldd
- License: mit
- Created: 2016-03-23T15:16:39.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2020-04-04T06:45:09.000Z (about 6 years ago)
- Last Synced: 2025-02-28T02:10:08.849Z (over 1 year ago)
- Topics: javascript, tech-tree, tech-tree-js
- Language: JavaScript
- Homepage:
- Size: 875 KB
- Stars: 24
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
tech-tree-js
===

# Update
If you use react, consider taking a look at my library [react-tech-tree](https://github.com/ldd/react-tech-tree). It has support for tooltips, styling, etc.
# Demo
Please check out the demo by visiting [https://ldd.github.io/tech-tree-js](https://ldd.github.io/tech-tree-js)

## Features
- use a TexturePacker spritesheet or individual images
- horizontal, vertical and even radial tech trees
- multiple parents for a single technology
## Usage
### in the browser
Download the [minified file](dist/js/techtree.min.js.map) and optinally, the [source map](dist/js/techtree.min.js.map). Include the minified file and the dependencies in your html file
```
```
## Building and running
To build, be sure you have [```node```](http://nodejs.org) and ```npm``` installed.
Ideally, you should also have ```gulp``` installed globally.
Clone the directory using git:
git clone https://github.com/ldd/techtreejs
Install dependencies:
npm install
Build:
gulp
Run a webserver
gulp serve
Then open a browser and go to [localhost:8000](http://localhost:8000) to see the site.
Art used
===
Art assets used under the [CC-BY 3.0 License](https://creativecommons.org/licenses/by/3.0/)
- J. W. Bjerk (eleazzaar) -- www.jwbjerk.com/art -- find this and other open art at: [http://opengameart.org](http://opengameart.org)
- Henrique Lazarini -- [ails.deviantart.com](ails.deviantart.com)
Software libraries used
===
Libraries used under the [MIT License](http://www.opensource.org/licenses/mit-license.php)
- d3
- saveSvgAsPng
Copyright (C) 2017 ldd