feature: generate pdf from actor

This commit is contained in:
Matthieu CAILLEAUX
2021-10-18 00:35:13 +02:00
parent f96372b236
commit 145207a1c5
14 changed files with 391 additions and 138 deletions

View File

@@ -1,5 +1,6 @@
import { Box } from './box';
import jsPDF from 'jspdf';
import { AbstractElement } from './abstract-element';
export class Image extends Box {
public imageData: string;
@@ -19,4 +20,8 @@ export class Image extends Box {
});
return doc;
}
public getElements(): AbstractElement[] {
return [this];
}
}