GithubHelp home page GithubHelp logo

Comments (6)

skanaar avatar skanaar commented on June 23, 2024 1

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.

prantlf avatar prantlf commented on June 23, 2024

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.

prantlf avatar prantlf commented on June 23, 2024

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.

prantlf avatar prantlf commented on June 23, 2024

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.

skanaar avatar skanaar commented on June 23, 2024

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.

prantlf avatar prantlf commented on June 23, 2024

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)

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.