|
@@ -2907,7 +2907,6 @@ extension KMMainViewController {
|
|
|
|
|
|
func showOCREditAlert() {
|
|
|
DispatchQueue.main.asyncAfter(deadline: DispatchTime.now() + 0.3) { [unowned self] in
|
|
|
- alertTipViewController.isShowOCRAlert = true
|
|
|
alertTipViewController.showInView(listView)
|
|
|
alertTipViewController.reloadOCRAlertUI()
|
|
|
alertTipViewController.reloadAlertUIFrame()
|
|
@@ -2919,9 +2918,9 @@ extension KMMainViewController {
|
|
|
}
|
|
|
|
|
|
func closeOCREditAlert() {
|
|
|
- alertTipViewController.isShowOCRAlert = false
|
|
|
+ guard let view = alertTipViewController.OCRComponentAlert else { return }
|
|
|
alertTipViewController.reloadOCRAlertUI()
|
|
|
- // alertTipViewController.reloadAlertUIFrame()
|
|
|
+ alertTipViewController.reloadAlertUIFrame()
|
|
|
}
|
|
|
|
|
|
func showOCRToolAlert(_ string: String) {
|
|
@@ -3569,6 +3568,16 @@ extension KMMainViewController: KMPDFToolbarControllerDelegate {
|
|
|
|
|
|
//MARK: - KMRightSideControllerDelegate右边属性栏代理
|
|
|
extension KMMainViewController: KMRightSideControllerDelegate {
|
|
|
+ func kmRightSideControllerRotateLeft(_ annotations: [CPDFStampAnnotation], withPDFView pdfView: CPDFListView?) {
|
|
|
+ CPDFStampAnnotation.rotateLeft(annotations, withPDFView: pdfView)
|
|
|
+ (undoManager?.prepare(withInvocationTarget: self) as AnyObject).kmRightSideControllerRotateRight(annotations, withPDFView: pdfView)
|
|
|
+ }
|
|
|
+
|
|
|
+ func kmRightSideControllerRotateRight(_ annotations: [CPDFStampAnnotation], withPDFView pdfView: CPDFListView?) {
|
|
|
+ CPDFStampAnnotation.rotateRight(annotations, withPDFView: pdfView)
|
|
|
+ (undoManager?.prepare(withInvocationTarget: self) as AnyObject).kmRightSideControllerRotateLeft(annotations, withPDFView: pdfView)
|
|
|
+ }
|
|
|
+
|
|
|
func kmRightSideControllerDidContendVCUpdated(_ controller: KMRightSideController) {
|
|
|
//MARK: -Crop
|
|
|
if (controller.contentViewController is KMCropPropertyController) {
|