mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-16 05:49:43 +02:00
Refactor code
This commit is contained in:
@@ -176,10 +176,8 @@ export const addEdges = function (edges, g) {
|
|||||||
|
|
||||||
if (typeof edge.interpolate !== 'undefined') {
|
if (typeof edge.interpolate !== 'undefined') {
|
||||||
edgeData.lineInterpolate = edge.interpolate
|
edgeData.lineInterpolate = edge.interpolate
|
||||||
} else {
|
} else if (typeof edges.defaultInterpolate !== 'undefined') {
|
||||||
if (typeof edges.defaultInterpolate !== 'undefined') {
|
edgeData.lineInterpolate = edges.defaultInterpolate
|
||||||
edgeData.lineInterpolate = edges.defaultInterpolate
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (typeof edge.text === 'undefined') {
|
if (typeof edge.text === 'undefined') {
|
||||||
|
3
todo.md
3
todo.md
@@ -6,10 +6,9 @@
|
|||||||
- rewrite less code
|
- rewrite less code
|
||||||
- Setup code coverage
|
- Setup code coverage
|
||||||
- Create a desktop client
|
- Create a desktop client
|
||||||
- Fix flowchart interpolate/curve issue
|
|
||||||
- not a common feature so dist/index.html cannot reproduce this issue
|
|
||||||
- Support customization of gantt diagram xAxis format
|
- Support customization of gantt diagram xAxis format
|
||||||
- https://github.com/d3/d3-time-format#api-reference
|
- https://github.com/d3/d3-time-format#api-reference
|
||||||
- https://bl.ocks.org/wboykinm/34627426d84f3242e0e6ecb2339e9065
|
- https://bl.ocks.org/wboykinm/34627426d84f3242e0e6ecb2339e9065
|
||||||
- Upgrade jasmine to latest version or replace it
|
- Upgrade jasmine to latest version or replace it
|
||||||
- Upgrade less to latest version or replace it
|
- Upgrade less to latest version or replace it
|
||||||
|
- Flowchart interpolate is useless because there is no rendering code using it
|
||||||
|
Reference in New Issue
Block a user