Commit Graph

52 Commits

Author SHA1 Message Date
Dolan
34e928755f Add documentation links 2017-09-21 14:56:46 +01:00
Dolan
ebbf6a99c1 Make exporting more consistent 2017-09-19 15:51:55 +01:00
Dolan
b0febf5054 Refactor run into own file 2017-09-19 15:42:40 +01:00
Dolan
72e89cfc3c Move tests to respective folders as .spec
This is to keep to standards
2017-09-17 00:00:41 +01:00
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
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
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
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
8d72fa5542 added more boilerplate files to drawing 2017-03-12 23:31:43 +00:00
Dolan Miu
6af79a884c Merge branch 'master' into image-support 2017-03-12 21:38:38 +00:00
Dolan Miu
4bc6ed0eda added more files to drawing 2017-03-12 21:30:46 +00: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
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
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
9d7573ed9c fix unused imports linter warnings 2017-03-10 16:09: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
Dolan
7022b39d2e linting 2017-03-09 22:56:08 +00:00
felipe
879b9163a3 Allow XmlComponent to take strings and remove XmlUnit 2017-03-09 20:21:49 +01:00
felipe
766bcabcb8 allow Underline to be called with type and color; fix default 2017-03-09 12:42:19 +01:00
Dolan
946a222d37 linting fixes 2017-03-08 21:49:41 +00:00
Dolan
540518bd54 more tslinting 2017-03-08 20:35:26 +00:00
Dolan
03b34915c6 tslinting 2017-03-08 20:32:30 +00:00
felipe
727471b7e3 fix linter warnings in docx/run/index.ts 2017-03-08 20:52:37 +01:00
felipe
1a37242a3d add #font method to Run 2017-03-08 20:47:36 +01:00
felipe
237be76d33 move run-fonts to docx/run and add a test 2017-03-08 20:47:35 +01:00
Dolan Miu
078196c6d6 wrote lots of tests 2016-07-18 19:17:19 +01:00
Dolan Miu
adb4e933ef added different types of underline 2016-07-13 00:59:53 +01:00
Dolan Miu
ed4f7464e0 added new run methods 2016-07-12 08:25:53 +01:00
Dolan Miu
122c87ddf8 added break 2016-07-07 18:57:44 +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
42f5402551 added tab and fixed italics 2016-05-18 17:06:50 +01:00
Dolan Miu
8b9a935505 added break() stub 2016-05-17 23:37:36 +01:00
Dolan Miu
ea1390b86b clean up of Text class 2016-05-09 13:02:59 +01:00
Dolan Miu
a1b4facb40 added heading styles 2016-05-08 17:01:20 +01:00
Dolan Miu
7cf6006c1c added more styles 2016-05-07 20:17:18 +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
4f4653200e added italics and underline 2016-03-30 04:43:56 +01:00
Dolan Miu
26f30b06d2 added return values and formatting 2016-03-30 04:32:51 +01:00