feat: 分栏对照开发,字体缩放、定位调整
This commit is contained in:
@@ -255,16 +255,11 @@ export function generateLetterTracing(
|
||||
config.alphabetHalf === 'N-Z'
|
||||
? LETTERS_UPPER.slice(13)
|
||||
: LETTERS_UPPER.slice(0, 13);
|
||||
const rowsOf4 = chunk(half, 4);
|
||||
const leftRows = rowsOf4.map((g) =>
|
||||
rowForManyChars(g, repetitions, fadePattern),
|
||||
const leftRows = half.map((L) =>
|
||||
rowForChar(L, repetitions, fadePattern),
|
||||
);
|
||||
const rightRows = rowsOf4.map((g) =>
|
||||
rowForManyChars(
|
||||
g.map((L) => L.toLowerCase()),
|
||||
repetitions,
|
||||
fadePattern,
|
||||
),
|
||||
const rightRows = half.map((L) =>
|
||||
rowForChar(L.toLowerCase(), repetitions, fadePattern),
|
||||
);
|
||||
return { mode: 'column-compare', leftRows, rightRows };
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user