fix: regression generate pdf
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user