|
@@ -4186,9 +4186,6 @@ class ComPDFKitViewer {
|
|
const canRedo = await this.messageHandler.sendWithPromise('CanRedo', lastUndo.editPagePtr)
|
|
const canRedo = await this.messageHandler.sendWithPromise('CanRedo', lastUndo.editPagePtr)
|
|
canRedo && this.redoList.push(lastUndo)
|
|
canRedo && this.redoList.push(lastUndo)
|
|
|
|
|
|
- // const editor = this.pdfViewer._pages[lastUndo.pageIndex].contentContainer.frameEditorList.find(item => item.editAreaPtr === lastUndo.editAreaPtr)
|
|
|
|
- // editor.updateCanvasAfterUndoRedo(false, true)
|
|
|
|
- // editor.updateCursorLine(res.editCharPlace)
|
|
|
|
this.pdfViewer._pages[lastUndo.pageIndex].contentContainer.updateFrameEditor(res)
|
|
this.pdfViewer._pages[lastUndo.pageIndex].contentContainer.updateFrameEditor(res)
|
|
|
|
|
|
} else if (op === 'redo') {
|
|
} else if (op === 'redo') {
|
|
@@ -4196,14 +4193,11 @@ class ComPDFKitViewer {
|
|
const res = await this.messageHandler.sendWithPromise('Redo', lastRedo.editPagePtr)
|
|
const res = await this.messageHandler.sendWithPromise('Redo', lastRedo.editPagePtr)
|
|
this.undoList.push(lastRedo)
|
|
this.undoList.push(lastRedo)
|
|
|
|
|
|
- // const editor = this.pdfViewer._pages[lastRedo.pageIndex].contentContainer.frameEditorList.find(item => item.editAreaPtr === lastRedo.editAreaPtr)
|
|
|
|
- // editor.updateCanvasAfterUndoRedo(false, true)
|
|
|
|
- // editor.updateCursorLine(res.editCharPlace)
|
|
|
|
this.pdfViewer._pages[lastRedo.pageIndex].contentContainer.updateFrameEditor(res)
|
|
this.pdfViewer._pages[lastRedo.pageIndex].contentContainer.updateFrameEditor(res)
|
|
}
|
|
}
|
|
|
|
|
|
- console.log('undoList: ', this.undoList)
|
|
|
|
- console.log('redoList: ', this.redoList)
|
|
|
|
|
|
+ // console.log('undoList: ', this.undoList)
|
|
|
|
+ // console.log('redoList: ', this.redoList)
|
|
this.eventBus.dispatch('changeOperateList', {
|
|
this.eventBus.dispatch('changeOperateList', {
|
|
undoListLength: this.undoList.length,
|
|
undoListLength: this.undoList.length,
|
|
redoListLength: this.redoList.length
|
|
redoListLength: this.redoList.length
|