feat: 重新调整header

This commit is contained in:
zhangyi
2025-03-28 18:09:41 +08:00
parent 40e6241f26
commit 2d686a9c01
4 changed files with 258 additions and 25 deletions
@@ -1,4 +1,5 @@
import TextDrawService from '../../canvasService/textDrawService';
// import TextDrawService from '../../canvasService/textDrawService';
import TextDrawServiceV2 from '../../canvasService/textDrawServiceV2';
Page({
canvas: null as Canvas | null,
@@ -45,12 +46,12 @@ Page({
.exec((res) => {
const canvas = res[0].node;
const ctx = canvas.getContext('2d');
const textDrawService = new TextDrawService(canvas, ctx);
textDrawService.draw();
this.canvas = canvas;
this.ctx = ctx;
const textDrawService = new TextDrawServiceV2(canvas, ctx);
textDrawService.draw();
// this.setCanvasSize(canvas, ctx);
// ctx.fillRect(0, 0, 2480, 3508);
// this.drawGameBoard(ctx);