@canvas-harness/core 0.1.22 → 0.1.23
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/dist/index.cjs +6 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +6 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -4775,10 +4775,12 @@ var cacheReuseLayout = (cache5, view) => {
|
|
|
4775
4775
|
const cacheW = cache5.widthDevicePx;
|
|
4776
4776
|
const cacheH = cache5.heightDevicePx;
|
|
4777
4777
|
const marginDev = cache5.marginCssPx * cache5.dpr;
|
|
4778
|
-
const
|
|
4779
|
-
const
|
|
4780
|
-
const destX =
|
|
4781
|
-
const destY =
|
|
4778
|
+
const rawDestX = (cache5.camX - view.camX) * view.camZ * cache5.dpr + marginDev * (1 - ratio);
|
|
4779
|
+
const rawDestY = (cache5.camY - view.camY) * view.camZ * cache5.dpr + marginDev * (1 - ratio);
|
|
4780
|
+
const destX = Math.round(rawDestX);
|
|
4781
|
+
const destY = Math.round(rawDestY);
|
|
4782
|
+
const destW = Math.round(rawDestX + cacheW * ratio) - destX;
|
|
4783
|
+
const destH = Math.round(rawDestY + cacheH * ratio) - destY;
|
|
4782
4784
|
const dest = { x: destX, y: destY, w: destW, h: destH };
|
|
4783
4785
|
const strips = {
|
|
4784
4786
|
top: { x: 0, y: 0, w: cacheW, h: Math.max(0, destY) },
|