fix transformer clone. close #1457

This commit is contained in:
Anton Lavrenov
2022-12-17 10:24:49 -05:00
parent 066fec0248
commit c29300e8cf
3 changed files with 41 additions and 11 deletions

View File

@@ -1219,6 +1219,11 @@ export class Transformer extends Group {
return Node.prototype.toObject.call(this);
}
// overwrite clone to NOT use method from Container
clone(obj?: any) {
var node = Node.prototype.clone.call(this, obj);
return node as this;
}
getClientRect() {
if (this.nodes().length > 0) {
return super.getClientRect();