|
|
@@ -429,8 +429,9 @@ export class CanvasPhotoEditor {
|
|
|
x: this.indexingStartX,
|
|
|
y: this.indexingStartY,
|
|
|
}, endIindexing1]
|
|
|
- if(Math.abs(this.indexingStartY - endIindexing1.y)>this.rqHeight){//需要折现换行
|
|
|
- let newX = PhotoIndex.pageIndex*(this.pageWidth + this.pageMargin)
|
|
|
+ if(PhotoIndex.pageIndex != oldPhotoIndex.pageIndex && Math.abs(this.indexingStartY - endIindexing1.y)>this.rqHeight){//需要折现换行
|
|
|
+ let addPage = PhotoIndex.pageIndex>oldPhotoIndex.pageIndex?PhotoIndex.pageIndex:oldPhotoIndex.pageIndex
|
|
|
+ let newX = addPage*(this.pageWidth + this.pageMargin)
|
|
|
points.splice(1, 0, { x: newX, y: this.indexingStartY }, { x: newX, y: endIindexing1.y })
|
|
|
}
|
|
|
this.tempArrow.start = null
|