feat: 数感启蒙、专注力页面重构、首页入口开发

This commit is contained in:
R524809
2026-04-21 17:51:16 +08:00
parent b2f5b203f8
commit 28151018ee
212 changed files with 2722 additions and 5207 deletions
@@ -238,9 +238,9 @@ class LineRecognitionDraw extends BaseDrawService {
}
/**
* 绘制线条
* 按线条类型绘制预览/练习区中的线条(避免与 BaseDrawService.drawLine 同名冲突)
*/
private drawLine(
private drawLineVariant(
ctx: RenderingContext,
lineType: LineType,
x: number,
@@ -317,7 +317,7 @@ class LineRecognitionDraw extends BaseDrawService {
const lineX = blockX + lineMargin;
const lineY = blockY + referenceBlockHeight / 2;
const lineWidth = referenceBlockWidth - lineMargin * 2;
this.drawLine(ctx, config.type, lineX, lineY, lineWidth);
this.drawLineVariant(ctx, config.type, lineX, lineY, lineWidth);
// 绘制文字标签
ctx.fillStyle = '#000';
@@ -359,7 +359,7 @@ class LineRecognitionDraw extends BaseDrawService {
const lineX = blockX + lineMargin;
const lineY = blockY + referenceBlockHeight / 2;
const lineWidth = referenceBlockWidth - lineMargin * 2;
this.drawLine(ctx, config.type, lineX, lineY, lineWidth);
this.drawLineVariant(ctx, config.type, lineX, lineY, lineWidth);
// 绘制文字标签
ctx.fillStyle = '#000';
@@ -116,7 +116,7 @@ class ShapeSymbolDraw extends BaseDrawService {
// 第二行:绘制符号(使用 emoji)
const symbolX = legendStartX + index * cellSize + cellSize / 2;
const symbolY = legendStartY + cellSize + cellSize / 2;
this.drawSymbol(ctx, symbolX, symbolY, mapping.symbol, 30);
this.drawLegendEmojiSymbol(ctx, symbolX, symbolY, mapping.symbol, 30);
});
const dividerY = legendStartY + legendRows * cellSize + 30;
@@ -178,9 +178,9 @@ class ShapeSymbolDraw extends BaseDrawService {
}
/**
* 绘制符号(使用路径绘制,类似 shapeSymbolShapes.ts
* 图例区绘制 emoji 符号(避免与 BaseDrawService.drawSymbol 同名冲突
*/
private drawSymbol(
private drawLegendEmojiSymbol(
ctx: RenderingContext,
x: number,
y: number,