Set pngWidthRasterizedSlides to 2560, escape -
This commit is contained in:
parent
40d0c454c0
commit
8ab1e094dd
@ -7,7 +7,7 @@
|
||||
"presAnnDropboxDir": "/tmp/pres-ann-dropbox"
|
||||
},
|
||||
"collector": {
|
||||
"pngWidthRasterizedSlides": 2048
|
||||
"pngWidthRasterizedSlides": 2560
|
||||
},
|
||||
"process": {
|
||||
"whiteboardTextEncoding": "utf-8",
|
||||
|
@ -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, '\\<')
|
||||
.replace(/[~`!".*+?%^${}()|[\]\\\/]/g, '\\$&');
|
||||
.replace(/[~`!".*+?%^${}()|[\]\\\/]/g, '\\$&')
|
||||
.replace(/-/g, '\\x2d');
|
||||
}
|
||||
|
||||
function render_textbox(textColor, font, fontSize, textAlign, text, id, textBoxWidth = null) {
|
||||
|
Loading…
Reference in New Issue
Block a user