Comments (10)
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.
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.
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.
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.
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.
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.
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.
Any one got it running for IE 9 ? If so , then please share the viz.js for this.
from viz-js.
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.
I've put a copy here.
https://github.com/coffeespoons/viz.js-hack
from viz-js.
Related Issues (20)
- Update viz-js.com to use new version
- Add type definitions HOT 4
- Publish lang-dot package
- Figure out why pkg-config doesn't work as expected for Expat
- Investigate distributing a non-WASM build
- Investigate support for separate WebAssembly instantiation
- Support -x (reduce) option
- Image support in v3 HOT 6
- RuntimeError with long label starting with newline HOT 1
- Android Project HOT 1
- Types can not be imported with current package.json HOT 2
- Dynamic font Family HOT 2
- Strict mode but merge labels HOT 1
- Text not rendering in nodes HOT 11
- Question about usage without Webassembly and some other questions HOT 1
- I need to remove tooltip i.e title for entire graph. How can it be done HOT 4
- Having trouble with new image support - can't use same image URL in two different places HOT 3
- Positions will never change HOT 3
- DockerFile uses Expat 2.5.0 which is vulnerable for CVE-2023-52425 HOT 2
- Different Results with same Graph HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from viz-js.