feat:2.6.3 破十法、平十法、借十法

This commit is contained in:
R524809
2025-12-25 14:59:57 +08:00
parent ec3e79ad29
commit 52e9193121
21 changed files with 1259 additions and 30 deletions
@@ -59,7 +59,7 @@ class MakeTenDraw extends BaseDrawService {
private drawMnemonic() {
const { ctx, canvasWidth } = this;
const mnemonic = '看大数,拆小数,凑成10,加剩数';
const fontSize = 28; // 适合小朋友的字体大小
const fontSize = 24; // 适合小朋友的字体大小
// 使用适合小朋友的字体
ctx.font = `bold ${fontSize}px "YouYuan", "PingFang SC", "Microsoft Yahei", sans-serif`;
@@ -222,7 +222,7 @@ class MakeTenDraw extends BaseDrawService {
ctx.lineTo(rightNodeX + boxSize / 2, secondLayerY);
ctx.stroke();
const thirdLayerY = secondLayerY + boxSize + verticalSpacing + 10;
const thirdLayerY = secondLayerY + boxSize + verticalSpacing + 15;
let bigBoxX = 0;
let bigBoxCenterX = 0;
@@ -296,7 +296,7 @@ class MakeTenDraw extends BaseDrawService {
ctx.stroke();
// 在第二层另一个方框和第三层方框之间的折线中间绘制加号
this.drawSymbol(secondPlusX, thirdLayerY + 3, '+', 12);
this.drawSymbol(secondPlusX, thirdLayerY + 2, '+', 12);
}
/**