Small corrections

This commit is contained in:
Stefan Bethke 2025-06-01 15:59:43 +02:00
commit 8369249f04

View file

@ -49,7 +49,6 @@ export default class {
// rowSvg.setAttribute("width", "320");
// rowSvg.setAttribute("height", "15");
let rect = document.createElementNS(this.svgns, "rect");
for (let c = 1; c <= this.config.cols; c++) {
let g = document.createElementNS(this.svgns, "g");
rowSvg.appendChild(g);
@ -65,12 +64,15 @@ export default class {
}
}
let c = 1
c += this.applyText(1, 1," !\"#$%&'()*+,-./0123456789:;<=>?");
c += this.applyText(2, 1,"@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_");
c += this.applyText(3, 1,"`abcdefghijklmnopqrstuvwxyz{|}~\x7f");
this.applyText(1, 1," !\"#$%&'()*+,-./0123456789:;<=>?");
this.applyText(2, 1,"@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_");
this.applyText(3, 1,"`abcdefghijklmnopqrstuvwxyz{|}~\x7f\u0123");
}
applyCharacter(row, col, char) {
let f = this.font[char]
if (f === undefined)
return 0;
for (let c of this.font[char]) {
for (let s = 0; s < c.length; s++) {
const e = this.container.querySelector(`#geavision__row_${row}_${col}_${s+1}`)
@ -219,7 +221,7 @@ export default class {
defs[0x2f] = [ // /
'...... .....# ###### ###...',
'.....# .####. ...... ......',
'#####.. ...... ...... ......',
'#####. ...... ...... ......',
'...... ...... ...... ......',
]