mirror of
https://github.com/konvajs/konva.git
synced 2025-10-15 12:34:52 +08:00
Add new property imageSmoothingEnabled
to the layer. some ts fixes.
This commit is contained in:
@@ -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.');
|
||||
|
Reference in New Issue
Block a user