main
Last change
on this file since 0c6b92a was 0c6b92a, checked in by stefan toskovski <stefantoska84@…>, 5 weeks ago |
Pred finalna verzija
|
-
Property mode
set to
100644
|
File size:
570 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) {
|
---|
[0c6b92a] | 9 | const type = child.getType();
|
---|
[d565449] | 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.