Skip to content

Commit

Permalink
fi(app): TypeError: Viz is not a function
Browse files Browse the repository at this point in the history
fix #48
  • Loading branch information
Vincent Ogloblinsky committed Jan 30, 2017
1 parent 4ed08f4 commit cd824d9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/modules/transformer/dist/engines/dot/dot.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ var ngd_core_1 = require('@compodoc/ngd-core');
var dot_template_1 = require('./dot.template');
var fs = require('fs-extra');
var q = require('q');
var Viz = require('viz.js');
var cleanDot = false;
var cleanSvg = false;
var appName = require('../../../package.json').name;
Expand Down Expand Up @@ -174,7 +175,6 @@ var DotEngine = (function () {
};
DotEngine.prototype.generateSVG = function () {
var _this = this;
var Viz = require('viz.js');
var vizSvg = Viz(fs.readFileSync(this.paths.dot).toString(), {
format: 'svg',
engine: 'dot'
Expand Down
2 changes: 1 addition & 1 deletion src/modules/transformer/src/engines/dot/dot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ export interface IOptions {

let fs = require('fs-extra');
let q = require('q');
let Viz = require('viz.js');
let cleanDot: boolean = false;
let cleanSvg: boolean = false;

Expand Down Expand Up @@ -224,7 +225,6 @@ export class DotEngine {
}

private generateSVG() {
let Viz = require('viz.js');
let vizSvg = Viz(
fs.readFileSync(this.paths.dot).toString(), {
format: 'svg',
Expand Down

0 comments on commit cd824d9

Please sign in to comment.