From 482674b3b3b2b1b650b67a3c67d4020267415af8 Mon Sep 17 00:00:00 2001 From: Dolan Date: Fri, 14 Sep 2018 02:37:03 +0100 Subject: [PATCH] Fix spelling error --- src/file/footer-wrapper.ts | 4 ++-- src/file/header-wrapper.ts | 4 ++-- src/importDocx/importDocx.ts | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/file/footer-wrapper.ts b/src/file/footer-wrapper.ts index 87adb97c47..36689da8ad 100644 --- a/src/file/footer-wrapper.ts +++ b/src/file/footer-wrapper.ts @@ -38,7 +38,7 @@ export class FooterWrapper { this.footer.addChildElement(childElement); } - public addImageRelation(image: Buffer, refId: number, width?: number, height?: number): IMediaData { + public addImageRelationship(image: Buffer, refId: number, width?: number, height?: number): IMediaData { const mediaData = this.media.addMedia(image, refId, width, height); this.relationships.createRelationship( refId, @@ -49,7 +49,7 @@ export class FooterWrapper { } public createImage(image: Buffer, width?: number, height?: number): void { - const mediaData = this.addImageRelation(image, this.relationships.RelationshipCount, width, height); + const mediaData = this.addImageRelationship(image, this.relationships.RelationshipCount, width, height); this.addImage(new Image(new ImageParagraph(mediaData))); } diff --git a/src/file/header-wrapper.ts b/src/file/header-wrapper.ts index 7d42643158..3ae4944c88 100644 --- a/src/file/header-wrapper.ts +++ b/src/file/header-wrapper.ts @@ -39,7 +39,7 @@ export class HeaderWrapper { this.header.addChildElement(childElement); } - public addImageRelation(image: Buffer, refId: number, width?: number, height?: number): IMediaData { + public addImageRelationship(image: Buffer, refId: number, width?: number, height?: number): IMediaData { const mediaData = this.media.addMedia(image, refId, width, height); this.relationships.createRelationship( refId, @@ -50,7 +50,7 @@ export class HeaderWrapper { } public createImage(image: Buffer, width?: number, height?: number): void { - const mediaData = this.addImageRelation(image, this.relationships.RelationshipCount, width, height); + const mediaData = this.addImageRelationship(image, this.relationships.RelationshipCount, width, height); this.addImage(new Image(new ImageParagraph(mediaData))); } diff --git a/src/importDocx/importDocx.ts b/src/importDocx/importDocx.ts index e2cb8cff0f..e70806de3c 100644 --- a/src/importDocx/importDocx.ts +++ b/src/importDocx/importDocx.ts @@ -100,7 +100,7 @@ export class ImportDocx { } for (const r of wrapperImagesReferences) { const buffer = await zipContent.files[`word/${r.targetFile}`].async("nodebuffer"); - wrapper.addImageRelation(buffer, r.id); + wrapper.addImageRelationship(buffer, r.id); } }