matrix_components 2.0.312 → 2.0.313

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.
@@ -50293,6 +50293,12 @@ function requireJszip_min() {
50293
50293
  }
50294
50294
  var jszip_minExports = requireJszip_min();
50295
50295
  const JSZip = /* @__PURE__ */ getDefaultExportFromCjs(jszip_minExports);
50296
+ /*
50297
+ * @license
50298
+ * docx-preview <https://github.com/VolodymyrBaydalka/docxjs>
50299
+ * Released under Apache License 2.0 <https://github.com/VolodymyrBaydalka/docxjs/blob/master/LICENSE>
50300
+ * Copyright Volodymyr Baydalka
50301
+ */
50296
50302
  var RelationshipTypes;
50297
50303
  (function(RelationshipTypes2) {
50298
50304
  RelationshipTypes2["OfficeDocument"] = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument";
@@ -50465,7 +50471,7 @@ class XmlParser {
50465
50471
  const result = [];
50466
50472
  for (let i = 0, l = elem.childNodes.length; i < l; i++) {
50467
50473
  let c = elem.childNodes.item(i);
50468
- if (c.nodeType == 1 && (localName == null || c.localName == localName))
50474
+ if (c.nodeType == Node.ELEMENT_NODE && (localName == null || c.localName == localName))
50469
50475
  result.push(c);
50470
50476
  }
50471
50477
  return result;
@@ -51482,7 +51488,7 @@ function deobfuscate(data, guidKey) {
51482
51488
  const trimmed = guidKey.replace(/{|}|-/g, "");
51483
51489
  const numbers = new Array(len);
51484
51490
  for (let i = 0; i < len; i++)
51485
- numbers[len - i - 1] = parseInt(trimmed.substr(i * 2, 2), 16);
51491
+ numbers[len - i - 1] = parseInt(trimmed.substring(i * 2, i * 2 + 2), 16);
51486
51492
  for (let i = 0; i < 32; i++)
51487
51493
  data[i] = data[i] ^ numbers[i % len];
51488
51494
  return data;
@@ -51704,7 +51710,7 @@ class DocumentParser {
51704
51710
  }
51705
51711
  parseBodyElements(element) {
51706
51712
  var children = [];
51707
- for (let elem of globalXmlParser.elements(element)) {
51713
+ for (const elem of globalXmlParser.elements(element)) {
51708
51714
  switch (elem.localName) {
51709
51715
  case "p":
51710
51716
  children.push(this.parseParagraph(elem));
@@ -51724,7 +51730,7 @@ class DocumentParser {
51724
51730
  }
51725
51731
  parseStylesFile(xstyles) {
51726
51732
  var result = [];
51727
- xmlUtil.foreach(xstyles, (n) => {
51733
+ for (const n of globalXmlParser.elements(xstyles)) {
51728
51734
  switch (n.localName) {
51729
51735
  case "style":
51730
51736
  result.push(this.parseStyle(n));
@@ -51733,7 +51739,7 @@ class DocumentParser {
51733
51739
  result.push(this.parseDefaultStyles(n));
51734
51740
  break;
51735
51741
  }
51736
- });
51742
+ }
51737
51743
  return result;
51738
51744
  }
51739
51745
  parseDefaultStyles(node) {
@@ -51744,7 +51750,7 @@ class DocumentParser {
51744
51750
  basedOn: null,
51745
51751
  styles: []
51746
51752
  };
51747
- xmlUtil.foreach(node, (c) => {
51753
+ for (const c of globalXmlParser.elements(node)) {
51748
51754
  switch (c.localName) {
51749
51755
  case "rPrDefault":
51750
51756
  var rPr = globalXmlParser.element(c, "rPr");
@@ -51763,7 +51769,7 @@ class DocumentParser {
51763
51769
  });
51764
51770
  break;
51765
51771
  }
51766
- });
51772
+ }
51767
51773
  return result;
51768
51774
  }
51769
51775
  parseStyle(node) {
@@ -51787,7 +51793,7 @@ class DocumentParser {
51787
51793
  result.target = "span";
51788
51794
  break;
51789
51795
  }
51790
- xmlUtil.foreach(node, (n) => {
51796
+ for (const n of globalXmlParser.elements(node)) {
51791
51797
  switch (n.localName) {
51792
51798
  case "basedOn":
51793
51799
  result.basedOn = globalXmlParser.attr(n, "val");
@@ -51840,7 +51846,7 @@ class DocumentParser {
51840
51846
  default:
51841
51847
  this.options.debug && console.warn(`DOCX: Unknown style element: ${n.localName}`);
51842
51848
  }
51843
- });
51849
+ }
51844
51850
  return result;
51845
51851
  }
51846
51852
  parseTableStyle(node) {
@@ -51884,7 +51890,7 @@ class DocumentParser {
51884
51890
  default:
51885
51891
  return [];
51886
51892
  }
51887
- xmlUtil.foreach(node, (n) => {
51893
+ for (const n of globalXmlParser.elements(node)) {
51888
51894
  switch (n.localName) {
51889
51895
  case "pPr":
51890
51896
  result.push({
@@ -51909,14 +51915,14 @@ class DocumentParser {
51909
51915
  });
51910
51916
  break;
51911
51917
  }
51912
- });
51918
+ }
51913
51919
  return result;
51914
51920
  }
51915
- parseNumberingFile(xnums) {
51921
+ parseNumberingFile(node) {
51916
51922
  var result = [];
51917
51923
  var mapping = {};
51918
51924
  var bullets = [];
51919
- xmlUtil.foreach(xnums, (n) => {
51925
+ for (const n of globalXmlParser.elements(node)) {
51920
51926
  switch (n.localName) {
51921
51927
  case "abstractNum":
51922
51928
  this.parseAbstractNumbering(n, bullets).forEach((x) => result.push(x));
@@ -51930,7 +51936,7 @@ class DocumentParser {
51930
51936
  mapping[abstractNumId] = numId;
51931
51937
  break;
51932
51938
  }
51933
- });
51939
+ }
51934
51940
  result.forEach((x) => x.id = mapping[x.id]);
51935
51941
  return result;
51936
51942
  }
@@ -51947,13 +51953,13 @@ class DocumentParser {
51947
51953
  parseAbstractNumbering(node, bullets) {
51948
51954
  var result = [];
51949
51955
  var id = globalXmlParser.attr(node, "abstractNumId");
51950
- xmlUtil.foreach(node, (n) => {
51956
+ for (const n of globalXmlParser.elements(node)) {
51951
51957
  switch (n.localName) {
51952
51958
  case "lvl":
51953
51959
  result.push(this.parseNumberingLevel(id, n, bullets));
51954
51960
  break;
51955
51961
  }
51956
- });
51962
+ }
51957
51963
  return result;
51958
51964
  }
51959
51965
  parseNumberingLevel(id, node, bullets) {
@@ -51966,7 +51972,7 @@ class DocumentParser {
51966
51972
  rStyle: {},
51967
51973
  suff: "tab"
51968
51974
  };
51969
- xmlUtil.foreach(node, (n) => {
51975
+ for (const n of globalXmlParser.elements(node)) {
51970
51976
  switch (n.localName) {
51971
51977
  case "start":
51972
51978
  result.start = globalXmlParser.intAttr(n, "val");
@@ -51978,8 +51984,8 @@ class DocumentParser {
51978
51984
  this.parseDefaultProperties(n, result.rStyle);
51979
51985
  break;
51980
51986
  case "lvlPicBulletId":
51981
- var id2 = globalXmlParser.intAttr(n, "val");
51982
- result.bullet = bullets.find((x) => (x == null ? void 0 : x.id) == id2);
51987
+ var bulletId = globalXmlParser.intAttr(n, "val");
51988
+ result.bullet = bullets.find((x) => (x == null ? void 0 : x.id) == bulletId);
51983
51989
  break;
51984
51990
  case "lvlText":
51985
51991
  result.levelText = globalXmlParser.attr(n, "val");
@@ -51994,7 +52000,7 @@ class DocumentParser {
51994
52000
  result.suff = globalXmlParser.attr(n, "val");
51995
52001
  break;
51996
52002
  }
51997
- });
52003
+ }
51998
52004
  return result;
51999
52005
  }
52000
52006
  parseSdt(node, parser) {
@@ -52094,13 +52100,13 @@ class DocumentParser {
52094
52100
  var result = { type: DomType.Hyperlink, parent, children: [] };
52095
52101
  result.anchor = globalXmlParser.attr(node, "anchor");
52096
52102
  result.id = globalXmlParser.attr(node, "id");
52097
- xmlUtil.foreach(node, (c) => {
52103
+ for (const c of globalXmlParser.elements(node)) {
52098
52104
  switch (c.localName) {
52099
52105
  case "r":
52100
52106
  result.children.push(this.parseRun(c, result));
52101
52107
  break;
52102
52108
  }
52103
- });
52109
+ }
52104
52110
  return result;
52105
52111
  }
52106
52112
  parseSmartTag(node, parent) {
@@ -52111,18 +52117,18 @@ class DocumentParser {
52111
52117
  result.uri = uri2;
52112
52118
  if (element)
52113
52119
  result.element = element;
52114
- xmlUtil.foreach(node, (c) => {
52120
+ for (const c of globalXmlParser.elements(node)) {
52115
52121
  switch (c.localName) {
52116
52122
  case "r":
52117
52123
  result.children.push(this.parseRun(c, result));
52118
52124
  break;
52119
52125
  }
52120
- });
52126
+ }
52121
52127
  return result;
52122
52128
  }
52123
52129
  parseRun(node, parent) {
52124
52130
  var result = { type: DomType.Run, parent, children: [] };
52125
- xmlUtil.foreach(node, (c) => {
52131
+ for (let c of globalXmlParser.elements(node)) {
52126
52132
  c = this.checkAlternateContent(c);
52127
52133
  switch (c.localName) {
52128
52134
  case "t":
@@ -52213,7 +52219,7 @@ class DocumentParser {
52213
52219
  this.parseRunProperties(c, result);
52214
52220
  break;
52215
52221
  }
52216
- });
52222
+ }
52217
52223
  return result;
52218
52224
  }
52219
52225
  parseMathElement(elem) {
@@ -52334,7 +52340,7 @@ class DocumentParser {
52334
52340
  if (alignNode)
52335
52341
  pos.align = alignNode.textContent;
52336
52342
  if (offsetNode)
52337
- pos.offset = xmlUtil.sizeValue(offsetNode, LengthUsage.Emu);
52343
+ pos.offset = convertLength(offsetNode.textContent, LengthUsage.Emu);
52338
52344
  }
52339
52345
  break;
52340
52346
  case "wrapTopAndBottom":
@@ -52384,27 +52390,39 @@ class DocumentParser {
52384
52390
  var result = { type: DomType.Image, src: "", cssStyle: {} };
52385
52391
  var blipFill = globalXmlParser.element(elem, "blipFill");
52386
52392
  var blip = globalXmlParser.element(blipFill, "blip");
52393
+ var srcRect = globalXmlParser.element(blipFill, "srcRect");
52387
52394
  result.src = globalXmlParser.attr(blip, "embed");
52395
+ if (srcRect) {
52396
+ result.srcRect = [
52397
+ globalXmlParser.intAttr(srcRect, "l", 0) / 1e5,
52398
+ globalXmlParser.intAttr(srcRect, "t", 0) / 1e5,
52399
+ globalXmlParser.intAttr(srcRect, "r", 0) / 1e5,
52400
+ globalXmlParser.intAttr(srcRect, "b", 0) / 1e5
52401
+ ];
52402
+ }
52388
52403
  var spPr = globalXmlParser.element(elem, "spPr");
52389
52404
  var xfrm = globalXmlParser.element(spPr, "xfrm");
52390
52405
  result.cssStyle["position"] = "relative";
52391
- for (var n of globalXmlParser.elements(xfrm)) {
52392
- switch (n.localName) {
52393
- case "ext":
52394
- result.cssStyle["width"] = globalXmlParser.lengthAttr(n, "cx", LengthUsage.Emu);
52395
- result.cssStyle["height"] = globalXmlParser.lengthAttr(n, "cy", LengthUsage.Emu);
52396
- break;
52397
- case "off":
52398
- result.cssStyle["left"] = globalXmlParser.lengthAttr(n, "x", LengthUsage.Emu);
52399
- result.cssStyle["top"] = globalXmlParser.lengthAttr(n, "y", LengthUsage.Emu);
52400
- break;
52406
+ if (xfrm) {
52407
+ result.rotation = globalXmlParser.intAttr(xfrm, "rot", 0) / 6e4;
52408
+ for (var n of globalXmlParser.elements(xfrm)) {
52409
+ switch (n.localName) {
52410
+ case "ext":
52411
+ result.cssStyle["width"] = globalXmlParser.lengthAttr(n, "cx", LengthUsage.Emu);
52412
+ result.cssStyle["height"] = globalXmlParser.lengthAttr(n, "cy", LengthUsage.Emu);
52413
+ break;
52414
+ case "off":
52415
+ result.cssStyle["left"] = globalXmlParser.lengthAttr(n, "x", LengthUsage.Emu);
52416
+ result.cssStyle["top"] = globalXmlParser.lengthAttr(n, "y", LengthUsage.Emu);
52417
+ break;
52418
+ }
52401
52419
  }
52402
52420
  }
52403
52421
  return result;
52404
52422
  }
52405
52423
  parseTable(node) {
52406
52424
  var result = { type: DomType.Table, children: [] };
52407
- xmlUtil.foreach(node, (c) => {
52425
+ for (const c of globalXmlParser.elements(node)) {
52408
52426
  switch (c.localName) {
52409
52427
  case "tr":
52410
52428
  result.children.push(this.parseTableRow(c));
@@ -52416,18 +52434,18 @@ class DocumentParser {
52416
52434
  this.parseTableProperties(c, result);
52417
52435
  break;
52418
52436
  }
52419
- });
52437
+ }
52420
52438
  return result;
52421
52439
  }
52422
52440
  parseTableColumns(node) {
52423
52441
  var result = [];
52424
- xmlUtil.foreach(node, (n) => {
52442
+ for (const n of globalXmlParser.elements(node)) {
52425
52443
  switch (n.localName) {
52426
52444
  case "gridCol":
52427
52445
  result.push({ width: globalXmlParser.lengthAttr(n, "w") });
52428
52446
  break;
52429
52447
  }
52430
- });
52448
+ }
52431
52449
  return result;
52432
52450
  }
52433
52451
  parseTableProperties(elem, table) {
@@ -52483,16 +52501,17 @@ class DocumentParser {
52483
52501
  }
52484
52502
  parseTableRow(node) {
52485
52503
  var result = { type: DomType.Row, children: [] };
52486
- xmlUtil.foreach(node, (c) => {
52504
+ for (const c of globalXmlParser.elements(node)) {
52487
52505
  switch (c.localName) {
52488
52506
  case "tc":
52489
52507
  result.children.push(this.parseTableCell(c));
52490
52508
  break;
52491
52509
  case "trPr":
52510
+ case "tblPrEx":
52492
52511
  this.parseTableRowProperties(c, result);
52493
52512
  break;
52494
52513
  }
52495
- });
52514
+ }
52496
52515
  return result;
52497
52516
  }
52498
52517
  parseTableRowProperties(elem, row) {
@@ -52518,7 +52537,7 @@ class DocumentParser {
52518
52537
  }
52519
52538
  parseTableCell(node) {
52520
52539
  var result = { type: DomType.Cell, children: [] };
52521
- xmlUtil.foreach(node, (c) => {
52540
+ for (const c of globalXmlParser.elements(node)) {
52522
52541
  switch (c.localName) {
52523
52542
  case "tbl":
52524
52543
  result.children.push(this.parseTable(c));
@@ -52530,7 +52549,7 @@ class DocumentParser {
52530
52549
  this.parseTableCellProperties(c, result);
52531
52550
  break;
52532
52551
  }
52533
- });
52552
+ }
52534
52553
  return result;
52535
52554
  }
52536
52555
  parseTableCellProperties(elem, cell) {
@@ -52567,20 +52586,20 @@ class DocumentParser {
52567
52586
  transform: "none"
52568
52587
  }
52569
52588
  };
52570
- xmlUtil.foreach(elem, (c) => {
52589
+ for (const c of globalXmlParser.elements(elem)) {
52571
52590
  if (c.localName === "textDirection") {
52572
52591
  const direction = globalXmlParser.attr(c, "val");
52573
52592
  const style = directionMap[direction] || { writingMode: "horizontal-tb" };
52574
52593
  cell.cssStyle["writing-mode"] = style.writingMode;
52575
52594
  cell.cssStyle["transform"] = style.transform;
52576
52595
  }
52577
- });
52596
+ }
52578
52597
  }
52579
52598
  parseDefaultProperties(elem, style = null, childStyle = null, handler = null) {
52580
52599
  style = style || {};
52581
- xmlUtil.foreach(elem, (c) => {
52600
+ for (const c of globalXmlParser.elements(elem)) {
52582
52601
  if (handler == null ? void 0 : handler(c))
52583
- return;
52602
+ continue;
52584
52603
  switch (c.localName) {
52585
52604
  case "jc":
52586
52605
  style["text-align"] = values.valueOfJc(c);
@@ -52715,7 +52734,7 @@ class DocumentParser {
52715
52734
  console.warn(`DOCX: Unknown document element: ${elem.localName}.${c.localName}`);
52716
52735
  break;
52717
52736
  }
52718
- });
52737
+ }
52719
52738
  return style;
52720
52739
  }
52721
52740
  parseUnderline(node, style) {
@@ -52808,7 +52827,7 @@ class DocumentParser {
52808
52827
  }
52809
52828
  }
52810
52829
  parseMarginProperties(node, output) {
52811
- xmlUtil.foreach(node, (c) => {
52830
+ for (const c of globalXmlParser.elements(node)) {
52812
52831
  switch (c.localName) {
52813
52832
  case "left":
52814
52833
  output["padding-left"] = values.valueOfMargin(c);
@@ -52823,7 +52842,7 @@ class DocumentParser {
52823
52842
  output["padding-bottom"] = values.valueOfMargin(c);
52824
52843
  break;
52825
52844
  }
52826
- });
52845
+ }
52827
52846
  }
52828
52847
  parseTrHeight(node, output) {
52829
52848
  switch (globalXmlParser.attr(node, "hRule")) {
@@ -52837,7 +52856,7 @@ class DocumentParser {
52837
52856
  }
52838
52857
  }
52839
52858
  parseBorderProperties(node, output) {
52840
- xmlUtil.foreach(node, (c) => {
52859
+ for (const c of globalXmlParser.elements(node)) {
52841
52860
  switch (c.localName) {
52842
52861
  case "start":
52843
52862
  case "left":
@@ -52854,18 +52873,11 @@ class DocumentParser {
52854
52873
  output["border-bottom"] = values.valueOfBorder(c);
52855
52874
  break;
52856
52875
  }
52857
- });
52876
+ }
52858
52877
  }
52859
52878
  }
52860
52879
  const knownColors = ["black", "blue", "cyan", "darkBlue", "darkCyan", "darkGray", "darkGreen", "darkMagenta", "darkRed", "darkYellow", "green", "lightGray", "magenta", "none", "red", "white", "yellow"];
52861
52880
  class xmlUtil {
52862
- static foreach(node, cb) {
52863
- for (var i = 0; i < node.childNodes.length; i++) {
52864
- let n = node.childNodes[i];
52865
- if (n.nodeType == Node.ELEMENT_NODE)
52866
- cb(n);
52867
- }
52868
- }
52869
52881
  static colorAttr(node, attrName, defValue = null, autoColor = "black") {
52870
52882
  var v = globalXmlParser.attr(node, attrName);
52871
52883
  if (v) {
@@ -52879,9 +52891,6 @@ class xmlUtil {
52879
52891
  var themeColor = globalXmlParser.attr(node, "themeColor");
52880
52892
  return themeColor ? `var(--docx-${themeColor}-color)` : defValue;
52881
52893
  }
52882
- static sizeValue(node, type2 = LengthUsage.Dxa) {
52883
- return convertLength(node.textContent, type2);
52884
- }
52885
52894
  }
52886
52895
  class values {
52887
52896
  static themeValue(c, attr) {
@@ -53789,7 +53798,7 @@ section.${c}>footer { z-index: 1; }
53789
53798
  return null;
53790
53799
  const rng = new Range();
53791
53800
  (_a3 = this.commentHighlight) == null ? void 0 : _a3.add(rng);
53792
- const result = this.htmlDocument.createComment(`start of comment #${commentStart.id}`);
53801
+ const result = this.createComment(`start of comment #${commentStart.id}`);
53793
53802
  this.later(() => rng.setStart(result, 0));
53794
53803
  this.commentMap[commentStart.id] = rng;
53795
53804
  return result;
@@ -53798,7 +53807,7 @@ section.${c}>footer { z-index: 1; }
53798
53807
  if (!this.options.renderComments)
53799
53808
  return null;
53800
53809
  const rng = this.commentMap[commentEnd.id];
53801
- const result = this.htmlDocument.createComment(`end of comment #${commentEnd.id}`);
53810
+ const result = this.createComment(`end of comment #${commentEnd.id}`);
53802
53811
  this.later(() => rng == null ? void 0 : rng.setEnd(result, 0));
53803
53812
  return result;
53804
53813
  }
@@ -53813,7 +53822,7 @@ section.${c}>footer { z-index: 1; }
53813
53822
  const commentRefEl = this.createElement("span", { className: `${this.className}-comment-ref` }, ["💬"]);
53814
53823
  const commentsContainerEl = this.createElement("div", { className: `${this.className}-comment-popover` });
53815
53824
  this.renderCommentContent(comment, commentsContainerEl);
53816
- frg.appendChild(this.htmlDocument.createComment(`comment #${comment.id} by ${comment.author} on ${comment.date}`));
53825
+ frg.appendChild(this.createComment(`comment #${comment.id} by ${comment.author} on ${comment.date}`));
53817
53826
  frg.appendChild(commentRefEl);
53818
53827
  frg.appendChild(commentsContainerEl);
53819
53828
  return frg;
@@ -53841,8 +53850,18 @@ section.${c}>footer { z-index: 1; }
53841
53850
  return result;
53842
53851
  }
53843
53852
  renderImage(elem) {
53853
+ var _a3;
53844
53854
  let result = this.createElement("img");
53855
+ let transform = (_a3 = elem.cssStyle) == null ? void 0 : _a3.transform;
53845
53856
  this.renderStyleValues(elem.cssStyle, result);
53857
+ if (elem.srcRect && elem.srcRect.some((x) => x != 0)) {
53858
+ var [left, top, right, bottom] = elem.srcRect;
53859
+ transform = `scale(${1 / (1 - left - right)}, ${1 / (1 - top - bottom)})`;
53860
+ result.style["clip-path"] = `rect(${(100 * top).toFixed(2)}% ${(100 * (1 - right)).toFixed(2)}% ${(100 * (1 - bottom)).toFixed(2)}% ${(100 * left).toFixed(2)}%)`;
53861
+ }
53862
+ if (elem.rotation)
53863
+ transform = `rotate(${elem.rotation}deg) ${transform ?? ""}`;
53864
+ result.style.transform = transform == null ? void 0 : transform.trim();
53846
53865
  if (this.document) {
53847
53866
  this.tasks.push(this.document.loadDocumentImage(elem.src, this.currentPart).then((x) => {
53848
53867
  result.src = x;
@@ -53854,7 +53873,7 @@ section.${c}>footer { z-index: 1; }
53854
53873
  return this.htmlDocument.createTextNode(elem.text);
53855
53874
  }
53856
53875
  renderDeletedText(elem) {
53857
- return this.options.renderEndnotes ? this.htmlDocument.createTextNode(elem.text) : null;
53876
+ return this.options.renderChanges ? this.renderText(elem) : null;
53858
53877
  }
53859
53878
  renderBreak(elem) {
53860
53879
  if (elem.break == "textWrapping") {
@@ -54299,17 +54318,41 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
54299
54318
  default: () => ({
54300
54319
  className: "docx",
54301
54320
  inWrapper: true,
54321
+ // 启用文档内容周围的包装器渲染
54322
+ hideWrapperOnPrint: false,
54323
+ // 打印时禁用包装器样式
54302
54324
  ignoreWidth: false,
54325
+ // 禁用页面宽度渲染
54303
54326
  ignoreHeight: false,
54327
+ // 禁用页面高度渲染
54304
54328
  ignoreFonts: false,
54329
+ // 禁用字体渲染
54305
54330
  breakPages: true,
54331
+ // 启用分页符处的分页
54306
54332
  ignoreLastRenderedPageBreak: true,
54333
+ // 禁用lastRenderedPageBreak元素的分页
54307
54334
  experimental: false,
54335
+ // 启用实验性功能(制表符停止计算)
54308
54336
  trimXmlDeclaration: true,
54337
+ // 如果为true,解析前将从xml文档中删除xml声明
54309
54338
  useBase64URL: false,
54310
- useMathMLPolyfill: false,
54311
- showChanges: false,
54339
+ // 如果为true,图像、字体等将转换为base64 URL,否则使用URL.createObjectURL
54340
+ renderChanges: false,
54341
+ // 启用文档更改的实验性渲染(插入/删除)
54342
+ renderHeaders: true,
54343
+ // 启用页眉渲染
54344
+ renderFooters: true,
54345
+ // 启用页脚渲染
54346
+ renderFootnotes: true,
54347
+ // 启用脚注渲染
54348
+ renderEndnotes: true,
54349
+ // 启用尾注渲染
54350
+ renderComments: false,
54351
+ // 启用实验性注释渲染
54352
+ renderAltChunks: true,
54353
+ // 启用altChunks(html部分)渲染
54312
54354
  debug: false
54355
+ // 启用额外的日志记录
54313
54356
  })
54314
54357
  }
54315
54358
  },
@@ -54431,7 +54474,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
54431
54474
  };
54432
54475
  }
54433
54476
  });
54434
- const NsWord = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-9ec815e9"]]);
54477
+ const NsWord = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-9be87978"]]);
54435
54478
  NsWord.install = (app2) => {
54436
54479
  app2.component(NsWord.name, NsWord);
54437
54480
  };