未验证 提交 e4018d12 编写于 作者: D daminglu 提交者: GitHub

Fix dagre-d3 require issue (#359)

上级 4a0511d4
......@@ -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",
......
......@@ -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'],
......
......@@ -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>
......
......@@ -123,7 +123,10 @@ const config = {
test: /\.(styl)$/
}),
new ExtractTextPlugin({filename: '[name].css'})
]
],
externals: {
dagreD3: 'dagre-d3'
}
};
// template config
......
......@@ -440,8 +440,8 @@ private:
};
/*
* Audio reader.
*/
* Audio reader.
*/
struct AudioReader {
using value_t = typename Audio::value_t;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册