bakunin95 / wavi

Web Application Viewer - generate class diagram for web application
Other
145 stars 23 forks source link

Get blank/white svg file #24

Open HarryF514 opened 7 years ago

HarryF514 commented 7 years ago

Dibian os.

node /usr/bin/wavi index.js graph.svg

my index.js file look like this:

var AV = require('leanengine');
(function(AV){
        AV.Query.prototype.test = function(){
                console.log(this);
        }
})(AV);
module.exports = AV;

after I excuted the command,

Processing website: /home/harry/Documents/playground/mylib/index.js
finished analyzing, now generating graph
Graph generated: /home/harry/Documents/playground/mylib/graph.svg
Execution time: 0.469

then I got a blank/white svg. I also check other html json file, all got blank svg

bakunin95 commented 7 years ago

you should point to the folder where index.js is for example:

node /usr/bin/wavi /home/harry/Documents/playground/mylib graph.svg

Berkmann18 commented 6 years ago

I also get the same error when I try to run wavi with either a JS file, HTML file or even the project directory which leads to respectively a small white box or big black one.

mosbth commented 6 years ago

I got a blank svg (at first), but I eventually found out that I used the wrong path to a non-existing directory and I did not get an error message. It worked when I used the correct path.