|
@@ -927,12 +927,12 @@ export class CanvasPhotoEditor {
|
|
|
|
|
|
|
|
// 页码
|
|
// 页码
|
|
|
ctx.fillStyle = '#666666'
|
|
ctx.fillStyle = '#666666'
|
|
|
- ctx.font = `${16 * this.scale}px sans-serif`
|
|
|
|
|
|
|
+ ctx.font = `${16}px sans-serif`
|
|
|
ctx.textAlign = 'right'
|
|
ctx.textAlign = 'right'
|
|
|
ctx.fillText(
|
|
ctx.fillText(
|
|
|
`第 ${pageIndex + 1 + this.pageCount} 页`,
|
|
`第 ${pageIndex + 1 + this.pageCount} 页`,
|
|
|
- pageX + this.pageWidth - (20 * this.scale),
|
|
|
|
|
- this.pageHeight - (50 * this.scale)
|
|
|
|
|
|
|
+ pageX + this.pageWidth - (75),
|
|
|
|
|
+ this.pageHeight - (50)
|
|
|
)
|
|
)
|
|
|
|
|
|
|
|
// 绘制图片(重构核心:调用独立方法)
|
|
// 绘制图片(重构核心:调用独立方法)
|
|
@@ -1583,7 +1583,7 @@ export class CanvasPhotoEditor {
|
|
|
ctx.textAlign = 'right'
|
|
ctx.textAlign = 'right'
|
|
|
ctx.fillText(
|
|
ctx.fillText(
|
|
|
`第 ${pageIndex + 1 + this.pageCount} 页`,
|
|
`第 ${pageIndex + 1 + this.pageCount} 页`,
|
|
|
- this.pageWidth - (20),
|
|
|
|
|
|
|
+ this.pageWidth - (75),
|
|
|
this.pageHeight - (50)
|
|
this.pageHeight - (50)
|
|
|
)
|
|
)
|
|
|
// ==========================================
|
|
// ==========================================
|
|
@@ -1747,7 +1747,7 @@ export class CanvasPhotoEditor {
|
|
|
ctx.textAlign = 'right'
|
|
ctx.textAlign = 'right'
|
|
|
ctx.fillText(
|
|
ctx.fillText(
|
|
|
`第 ${pageIndex + 1 + this.pageCount} 页`,
|
|
`第 ${pageIndex + 1 + this.pageCount} 页`,
|
|
|
- this.pageWidth - (20),
|
|
|
|
|
|
|
+ this.pageWidth - (75),
|
|
|
this.pageHeight - (50)
|
|
this.pageHeight - (50)
|
|
|
)
|
|
)
|
|
|
// ==========================================
|
|
// ==========================================
|