docs: 📚️ selection demo with port

This commit is contained in:
bubkoo
2021-01-22 15:47:09 +08:00
parent ebd2a34517
commit 89a8c1b63a

View File

@ -28,6 +28,7 @@ export default class Example extends React.Component {
strict: true,
showNodeSelectionBox: true,
selectCellOnMoved: false,
useCellGeometry: true,
filter(cell) {
return cell !== a
},
@ -49,6 +50,7 @@ export default class Example extends React.Component {
width: 100,
height: 40,
attrs: { label: { text: 'B' } },
ports: [{ id: 'port' }],
})
const c = graph.addNode({