feat: 完成 DOCX R4 元素级视觉门禁
建立 Chromium、Word 与 WPS 的可编辑内容、段落几何、页眉页脚、封面、媒体和逐页视觉比较链路。 支持封面独立分节、正文页码重启、主题页边距与横向纸张,并将自然分页差异降为诊断项。 修正代码块内边距和折叠表格单元格边框映射,14 套主题生产矩阵与六组布局视觉矩阵通过。
This commit is contained in:
@@ -51,8 +51,8 @@ export const paperDimensionsMm: Record<
|
||||
A3: { width: 297, height: 420 },
|
||||
A4: { width: 210, height: 297 },
|
||||
A5: { width: 148, height: 210 },
|
||||
Letter: { width: 216, height: 279 },
|
||||
Legal: { width: 216, height: 356 }
|
||||
Letter: { width: 215.9, height: 279.4 },
|
||||
Legal: { width: 215.9, height: 355.6 }
|
||||
};
|
||||
|
||||
const lengthSchema = z
|
||||
@@ -114,6 +114,7 @@ const pageDecorationFontFamilySchema = z
|
||||
export const headerSchema = z.object({
|
||||
enabled: z.boolean(),
|
||||
height: lengthSchema,
|
||||
showOnFirstPage: z.boolean().default(true),
|
||||
showDivider: z.boolean(),
|
||||
fontSize: lengthSchema,
|
||||
fontFamily: pageDecorationFontFamilySchema.default(
|
||||
@@ -289,6 +290,7 @@ export const defaultExportConfig: ExportConfig = {
|
||||
header: {
|
||||
enabled: false,
|
||||
height: "8mm",
|
||||
showOnFirstPage: true,
|
||||
showDivider: false,
|
||||
fontSize: "3mm",
|
||||
fontFamily: '"Segoe UI", "Microsoft YaHei", sans-serif',
|
||||
|
||||
Reference in New Issue
Block a user