@8btc/office-assistant-mcp 0.0.16 → 0.0.17
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/images/market_size_chart.png +0 -0
- package/dist/index.cjs +16 -6
- package/package.json +1 -1
|
Binary file
|
package/dist/index.cjs
CHANGED
|
@@ -76563,6 +76563,9 @@ mjx-container:not([display='true']) svg {
|
|
|
76563
76563
|
.fontkaiti {
|
|
76564
76564
|
font-family: KaiTi, "楷体", "Microsoft YaHei", "STKaiti", Arial, serif;
|
|
76565
76565
|
}
|
|
76566
|
+
.markdown-body > *:last-child {
|
|
76567
|
+
margin-bottom: 0 !important;
|
|
76568
|
+
}
|
|
76566
76569
|
@property --tw-translate-x {
|
|
76567
76570
|
syntax: "*";
|
|
76568
76571
|
inherits: false;
|
|
@@ -76738,8 +76741,10 @@ mjx-container:not([display='true']) svg {
|
|
|
76738
76741
|
`;
|
|
76739
76742
|
const renderFullHtml = (segment) => {
|
|
76740
76743
|
return `<!DOCTYPE html>
|
|
76741
|
-
<html>
|
|
76744
|
+
<html lang="zh-CN">
|
|
76742
76745
|
<head>
|
|
76746
|
+
<meta charset="UTF-8">
|
|
76747
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1, minimum-scale=1, user-scalable=no">
|
|
76743
76748
|
<title>Render report</title>
|
|
76744
76749
|
<style>${style}</style>
|
|
76745
76750
|
<style>
|
|
@@ -76989,10 +76994,15 @@ const createPage = async (page, item) => {
|
|
|
76989
76994
|
path: tempFileName,
|
|
76990
76995
|
format: "A4",
|
|
76991
76996
|
printBackground: true,
|
|
76997
|
+
preferCSSPageSize: false,
|
|
76992
76998
|
displayHeaderFooter: !hideHeader && !hideFooter,
|
|
76993
76999
|
headerTemplate: hideHeader ? "" : headerTemplate,
|
|
76994
|
-
footerTemplate: hideFooter ? "" : `<div style="width: 100%; box-sizing: border-box; height: 67px;
|
|
76995
|
-
<div
|
|
77000
|
+
footerTemplate: hideFooter ? "" : `<div style="width: 100%; box-sizing: border-box; height: 67px; font-size: 13px; padding: 0 48px; position: fixed; bottom: 0; left: 0; font-family: KaiTi, 楷体, serif;">
|
|
77001
|
+
<div style='display: flex; justify-content: space-between; align-items: center;'>
|
|
77002
|
+
<div>本报告由 Wujie Agent 生成</div>
|
|
77003
|
+
<div style='flex: auto;border-bottom: 1px solid #D4D4D4; margin: 0 10px'></div>
|
|
77004
|
+
<div style='flex: 0 0 58px;'></div>
|
|
77005
|
+
</div>
|
|
76996
77006
|
</div>`,
|
|
76997
77007
|
margin: hideHeader && hideFooter ? void 0 : hideFooter ? {
|
|
76998
77008
|
top: "128px",
|
|
@@ -77002,7 +77012,7 @@ const createPage = async (page, item) => {
|
|
|
77002
77012
|
} : {
|
|
77003
77013
|
top: "128px",
|
|
77004
77014
|
right: "63px",
|
|
77005
|
-
bottom: "
|
|
77015
|
+
bottom: "120px",
|
|
77006
77016
|
left: "63px"
|
|
77007
77017
|
}
|
|
77008
77018
|
});
|
|
@@ -77077,9 +77087,9 @@ async function mergePDFsWithPageNumbers({
|
|
|
77077
77087
|
page2.drawText(`${pageNumber} / ${pageCount}`, {
|
|
77078
77088
|
x: width - 73,
|
|
77079
77089
|
// 居右
|
|
77080
|
-
y:
|
|
77090
|
+
y: 38.5,
|
|
77081
77091
|
// 距离底部距离
|
|
77082
|
-
size:
|
|
77092
|
+
size: 11,
|
|
77083
77093
|
font,
|
|
77084
77094
|
color: pdfLib.rgb(82 / 255, 82 / 255, 82 / 255)
|
|
77085
77095
|
// 灰色
|