mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-11 19:39:43 +02:00
fixed class diagram 2nd pr
This commit is contained in:
@@ -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
|
||||||
|
Reference in New Issue
Block a user