6af79a884c
Merge branch 'master' into image-support
2017-03-12 21:38:38 +00:00
4bc6ed0eda
added more files to drawing
2017-03-12 21:30:46 +00:00
a6e40d9d92
tightened type checking for tab stops
2017-03-12 22:06:43 +01:00
b3524971ac
clean up imports into paragraph and paragraph style
...
(this prep for importing it from styles)
2017-03-12 21:39:29 +01:00
1cd681bc2d
added #font method to paragraph styles
2017-03-12 17:53:32 +01:00
7f4d1bf3e7
added #SubScript and #SuperScript methods to ParagraphStyle
2017-03-12 17:52:03 +01:00
8c6cd012e7
eliminated duplicate implementation of strikethrough
2017-03-12 17:51:52 +01:00
90049a31ee
added #style method to runs
2017-03-12 17:35:15 +01:00
3dbd917667
added #color and #size methods to Run
2017-03-12 17:31:36 +01:00
d85c6ce56a
allow Run#underline to take style and color arguments
2017-03-12 17:28:52 +01:00
fb6a4383ff
renamed cell#push to cell#addContent
2017-03-11 21:15:45 +01:00
c33cdb450c
added initial constructor
2017-03-11 18:21:31 +00:00
62b6b33254
created drawing file and refactored run components in components folder
2017-03-11 16:56:35 +00:00
70f4613e1b
appease the linter
2017-03-11 10:30:25 +01:00
bd9d6b74f5
added Cell#createParagraph method
2017-03-11 10:30:08 +01:00
bd3eb3e214
move the cell-paragraph validation into prepForXml
...
Instead of forcing table cells to only have a single paragraph as
their content, we now check whether they end in a paragraph (and
insert one if necessary) during #prepForXml
2017-03-11 10:22:30 +01:00
c10b576a3a
added fixedWidthLayout option and method
2017-03-11 09:59:29 +01:00
210b97d00b
added document#createTable
2017-03-11 09:02:36 +01:00
62a238de84
more sane width management
2017-03-11 09:02:22 +01:00
a45048a464
fix a handful of strict null errors; make test config also be strict
...
These errors only arose because I didn't run `npm build`, only `npm
test`. Then, when I tried building the null checks failed. Keeping the
two config fiels in sync will help prevent this issue in the future
2017-03-10 17:45:37 +01:00
c0b0649f37
added tests for table v1
2017-03-10 17:39:37 +01:00
e7e5c61a90
clean up initial table attempt (linter, interfaces, etc.)
2017-03-10 17:11:08 +01:00
f1fb0c4f22
initial attempt at Table
2017-03-10 16:55:39 +01:00
9d7573ed9c
fix unused imports linter warnings
2017-03-10 16:09:21 +01:00
35ddda444a
rename paragraph#createRun to paragraph#createTextRun
2017-03-10 14:44:25 +01:00
8d11ec3422
add paragraph.createRun method
2017-03-10 14:36:16 +01:00
ea647d84df
add document.createParagraph method
2017-03-10 14:31:21 +01:00
a89718ea83
fix a couple of compiler null warnings
2017-03-10 14:31:21 +01:00
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
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
958b5ea307
improved type annotation for Attributes#prepForXml
2017-03-10 08:58:29 +01:00
10684b34aa
clean up unused imports and a linter warning
2017-03-10 08:52:47 +01:00
c521d0ce63
rename toXml -> prepForXml
2017-03-10 08:23:27 +01:00
11bbb5e285
linting
2017-03-09 23:32:52 +00:00
06353a6977
linting
2017-03-09 22:57:37 +00:00
2b28dd42ee
unclear variable name. please improve
2017-03-09 22:57:30 +00:00
7022b39d2e
linting
2017-03-09 22:56:08 +00:00
11e918114d
clear out clearVariables! In comes toXml
2017-03-09 20:49:14 +01:00
879b9163a3
Allow XmlComponent to take strings and remove XmlUnit
2017-03-09 20:21:49 +01:00
4a2b8a1e04
remove unused XmlProperty code
2017-03-09 19:04:17 +01:00
766bcabcb8
allow Underline to be called with type and color; fix default
2017-03-09 12:42:19 +01:00
20ec9b679e
added Spacing for paragraphs and ParagraphStyle
2017-03-09 12:16:49 +01:00
18ca93e50a
add paragraph#style method to quickly set the style
2017-03-09 11:11:07 +01:00
2684f16579
move indent.ts over to paragraph and add a #indent method
2017-03-09 09:59:48 +01:00
744b16b753
tslinting
2017-03-08 21:59:27 +00:00
946a222d37
linting fixes
2017-03-08 21:49:41 +00:00
279a5a93f1
fixed failing test
2017-03-08 21:40:21 +00:00
0e89606ec9
lots of tslinting
2017-03-08 21:36:09 +00:00
540518bd54
more tslinting
2017-03-08 20:35:26 +00:00
03b34915c6
tslinting
2017-03-08 20:32:30 +00:00