fix: graph.focusItem(item) not working if item is a string

This commit is contained in:
spengjie 2019-11-04 16:01:38 +08:00
parent 73463fbf64
commit a68a727141

View File

@ -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();