mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-08-26 11:46:42 +02:00
Fix class diagram
This commit is contained in:
@@ -139,14 +139,14 @@ const drawEdge = function (elem, path, relation) {
|
|||||||
const lineData = path.points
|
const lineData = path.points
|
||||||
|
|
||||||
// This is the accessor function we talked about above
|
// This is the accessor function we talked about above
|
||||||
const lineFunction = d3.svg.line()
|
const lineFunction = d3.line()
|
||||||
.x(function (d) {
|
.x(function (d) {
|
||||||
return d.x
|
return d.x
|
||||||
})
|
})
|
||||||
.y(function (d) {
|
.y(function (d) {
|
||||||
return d.y
|
return d.y
|
||||||
})
|
})
|
||||||
.interpolate('basis')
|
.curve(d3.curveBasis)
|
||||||
|
|
||||||
const svgPath = elem.append('path')
|
const svgPath = elem.append('path')
|
||||||
.attr('d', lineFunction(lineData))
|
.attr('d', lineFunction(lineData))
|
||||||
|
Reference in New Issue
Block a user