mirror of
https://github.com/konvajs/konva.git
synced 2025-06-28 06:07:13 +08:00
Deleted properties that should not exist
This commit is contained in:
parent
7a85356a2a
commit
cc320b9e28
@ -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();
|
||||
|
@ -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?
|
||||
|
Loading…
Reference in New Issue
Block a user