add FastLayer deprecate

This commit is contained in:
Anton Lavrenov
2020-06-09 15:55:08 -05:00
parent bafe7d3b20
commit 43b23e9559
4 changed files with 12 additions and 20 deletions

View File

@@ -20,6 +20,9 @@ export class FastLayer extends Layer {
constructor(attrs) {
super(attrs);
this.listening(false);
Util.warn(
'Konva.Fast layer is deprecated. Please use "new Konva.Layer({ listening: false })" instead.'
);
}
}