Skip to content

Commit

Permalink
Merge d520152 into 2a214b9
Browse files Browse the repository at this point in the history
  • Loading branch information
bubkoo committed Jun 12, 2020
2 parents 2a214b9 + d520152 commit f8ba8b0
Show file tree
Hide file tree
Showing 97 changed files with 4,192 additions and 1,721 deletions.
4 changes: 2 additions & 2 deletions examples/x6-example-components/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"private": true,
"name": "@antv/x6-example-components",
"version": "0.2.6",
"version": "1.0.0-alpha.0",
"scripts": {
"start": "umi dev",
"build": "umi build",
Expand All @@ -10,7 +10,7 @@
"precommit": "lint-staged"
},
"dependencies": {
"@antv/x6-components": "^0.2.0",
"@antv/x6-components": "^1.0.0-alpha.0",
"antd": "^3.19.5",
"react": "^16.8.6",
"react-dom": "^16.8.6"
Expand Down
8 changes: 4 additions & 4 deletions examples/x6-example-features/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"private": true,
"name": "@antv/x6-example-features",
"version": "0.2.6",
"version": "1.0.0-alpha.0",
"scripts": {
"start": "umi dev",
"build": "umi build",
Expand All @@ -10,9 +10,9 @@
"precommit": "lint-staged"
},
"dependencies": {
"@antv/x6": "^0.3.4",
"@antv/x6-components": "^0.2.0",
"@antv/x6-react-shape": "^0.2.2",
"@antv/x6": "^1.0.0-alpha.0",
"@antv/x6-components": "^1.0.0-alpha.0",
"@antv/x6-react-shape": "^1.0.0-alpha.0",
"antd": "^3.19.5",
"classnames": "^2.2.6",
"react": "^16.12.0",
Expand Down
27 changes: 27 additions & 0 deletions examples/x6-example-features/src/pages/edge/data-mapping/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
import React from 'react'
import { Graph } from '@antv/x6'
import '../../index.less'

export default class Example extends React.Component {
private container: HTMLDivElement

componentDidMount() {
const graph = new Graph({
container: this.container,
width: 800,
height: 1400,
})
}

refContainer = (container: HTMLDivElement) => {
this.container = container
}

render() {
return (
<div className="x6-graph-wrap">
<div ref={this.refContainer} className="x6-graph" />
</div>
)
}
}
Empty file.

0 comments on commit f8ba8b0

Please sign in to comment.