Commit Graph

22 Commits

Author SHA1 Message Date
4513bb529b Add more run properties and Universal measure 2022-12-29 09:57:15 +00:00
3282f762df Add language support 2022-12-20 21:42:26 +00:00
03d5152e7c Add BuilderElement and lang 2022-12-18 00:52:29 +00:00
1b06fc71cf #1507 - Add scale for run 2022-11-03 00:30:16 +00:00
4cfb0ade88 #1744 - Add vanish and specVanish 2022-10-28 22:20:16 +01:00
9bed303d34 #1529 - Word wrap feature 2022-10-25 18:53:00 +01:00
1bdf9a4987 Initial ESlint conversion 2022-08-31 07:52:27 +01:00
982d923553 Improve import alias
@file/ and @export/ instead of file/ and export/ etc
2022-06-26 23:26:42 +01:00
f414b4ee9a #1529 Add word break feature 2022-06-15 00:07:12 +01:00
531e240a37 Run borders 2022-01-06 04:36:55 +00:00
e598faad28 support style changes in revisions 2021-11-26 12:29:11 +01:00
7bfe8f26f0 progress on clean up file/paragraph 2021-05-24 17:12:10 +03:00
ce2a0fb864 remove more duplicate classes; add additional values functions; clean up tests 2021-05-24 11:28:10 +03:00
ee105cdb83 Simplify run format properties, removing duplicate classes. Add values functions, which check and clean up values for specific defined types from the schema 2021-05-24 08:20:08 +03:00
496fcb55fa unify Shading; breaking change: Paragraph/Run shading option key type changed to val, and shadow alias removed 2021-05-24 05:39:26 +03:00
06da596ffb Remove invalid 'w:shdCs' element 2021-05-20 03:02:48 +03:00
4bc0421055 Add tests 2021-03-13 20:23:15 +00:00
437e83ab78 :feat: refine paragraph/run properties options 2020-07-14 15:42:45 +08:00
816cb54b14 Optimize XML output by properly constructing objects to send to the xml library so that it can produce proper empty elements.
Rework the way attributes are stored in ImportedXmlComponent to match elsewhere (required allowing for a null xmlKeys in the XmlAttributeComponent interface).
Rework the way paragraphs get added to the end of table cells if needed.
The goal in both reworks is to not mess around with the objects output from `prepForXml` if we can avoid it.
Made the output of RunProperties, ParagraphProperties, TableCellProperties, TableRowProperties, and TableProperties all optional based on whether they contain any attributes or children.  Changed code in PageBorders, TableCellMargin, and TableCellBorders that implemented this same thing by overriding `prepForXml` so that it uses the new XmlComponent subclass instead.
Removed commented out code that attempted to fix-up XML output and make proper empty elements.
Fixed all affected tests.
Turn off `no-null-keyword` in the linter as we need to use null to signal to the `xml` library to create an empty element with no attributes (`undefined` will not work in its place).

Fixes #306
2019-04-09 05:27:18 -04:00
e93d6799fd Made project Prettier compliant 2018-01-23 01:33:12 +00:00
eb71fc20e6 Use absolute path rather than silly relative path 2017-12-30 20:25:16 +00:00
2358139a6b Change docx folder to more appropriate "file" folder 2017-12-20 01:03:20 +00:00