e69b063687
Porting tests over to vitest
2023-06-05 00:33:43 +01:00
236cce604f
Fix tests
2023-03-17 00:54:29 +00:00
0388a564b5
Deprecate import dotx
2023-03-17 00:20:55 +00:00
66a1992da0
Add ImageRun feature
2023-03-03 23:47:50 +00:00
5950055cca
Fix linting and add new lint rules
2022-09-19 20:48:50 +01:00
e90d97b813
Use new eslint-plugin-functional instead of tslint-immutable
2022-09-15 20:00:50 +01:00
ebcb37cbed
Fix ESLinting errors and remove TSLint
2022-08-31 08:59:27 +01:00
1bdf9a4987
Initial ESlint conversion
2022-08-31 07:52:27 +01:00
982d923553
Improve import alias
...
@file/ and @export/ instead of file/ and export/ etc
2022-06-26 23:26:42 +01:00
caf188caae
Make adding images declarative and simple
2021-03-18 02:48:37 +00:00
bd40b11ce4
#815 Rotation and flipping images
2021-03-15 02:41:37 +00:00
f0e50dd21f
Add more tests
2021-03-13 22:43:21 +00:00
0b88cb0ca5
#548 #508 Restart numbered lists
2021-03-12 03:58:05 +00:00
655b40d418
Work on moving Document into its own wrapper
2021-02-28 16:04:21 +00:00
0de7116b78
#773 Better hyperlink and bookmark syntax
...
Allow for images to be hyperlinked as well
2021-02-27 19:23:29 +00:00
4f6a9f734c
Update prettier
2020-08-01 17:40:57 +01:00
172c333357
Add tests and clean up code
2019-09-29 04:17:21 +01:00
ac5b15d0e3
Mandatory Sections
2019-07-31 08:48:02 +01:00
c97d15cb9f
Remove create table helper function
2019-06-25 01:21:28 +01:00
dfe986331d
Make media return a picture run instead
2019-06-23 22:36:01 +01:00
816cb54b14
Optimize XML output by properly constructing objects to send to the xml library so that it can produce proper empty elements.
...
Rework the way attributes are stored in ImportedXmlComponent to match elsewhere (required allowing for a null xmlKeys in the XmlAttributeComponent interface).
Rework the way paragraphs get added to the end of table cells if needed.
The goal in both reworks is to not mess around with the objects output from `prepForXml` if we can avoid it.
Made the output of RunProperties, ParagraphProperties, TableCellProperties, TableRowProperties, and TableProperties all optional based on whether they contain any attributes or children. Changed code in PageBorders, TableCellMargin, and TableCellBorders that implemented this same thing by overriding `prepForXml` so that it uses the new XmlComponent subclass instead.
Removed commented out code that attempted to fix-up XML output and make proper empty elements.
Fixed all affected tests.
Turn off `no-null-keyword` in the linter as we need to use null to signal to the `xml` library to create an empty element with no attributes (`undefined` will not work in its place).
Fixes #306
2019-04-09 05:27:18 -04:00
8db52212ab
Remove id from media
2018-12-24 16:50:53 +00:00
7980f14efb
Introduce some functional programming techniques
2018-11-02 02:51:57 +00:00
9cfd835171
More tests
2018-11-02 00:42:49 +00:00
61411fd0f3
Add tests
2018-11-01 02:22:32 +00:00
9c66db97ff
Use single media instead of multiple
2018-10-23 00:31:51 +01:00
e68bc50e6e
style fixed
2018-08-22 10:39:13 -03:00
e9e42011cd
Merge branch 'master' into master
2018-08-22 08:04:45 -03:00
eb9cc767c6
Merge from master
2018-08-21 20:59:20 +01:00
bf5bcea607
Make add image support base64 strings
2018-08-15 22:20:43 +01:00
3d91c84966
alphabetized import sources
2018-08-14 11:28:01 -03:00
f91fd5921f
merge with upstream master
2018-08-14 11:27:08 -03:00
36157bb8db
Added optional drawingOptions parameter to addImage and addImageFromBuffer methods. This way it can be passaed to Image constructor.
2018-08-14 11:06:17 -03:00
675192b86f
Refactor image to accept Buffer only
2018-08-12 23:07:31 +01:00
7b43551148
Merge pull request #123 from dolanmiu/feat/h4-update
...
Feat/h4 update
2018-08-10 00:30:53 +01:00
ad356d2759
Add ignores so it doesnt get generated in documentation
2018-08-09 23:40:11 +01:00
89df3c48e0
Fix linting errors
2018-08-09 23:22:03 +01:00
3436a1584c
Merge branch 'master' of https://github.com/h4buli/docx into feat/h4-update
...
# Conflicts:
# package.json
# src/file/document/body/body.ts
# src/file/document/body/section-properties/section-properties.ts
# src/file/file.ts
# src/file/media/media.ts
# src/file/styles/external-styles-factory.ts
# src/file/table/table-cell.ts
2018-08-09 23:21:24 +01:00
f264e4d0f7
Add scale method to image
2018-08-09 21:58:50 +01:00
e10c20fa42
Add image to run
2018-08-09 01:55:50 +01:00
12c8cb93f6
Clean up API
2018-08-07 01:25:28 +01:00
5f22950721
Change image API so that it now sends Images
2018-08-03 00:01:42 +01:00
3fcfc29e3f
Style formatting
2018-08-02 02:21:15 +01:00
3f1eda60eb
Rename data to buffer
2018-08-02 02:14:57 +01:00
0d5e9ce9d8
Offload media methods into Media static object
...
Simplified File handling of images
2018-08-02 02:09:00 +01:00
c797ed9c25
media: fixed bug when media size can be decimal
...
- produces invalid docx document
2018-06-29 00:32:01 +02:00
f1ac646518
Merge branch 'feature/multiple-sections' of https://github.com/h4buli/docx into feat/multiple-headers
...
# Conflicts:
# src/export/packer/compiler.ts
# src/file/content-types/content-types.ts
# src/file/document/body/section-properties/header-reference/header-reference.ts
# src/file/document/body/section-properties/section-properties.ts
# src/file/file.ts
# src/file/media/media.ts
2018-06-22 22:59:38 +01:00
0b963ec3b8
feature: add support to add mutiple sections to the document inc. headers and footers
...
- write missing tests
2018-06-21 12:03:34 +02:00
dadd8c122f
fixed formatting styles
2018-05-17 15:32:15 +02:00
573dd753a7
Fix styling and linting
2018-05-06 03:19:36 +01:00