Giter VIP home page Giter VIP logo

Comments (10)

mdaines avatar mdaines commented on July 22, 2024

Assuming the absence of Int32Array is the only problem with running on IE 9, it might work to set Emscripten's USE_TYPED_ARRAYS setting to 0.

See "Emscripten Options" in the Emscripten tutorial: https://github.com/kripken/emscripten/wiki/Tutorial
Also, settings.js in Emscripten: https://github.com/kripken/emscripten/blob/master/src/settings.js

from viz-js.

gschrader avatar gschrader commented on July 22, 2024

thanks for the suggestion, I'm attempting to try this however I'm having a hard time building viz.js, I get the following:

In file included from ./render.h:40:
./types.h:49:10: fatal error: 'cgraph.h' file not found
#include <cgraph.h>
         ^
1 error generated.
ERROR    emcc: compiler frontend failed to generate LLVM bitcode, halting
make: *** [graphviz-src/lib/common/libcommon-em.bc] Error 1

Any ideas what I have wrong?

from viz-js.

mdaines avatar mdaines commented on July 22, 2024

It looks like the Makefile in master was mistakenly downloading Graphviz 2.30.1 rather than 2.28.0. (Further work is needed to support the newer version.) This is now fixed, but unfortunately I couldn't get the latest Emscripten to build a working Viz.js with the USE_TYPED_ARRAYS=0 setting. There may be some combination of options which allows this though, I'll have a look.

from viz-js.

gschrader avatar gschrader commented on July 22, 2024

Thanks for your efforts, depending on the impact on performance it might not work well anyway. I can look at generating the svg on the server side for IE9 instead perhaps.

from viz-js.

mdaines avatar mdaines commented on July 22, 2024

Yes, it might be better to do that. Also note that Viz.js isn't entirely reliable -- one of the examples in examples.html fails for me intermittently. It works most of the time, but I wouldn't claim it can be trusted as far as using Graphviz on the server.

from viz-js.

coffeespoons avatar coffeespoons commented on July 22, 2024

Thanks for your awesome work. I have something working quite well with ie10 but I am stuck with ie8 within the organisation I work for at the moment. Would it be impossible to make this work with ie8? Any thoughts would be appreciated.

from viz-js.

diwanabhi avatar diwanabhi commented on July 22, 2024

I am not able to run VIz.js using java 6 scripting engine oer Rhino.I am getting following exception
Program too complex: too big jump offset
at org.mozilla.classfile.ClassFileWriter.fixLabelGotos(ClassFileWriter.java:1250)
at org.mozilla.classfile.ClassFileWriter.stopMethod(ClassFileWriter.java:293)
at org.mozilla.javascript.optimizer.BodyCodegen.generateBodyCode(Codegen.java:1226)
at org.mozilla.javascript.optimizer.Codegen.generateCode(Codegen.java:288)
at org.mozilla.javascript.optimizer.Codegen.compileToClassFile(Codegen.java:161)
at org.mozilla.javascript.optimizer.Codegen.compile(Codegen.java:71)
at org.mozilla.javascript.Context.compileImpl(Context.java:2343)
at org.mozilla.javascript.Context.compileReader(Context.java:1310)
at org.mozilla.javascript.Context.compileReader(Context.java:1282)
at org.mozilla.javascript.Context.evaluateReader(Context.java:1224)

Any clues?

from viz-js.

afkhan avatar afkhan commented on July 22, 2024

Any one got it running for IE 9 ? If so , then please share the viz.js for this.

from viz-js.

coffeespoons avatar coffeespoons commented on July 22, 2024

Yes, emscriptem typed arrays support seems to be broken in newer versions, I meant to trace which version broke it but never got around to it... and it seems that nobody cares as only prehistoric browsers have this problem. I did manage to build a version which worked quite well on ie9 but that was against graphviz 2.28, so there's no home for that viz.js now as I see its now being built against 2.3x

from viz-js.

coffeespoons avatar coffeespoons commented on July 22, 2024

I've put a copy here.
https://github.com/coffeespoons/viz.js-hack

from viz-js.

Related Issues (20)

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.