feat: 重新调整header
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user