@bitovi/vybit 0.11.4 → 0.11.6
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/overlay/dist/overlay.js +2 -3
- package/package.json +1 -1
- package/panel/dist/assets/{DesignMode-Dz9Ji12J.js → DesignMode-BD4jT4QR.js} +31 -31
- package/panel/dist/assets/{index-B1KqavJw.js → index-Dbg-zA4t.js} +13 -13
- package/panel/dist/index.html +1 -1
- package/storybook-addon/manager-v10.tsx +1 -1
- package/storybook-addon/manager.tsx +1 -1
package/overlay/dist/overlay.js
CHANGED
|
@@ -2020,7 +2020,6 @@ ${pad}</${tag}>`;
|
|
|
2020
2020
|
const fiber = getFiber(clickedEl);
|
|
2021
2021
|
const boundary = fiber ? findComponentBoundary(fiber) : null;
|
|
2022
2022
|
const componentName2 = boundary?.componentName ?? null;
|
|
2023
|
-
console.log("[grouping] findExactMatches \u2014 fiber:", !!fiber, "boundary:", boundary?.componentName ?? "(none)", "tag:", tag);
|
|
2024
2023
|
let exactMatches;
|
|
2025
2024
|
if (boundary) {
|
|
2026
2025
|
const rootFiber = getRootFiberFrom(boundary.componentFiber) ?? getRootFiber();
|
|
@@ -3073,7 +3072,7 @@ ${pad}</${tag}>`;
|
|
|
3073
3072
|
const rect = nodes[0].getBoundingClientRect();
|
|
3074
3073
|
const width2 = Math.round(rect.width);
|
|
3075
3074
|
const height2 = Math.round(rect.height);
|
|
3076
|
-
const dataUrl = await toPng(nodes[0], { skipFonts: true, width: width2, height: height2 });
|
|
3075
|
+
const dataUrl = await toPng(nodes[0], { skipFonts: true, width: width2, height: height2, pixelRatio: 1 });
|
|
3077
3076
|
return { dataUrl, width: width2, height: height2 };
|
|
3078
3077
|
}
|
|
3079
3078
|
const parent = nodes[0].parentElement;
|
|
@@ -3099,7 +3098,7 @@ ${pad}</${tag}>`;
|
|
|
3099
3098
|
ghost.style.pointerEvents = "none";
|
|
3100
3099
|
document.body.appendChild(ghost);
|
|
3101
3100
|
try {
|
|
3102
|
-
const dataUrl = await toPng(ghost, { skipFonts: true, width, height });
|
|
3101
|
+
const dataUrl = await toPng(ghost, { skipFonts: true, width, height, pixelRatio: 1 });
|
|
3103
3102
|
return { dataUrl, width, height };
|
|
3104
3103
|
} finally {
|
|
3105
3104
|
ghost.remove();
|