Commit Graph

62 Commits

Author SHA1 Message Date
4513bb529b Add more run properties and Universal measure 2022-12-29 09:57:15 +00:00
9b874b0061 #1784 Add more alignment options according to spec 2022-11-19 20:14:15 +00:00
251eafe103 #1773 Add exact for spacing 2022-11-19 15:51:41 +00:00
1b06fc71cf #1507 - Add scale for run 2022-11-03 00:30:16 +00:00
9bed303d34 #1529 - Word wrap feature 2022-10-25 18:53:00 +01:00
2c4b55c692 Refactor code to simplify interface 2022-10-16 00:21:34 +01:00
70a3b25d54 Fix Prettier errors 2022-10-16 00:20:16 +01:00
d053baef03 FIX: added legacy support for TabStop 2022-10-14 17:01:41 +05:45
629c586014 FIX: multiple tabStop support for LibreWriter 2022-10-14 16:38:02 +05:45
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
9827ed30bb Write tests, improve API, create documentation 2022-06-22 23:35:46 +01:00
2eb0b537f1 Fix prettier 2021-12-18 15:43:05 +00:00
6d3ebf90c1 #2733 Add error if level exceeds 9 2021-12-18 15:42:35 +00:00
439ab8441e Export new ColumnBreak class via more generic Break class 2021-07-08 17:39:21 +10: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
a56119e7cd remove deprecated mutable drawing functions: scale, setXY 2021-05-24 09:26:21 +03:00
097c6a5962 use hexColorValue in borders and underlines 2021-05-24 08:42:34 +03:00
08bd2744b6 further clean up border code; update paragraph borders to use shared type; BREAKING: paragraph border value attr renamed to style, to match other usages of borders 2021-05-24 05:39:26 +03:00
4fe2973473 Add enum to lineRule and create demo 2021-03-15 19:23:40 +00:00
a3febae8a3 Inline single use interfaces 2021-03-15 00:11:39 +00:00
8724fbe7a7 #750 Add widow control 2021-03-13 04:07:44 +00:00
2aa93e6105 #751 Add bidi visual - Visual Right to Left 2021-03-04 02:02:28 +00:00
c68dc8c52a Make hyperlinks declarative 2019-12-18 21:11:15 +00:00
2b0953bb19 Add right indent 2019-12-02 23:13:26 +00:00
6db37eb4fb Overlap tables 2019-11-24 03:22:50 +00:00
643e3c2f84 Finish making numbering declarative 2019-11-08 03:11:19 +00:00
9b40b5e55e Add work for custom level id 2019-11-06 20:54:39 +00:00
40d1a3a7c2 Multiple tab stops 2019-10-09 20:56:31 +01:00
04b6d8e54a Declarative hyperlinks, bookmarks, tab stops and page breaks 2019-09-30 22:56:21 +01:00
172c333357 Add tests and clean up code 2019-09-29 04:17:21 +01:00
f33d6da65a Merge branch 'master' into feat/declaritive
# Conflicts:
#	src/file/paragraph/formatting/border.spec.ts
#	src/file/paragraph/links/outline-level.spec.ts
#	src/file/paragraph/run/run.spec.ts
2019-07-02 01:33:41 +01:00
1f51fd7a31 Remove usage of Utility 2019-06-27 01:35:58 +01:00
a531713214 Remove usage of Utility class 2019-06-26 22:12:18 +01:00
3ef8f5311d Make fixed layout declaritive 2019-06-25 20:57:46 +01:00
fb65bb4207 Turn Run into a declaritive API 2019-06-17 01:51:57 +01:00
cb42c74a8d Make Paragraph declaritive 2019-06-12 01:03:36 +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
db7f27a88c Add more tests to paragraph 2019-01-11 00:16:25 +00:00
7980f14efb Introduce some functional programming techniques 2018-11-02 02:51:57 +00:00
61411fd0f3 Add tests 2018-11-01 02:22:32 +00:00
cc6e35165a Add codecov and add more tests to travis 2018-10-26 02:00:45 +01:00
4742cf0f3f Clean imports 2018-10-26 01:04:07 +01:00
2fb5845501 contextual spacing 2018-09-26 17:47:17 +03:00
8b463b3bb6 updated clone deep dependency and make fields dirty to be updated when word is opened 2018-09-21 10:26:28 -03:00
4805efad2e organized imports 2018-09-20 10:31:49 -03:00
12e2ae9e91 making leader a option field and test improvments 2018-09-20 10:30:16 -03:00
8e911698a5 generating the content for a table of contents 2018-09-18 05:24:19 -03:00
33f87523e0 Merge from master 2018-08-21 23:50:58 +01:00