Deleted properties that should not exist

This commit is contained in:
razw22 2023-07-17 16:00:35 +00:00
parent 7a85356a2a
commit cc320b9e28
2 changed files with 6 additions and 2 deletions

View File

@ -1211,6 +1211,9 @@ export abstract class Node<Config extends NodeConfig = NodeConfig> {
this.attrs.x = origTrans.x;
this.attrs.y = origTrans.y;
delete origTrans.x;
delete origTrans.y;
// important, use non cached value
this._clearCache(TRANSFORM);
var it = this._getAbsoluteTransform().copy();

View File

@ -185,7 +185,7 @@ export class Shape<
Config extends ShapeConfig = ShapeConfig
> extends Node<Config> {
_centroid: boolean;
colorKey: string;
colorKey?: string;
_fillFunc: (ctx: Context) => FillFuncOutput;
_strokeFunc: (ctx: Context) => void;
@ -455,7 +455,8 @@ export class Shape<
destroy() {
Node.prototype.destroy.call(this);
delete shapes[this.colorKey];
delete shapes[this.colorKey!];
delete this.colorKey;
return this;
}
// why do we need buffer canvas?