@zero-library/common 2.1.4 → 2.1.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/dist/index.cjs.js +3 -3
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +3 -3
- package/dist/index.esm.js.map +1 -1
- package/package.json +2 -2
package/dist/index.esm.js
CHANGED
|
@@ -1279,7 +1279,7 @@ var PdfPreview_default = ({ password, fileUrl, pageNo = 1, scale = 1, isHasThumb
|
|
|
1279
1279
|
}, 500);
|
|
1280
1280
|
onSetPageNo?.(currentPage + 1);
|
|
1281
1281
|
}, [currentPage]);
|
|
1282
|
-
return /* @__PURE__ */ jsx("div", { ref: embedRef, className: styles_module_default.nsPreviewPdf, children: /* @__PURE__ */ jsx(Worker, { workerUrl:
|
|
1282
|
+
return /* @__PURE__ */ jsx("div", { ref: embedRef, className: styles_module_default.nsPreviewPdf, children: /* @__PURE__ */ jsx(Worker, { workerUrl: `//logosdata.cn/public/pdf/pdf.worker.min.js`, children: /* @__PURE__ */ jsxs(Splitter, { onResize: setSizes, children: [
|
|
1283
1283
|
isHasThumbnails && /* @__PURE__ */ jsx(Splitter.Panel, { resizable: false, size: sizes[0], min: 250, max: 500, collapsible: true, children: /* @__PURE__ */ jsx(Thumbnails, {}) }),
|
|
1284
1284
|
/* @__PURE__ */ jsx(Splitter.Panel, { children: /* @__PURE__ */ jsxs("div", { className: "height-full", children: [
|
|
1285
1285
|
/* @__PURE__ */ jsx(
|
|
@@ -1300,13 +1300,13 @@ var PdfPreview_default = ({ password, fileUrl, pageNo = 1, scale = 1, isHasThumb
|
|
|
1300
1300
|
// 启用 CMap 支持,解决中文字体显示问题
|
|
1301
1301
|
// cMapUrl: 指定 CMap 文件的 URL,用于处理非拉丁字符(如中文)
|
|
1302
1302
|
// cMapPacked: 使用压缩的 CMap 文件以提高性能
|
|
1303
|
-
cMapUrl: "logosdata.cn/public/pdf/pdfjs-dist@3.2.146/cmaps/",
|
|
1303
|
+
cMapUrl: "//logosdata.cn/public/pdf/pdfjs-dist@3.2.146/cmaps/",
|
|
1304
1304
|
// 使用可用的源
|
|
1305
1305
|
cMapPacked: true,
|
|
1306
1306
|
// 禁用字体子集化,确保完整字体加载
|
|
1307
1307
|
disableFontFace: false,
|
|
1308
1308
|
// 启用标准字体支持
|
|
1309
|
-
standardFontDataUrl: "logosdata.cn/public/pdf/pdfjs-dist@3.2.146/standard_fonts/",
|
|
1309
|
+
standardFontDataUrl: "//logosdata.cn/public/pdf/pdfjs-dist@3.2.146/standard_fonts/",
|
|
1310
1310
|
// 设置字体回退策略
|
|
1311
1311
|
fallbackFontName: "Helvetica"
|
|
1312
1312
|
});
|