@insitue/sdk 0.1.11 → 0.1.12
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/capture-only.js
CHANGED
|
@@ -1671,26 +1671,12 @@ async function renderViewportCrop(cropRect, pixelRatio) {
|
|
|
1671
1671
|
out.height = Math.max(1, Math.round(cropRect.height * pixelRatio));
|
|
1672
1672
|
const ctx = out.getContext("2d");
|
|
1673
1673
|
if (!ctx) return { dataUrl: null, failedImages };
|
|
1674
|
-
const drawnImgs = await drawAbsoluteImagesOnto(
|
|
1675
|
-
ctx,
|
|
1676
|
-
cropRect,
|
|
1677
|
-
pixelRatio,
|
|
1678
|
-
failedImages
|
|
1679
|
-
);
|
|
1680
1674
|
const fullCanvas = await toCanvas(document.documentElement, {
|
|
1681
1675
|
pixelRatio,
|
|
1682
1676
|
cacheBust: true,
|
|
1683
1677
|
backgroundColor,
|
|
1684
1678
|
imagePlaceholder: IMAGE_PLACEHOLDER,
|
|
1685
|
-
filter: (n2) =>
|
|
1686
|
-
if (n2 instanceof Element && n2.closest?.("#insitu-root, [data-insitu-layer]")) {
|
|
1687
|
-
return false;
|
|
1688
|
-
}
|
|
1689
|
-
if (n2 instanceof HTMLImageElement && drawnImgs.has(n2)) {
|
|
1690
|
-
return false;
|
|
1691
|
-
}
|
|
1692
|
-
return true;
|
|
1693
|
-
}
|
|
1679
|
+
filter: (n2) => !(n2 instanceof Element && n2.closest?.("#insitu-root, [data-insitu-layer]"))
|
|
1694
1680
|
});
|
|
1695
1681
|
const sx = window.scrollX;
|
|
1696
1682
|
const sy = window.scrollY;
|
|
@@ -1705,6 +1691,13 @@ async function renderViewportCrop(cropRect, pixelRatio) {
|
|
|
1705
1691
|
out.width,
|
|
1706
1692
|
out.height
|
|
1707
1693
|
);
|
|
1694
|
+
const drawnImgs = await drawAbsoluteImagesOnto(
|
|
1695
|
+
ctx,
|
|
1696
|
+
cropRect,
|
|
1697
|
+
pixelRatio,
|
|
1698
|
+
failedImages
|
|
1699
|
+
);
|
|
1700
|
+
void drawnImgs;
|
|
1708
1701
|
if (looksBlankUniform(ctx, out.width, out.height)) {
|
|
1709
1702
|
return { dataUrl: null, failedImages };
|
|
1710
1703
|
}
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
setCaptureSettings,
|
|
12
12
|
stopDisplayMedia,
|
|
13
13
|
y
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-6QESDKMV.js";
|
|
15
15
|
|
|
16
16
|
// src/capture-only.ts
|
|
17
17
|
var DEFAULT_INGEST = "https://www.insitue.com/api/v1/capture";
|
|
@@ -362,8 +362,8 @@ function CaptureOnlyApp(props) {
|
|
|
362
362
|
k("span", {}, ""),
|
|
363
363
|
k(
|
|
364
364
|
"span",
|
|
365
|
-
{ title: `@insitue/sdk@${"0.1.
|
|
366
|
-
`InSitue \xB7 v${"0.1.
|
|
365
|
+
{ title: `@insitue/sdk@${"0.1.12"}` },
|
|
366
|
+
`InSitue \xB7 v${"0.1.12"}`
|
|
367
367
|
)
|
|
368
368
|
]
|
|
369
369
|
)
|
package/dist/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
mountCaptureOnly
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-QD5ORBG3.js";
|
|
4
4
|
import {
|
|
5
5
|
mountInSitue
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-BOHPIOZ6.js";
|
|
7
|
+
import "./chunk-6QESDKMV.js";
|
|
8
8
|
|
|
9
9
|
// src/InSitue.tsx
|
|
10
10
|
import { useEffect } from "react";
|
|
@@ -52,7 +52,7 @@ function InSitueCapture({
|
|
|
52
52
|
}
|
|
53
53
|
|
|
54
54
|
// src/index.ts
|
|
55
|
-
var SDK_VERSION = "0.1.
|
|
55
|
+
var SDK_VERSION = "0.1.12";
|
|
56
56
|
export {
|
|
57
57
|
InSitue,
|
|
58
58
|
InSitueCapture,
|
package/dist/overlay.js
CHANGED
package/package.json
CHANGED