Add new property imageSmoothingEnabled to the layer. some ts fixes.

This commit is contained in:
Anton Lavrenov
2019-05-28 15:39:08 -05:00
parent d4f8192631
commit 8252804373
12 changed files with 154 additions and 1339 deletions

View File

@@ -16,7 +16,7 @@ import { Shape } from './Shape';
* var group = new Konva.Group();
*/
export class Group extends Container<Group | Shape> {
_validateAdd(child: Group | Shape) {
_validateAdd(child: Node) {
var type = child.getType();
if (type !== 'Group' && type !== 'Shape') {
Util.throw('You may only add groups and shapes to groups.');