Comments (6)
I just merged the SVG branch that allows (rudimentary) support for SVG rendering, which by it nature is node-compatible since no canvas is involved.
from nomnoml.
The node-canvas module has a native dependency, which needs installing some pre-requisites depending on the operating system before the actual module can be installed. I was not sure if you wanted to add it to the development dependencies; I did it and included a testing script in the nodejs-test branch and I can create a pull request if you like.
from nomnoml.
I found the closed issue #27 by chance when googling. Your opinion makes sense, not to make everyone, who integrates nomnoml on a web page, depend on PhantomJS or other heavy dependency. I created nomnoml-cli for the command-line and/or NodeJS integrations.
About the dagre integration: I'd prefer depending on dagre loaded from node_modules to doing the current workaround (#31). I cannot simply load the newest dagre version, because its interface was changed when the version 0.5.0 was released. The last working dagre version is 0.4.6. Was there a reason to upgrade nomnoml to the new interface?
from nomnoml.
The pull requests are marked with a build failure:
Could not find .travis.yml, using standard configuration.
Apparently the registration of this project for the Travis CI builds has not been finished yet, but I assure you that the code works :-)
I tested using the test pages and the Jasmine test specs. The pages open OK. 1 spec from the 16 failed but the failure was not caused by my changes.
from nomnoml.
It is not supposed to use Travis (yet). Fixing that.
We saw some layout differences in later versions of Dagre, and earlier versions don't have RequireJS support. That is the reason for embedding the Dagre source inside the project.
The goal is to have NodeJS support, but it is a work in progress. I will probably refactor the renderer so that it receives the dagre as a parameter instead of depending on it being available globally.
from nomnoml.
I tried to handle the dependency on dagre in the same way as on lodash in a8239cd. In the nodejs-separate-dagre branch I load lodash and dagre installed by NPM on the command line; dagre version must be < 0.5.0. In the browser I still load the files from the lib directory, which could be changed too.
from nomnoml.
Related Issues (20)
- New parser gives "expected ] but got end of file" HOT 2
- Weird spacing on simple layout HOT 1
- any guess for when the new 1.6.0 version will get published? HOT 4
- Using <span> css in table definitions HOT 3
- Add 'doubled' shape style HOT 2
- following snippet does not work with the new parser but works with the old one HOT 4
- Is it possible modify the table contents. HOT 1
- missing <end>e label in homepage sample
- support drag-and-drop and custom positioning of individual items? HOT 1
- Labels overlapping
- PNG export resolution is low HOT 1
- Classifier Style Problem with <frame> Visual HOT 3
- Support Google Fonts usage HOT 1
- Delegation connector for component internals HOT 1
- What happened to the formal grammar? HOT 4
- Text search not working for larger nomnoml diagrams HOT 1
- Parse error at line 2 column 35, expected "label" but got "[" HOT 1
- Creating groups HOT 1
- nomnoml.com : Diagrams not rendering HOT 2
- Incorrect file name handling
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 nomnoml.