|
@@ -950,11 +950,11 @@ export class CanvasPhotoEditor {
|
|
|
ctx.fillStyle = '#ffffff'
|
|
ctx.fillStyle = '#ffffff'
|
|
|
ctx.fillRect(pageX + layout.x, itemY, layout.width, layout.height)
|
|
ctx.fillRect(pageX + layout.x, itemY, layout.width, layout.height)
|
|
|
// coordinate.push({x: pageX + layout.x, y: itemY, width: layout.width, height:layout.height})
|
|
// coordinate.push({x: pageX + layout.x, y: itemY, width: layout.width, height:layout.height})
|
|
|
- ctx.strokeStyle = '#e5e7eb'
|
|
|
|
|
|
|
+ ctx.strokeStyle = photoId?'#fff':'#e5e7eb'
|
|
|
ctx.lineWidth = 1 / this.scale
|
|
ctx.lineWidth = 1 / this.scale
|
|
|
ctx.strokeRect(pageX + layout.x, itemY, layout.width, layout.height)
|
|
ctx.strokeRect(pageX + layout.x, itemY, layout.width, layout.height)
|
|
|
// 设置填充颜色
|
|
// 设置填充颜色
|
|
|
- ctx.fillStyle = '#D9D9D9'; // 黄色
|
|
|
|
|
|
|
+ ctx.fillStyle = photoId?'#fff':'#D9D9D9'; // 黄色
|
|
|
// 绘制填充矩形
|
|
// 绘制填充矩形
|
|
|
ctx.fillRect(pageX + layout.x, itemY, layout.width, layout.height);
|
|
ctx.fillRect(pageX + layout.x, itemY, layout.width, layout.height);
|
|
|
// 说明文字占位框
|
|
// 说明文字占位框
|