felipe
c7b7b585be
fix path to template when installed via npm
...
I'm not sure why, buy app-root-path was not picking up the correct
path for this module when installed via NPM. Since we're already using
relative paths for imports, I don't think we gain much from using it
anyway, so I've changed to using path.resolve instead
2017-03-13 20:40:16 +01:00
felipe
762fc0ca9d
added run formatting methods to levels
2017-03-13 12:38:16 +01:00
felipe
457d074a59
added paragraph formatting methods to numbering Level
2017-03-13 12:38:16 +01:00
Dolan Miu
66eace4a33
added a attribute to graphic
2017-03-13 00:40:39 +00:00
Dolan Miu
eeb2187db4
added source rectangle and stretch in the blip fill
2017-03-13 00:33:59 +00:00
Dolan Miu
fa44acca1b
added the remaining classes required
2017-03-13 00:02:56 +00:00
Dolan Miu
34ce662f70
added basic test for drawing
2017-03-12 23:32:02 +00:00
Dolan Miu
8d72fa5542
added more boilerplate files to drawing
2017-03-12 23:31:43 +00:00
Dolan Miu
64d642b593
Merge branch 'master' into image-support
2017-03-12 21:44:17 +00:00
Dolan Miu
d9e533156f
fixed the build :P removed .docx extension if one is already present
2017-03-12 21:43:52 +00:00
Dolan Miu
90e5cc3ad5
Revert "fixed the build :P removed .docx extension if one is already present"
...
This reverts commit 9f61ca7abe
.
2017-03-12 21:43:15 +00:00
Dolan Miu
9f61ca7abe
fixed the build :P removed .docx extension if one is already present
2017-03-12 21:42:45 +00:00
Dolan Miu
6af79a884c
Merge branch 'master' into image-support
2017-03-12 21:38:38 +00:00
Dolan Miu
f17360d45a
add simple demo page
2017-03-12 21:34:49 +00:00
Dolan Miu
4bc6ed0eda
added more files to drawing
2017-03-12 21:30:46 +00:00
felipe
a6e40d9d92
tightened type checking for tab stops
2017-03-12 22:06:43 +01:00
felipe
0b78e33444
added #leftTabStop and #maxRightTabStop methods to paragraph styles
2017-03-12 22:05:54 +01:00
felipe
6689f76c28
added #thematicBreak method to paragraph styles
2017-03-12 21:58:12 +01:00
felipe
df8ba1e8b8
added alignment methods to paragraph style
2017-03-12 21:40:01 +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
1cd681bc2d
added #font method to paragraph styles
2017-03-12 17:53:32 +01:00
felipe
7f4d1bf3e7
added #SubScript and #SuperScript methods to ParagraphStyle
2017-03-12 17:52:03 +01:00
felipe
8c6cd012e7
eliminated duplicate implementation of strikethrough
2017-03-12 17:51:52 +01:00
felipe
371398bc2c
added #strike and #doubleStrike methods to paragraphStyle
2017-03-12 17:44:42 +01:00
felipe
9a90818729
added #smallCaps and #allCaps methods to ParagraphStyle
2017-03-12 17:43:00 +01:00
felipe
90049a31ee
added #style method to runs
2017-03-12 17:35:15 +01:00
felipe
3dbd917667
added #color and #size methods to Run
2017-03-12 17:31:36 +01:00
felipe
d85c6ce56a
allow Run#underline to take style and color arguments
2017-03-12 17:28:52 +01:00
felipe
fb6a4383ff
renamed cell#push to cell#addContent
2017-03-11 21:15:45 +01:00
Dolan Miu
c33cdb450c
added initial constructor
2017-03-11 18:21:31 +00:00
Dolan Miu
62b6b33254
created drawing file and refactored run components in components folder
2017-03-11 16:56:35 +00:00
felipe
70f4613e1b
appease the linter
2017-03-11 10:30:25 +01:00
felipe
bd9d6b74f5
added Cell#createParagraph method
2017-03-11 10:30:08 +01:00
felipe
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
felipe
c10b576a3a
added fixedWidthLayout option and method
2017-03-11 09:59:29 +01:00
felipe
210b97d00b
added document#createTable
2017-03-11 09:02:36 +01:00
felipe
62a238de84
more sane width management
2017-03-11 09:02:22 +01:00
felipe
7b6f5bbaef
forgot to test #getCell
2017-03-10 17:48:05 +01:00
felipe
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
felipe
c0b0649f37
added tests for table v1
2017-03-10 17:39:37 +01:00
felipe
e7e5c61a90
clean up initial table attempt (linter, interfaces, etc.)
2017-03-10 17:11:08 +01:00
felipe
f1fb0c4f22
initial attempt at Table
2017-03-10 16:55:39 +01:00
felipe
599be5bf2b
got a little carried away with the purge! fixed failing errors
2017-03-10 16:35:48 +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
ea647d84df
add document.createParagraph method
2017-03-10 14:31:21 +01:00
felipe
8c91c04afa
clean up latentstyles to use modern attribute implementation
2017-03-10 14:31:21 +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