feat:2.5.0初始化专注启蒙项目
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { getRandomNumberColor } from '../../constants/colors';
|
||||
import { getRandomNumberColor } from '../../constants/mathFunctions';
|
||||
import MissingNumberDraw from '../shared/service/missingNumberDraw';
|
||||
import {
|
||||
createMathPage,
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { getImage } from '../../../utils/index';
|
||||
import { getRandomNumberColor } from '../../../constants/colors';
|
||||
import { getRandomNumberColor } from '../../../constants/mathFunctions';
|
||||
|
||||
interface DrawCountMatchContentParams {
|
||||
canvas: WechatMiniprogram.Canvas;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { getImage } from '../../../utils/index';
|
||||
import { getRandomNumberColor } from '../../../constants/colors';
|
||||
import { getRandomNumberColor } from '../../../constants/mathFunctions';
|
||||
|
||||
interface DrawCountingSelectContentParams {
|
||||
canvas: WechatMiniprogram.Canvas;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { getNumberColors } from '../../../constants/colors';
|
||||
import { getNumberColors } from '../../../constants/mathFunctions';
|
||||
|
||||
interface DrawNumberColorContentParams {
|
||||
canvas: WechatMiniprogram.Canvas;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { getImage } from '../../../utils/index';
|
||||
import { getRandomNumberColor } from '../../../constants/colors';
|
||||
import { getRandomNumberColor } from '../../../constants/mathFunctions';
|
||||
|
||||
interface DrawNumberDecomposeContentParams {
|
||||
canvas: WechatMiniprogram.Canvas;
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import { getImage } from '../../../utils/index';
|
||||
import { NUMBER_COLORS } from '../../../constants/mathFunctions';
|
||||
|
||||
/**
|
||||
* 数字到英文单词的映射
|
||||
@@ -16,19 +17,6 @@ const NUMBER_WORDS: Record<number, string> = {
|
||||
10: 'ten',
|
||||
};
|
||||
|
||||
const NUMBER_COLORS: Record<number, string> = {
|
||||
1: '#9FC558',
|
||||
2: '#CDB984',
|
||||
3: '#B393B8',
|
||||
4: '#ED7E97',
|
||||
5: '#53B5B9',
|
||||
6: '#B3B3B3',
|
||||
7: '#EE8B7A',
|
||||
8: '#F6C644',
|
||||
9: '#99C1F4',
|
||||
10: '#F5D25C',
|
||||
};
|
||||
|
||||
/**
|
||||
* 绘制预览区域的参数接口
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user