feat: 准备修改header的渲染
This commit is contained in:
@@ -13,7 +13,10 @@ class TextDrawService {
|
||||
this.ctx = ctx;
|
||||
this.paperSize = 'A4';
|
||||
this.options = {
|
||||
appName: '涂鸦呀',
|
||||
appHint: '涂色|识字|画画|认知',
|
||||
title: '找一找 涂 色',
|
||||
subTitle: '把相同的文字涂上相同的颜色',
|
||||
radius: 80,
|
||||
colors: ['#2196F3', '#FFEB3B', '#FF9800', '#F44336'],
|
||||
characters: ['鱼', '鸟', '猫', '狗'],
|
||||
@@ -30,6 +33,11 @@ class TextDrawService {
|
||||
}
|
||||
|
||||
drawHeader() {
|
||||
const { canvas, ctx } = this;
|
||||
const { appName, appHint, title, subTitle } = this.options;
|
||||
}
|
||||
|
||||
drawHeader2() {
|
||||
const { canvas, ctx } = this;
|
||||
const { title } = this.options;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user