1 | "use strict";
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | exports.EmitterSize = void 0;
|
4 | const Enums_1 = require("../../../../Enums");
|
5 | class EmitterSize {
|
6 | constructor() {
|
7 | this.mode = Enums_1.SizeMode.percent;
|
8 | this.height = 0;
|
9 | this.width = 0;
|
10 | }
|
11 | load(data) {
|
12 | if (data === undefined) {
|
13 | return;
|
14 | }
|
15 | if (data.mode !== undefined) {
|
16 | this.mode = data.mode;
|
17 | }
|
18 | if (data.height !== undefined) {
|
19 | this.height = data.height;
|
20 | }
|
21 | if (data.width !== undefined) {
|
22 | this.width = data.width;
|
23 | }
|
24 | }
|
25 | }
|
26 | exports.EmitterSize = EmitterSize;
|