Commit Graph

11 Commits

Author SHA1 Message Date
982d923553 Improve import alias
@file/ and @export/ instead of file/ and export/ etc
2022-06-26 23:26:42 +01:00
caf188caae Make adding images declarative and simple 2021-03-18 02:48:37 +00:00
bd40b11ce4 #815 Rotation and flipping images 2021-03-15 02:41:37 +00:00
f0e50dd21f Add more tests 2021-03-13 22:43:21 +00:00
0b88cb0ca5 #548 #508 Restart numbered lists 2021-03-12 03:58:05 +00:00
172c333357 Add tests and clean up code 2019-09-29 04:17:21 +01:00
dfe986331d Make media return a picture run instead 2019-06-23 22:36:01 +01: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
8db52212ab Remove id from media 2018-12-24 16:50:53 +00:00
9cfd835171 More tests 2018-11-02 00:42:49 +00:00
61411fd0f3 Add tests 2018-11-01 02:22:32 +00:00