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
|
Rev | Line | |
---|
[d565449] | 1 | "use strict";
|
---|
| 2 | Object.defineProperty(exports, "__esModule", { value: true });
|
---|
| 3 | exports.Group = void 0;
|
---|
| 4 | const Util_1 = require("./Util");
|
---|
| 5 | const Container_1 = require("./Container");
|
---|
| 6 | const Global_1 = require("./Global");
|
---|
| 7 | class 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 | }
|
---|
| 15 | exports.Group = Group;
|
---|
| 16 | Group.prototype.nodeType = 'Group';
|
---|
| 17 | (0, Global_1._registerNode)(Group);
|
---|
Note:
See
TracBrowser
for help on using the repository browser.