@pixldocs/canvas-renderer 0.5.51 → 0.5.52
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 +3 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -221,7 +221,7 @@ export declare function normalizeFontFamily(fontStack: string): string;
|
|
|
221
221
|
* Package version banner. Bump alongside package.json so we can confirm
|
|
222
222
|
* (via browser:log) that the deployed bundle matches the expected build.
|
|
223
223
|
*/
|
|
224
|
-
export declare const PACKAGE_VERSION = "0.5.
|
|
224
|
+
export declare const PACKAGE_VERSION = "0.5.52";
|
|
225
225
|
|
|
226
226
|
export declare interface PageSettings {
|
|
227
227
|
backgroundColor?: string;
|
package/dist/index.js
CHANGED
|
@@ -12321,7 +12321,7 @@ function PixldocsPreview(props) {
|
|
|
12321
12321
|
!canvasSettled && /* @__PURE__ */ jsx("div", { style: { position: "absolute", inset: 0, display: "flex", alignItems: "center", justifyContent: "center", minHeight: 200 }, children: /* @__PURE__ */ jsx("div", { style: { color: "#888", fontSize: 14 }, children: "Loading preview..." }) })
|
|
12322
12322
|
] });
|
|
12323
12323
|
}
|
|
12324
|
-
const PACKAGE_VERSION = "0.5.
|
|
12324
|
+
const PACKAGE_VERSION = "0.5.52";
|
|
12325
12325
|
let __underlineFixInstalled = false;
|
|
12326
12326
|
function installUnderlineFix(fab) {
|
|
12327
12327
|
var _a;
|
|
@@ -13985,6 +13985,7 @@ const SVG_STYLE_PROPS = /* @__PURE__ */ new Set([
|
|
|
13985
13985
|
const GRADIENT_ATTRS_LINEAR = ["x1", "y1", "x2", "y2", "gradientUnits", "gradientTransform", "spreadMethod"];
|
|
13986
13986
|
const GRADIENT_ATTRS_RADIAL = ["cx", "cy", "r", "fx", "fy", "gradientUnits", "gradientTransform", "spreadMethod"];
|
|
13987
13987
|
const URL_GRADIENT_RE = /^\s*url\s*\(\s*(['"]?)([^)]+?)\1\s*\)/i;
|
|
13988
|
+
const SHADOW_RASTER_ALPHA_COMPENSATION = 0.84;
|
|
13988
13989
|
function parseColor(color) {
|
|
13989
13990
|
if (!color) return null;
|
|
13990
13991
|
const raw = color.trim().toLowerCase();
|
|
@@ -15030,6 +15031,7 @@ async function rasterizeShadowMarkers(svg) {
|
|
|
15030
15031
|
img.setAttribute("y", String(by));
|
|
15031
15032
|
img.setAttribute("width", String(bw));
|
|
15032
15033
|
img.setAttribute("height", String(bh));
|
|
15034
|
+
img.setAttribute("opacity", String(SHADOW_RASTER_ALPHA_COMPENSATION));
|
|
15033
15035
|
img.setAttribute("preserveAspectRatio", "none");
|
|
15034
15036
|
img.setAttributeNS(XLINK_NS, "xlink:href", dataUrl);
|
|
15035
15037
|
img.setAttribute("href", dataUrl);
|