@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.
- package/dist/browser/modules/pdf/render/style-converter.d.ts +14 -1
- package/dist/browser/modules/pdf/render/style-converter.js +29 -16
- package/dist/cjs/modules/pdf/render/style-converter.js +29 -16
- package/dist/esm/modules/pdf/render/style-converter.js +29 -16
- package/dist/iife/excelts.iife.js +29 -16
- package/dist/iife/excelts.iife.js.map +1 -1
- package/dist/iife/excelts.iife.min.js +3 -3
- package/dist/types/modules/pdf/render/style-converter.d.ts +14 -1
- package/package.json +1 -1
|
@@ -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
|
/**
|