Skip to content

Commit

Permalink
Refactor code
Browse files Browse the repository at this point in the history
  • Loading branch information
tylerlong committed Mar 9, 2018
1 parent 9c101eb commit 53b97b3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
6 changes: 2 additions & 4 deletions src/diagrams/flowchart/flowRenderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -176,10 +176,8 @@ export const addEdges = function (edges, g) {

if (typeof edge.interpolate !== 'undefined') {
edgeData.lineInterpolate = edge.interpolate
} else {
if (typeof edges.defaultInterpolate !== 'undefined') {
edgeData.lineInterpolate = edges.defaultInterpolate
}
} else if (typeof edges.defaultInterpolate !== 'undefined') {
edgeData.lineInterpolate = edges.defaultInterpolate
}

if (typeof edge.text === 'undefined') {
Expand Down
3 changes: 1 addition & 2 deletions todo.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,9 @@
- rewrite less code
- Setup code coverage
- 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
- https://github.com/d3/d3-time-format#api-reference
- https://bl.ocks.org/wboykinm/34627426d84f3242e0e6ecb2339e9065
- Upgrade jasmine 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

0 comments on commit 53b97b3

Please sign in to comment.