Initial commit
This commit is contained in:
13
node_modules/konva/lib/Group.js
generated
vendored
Normal file
13
node_modules/konva/lib/Group.js
generated
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
import { Util } from './Util.js';
|
||||
import { Container } from './Container.js';
|
||||
import { _registerNode } from './Global.js';
|
||||
export class Group extends Container {
|
||||
_validateAdd(child) {
|
||||
var type = child.getType();
|
||||
if (type !== 'Group' && type !== 'Shape') {
|
||||
Util.throw('You may only add groups and shapes to groups.');
|
||||
}
|
||||
}
|
||||
}
|
||||
Group.prototype.nodeType = 'Group';
|
||||
_registerNode(Group);
|
||||
Reference in New Issue
Block a user