Commit Graph

8 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
988987ddbe #1126 - Add all comptability options 2022-10-29 15:10:02 +01:00
730e33b164 fix demos 2021-05-26 10:53:27 +03:00
3299c557a0 Make .addSection fully declarative 2021-03-19 20:53:56 +00:00
7dfb016faa Make tab and page numbers declarative 2019-11-21 01:02:46 +00:00
afd468277e refactor code 2019-10-31 13:54:53 +02:00
2276572902 add ability to vertically align content of section 2019-10-29 12:55:15 +02:00