Commit Graph

7 Commits

Author SHA1 Message Date
7d1129900f Fix: separate vertical alignment enums for ITableCellOptions and ISectionPropertiesOptions (#3079)
* fix: separate vertical alignment enums for table and section properties

- Introduced `VerticalAlignTable` for table-cell vertical alignment with valid values: `top`, `center`, and `bottom`.
- Added `VerticalAlignSection` for section properties, extending `VerticalAlignTable` with an additional value `both`.
- Marked the original `VerticalAlign` as deprecated for backward compatibility, directing users to the new enums.
- Updated type definitions for better clarity on valid vertical alignments.

* refactor: update vertical alignment imports and types for section and table properties

- Renamed `VerticalAlign` to `VerticalAlignSection` in section properties and `VerticalAlignTable` in table-cell properties for clarity.
- Updated type definitions to reflect the new enum names, ensuring better organization and understanding of vertical alignment options.
- Adjusted related test cases to utilize the new imports and types.

* refactor: update demos to use new enums for table and section properties for vertical alignment
2025-05-02 19:58:10 +01:00
e69b063687 Porting tests over to vitest 2023-06-05 00:33:43 +01:00
65caa531c5 Improve spelling and prettier commands 2022-07-06 15:26:17 +01:00
097c6a5962 use hexColorValue in borders and underlines 2021-05-24 08:42:34 +03:00
3299c557a0 Make .addSection fully declarative 2021-03-19 20:53:56 +00:00
d6cce4ae15 Adding TableBorders.NONE convenience object 2020-12-22 23:42:02 +00:00
da9e6d6664 Add table borders 2019-11-18 01:04:31 +00:00