Set pngWidthRasterizedSlides to 2560, escape -

This commit is contained in:
Daniel Petri Rocha 2022-07-26 17:16:26 +02:00
parent 40d0c454c0
commit 8ab1e094dd
2 changed files with 5 additions and 2 deletions

View File

@ -7,7 +7,7 @@
"presAnnDropboxDir": "/tmp/pres-ann-dropbox"
},
"collector": {
"pngWidthRasterizedSlides": 2048
"pngWidthRasterizedSlides": 2560
},
"process": {
"whiteboardTextEncoding": "utf-8",

View File

@ -120,13 +120,16 @@ function to_px(pt) {
return (pt / config.process.pointsPerInch) * config.process.pixelsPerInch
}
// Escape shell metacharacters based on MDN's page on regular expressions,
// the escape-string-regexp npm package, and Pango markup.
function escapeText(string) {
return string
.replace(/&/g, '\\&')
.replace(/'/g, '\\'')
.replace(/>/g, '\\>')
.replace(/</g, '\\&lt;')
.replace(/[~`!".*+?%^${}()|[\]\\\/]/g, '\\$&');
.replace(/[~`!".*+?%^${}()|[\]\\\/]/g, '\\$&')
.replace(/-/g, '\\x2d');
}
function render_textbox(textColor, font, fontSize, textAlign, text, id, textBoxWidth = null) {