Dolan
580f6eb633
fixed tests
2017-04-16 00:44:35 +01:00
Dolan
e59c255d85
added type to pack param
2017-04-15 23:45:27 +01:00
Dolan
17b28cb724
fixed more linting issues
2017-04-15 20:11:54 +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
felipe
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
felipe
6fc4ad782a
add #overrideLevel method to concrete numberings
2017-04-12 16:00:16 +02:00
felipe
16b9057ac6
prepare Level to be extended for overrides
2017-04-12 15:57:26 +02:00
Dolan Miu
91a757619e
fixed unit tests
2017-04-01 12:30:27 +01:00
Dolan Miu
fd350d53db
fixed some typescript compile issues
2017-04-01 12:18:23 +01:00
Dolan
af48af2854
added error checking and updated demo
2017-03-29 22:57:52 +01:00
Dolan
15009884e3
made image take in IData instead of image path
2017-03-29 22:47:34 +01:00
Dolan Miu
ad462dfe10
added relationships
2017-03-27 01:28:52 +01:00
Dolan Miu
68fe380575
renamed template constant
2017-03-27 01:28:31 +01:00
Dolan Miu
5b2a311ad4
media now adds object into docx /media folder
2017-03-26 20:57:43 +01:00
Dolan
5db2503e7b
added media class and packer to handle it
2017-03-25 21:50:33 +00:00
Dolan
30b21217a9
added create picture run method
2017-03-13 23:41:14 +00:00
Dolan
260a680f56
Merge branch 'master' into image-support
2017-03-13 23:37:09 +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
Dolan
3730e2b60e
clean up of packer
2017-03-13 23:30:26 +00:00
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