mirror of
https://gitee.com/antv/g6.git
synced 2024-12-04 04:38:55 +08:00
fix: graph.focusItem(item) not working if item is a string
This commit is contained in:
parent
73463fbf64
commit
a68a727141
@ -65,7 +65,7 @@ class View {
|
||||
}
|
||||
focus(item) {
|
||||
if (Util.isString(item)) {
|
||||
item = this.graph.findById[item];
|
||||
item = this.graph.findById(item);
|
||||
}
|
||||
if (item) {
|
||||
const matrix = item.get('group').getMatrix();
|
||||
|
Loading…
Reference in New Issue
Block a user