Commit Graph

37 Commits

Author SHA1 Message Date
Dolan
97101adb10 Enabled declarations in tsconfig to be true 2017-07-07 14:31:08 +01:00
Dolan
410152441b fixed tslinting issues 2017-04-15 17:54:47 +01:00
felipe
0453f28951 add keepLines and keepNext support for paragraph formatting
This commit adds it to the three places where paragraph formatting can
be applied right now (directly on the paragraph, paragraph styles, and
bullets/numbering styles). I'm separately adding an entry to the wiki
regarding what these methods do (widow/orphan control)
2017-04-14 21:13:11 +02:00
Dolan Miu
fd350d53db fixed some typescript compile issues 2017-04-01 12:18:23 +01:00
Dolan
30b21217a9 added create picture run method 2017-03-13 23:41:14 +00:00
Dolan
486777b108 named this addRun because I realised Text can be a Run, but also a Picture can be a run 2017-03-13 23:35:24 +00:00
felipe
a6e40d9d92 tightened type checking for tab stops 2017-03-12 22:06:43 +01:00
felipe
b3524971ac clean up imports into paragraph and paragraph style
(this prep for importing it from styles)
2017-03-12 21:39:29 +01:00
felipe
9d7573ed9c fix unused imports linter warnings 2017-03-10 16:09:21 +01:00
felipe
35ddda444a rename paragraph#createRun to paragraph#createTextRun 2017-03-10 14:44:25 +01:00
felipe
8d11ec3422 add paragraph.createRun method 2017-03-10 14:36:16 +01:00
felipe
a89718ea83 fix a couple of compiler null warnings 2017-03-10 14:31:21 +01:00
felipe
62911d6e44 make XmlAttributeComponent into a generic class
This change brings increased type safety to uses of
XmlAttributeComponent. Now the compiler is checkign for us that the
properties that get passed in to every subclass match the intended
interface, and also that the xmlKeys property -> xml attribute mapping
has all the right keys
2017-03-10 14:19:45 +01:00
felipe
7ff838357a removed empty Attributes from ParagraphProperties
I checked the spec, and "w:pPr" does not take any attributes. I also
converted the paragraph tests to use the deep.equal style to get rid
of some more jsonify!
2017-03-10 10:32:40 +01:00
Dolan
11bbb5e285 linting 2017-03-09 23:32:52 +00:00
felipe
20ec9b679e added Spacing for paragraphs and ParagraphStyle 2017-03-09 12:16:49 +01:00
felipe
18ca93e50a add paragraph#style method to quickly set the style 2017-03-09 11:11:07 +01:00
felipe
2684f16579 move indent.ts over to paragraph and add a #indent method 2017-03-09 09:59:48 +01:00
Dolan
279a5a93f1 fixed failing test 2017-03-08 21:40:21 +00:00
Dolan
0e89606ec9 lots of tslinting 2017-03-08 21:36:09 +00:00
Dolan
540518bd54 more tslinting 2017-03-08 20:35:26 +00:00
felipe
0e9532d835 added #setNumbering method to paragraph 2017-03-08 18:23:00 +01:00
felipe
52c4e3cabd allow NumberProperties to specify custom id/level
This change allows callers to create custom numbering styles and
attach them to paragraphs
2017-03-08 16:20:44 +01:00
Dolan Miu
81e7d01556 unordered list tests 2016-07-17 16:28:54 +01:00
Dolan Miu
efce7731e6 added working tabing 2016-06-10 15:03:44 +01:00
Dolan Miu
a2284df881 fixed all tslint errors 2016-05-26 15:08:34 +01:00
Dolan Miu
af818df800 added tab stops 2016-05-18 17:06:21 +01:00
Dolan Miu
9b268314e6 style factory added and fixed bug allowing styles to work 2016-05-09 03:44:16 +01:00
Dolan Miu
c3c49226c7 added conditional statement to add text run 2016-04-21 23:04:15 +01:00
Dolan Miu
50e2344d2c fixing tests and formatter 2016-04-09 21:12:55 +01:00
Dolan Miu
f68a2aff56 now extends XmlComponent 2016-04-09 20:16:35 +01:00
Dolan Miu
69edfcc0c9 added xmlKeys to xmlcomponent 2016-04-03 01:44:18 +01:00
Dolan Miu
26f30b06d2 added return values and formatting 2016-03-30 04:32:51 +01:00
Dolan Miu
9e8fd9739d made return values for methods 2016-03-30 04:31:53 +01:00
Dolan Miu
a0acb6d1a6 added run 2016-03-30 03:50:53 +01:00
Dolan Miu
b749e42671 added bullet 2016-03-30 02:55:11 +01:00
Dolan Miu
099da3d90c added page break 2016-03-30 00:28:05 +01:00