97101adb10
Enabled declarations in tsconfig to be true
2017-07-07 14:31:08 +01:00
2ec171d4a8
Used my updated typings for archiver 1.3
2017-05-09 18:03:31 +01:00
580f6eb633
fixed tests
2017-04-16 00:44:35 +01:00
e59c255d85
added type to pack param
2017-04-15 23:45:27 +01:00
17b28cb724
fixed more linting issues
2017-04-15 20:11:54 +01:00
410152441b
fixed tslinting issues
2017-04-15 17:54:47 +01:00
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
b1c8b2beb8
add xml:space="preserve" to text runs
...
In MS Word 2015 (and possibly others), leading and trailing spaces are
ignored in text runs. This means that calling TextRun with
leading/trailing space would result in a document that didn't include
those spaces. The fix here (per http://officeopenxml.com/WPtext.php )
is to include an extra attribute on the "w:t" element that forces word
to recognize those spaces.
2017-04-14 11:08:19 +02:00
6fc4ad782a
add #overrideLevel method to concrete numberings
2017-04-12 16:00:16 +02:00
16b9057ac6
prepare Level to be extended for overrides
2017-04-12 15:57:26 +02:00
91a757619e
fixed unit tests
2017-04-01 12:30:27 +01:00
fd350d53db
fixed some typescript compile issues
2017-04-01 12:18:23 +01:00
af48af2854
added error checking and updated demo
2017-03-29 22:57:52 +01:00
15009884e3
made image take in IData instead of image path
2017-03-29 22:47:34 +01:00
ad462dfe10
added relationships
2017-03-27 01:28:52 +01:00
68fe380575
renamed template constant
2017-03-27 01:28:31 +01:00
5b2a311ad4
media now adds object into docx /media folder
2017-03-26 20:57:43 +01:00
5db2503e7b
added media class and packer to handle it
2017-03-25 21:50:33 +00:00
30b21217a9
added create picture run method
2017-03-13 23:41:14 +00:00
260a680f56
Merge branch 'master' into image-support
2017-03-13 23:37:09 +00:00
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
3730e2b60e
clean up of packer
2017-03-13 23:30:26 +00:00
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
762fc0ca9d
added run formatting methods to levels
2017-03-13 12:38:16 +01:00
457d074a59
added paragraph formatting methods to numbering Level
2017-03-13 12:38:16 +01:00
66eace4a33
added a attribute to graphic
2017-03-13 00:40:39 +00:00
eeb2187db4
added source rectangle and stretch in the blip fill
2017-03-13 00:33:59 +00:00
fa44acca1b
added the remaining classes required
2017-03-13 00:02:56 +00:00
34ce662f70
added basic test for drawing
2017-03-12 23:32:02 +00:00
8d72fa5542
added more boilerplate files to drawing
2017-03-12 23:31:43 +00:00
64d642b593
Merge branch 'master' into image-support
2017-03-12 21:44:17 +00:00
d9e533156f
fixed the build :P removed .docx extension if one is already present
2017-03-12 21:43:52 +00:00
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
9f61ca7abe
fixed the build :P removed .docx extension if one is already present
2017-03-12 21:42:45 +00:00
6af79a884c
Merge branch 'master' into image-support
2017-03-12 21:38:38 +00:00
f17360d45a
add simple demo page
2017-03-12 21:34:49 +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
0b78e33444
added #leftTabStop and #maxRightTabStop methods to paragraph styles
2017-03-12 22:05:54 +01:00
6689f76c28
added #thematicBreak method to paragraph styles
2017-03-12 21:58:12 +01:00
df8ba1e8b8
added alignment methods to paragraph style
2017-03-12 21:40:01 +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
371398bc2c
added #strike and #doubleStrike methods to paragraphStyle
2017-03-12 17:44:42 +01:00
9a90818729
added #smallCaps and #allCaps methods to ParagraphStyle
2017-03-12 17:43:00 +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