Giter Club home page Giter Club logo

graphviz.js's Introduction

graphviz.js is an experimental port of the Graphviz graph visualization software to in-browser Javascript. Once optimized for size, this will allow on-the-fly layout of graph nodes on the client, with all the layout features of Graphviz.

graphviz.js contains all the required code, and it can be minified to fit your use case.

To build the library from the graphviz source code, use the supplied Makefile, which will download the graphviz source code and compile it using your installed version of emscripten (as per your ~/.emscripten file). Both of the following fixes to emscripten are worked around in the most recent version of this repository, although they should eventually be submitted as issues.

============

Outstanding issue in emscripten when <sys/types.h> is included before <stdint.h>... hack is to comment out block at stdint.h:114 as follows:

#if 0
#if __have_long64
typedef signed long int64_t;
typedef unsigned long uint64_t;
#define __int64_t_defined 1
#elif __have_longlong64
typedef signed long long int64_t;
typedef unsigned long long uint64_t;
#define __int64_t_defined 1
#elif  __STDINT_EXP(INT_MAX) > 0x7fffffff
typedef signed int int64_t;
typedef unsigned int uint64_t;
#define __int64_t_defined 1
#endif
#endif

If the dirent struct is never actually used, it only occurs as a return value by pointer in glob.h, and it shows up in the .ll as an opaque type. Unfortunately, this breaks runtime.js, which expects the type to match library.js's description of what a dirent should be. By commenting out this assertion, it's possible that dirent will no longer work. But since we don't expect the code to be globbing files anyways, it seems to be acceptable.

graphviz.js's People

Contributors

bpartridge avatar

Watchers

James Cloos avatar Oren Schaedel avatar

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.