mirror of
https://gitee.com/antv/g6.git
synced 2024-12-14 01:21:33 +08:00
fix conflict
This commit is contained in:
commit
08e7845d2e
@ -11,7 +11,7 @@
|
||||
<body>
|
||||
<div id="mountNode"></div>
|
||||
<script src="../build/g6.js"></script>
|
||||
<script src="../build/plugins.js"></script>
|
||||
<script src="../build/plugin.layout.dagre.js"></script>
|
||||
<script>
|
||||
G6.registerNode('rect', {
|
||||
getPath(item) {
|
||||
|
55
demos/plugin-dagre.html
Normal file
55
demos/plugin-dagre.html
Normal file
@ -0,0 +1,55 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
||||
<title>插件-布局-Dagre</title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div id="mountNode"></div>
|
||||
<script src="../build/g6.js"></script>
|
||||
<script src="../build/plugin.layout.dagre.js"></script>
|
||||
<script>
|
||||
const data = {
|
||||
nodes: [{
|
||||
id: 'node1',
|
||||
}, {
|
||||
id: 'node2',
|
||||
}, {
|
||||
id: 'node3',
|
||||
}, {
|
||||
id: 'node4',
|
||||
},{
|
||||
id: 'node5',
|
||||
}],
|
||||
edges: [{
|
||||
source: 'node1',
|
||||
target: 'node2'
|
||||
},{
|
||||
source: 'node1',
|
||||
target: 'node3'
|
||||
},{
|
||||
source: 'node3',
|
||||
target: 'node4'
|
||||
},{
|
||||
source: 'node2',
|
||||
target: 'node4'
|
||||
},{
|
||||
source: 'node4',
|
||||
target: 'node5'
|
||||
}]
|
||||
};
|
||||
const graph = new G6.Graph({
|
||||
container: 'mountNode',
|
||||
fitView: 'cc',
|
||||
width: 500,
|
||||
height: 500,
|
||||
plugins: [new G6.Plugins['layout.dagre']()],
|
||||
});
|
||||
graph.read(data);
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@antv/g6",
|
||||
"version": "2.0.4",
|
||||
"version": "2.0.5-beta",
|
||||
"description": "graph visualization frame work",
|
||||
"main": "build/g6.js",
|
||||
"homepage": "https://github.com/antvis/g6",
|
||||
@ -107,7 +107,7 @@
|
||||
"dependencies": {
|
||||
"@antv/scale": "^0.0.1",
|
||||
"@antv/g2": "^3.2.0",
|
||||
"@antv/g": "^3.0.0-beta.8",
|
||||
"@antv/g": "~3.0.0-beta.8",
|
||||
"@antv/hierarchy": "~0.3.13",
|
||||
"ant-design-palettes": "~1.1.2",
|
||||
"d3": "^5.4.0",
|
||||
|
@ -1 +1 @@
|
||||
module.exports = '2.0.4';
|
||||
module.exports = '2.0.5-beta';
|
||||
|
Loading…
Reference in New Issue
Block a user