|
|
@@ -457,7 +457,6 @@ export class CanvasPhotoEditor {
|
|
|
const mouseY = (e.clientY - rect.top - this.drawOffsetY) / this.scale
|
|
|
const PhotoIndex = this.getPhotoPositionInPage(e)
|
|
|
console.log('indexingLineList', this.indexingLineList)
|
|
|
- console.log('indexing', this.indexing, PhotoIndex, isLine)
|
|
|
if (PhotoIndex.itemIndex == -1) {
|
|
|
ElMessage.error("请选中对应的图片进行标引操作!");
|
|
|
return
|
|
|
@@ -918,7 +917,7 @@ export class CanvasPhotoEditor {
|
|
|
}
|
|
|
ctx.fillStyle = photoId?'#fff':'#D9D9D9'; // 黄色
|
|
|
// 绘制填充矩形
|
|
|
- ctx.fillRect(pageX + layout.x, itemY, this.rqWidth, layout.height);
|
|
|
+ ctx.fillRect(pageX + layout.x, itemY, layout.width, layout.height);
|
|
|
// 说明文字占位框
|
|
|
if (this._selectedPageItem && this._selectedPageItem.pageIndex === pageIndex && this._selectedPageItem.index === itemIndex) {
|
|
|
ctx.strokeStyle = this.selectedPageColor
|