fix: regression generate pdf

This commit is contained in:
Matthieu CAILLEAUX
2022-04-29 13:38:39 +02:00
parent 049c77a004
commit 851bc738e5
19 changed files with 485 additions and 184 deletions

View File

@@ -2,11 +2,13 @@ import { Box } from './box';
import jsPDF from 'jspdf';
import { AbstractElement } from './abstract-element';
import { IContext } from './context';
import { GenerateTypeEnum } from './generate-type.enum';
export class Image extends Box {
public imageData: string;
constructor(
globalType: GenerateTypeEnum,
x: number,
y: number,
w: number,
@@ -14,7 +16,7 @@ export class Image extends Box {
imageData: string,
context: Partial<IContext> = AbstractElement.DEFAULT_CONTEXT
) {
super(x, y, w, h, context);
super(globalType, x, y, w, h, context);
this.imageData = imageData;
}