@cj-tech-master/excelts 9.5.6 → 9.5.7

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.
@@ -54,7 +54,20 @@ export declare function extractFontProperties(font: Partial<PdfFontStyle> | unde
54
54
  */
55
55
  export declare function excelFillToPdfColor(fill: PdfFillData | undefined): PdfColor | null;
56
56
  /**
57
- * Map border styles to PDF line widths.
57
+ * Map border styles to PDF line widths (in points).
58
+ *
59
+ * Values match Excel's actual border weights as used historically by this
60
+ * library (pre-#154). PR #154 doubled every width (0.25 → 0.5, 0.5 → 1,
61
+ * 1 → 2) to make `thin` and `medium` more visually distinct in PDF
62
+ * viewers, but that change made all borders heavier than Excel itself
63
+ * (issue #164). The 2× ratio between thin/medium and the 4× ratio between
64
+ * thin/thick are preserved with the lighter values, so styles remain
65
+ * distinguishable while matching Excel.
66
+ *
67
+ * hair = 0.1 pt
68
+ * thin = 0.25 pt (also dotted, dashed, dashDot, dashDotDot, slantDashDot, double)
69
+ * medium = 0.5 pt (also mediumDashed, mediumDashDot, mediumDashDotDot)
70
+ * thick = 1 pt
58
71
  */
59
72
  export declare function borderStyleToLineWidth(style: string): number;
60
73
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cj-tech-master/excelts",
3
- "version": "9.5.6",
3
+ "version": "9.5.7",
4
4
  "description": "Zero-dependency TypeScript toolkit — Excel (XLSX), PDF, CSV, Markdown, XML, ZIP/TAR, and streaming.",
5
5
  "keywords": [
6
6
  "archive",