targetj 1.0.177 → 1.0.179

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.
package/build/App.js CHANGED
@@ -66,13 +66,6 @@ var AppFn = function AppFn() {
66
66
  }
67
67
  return height;
68
68
  },
69
- height: function height() {
70
- return this.getContentHeight();
71
- },
72
- width: function width() {
73
- return this.getContentWidth();
74
- },
75
- coreTargets: ['width', 'height'],
76
69
  initPageDom: function initPageDom() {
77
70
  _DomInit.DomInit.initPageDoms(this.$dom);
78
71
  if (queuedAppCall) {
@@ -73,7 +73,6 @@ var LocationManager = exports.LocationManager = /*#__PURE__*/function () {
73
73
  key: "calculate",
74
74
  value: function calculate() {
75
75
  this.calculateContainer(_App.tApp.tRoot);
76
- this.calculateCoreTargets(_App.tApp.tRoot);
77
76
  }
78
77
  }, {
79
78
  key: "calculateActivated",
package/build/TModel.js CHANGED
@@ -350,16 +350,17 @@ var TModel = exports.TModel = /*#__PURE__*/function (_BaseModel) {
350
350
  }, {
351
351
  key: "getParentValue",
352
352
  value: function getParentValue(targetName) {
353
+ var _this$getParent;
353
354
  var parent = _SearchUtil.SearchUtil.findParentByTarget(this, targetName);
354
- return parent ? parent.val(targetName) : undefined;
355
+ return parent ? parent.val(targetName) : (_this$getParent = this.getParent()) === null || _this$getParent === void 0 ? void 0 : _this$getParent.val(targetName);
355
356
  }
356
357
  }, {
357
358
  key: "getParentValueAtMyIndex",
358
359
  value: function getParentValueAtMyIndex(targetName) {
359
360
  var parentValue = this.getParentValue(targetName);
360
361
  if (Array.isArray(parentValue)) {
361
- var _this$getParent;
362
- var index = (_this$getParent = this.getParent()) === null || _this$getParent === void 0 ? void 0 : _this$getParent.getChildIndex(this);
362
+ var _this$getParent2;
363
+ var index = (_this$getParent2 = this.getParent()) === null || _this$getParent2 === void 0 ? void 0 : _this$getParent2.getChildIndex(this);
363
364
  if (typeof index === 'number') {
364
365
  return parentValue[index];
365
366
  }
package/build/TUtil.js CHANGED
@@ -40,10 +40,11 @@ var TUtil = exports.TUtil = /*#__PURE__*/function () {
40
40
  child.visibilityStatus = {};
41
41
  }
42
42
  var status = child.visibilityStatus;
43
- var parentX = child.validateVisibilityInParent() ? Math.max(domParent.absX, parent.absX) : 0;
44
- var parentY = child.validateVisibilityInParent() ? Math.max(domParent.absY, parent.absY) : 0;
45
- var parentWidth = child.validateVisibilityInParent() ? Math.min(domParent.getWidth(), parent.getWidth()) : (0, _App.getScreenWidth)();
46
- var parentHeight = child.validateVisibilityInParent() ? Math.min(domParent.getHeight(), parent.getHeight()) : (0, _App.getScreenHeight)();
43
+ var validateInParent = child.validateVisibilityInParent() && parent !== (0, _App.tRoot)();
44
+ var parentX = validateInParent ? Math.max(domParent.absX, parent.absX) : 0;
45
+ var parentY = validateInParent ? Math.max(domParent.absY, parent.absY) : 0;
46
+ var parentWidth = validateInParent ? Math.min(domParent.getWidth(), parent.getWidth()) : (0, _App.getScreenWidth)();
47
+ var parentHeight = validateInParent ? Math.min(domParent.getHeight(), parent.getHeight()) : (0, _App.getScreenHeight)();
47
48
  status.right = x <= parentX + parentWidth;
48
49
  status.left = x + maxWidth >= parentX;
49
50
  status.bottom = y - child.getTopMargin() <= parentY + parentHeight;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "targetj",
3
- "version": "1.0.177",
3
+ "version": "1.0.179",
4
4
  "description": "TargetJS is a JavaScript framework designed for creating animated and efficient web user interfaces.",
5
5
  "keywords": ["targetjs"],
6
6
  "main": "Export.js",