Small corrections
This commit is contained in:
parent
e460de5abc
commit
8369249f04
1 changed files with 7 additions and 5 deletions
|
@ -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] = [ // /
|
||||
'...... .....# ###### ###...',
|
||||
'.....# .####. ...... ......',
|
||||
'#####.. ...... ...... ......',
|
||||
'#####. ...... ...... ......',
|
||||
'...... ...... ...... ......',
|
||||
]
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue