Commit Graph

9 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
3299c557a0 Make .addSection fully declarative 2021-03-19 20:53:56 +00:00
b4f1c4dd6a Increase readability for enums 2020-05-13 02:51:47 +01:00
25a7ce3742 adds textDirection to table cells 2020-05-10 10:36:25 -07:00
418adca9f3 Declarative tables 2019-09-13 00:51:20 +01:00
d8b60d82f3 Turn Packer static 2019-08-07 22:12:14 +01:00
b741db3050 Using a better demo naming system 2019-08-06 23:08:21 +01:00