@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.cjs
CHANGED
|
@@ -4777,10 +4777,12 @@ var cacheReuseLayout = (cache5, view) => {
|
|
|
4777
4777
|
const cacheW = cache5.widthDevicePx;
|
|
4778
4778
|
const cacheH = cache5.heightDevicePx;
|
|
4779
4779
|
const marginDev = cache5.marginCssPx * cache5.dpr;
|
|
4780
|
-
const
|
|
4781
|
-
const
|
|
4782
|
-
const destX =
|
|
4783
|
-
const destY =
|
|
4780
|
+
const rawDestX = (cache5.camX - view.camX) * view.camZ * cache5.dpr + marginDev * (1 - ratio);
|
|
4781
|
+
const rawDestY = (cache5.camY - view.camY) * view.camZ * cache5.dpr + marginDev * (1 - ratio);
|
|
4782
|
+
const destX = Math.round(rawDestX);
|
|
4783
|
+
const destY = Math.round(rawDestY);
|
|
4784
|
+
const destW = Math.round(rawDestX + cacheW * ratio) - destX;
|
|
4785
|
+
const destH = Math.round(rawDestY + cacheH * ratio) - destY;
|
|
4784
4786
|
const dest = { x: destX, y: destY, w: destW, h: destH };
|
|
4785
4787
|
const strips = {
|
|
4786
4788
|
top: { x: 0, y: 0, w: cacheW, h: Math.max(0, destY) },
|