Initial commit
This commit is contained in:
17
node_modules/konva/cmj/Group.js
generated
vendored
Normal file
17
node_modules/konva/cmj/Group.js
generated
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.Group = void 0;
|
||||
const Util_1 = require("./Util");
|
||||
const Container_1 = require("./Container");
|
||||
const Global_1 = require("./Global");
|
||||
class Group extends Container_1.Container {
|
||||
_validateAdd(child) {
|
||||
var type = child.getType();
|
||||
if (type !== 'Group' && type !== 'Shape') {
|
||||
Util_1.Util.throw('You may only add groups and shapes to groups.');
|
||||
}
|
||||
}
|
||||
}
|
||||
exports.Group = Group;
|
||||
Group.prototype.nodeType = 'Group';
|
||||
(0, Global_1._registerNode)(Group);
|
||||
Reference in New Issue
Block a user