Skip to content

Commit

Permalink
docs: 📚️ fix doc error (antvis#1721)
Browse files Browse the repository at this point in the history
  • Loading branch information
NewByVector authored Jan 4, 2022
1 parent 53053dd commit b0a33a2
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion sites/x6-sites/docs/api/graph/selecting.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ const graph = new Graph({
selecting: {
enabled: true,
filter(node) {
return node.type === 'rect'
return node.shape === 'rect'
},
},
})
Expand Down
2 changes: 1 addition & 1 deletion sites/x6-sites/docs/api/graph/selecting.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ const graph = new Graph({
selecting: {
enabled: true,
filter(node) {
return node.type === 'rect'
return node.shape === 'rect'
},
},
})
Expand Down
2 changes: 1 addition & 1 deletion sites/x6-sites/docs/api/graph/snapline.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ const graph = new Graph({
snapline: {
enabled: true,
filter(node) {
return node.type === 'rect'
return node.shape === 'rect'
},
},
})
Expand Down
2 changes: 1 addition & 1 deletion sites/x6-sites/docs/api/graph/snapline.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ const graph = new Graph({
snapline: {
enabled: true,
filter(node) {
return node.type === 'rect'
return node.shape === 'rect'
},
},
})
Expand Down
2 changes: 1 addition & 1 deletion sites/x6-sites/docs/tutorial/basic/selection.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ const graph = new Graph({
selecting: {
enabled: true,
filter(node) {
return node.type === 'rect'
return node.shape === 'rect'
},
},
})
Expand Down
2 changes: 1 addition & 1 deletion sites/x6-sites/docs/tutorial/basic/selection.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ const graph = new Graph({
selecting: {
enabled: true,
filter(node) {
return node.type === 'rect'
return node.shape === 'rect'
},
},
})
Expand Down
2 changes: 1 addition & 1 deletion sites/x6-sites/docs/tutorial/basic/snapline.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ const graph = new Graph({
snapline: {
enabled: true,
filter(node) {
return node.type === 'rect'
return node.shape === 'rect'
},
},
})
Expand Down
2 changes: 1 addition & 1 deletion sites/x6-sites/docs/tutorial/basic/snapline.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ const graph = new Graph({
snapline: {
enabled: true,
filter(node) {
return node.type === 'rect'
return node.shape === 'rect'
},
},
})
Expand Down

0 comments on commit b0a33a2

Please sign in to comment.