Skip to content

Commit

Permalink
refactor: common handler of halo and selection widget
Browse files Browse the repository at this point in the history
  • Loading branch information
bubkoo committed Jun 2, 2020
1 parent e439f5b commit 0d81f29
Show file tree
Hide file tree
Showing 12 changed files with 1,144 additions and 1,377 deletions.
1 change: 0 additions & 1 deletion examples/x6-example-features/src/pages/graph/index.tsx
@@ -1,6 +1,5 @@
import React from 'react'
import { Graph, Rectangle } from '@antv/x6'
import { Grid } from '@antv/x6/es/style/grid'
import '../index.less'
import './index.less'
import { render } from './render'
Expand Down
7 changes: 6 additions & 1 deletion examples/x6-example-features/src/pages/halo/index.tsx
Expand Up @@ -43,7 +43,12 @@ export default class Example extends React.Component {
})

graph.on('node:mouseup', ({ view }) => {
new Halo({ view })
const halo = new Halo({
view,
type: 'toolbar',
pie: { sliceAngle: 360 / 7 },
})
console.log(halo)
})
}

Expand Down
526 changes: 478 additions & 48 deletions packages/x6/src/addon/common/handle.less

Large diffs are not rendered by default.

0 comments on commit 0d81f29

Please sign in to comment.