source: imaps-frontend/node_modules/konva/lib/Group.js@ d565449

main
Last change on this file since d565449 was d565449, checked in by stefan toskovski <stefantoska84@…>, 4 weeks ago

Update repo after prototype presentation

  • Property mode set to 100644
File size: 568 bytes
Line 
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3exports.Group = void 0;
4const Util_1 = require("./Util");
5const Container_1 = require("./Container");
6const Global_1 = require("./Global");
7class Group extends Container_1.Container {
8 _validateAdd(child) {
9 var type = child.getType();
10 if (type !== 'Group' && type !== 'Shape') {
11 Util_1.Util.throw('You may only add groups and shapes to groups.');
12 }
13 }
14}
15exports.Group = Group;
16Group.prototype.nodeType = 'Group';
17(0, Global_1._registerNode)(Group);
Note: See TracBrowser for help on using the repository browser.