docs: 📚️ fix doc error (#1721)

This commit is contained in:
vector
2022-01-04 14:45:16 +08:00
committed by GitHub
parent 53053ddbd0
commit b0a33a2676
8 changed files with 8 additions and 8 deletions

View File

@ -146,7 +146,7 @@ const graph = new Graph({
selecting: {
enabled: true,
filter(node) {
return node.type === 'rect'
return node.shape === 'rect'
},
},
})

View File

@ -146,7 +146,7 @@ const graph = new Graph({
selecting: {
enabled: true,
filter(node) {
return node.type === 'rect'
return node.shape === 'rect'
},
},
})

View File

@ -114,7 +114,7 @@ const graph = new Graph({
snapline: {
enabled: true,
filter(node) {
return node.type === 'rect'
return node.shape === 'rect'
},
},
})

View File

@ -114,7 +114,7 @@ const graph = new Graph({
snapline: {
enabled: true,
filter(node) {
return node.type === 'rect'
return node.shape === 'rect'
},
},
})

View File

@ -167,7 +167,7 @@ const graph = new Graph({
selecting: {
enabled: true,
filter(node) {
return node.type === 'rect'
return node.shape === 'rect'
},
},
})

View File

@ -167,7 +167,7 @@ const graph = new Graph({
selecting: {
enabled: true,
filter(node) {
return node.type === 'rect'
return node.shape === 'rect'
},
},
})

View File

@ -118,7 +118,7 @@ const graph = new Graph({
snapline: {
enabled: true,
filter(node) {
return node.type === 'rect'
return node.shape === 'rect'
},
},
})

View File

@ -118,7 +118,7 @@ const graph = new Graph({
snapline: {
enabled: true,
filter(node) {
return node.type === 'rect'
return node.shape === 'rect'
},
},
})