Git Product home page Git Product logo

tech-tree-js's Introduction

tech-tree-js

tech tree example

Update

If you use react, consider taking a look at my library 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

activating a tech node

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 and optinally, the source map. Include the minified file and the dependencies in your html file

    <script src="lib/d3.min.js"></script>
    <script src="lib/saveSvgAsPng.min.js"></script>
    <script src="js/techTree.min.js"></script>

Building and running

To build, be sure you have node 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 to see the site.

Art used

Art assets used under the CC-BY 3.0 License

Software libraries used

Libraries used under the MIT License

  • d3
  • saveSvgAsPng

Copyright (C) 2017 ldd

tech-tree-js's People

Contributors

ldd avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

tech-tree-js's Issues

Tech information

Thanks for the lib.

Is it possible to add HTML to a node? Or use a popover to display more information?

Thanks!

missing json file

I've attempted to run this project but getting a #404 on /json/offsets.json

Can you commit this file to project? Or is it a private config file that we need to create ourselves - if so...what's the structure?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.