Fix if no translation is given

This commit is contained in:
pietervdvn 2022-09-22 16:54:15 +02:00
parent 55593c2ee3
commit b1b6e9b8de

View file

@ -30,7 +30,7 @@ class SvgToPdfInternals {
this.doc = advancedApi;
this._images = images;
this._rects = rects;
this.extractTranslation = s => extractTranslation(s).replace(/ /g, " ");
this.extractTranslation = s => extractTranslation(s)?.replace(/ /g, " ");
this.currentMatrix = this.doc.unitMatrix;
this.currentMatrixInverted = this.doc.unitMatrix;
}