Fix spelling error

This commit is contained in:
Dolan
2018-09-14 02:37:03 +01:00
parent fcbfed9068
commit 482674b3b3
3 changed files with 5 additions and 5 deletions

View File

@ -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)));
}

View File

@ -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)));
}

View File

@ -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);
}
}