UNPKG

679 BJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3exports.EmitterSize = void 0;
4const Enums_1 = require("../../../../Enums");
5class 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}
26exports.EmitterSize = EmitterSize;