fixed class diagram 2nd pr

This commit is contained in:
Dan Shai 2019-06-14 07:37:16 +03:00
parent 5b6e9747b7
commit 1e7e719dbf
1 changed files with 7 additions and 7 deletions

View File

@ -1,9 +1,9 @@
import * as d3 from 'd3'
import dagre from 'dagre-layout'
import graphlib from 'graphlibrary'
import { logger } from '../../logger'
import classDb from './classDb'
import { parser } from './parser/classDiagram'
import * as d3 from 'd3';
import dagre from 'dagre-layout';
import graphlib from 'graphlibrary';
import { logger } from '../../logger';
import classDb from './classDb';
import { parser } from './parser/classDiagram';
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
const lineData = path.points