Comparing version 8.0.0-beta.6 to 8.0.0-beta.7
{ | ||
"name": "mermaid", | ||
"version": "8.0.0-beta.6", | ||
"version": "8.0.0-beta.7", | ||
"description": "Markdownish syntax for generating flowcharts, sequence diagrams, class diagrams, gantt charts and git graphs.", | ||
@@ -5,0 +5,0 @@ "main": "dist/mermaid.core.js", |
@@ -8,2 +8,3 @@ import graphlib from 'graphlibrary' | ||
import { logger } from '../../logger' | ||
import { interpolateToCurve } from '../../utils' | ||
@@ -178,5 +179,7 @@ const conf = { | ||
if (typeof edge.interpolate !== 'undefined') { | ||
edgeData.lineInterpolate = edge.interpolate | ||
edgeData.curve = interpolateToCurve(edge.interpolate, d3.curveLinear) | ||
} else if (typeof edges.defaultInterpolate !== 'undefined') { | ||
edgeData.lineInterpolate = edges.defaultInterpolate | ||
edgeData.curve = interpolateToCurve(edges.defaultInterpolate, d3.curveLinear) | ||
} else { | ||
edgeData.curve = interpolateToCurve(conf.curve, d3.curveLinear) | ||
} | ||
@@ -183,0 +186,0 @@ |
@@ -121,3 +121,3 @@ /* eslint-env jasmine */ | ||
expect(options.arrowhead).toBe('none') | ||
expect(options.lineInterpolate).toBe('basis') | ||
expect(options.curve).toBe('basis') // mocked as string | ||
} | ||
@@ -124,0 +124,0 @@ } |
@@ -90,3 +90,5 @@ /** | ||
*/ | ||
useMaxWidth: true | ||
useMaxWidth: true, | ||
curve: 'linear' | ||
}, | ||
@@ -93,0 +95,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
11128887
84728