prepare email template

This commit is contained in:
Jonathan Jenne
2023-12-18 16:33:24 +01:00
parent 13b9003186
commit f54532a4b1
8 changed files with 512 additions and 35 deletions

View File

@@ -102,7 +102,7 @@
return frameAnnotation
}
async createAnnotationFrameBlob(receiverName, receiverSignature, width, height) {
async createAnnotationFrameBlob(receiverName, receiverSignature, timestamp, width, height) {
const canvas = document.createElement('canvas')
const scale = 4
const fontSize = 10
@@ -120,7 +120,7 @@
// This also should make the lines and text less blurry
ctx.textRendering = "geometricPrecision"
const date = new Date()
const date = timestamp
const dateString = date.toLocaleString('de-DE')
const signatureLength = 100 * scale

View File

@@ -113,7 +113,7 @@ class App {
}
handleAnnotationsLoad(loadedAnnotations) {
console.log('annotations loaded', loadedAnnotations.toJS())
console.debug('annotations loaded', loadedAnnotations.toJS())
}
handleAnnotationsChange() { }
@@ -129,10 +129,12 @@ class App {
const top = annotation.boundingBox.top - 20
const width = 150
const height = 75
const timestamp = new Date()
const imageUrl = await this.Annotation.createAnnotationFrameBlob(
this.currentReceiver.name,
this.currentReceiver.signature,
timestamp,
width,
height
)