Skip to content

Commit

Permalink
docs: explicit define label in style
Browse files Browse the repository at this point in the history
  • Loading branch information
bubkoo committed Dec 19, 2019
1 parent e3922f9 commit dfe5f10
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions README.md
Expand Up @@ -35,20 +35,20 @@ import { Graph } from '@antv/x6'
const container = document.getElementById('container')
const graph = new Graph(container)
const node1 = graph.addNode({
data: 'Hello',
label: 'Hello',
x: 60,
y: 60,
width: 80,
height: 30,
})
const node2 = graph.addNode({
data: 'World',
label: 'World',
x: 240,
y: 240,
width: 80,
height: 30,
})
const edge = graph.addEdge({ data: 'x6', source: node1, target: node2 })
const edge = graph.addEdge({ label: 'x6', source: node1, target: node2 })
```

## Development
Expand Down
6 changes: 3 additions & 3 deletions packages/x6/README.md
Expand Up @@ -35,20 +35,20 @@ import { Graph } from '@antv/x6'
const container = document.getElementById('container')
const graph = new Graph(container)
const node1 = graph.addNode({
data: 'Hello',
label: 'Hello',
x: 60,
y: 60,
width: 80,
height: 30,
})
const node2 = graph.addNode({
data: 'World',
label: 'World',
x: 240,
y: 240,
width: 80,
height: 30,
})
const edge = graph.addEdge({ data: 'x6', source: node1, target: node2 })
const edge = graph.addEdge({ label: 'x6', source: node1, target: node2 })
```

## Development
Expand Down

0 comments on commit dfe5f10

Please sign in to comment.