@cj-tech-master/excelts 5.1.14 → 5.1.15
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/excel/xlsx/xform/sheet/row-xform.js +5 -0
- package/dist/cjs/modules/excel/xlsx/xform/sheet/row-xform.js +5 -0
- package/dist/esm/modules/excel/xlsx/xform/sheet/row-xform.js +5 -0
- package/dist/iife/excelts.iife.js +2 -2
- package/dist/iife/excelts.iife.js.map +1 -1
- package/dist/iife/excelts.iife.min.js +2 -2
- package/package.json +1 -1
|
@@ -40,6 +40,11 @@ class RowXform extends BaseXform {
|
|
|
40
40
|
xmlStream.addAttribute("customHeight", "1");
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
|
+
else if (model.height === 0) {
|
|
44
|
+
// height=0 signals auto-height: write a minimal ht hint without
|
|
45
|
+
// customHeight so Excel recalculates the row height on open.
|
|
46
|
+
xmlStream.addAttribute("ht", 1);
|
|
47
|
+
}
|
|
43
48
|
if (model.hidden) {
|
|
44
49
|
xmlStream.addAttribute("hidden", "1");
|
|
45
50
|
}
|
|
@@ -43,6 +43,11 @@ class RowXform extends base_xform_1.BaseXform {
|
|
|
43
43
|
xmlStream.addAttribute("customHeight", "1");
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
|
+
else if (model.height === 0) {
|
|
47
|
+
// height=0 signals auto-height: write a minimal ht hint without
|
|
48
|
+
// customHeight so Excel recalculates the row height on open.
|
|
49
|
+
xmlStream.addAttribute("ht", 1);
|
|
50
|
+
}
|
|
46
51
|
if (model.hidden) {
|
|
47
52
|
xmlStream.addAttribute("hidden", "1");
|
|
48
53
|
}
|
|
@@ -40,6 +40,11 @@ class RowXform extends BaseXform {
|
|
|
40
40
|
xmlStream.addAttribute("customHeight", "1");
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
|
+
else if (model.height === 0) {
|
|
44
|
+
// height=0 signals auto-height: write a minimal ht hint without
|
|
45
|
+
// customHeight so Excel recalculates the row height on open.
|
|
46
|
+
xmlStream.addAttribute("ht", 1);
|
|
47
|
+
}
|
|
43
48
|
if (model.hidden) {
|
|
44
49
|
xmlStream.addAttribute("hidden", "1");
|
|
45
50
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @cj-tech-master/excelts v5.1.
|
|
2
|
+
* @cj-tech-master/excelts v5.1.15
|
|
3
3
|
* TypeScript Excel Workbook Manager - Read and Write xlsx and csv Files.
|
|
4
4
|
* (c) 2026 cjnoname
|
|
5
5
|
* Released under the MIT License
|
|
@@ -11952,7 +11952,7 @@ var ExcelTS = (function(exports) {
|
|
|
11952
11952
|
if (model.height != null && model.height > 0) {
|
|
11953
11953
|
xmlStream.addAttribute("ht", model.height);
|
|
11954
11954
|
if (model.customHeight !== false) xmlStream.addAttribute("customHeight", "1");
|
|
11955
|
-
}
|
|
11955
|
+
} else if (model.height === 0) xmlStream.addAttribute("ht", 1);
|
|
11956
11956
|
if (model.hidden) xmlStream.addAttribute("hidden", "1");
|
|
11957
11957
|
if (model.min > 0 && model.max > 0 && model.min <= model.max) xmlStream.addAttribute("spans", `${model.min}:${model.max}`);
|
|
11958
11958
|
if (model.styleId) {
|