targetj 1.1.2 → 1.1.3
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/ParticleRenderer.js +2 -3
- package/build/VisibilityUtil.js +2 -2
- package/dist/targetjs.js +1 -1
- package/dist/targetjs.js.gz +0 -0
- package/package.json +1 -1
|
@@ -957,10 +957,9 @@ var ParticleRenderer = /*#__PURE__*/function () {
|
|
|
957
957
|
key: "getParticlePosition",
|
|
958
958
|
value: function getParticlePosition(child) {
|
|
959
959
|
var values = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : child === null || child === void 0 ? void 0 : child.actualValues;
|
|
960
|
-
var scroll = this.tmodel.getUnappliedScroll();
|
|
961
960
|
return {
|
|
962
|
-
x: child.allTargetMap.x ? values.x : child.x
|
|
963
|
-
y: child.allTargetMap.y ? values.y : child.y
|
|
961
|
+
x: child.allTargetMap.x ? values.x : child.x,
|
|
962
|
+
y: child.allTargetMap.y ? values.y : child.y
|
|
964
963
|
};
|
|
965
964
|
}
|
|
966
965
|
}, {
|
package/build/VisibilityUtil.js
CHANGED
|
@@ -140,8 +140,8 @@ var VisibilityUtil = /*#__PURE__*/function () {
|
|
|
140
140
|
var modelTop = (_tmodel$getScrollTop = tmodel.getScrollTop()) !== null && _tmodel$getScrollTop !== void 0 ? _tmodel$getScrollTop : 0;
|
|
141
141
|
var modelLeft = (_tmodel$getScrollLeft = tmodel.getScrollLeft()) !== null && _tmodel$getScrollLeft !== void 0 ? _tmodel$getScrollLeft : 0;
|
|
142
142
|
return {
|
|
143
|
-
x:
|
|
144
|
-
y:
|
|
143
|
+
x: modelLeft - domLeft,
|
|
144
|
+
y: modelTop - domTop
|
|
145
145
|
};
|
|
146
146
|
}
|
|
147
147
|
}]);
|