fixed class diagram 2nd pr

This commit is contained in:
Dan Shai
2019-06-14 07:37:16 +03:00
parent 5b6e9747b7
commit 1e7e719dbf

View File

@@ -1,9 +1,9 @@
import * as d3 from 'd3' import * as d3 from 'd3';
import dagre from 'dagre-layout' import dagre from 'dagre-layout';
import graphlib from 'graphlibrary' import graphlib from 'graphlibrary';
import { logger } from '../../logger' import { logger } from '../../logger';
import classDb from './classDb' import classDb from './classDb';
import { parser } from './parser/classDiagram' import { parser } from './parser/classDiagram';
parser.yy = classDb parser.yy = classDb
@@ -150,7 +150,7 @@ const drawEdge = function (elem, path, relation) {
} }
} }
path.points = path.points.filter(p => !Number.isNaN(p)) path.points = path.points.filter(p => !Number.isNaN(p.y))
// The data for our line // The data for our line
const lineData = path.points const lineData = path.points