targetj 1.0.260 → 1.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,576 @@
1
+ function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
2
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
3
+ function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
4
+ function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
5
+ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
6
+ function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
7
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
8
+ function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
9
+ function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
10
+ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
11
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
12
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
13
+ import { TModelUtil } from "./TModelUtil.js";
14
+ import { TargetUtil } from "./TargetUtil.js";
15
+ import { VisibilityUtil } from "./VisibilityUtil.js";
16
+
17
+ /**
18
+ * It provides a lightweight logical child for the GPU implemenation.
19
+ */
20
+ var ParticleChild = /*#__PURE__*/function () {
21
+ function ParticleChild(parent, index) {
22
+ _classCallCheck(this, ParticleChild);
23
+ this.parent = parent;
24
+ this.index = index;
25
+ this.isLightweightChild = true;
26
+ this.type = "".concat(parent.type, "_");
27
+ this.oid = "".concat(parent.oid, "_gpu_").concat(index);
28
+ this.x = 0;
29
+ this.y = 0;
30
+ this.absX = 0;
31
+ this.absY = 0;
32
+ this.targets = {};
33
+ this.targetValues = {};
34
+ this.allTargetMap = {};
35
+ this.actualValues = {
36
+ isVisible: true
37
+ };
38
+ this.visibilityStatus = undefined;
39
+ this.noDomUpdatingTargets = undefined;
40
+ this.updatingTargetList = [];
41
+ this.activeTargetList = [];
42
+ this.activatedTargets = [];
43
+ this.updatingTargetMap = {};
44
+ this.runtimeState = {
45
+ updatingTargetList: this.updatingTargetList,
46
+ activeTargetList: this.activeTargetList,
47
+ activatedTargets: this.activatedTargets,
48
+ fetchActionTargetList: [],
49
+ lastChildrenUpdate: {
50
+ additions: [],
51
+ deletions: []
52
+ }
53
+ };
54
+ this.pendingTargets = false;
55
+ this.currentStatus = undefined;
56
+ this.dirtyLayout = false;
57
+ }
58
+ return _createClass(ParticleChild, [{
59
+ key: "state",
60
+ value: function state() {
61
+ return this.runtimeState;
62
+ }
63
+ }, {
64
+ key: "isTargetImperative",
65
+ value: function isTargetImperative(key) {
66
+ var _this$targetValues$ke;
67
+ return ((_this$targetValues$ke = this.targetValues[key]) === null || _this$targetValues$ke === void 0 ? void 0 : _this$targetValues$ke.isImperative) === true;
68
+ }
69
+ }, {
70
+ key: "isComplete",
71
+ value: function isComplete() {
72
+ return TargetUtil.isTModelComplete(this);
73
+ }
74
+ }, {
75
+ key: "val",
76
+ value: function val(key, value) {
77
+ var cleanKey = TargetUtil.getTargetName(key);
78
+ if (arguments.length === 2) {
79
+ this.parent.setChildValue(this.index, cleanKey, value);
80
+ return this;
81
+ }
82
+ return this.actualValues[cleanKey];
83
+ }
84
+ }, {
85
+ key: "getParent",
86
+ value: function getParent() {
87
+ return this.parent;
88
+ }
89
+ }, {
90
+ key: "getRealParent",
91
+ value: function getRealParent() {
92
+ return this.parent;
93
+ }
94
+ }, {
95
+ key: "getParentValue",
96
+ value: function getParentValue(key) {
97
+ var _this$parent;
98
+ return (_this$parent = this.parent) === null || _this$parent === void 0 ? void 0 : _this$parent.val(key);
99
+ }
100
+ }, {
101
+ key: "pval",
102
+ value: function pval(key) {
103
+ return this.getParentValue(key);
104
+ }
105
+ }, {
106
+ key: "exists",
107
+ value: function exists() {
108
+ var _this$parent2;
109
+ return this.index >= 0 && ((_this$parent2 = this.parent) === null || _this$parent2 === void 0 ? void 0 : _this$parent2.childHandles[this.index]) === this;
110
+ }
111
+ }, {
112
+ key: "hasAnimatingTargets",
113
+ value: function hasAnimatingTargets() {
114
+ return false;
115
+ }
116
+ }, {
117
+ key: "hasAnimatingChildren",
118
+ value: function hasAnimatingChildren() {
119
+ return false;
120
+ }
121
+ }, {
122
+ key: "hasUpdatingChildren",
123
+ value: function hasUpdatingChildren() {
124
+ return false;
125
+ }
126
+ }, {
127
+ key: "hasActiveChildren",
128
+ value: function hasActiveChildren() {
129
+ return false;
130
+ }
131
+ }, {
132
+ key: "getChildren",
133
+ value: function getChildren() {
134
+ return [];
135
+ }
136
+ }, {
137
+ key: "getChild",
138
+ value: function getChild() {
139
+ return undefined;
140
+ }
141
+ }, {
142
+ key: "hasChildren",
143
+ value: function hasChildren() {
144
+ return false;
145
+ }
146
+ }, {
147
+ key: "clearUpdatingChildren",
148
+ value: function clearUpdatingChildren() {
149
+ this.updatingTargetList.length = 0;
150
+ }
151
+ }, {
152
+ key: "clearActiveChildren",
153
+ value: function clearActiveChildren() {
154
+ this.activeTargetList.length = 0;
155
+ }
156
+ }, {
157
+ key: "clearAnimatingChildren",
158
+ value: function clearAnimatingChildren() {}
159
+ }, {
160
+ key: "cancelAnimation",
161
+ value: function cancelAnimation() {}
162
+ }, {
163
+ key: "hasEventDirty",
164
+ value: function hasEventDirty() {
165
+ return false;
166
+ }
167
+ }, {
168
+ key: "markEventDirty",
169
+ value: function markEventDirty() {}
170
+ }, {
171
+ key: "markLayoutDirty",
172
+ value: function markLayoutDirty(key) {
173
+ var _this$parent3, _this$parent3$markLay;
174
+ (_this$parent3 = this.parent) === null || _this$parent3 === void 0 || (_this$parent3$markLay = _this$parent3.markLayoutDirty) === null || _this$parent3$markLay === void 0 || _this$parent3$markLay.call(_this$parent3, "gpuChild-".concat(this.index, "-").concat(key));
175
+ }
176
+ }, {
177
+ key: "removeLayoutDirty",
178
+ value: function removeLayoutDirty() {}
179
+ }, {
180
+ key: "getDirtyLayout",
181
+ value: function getDirtyLayout() {
182
+ return false;
183
+ }
184
+ }, {
185
+ key: "getX",
186
+ value: function getX() {
187
+ var _this$actualValues$x;
188
+ return (_this$actualValues$x = this.actualValues.x) !== null && _this$actualValues$x !== void 0 ? _this$actualValues$x : this.x;
189
+ }
190
+ }, {
191
+ key: "getY",
192
+ value: function getY() {
193
+ var _this$actualValues$y;
194
+ return (_this$actualValues$y = this.actualValues.y) !== null && _this$actualValues$y !== void 0 ? _this$actualValues$y : this.y;
195
+ }
196
+ }, {
197
+ key: "getWidth",
198
+ value: function getWidth() {
199
+ var _this$val;
200
+ return (_this$val = this.val("width")) !== null && _this$val !== void 0 ? _this$val : 0;
201
+ }
202
+ }, {
203
+ key: "getHeight",
204
+ value: function getHeight() {
205
+ var _this$val2;
206
+ return (_this$val2 = this.val("height")) !== null && _this$val2 !== void 0 ? _this$val2 : 0;
207
+ }
208
+ }, {
209
+ key: "getBaseWidth",
210
+ value: function getBaseWidth() {
211
+ return this.getWidth();
212
+ }
213
+ }, {
214
+ key: "getBaseHeight",
215
+ value: function getBaseHeight() {
216
+ return this.getHeight();
217
+ }
218
+ }, {
219
+ key: "getMinWidth",
220
+ value: function getMinWidth() {
221
+ return this.getWidth();
222
+ }
223
+ }, {
224
+ key: "getTopBaseHeight",
225
+ value: function getTopBaseHeight() {
226
+ return 0;
227
+ }
228
+ }, {
229
+ key: "getMeasuringScale",
230
+ value: function getMeasuringScale() {
231
+ var _this$val3;
232
+ return (_this$val3 = this.val("measuringScale")) !== null && _this$val3 !== void 0 ? _this$val3 : 1;
233
+ }
234
+ }, {
235
+ key: "getMarginTop",
236
+ value: function getMarginTop() {
237
+ var _ref, _this$val4;
238
+ return (_ref = (_this$val4 = this.val("marginTop")) !== null && _this$val4 !== void 0 ? _this$val4 : this.val("topMargin")) !== null && _ref !== void 0 ? _ref : 0;
239
+ }
240
+ }, {
241
+ key: "getMarginLeft",
242
+ value: function getMarginLeft() {
243
+ var _ref2, _this$val5;
244
+ return (_ref2 = (_this$val5 = this.val("marginLeft")) !== null && _this$val5 !== void 0 ? _this$val5 : this.val("leftMargin")) !== null && _ref2 !== void 0 ? _ref2 : 0;
245
+ }
246
+ }, {
247
+ key: "getMarginRight",
248
+ value: function getMarginRight() {
249
+ var _ref3, _this$val6, _this$getParentValue;
250
+ var margin = (_ref3 = (_this$val6 = this.val("marginRight")) !== null && _this$val6 !== void 0 ? _this$val6 : this.val("rightMargin")) !== null && _ref3 !== void 0 ? _ref3 : 0;
251
+ return margin + ((_this$getParentValue = this.getParentValue("gap")) !== null && _this$getParentValue !== void 0 ? _this$getParentValue : 0);
252
+ }
253
+ }, {
254
+ key: "getMarginBottom",
255
+ value: function getMarginBottom() {
256
+ var _ref4, _this$val7, _this$getParentValue2;
257
+ var margin = (_ref4 = (_this$val7 = this.val("marginBottom")) !== null && _this$val7 !== void 0 ? _this$val7 : this.val("bottomMargin")) !== null && _ref4 !== void 0 ? _ref4 : 0;
258
+ return margin + ((_this$getParentValue2 = this.getParentValue("gap")) !== null && _this$getParentValue2 !== void 0 ? _this$getParentValue2 : 0);
259
+ }
260
+ }, {
261
+ key: "getTopMargin",
262
+ value: function getTopMargin() {
263
+ return this.getMarginTop();
264
+ }
265
+ }, {
266
+ key: "getLeftMargin",
267
+ value: function getLeftMargin() {
268
+ return this.getMarginLeft();
269
+ }
270
+ }, {
271
+ key: "getRightMargin",
272
+ value: function getRightMargin() {
273
+ return this.getMarginRight();
274
+ }
275
+ }, {
276
+ key: "getBottomMargin",
277
+ value: function getBottomMargin() {
278
+ return this.getMarginBottom();
279
+ }
280
+ }, {
281
+ key: "getItemOverflowMode",
282
+ value: function getItemOverflowMode() {
283
+ var _this$val8;
284
+ return (_this$val8 = this.val("itemOverflowMode")) !== null && _this$val8 !== void 0 ? _this$val8 : "auto";
285
+ }
286
+ }, {
287
+ key: "isInFlow",
288
+ value: function isInFlow() {
289
+ var _this$val9;
290
+ return (_this$val9 = this.val("isInFlow")) !== null && _this$val9 !== void 0 ? _this$val9 : true;
291
+ }
292
+ }, {
293
+ key: "isIncluded",
294
+ value: function isIncluded() {
295
+ return true;
296
+ }
297
+ }, {
298
+ key: "useContentWidth",
299
+ value: function useContentWidth() {
300
+ return false;
301
+ }
302
+ }, {
303
+ key: "useContentHeight",
304
+ value: function useContentHeight() {
305
+ return false;
306
+ }
307
+ }, {
308
+ key: "getContentWidth",
309
+ value: function getContentWidth() {
310
+ return 0;
311
+ }
312
+ }, {
313
+ key: "getContentHeight",
314
+ value: function getContentHeight() {
315
+ return 0;
316
+ }
317
+ }, {
318
+ key: "hasDom",
319
+ value: function hasDom() {
320
+ return false;
321
+ }
322
+ }, {
323
+ key: "isDomIsland",
324
+ value: function isDomIsland() {
325
+ return false;
326
+ }
327
+ }, {
328
+ key: "reuseDomDefinition",
329
+ value: function reuseDomDefinition() {
330
+ return false;
331
+ }
332
+ }, {
333
+ key: "requiresDom",
334
+ value: function requiresDom() {
335
+ return false;
336
+ }
337
+ }, {
338
+ key: "requiresDomRelocation",
339
+ value: function requiresDomRelocation() {
340
+ return false;
341
+ }
342
+ }, {
343
+ key: "hasDomHolderChanged",
344
+ value: function hasDomHolderChanged() {
345
+ return false;
346
+ }
347
+ }, {
348
+ key: "hasBaseElementChanged",
349
+ value: function hasBaseElementChanged() {
350
+ return false;
351
+ }
352
+ }, {
353
+ key: "getHtml",
354
+ value: function getHtml() {
355
+ return this.val("html");
356
+ }
357
+ }, {
358
+ key: "excludeDefaultStyling",
359
+ value: function excludeDefaultStyling() {
360
+ return true;
361
+ }
362
+ }, {
363
+ key: "excludeStyling",
364
+ value: function excludeStyling() {
365
+ return true;
366
+ }
367
+ }, {
368
+ key: "addToStyleTargetList",
369
+ value: function addToStyleTargetList() {}
370
+ }, {
371
+ key: "calcAbsolutePosition",
372
+ value: function calcAbsolutePosition(x, y) {
373
+ var _this$parent$absX, _this$parent4, _this$parent$absY, _this$parent5;
374
+ this.absX = ((_this$parent$absX = (_this$parent4 = this.parent) === null || _this$parent4 === void 0 ? void 0 : _this$parent4.absX) !== null && _this$parent$absX !== void 0 ? _this$parent$absX : 0) + x;
375
+ this.absY = ((_this$parent$absY = (_this$parent5 = this.parent) === null || _this$parent5 === void 0 ? void 0 : _this$parent5.absY) !== null && _this$parent$absY !== void 0 ? _this$parent$absY : 0) + y;
376
+ }
377
+ }, {
378
+ key: "isVisible",
379
+ value: function isVisible() {
380
+ return this.actualValues.isVisible !== false;
381
+ }
382
+ }, {
383
+ key: "calcVisibility",
384
+ value: function calcVisibility() {
385
+ var parent = this.parent;
386
+ if (!parent) {
387
+ return false;
388
+ }
389
+ var scale = (parent.getMeasuringScale() || 1) * this.getMeasuringScale();
390
+ var x = this.absX;
391
+ var y = this.absY;
392
+ var width = scale * this.getWidth();
393
+ var height = scale * this.getHeight();
394
+ var margin = 20;
395
+ var status = VisibilityUtil.checkVisibility(this, {
396
+ x: x - margin,
397
+ y: y - margin,
398
+ r: x + width + margin,
399
+ b: y + height + margin
400
+ });
401
+ this.actualValues.isVisible = status.isVisible;
402
+ return status.isVisible;
403
+ }
404
+ }, {
405
+ key: "addToNoDomUpdatingTargets",
406
+ value: function addToNoDomUpdatingTargets(key) {
407
+ var _this$parent6;
408
+ var cleanKey = TargetUtil.getTargetName(key);
409
+ var noDomTargets = this.noDomUpdatingTargets || (this.noDomUpdatingTargets = new Set());
410
+ if (noDomTargets.has(cleanKey)) {
411
+ return false;
412
+ }
413
+ noDomTargets.add(cleanKey);
414
+ (_this$parent6 = this.parent) === null || _this$parent6 === void 0 || _this$parent6.addToUpdatingChildren(this);
415
+ return true;
416
+ }
417
+ }, {
418
+ key: "removeFromNoDomUpdatingTargets",
419
+ value: function removeFromNoDomUpdatingTargets(key) {
420
+ if (!this.noDomUpdatingTargets) {
421
+ return false;
422
+ }
423
+ var removed = this.noDomUpdatingTargets.delete(TargetUtil.getTargetName(key));
424
+ if (!this.noDomUpdatingTargets.size) {
425
+ var _this$parent7;
426
+ this.noDomUpdatingTargets = undefined;
427
+ (_this$parent7 = this.parent) === null || _this$parent7 === void 0 || _this$parent7.removeFromUpdatingChildren(this);
428
+ }
429
+ return removed;
430
+ }
431
+ }, {
432
+ key: "catchupNoDomLayoutTargets",
433
+ value: function catchupNoDomLayoutTargets() {
434
+ var _this$parent8;
435
+ return (_this$parent8 = this.parent) === null || _this$parent8 === void 0 ? void 0 : _this$parent8.catchupChildLayoutTargets(this);
436
+ }
437
+ }, {
438
+ key: "validateVisibilityInParent",
439
+ value: function validateVisibilityInParent() {
440
+ return true;
441
+ }
442
+ }, {
443
+ key: "setLayoutX",
444
+ value: function setLayoutX(value) {
445
+ if (this.x === value) {
446
+ return;
447
+ }
448
+ this.x = value;
449
+ this.parent.particleValuesDirty = true;
450
+ }
451
+ }, {
452
+ key: "setLayoutY",
453
+ value: function setLayoutY(value) {
454
+ if (this.y === value) {
455
+ return;
456
+ }
457
+ this.y = value;
458
+ this.parent.particleValuesDirty = true;
459
+ }
460
+ }, {
461
+ key: "setTarget",
462
+ value: function setTarget(key, value, steps, interval, easing) {
463
+ var originalTargetName = TargetUtil.currentTargetName;
464
+ var originalTModel = TargetUtil.currentTModel;
465
+ if (this.parent === originalTModel && originalTargetName) {
466
+ TargetUtil.markChildAction(originalTModel, originalTargetName, this);
467
+ }
468
+ if (key && _typeof(key) === "object" && !Array.isArray(key)) {
469
+ var targets = key;
470
+ var targetSteps = value;
471
+ var targetInterval = steps;
472
+ var targetEasing = interval;
473
+ for (var _i = 0, _Object$entries = Object.entries(targets); _i < _Object$entries.length; _i++) {
474
+ var _Object$entries$_i = _slicedToArray(_Object$entries[_i], 2),
475
+ targetKey = _Object$entries$_i[0],
476
+ targetValue = _Object$entries$_i[1];
477
+ var _cleanKey = TargetUtil.getTargetName(targetKey);
478
+ this.allTargetMap[_cleanKey] = targetKey;
479
+ this.parent.setChildTarget(this.index, targetKey, targetValue, targetSteps, targetInterval, targetEasing);
480
+ }
481
+ return this;
482
+ }
483
+ var cleanKey = TargetUtil.getTargetName(key);
484
+ this.allTargetMap[cleanKey] = key;
485
+ this.parent.setChildTarget(this.index, key, value, steps, interval, easing);
486
+ return this;
487
+ }
488
+ }, {
489
+ key: "activateTarget",
490
+ value: function activateTarget(key) {
491
+ this.parent.activateGpuChildTarget(this.index, key);
492
+ return this;
493
+ }
494
+ }, {
495
+ key: "getLayoutHeight",
496
+ value: function getLayoutHeight() {
497
+ var height = this.getHeight();
498
+ if (this.usesContentBoxSizing()) {
499
+ height += this.getPaddingTop() + this.getPaddingBottom();
500
+ }
501
+ return height;
502
+ }
503
+ }, {
504
+ key: "getLayoutWidth",
505
+ value: function getLayoutWidth() {
506
+ var width = this.getWidth();
507
+ if (this.usesContentBoxSizing()) {
508
+ width += this.getPaddingLeft() + this.getPaddingRight();
509
+ }
510
+ return width;
511
+ }
512
+ }, {
513
+ key: "addToUpdatingTargets",
514
+ value: function addToUpdatingTargets(key) {
515
+ var _this$parent9;
516
+ if (this.updatingTargetMap[key]) {
517
+ return;
518
+ }
519
+ this.updatingTargetMap[key] = true;
520
+ this.updatingTargetList.push(key);
521
+ (_this$parent9 = this.parent) === null || _this$parent9 === void 0 || _this$parent9.addToUpdatingChildren(this);
522
+ }
523
+ }, {
524
+ key: "removeFromUpdatingTargets",
525
+ value: function removeFromUpdatingTargets(key) {
526
+ if (!this.updatingTargetMap[key]) {
527
+ return;
528
+ }
529
+ delete this.updatingTargetMap[key];
530
+ var index = this.updatingTargetList.indexOf(key);
531
+ if (index >= 0) {
532
+ this.updatingTargetList.splice(index, 1);
533
+ }
534
+ if (!this.updatingTargetList.length) {
535
+ var _this$parent10;
536
+ (_this$parent10 = this.parent) === null || _this$parent10 === void 0 || _this$parent10.removeFromUpdatingChildren(this);
537
+ }
538
+ }
539
+ }, {
540
+ key: "usesContentBoxSizing",
541
+ value: function usesContentBoxSizing() {
542
+ return this.getBoxSizing() !== "border-box";
543
+ }
544
+ }, {
545
+ key: "getBoxSizing",
546
+ value: function getBoxSizing() {
547
+ var _ref5, _ref6, _this$val10;
548
+ return (_ref5 = (_ref6 = (_this$val10 = this.val("boxSizing")) !== null && _this$val10 !== void 0 ? _this$val10 : this.val("box-sizing")) !== null && _ref6 !== void 0 ? _ref6 : this.getParentValue("boxSizing")) !== null && _ref5 !== void 0 ? _ref5 : "content-box";
549
+ }
550
+ }, {
551
+ key: "getPaddingTop",
552
+ value: function getPaddingTop() {
553
+ var _ref7, _this$val11;
554
+ return (_ref7 = (_this$val11 = this.val("paddingTop")) !== null && _this$val11 !== void 0 ? _this$val11 : this.val("topPadding")) !== null && _ref7 !== void 0 ? _ref7 : TModelUtil.getPaddingValue(this, "top");
555
+ }
556
+ }, {
557
+ key: "getPaddingLeft",
558
+ value: function getPaddingLeft() {
559
+ var _ref8, _this$val12;
560
+ return (_ref8 = (_this$val12 = this.val("paddingLeft")) !== null && _this$val12 !== void 0 ? _this$val12 : this.val("leftPadding")) !== null && _ref8 !== void 0 ? _ref8 : TModelUtil.getPaddingValue(this, "left");
561
+ }
562
+ }, {
563
+ key: "getPaddingRight",
564
+ value: function getPaddingRight() {
565
+ var _ref9, _this$val13;
566
+ return (_ref9 = (_this$val13 = this.val("paddingRight")) !== null && _this$val13 !== void 0 ? _this$val13 : this.val("rightPadding")) !== null && _ref9 !== void 0 ? _ref9 : TModelUtil.getPaddingValue(this, "right");
567
+ }
568
+ }, {
569
+ key: "getPaddingBottom",
570
+ value: function getPaddingBottom() {
571
+ var _ref10, _this$val14;
572
+ return (_ref10 = (_this$val14 = this.val("paddingBottom")) !== null && _this$val14 !== void 0 ? _this$val14 : this.val("bottomPadding")) !== null && _ref10 !== void 0 ? _ref10 : TModelUtil.getPaddingValue(this, "bottom");
573
+ }
574
+ }]);
575
+ }();
576
+ export { ParticleChild };