Skip to content

Commit

Permalink
Fix dagre-d3 require issue (#359)
Browse files Browse the repository at this point in the history
  • Loading branch information
daming-lu committed Apr 4, 2018
1 parent 4a0511d commit e4018d1
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 5 deletions.
1 change: 0 additions & 1 deletion frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
"d3": "^4.7.4",
"d3-format": "^1.2.1",
"dagre": "^0.8.2",
"dagre-d3": "^0.6.1",
"echarts": "^4.0.0",
"echarts-gl": "^1.1.0",
"file-saver": "^1.3.3",
Expand Down
1 change: 0 additions & 1 deletion frontend/src/graph/ui/Chart.vue
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
// for d3 drawing
import * as d3 from "d3";
import * as dagre from "dagre";
import * as dagreD3 from 'dagre-d3';
export default {
props: ['fitScreen', 'download', 'scale', 'curNode'],
Expand Down
1 change: 1 addition & 0 deletions frontend/template/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="X-UA-Compatible" content="IE=Edge">
<link href='https://fonts.googleapis.com/css?family=Roboto:300,400,500,700|Material+Icons' rel="stylesheet">
<script src="https://dagrejs.github.io/project/dagre-d3/latest/dagre-d3.min.js"></script>
</head>
<body>
<div id="root"></div>
Expand Down
5 changes: 4 additions & 1 deletion frontend/tool/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,10 @@ const config = {
test: /\.(styl)$/
}),
new ExtractTextPlugin({filename: '[name].css'})
]
],
externals: {
dagreD3: 'dagre-d3'
}
};

// template config
Expand Down
4 changes: 2 additions & 2 deletions visualdl/logic/sdk.h
Original file line number Diff line number Diff line change
Expand Up @@ -440,8 +440,8 @@ struct Audio {
};

/*
* Audio reader.
*/
* Audio reader.
*/
struct AudioReader {
using value_t = typename Audio::value_t;

Expand Down

0 comments on commit e4018d1

Please sign in to comment.