You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -1107,6 +1109,16 @@ export class Transformer extends Group {
1107
1109
constdelta=newTr.multiply(oldTr.invert());
1108
1110
1109
1111
this._nodes.forEach((node)=>{
1112
+
// check to close this issue: https://github.com/konvajs/konva/issues/1957
1113
+
// a node can be destroyed during the transformation
1114
+
// probably a developer must remove it from transformer
1115
+
if(!node.getStage()){
1116
+
// do we need a helping message?
1117
+
// Util.error(
1118
+
// 'Node is not attached to the stage. This is not allowed. Please attach the node to the stage before transforming. If node was destroyed, make sure to remove it from transformer.'
1119
+
// );
1120
+
return;
1121
+
}
1110
1122
// for each node we have the same [delta transform]
1111
1123
// the equations is
1112
1124
// [delta transform] * [parent transform] * [old local transform] = [parent transform] * [new local transform]
0 commit comments