Chore: refactor zoom and editor mode to use enums

This commit is contained in:
shamoon
2026-01-28 08:20:14 -08:00
parent 6859e7e3c2
commit dc9061eb97
7 changed files with 27 additions and 29 deletions

View File

@@ -12,6 +12,7 @@ import { SETTINGS_KEYS } from 'src/app/data/ui-settings'
import { DocumentService } from 'src/app/services/rest/document.service'
import { SettingsService } from 'src/app/services/settings.service'
import { ConfirmDialogComponent } from '../confirm-dialog/confirm-dialog.component'
import { PdfEditorEditMode } from './pdf-editor-edit-mode'
interface PageOperation {
page: number
@@ -21,11 +22,6 @@ interface PageOperation {
loaded?: boolean
}
export enum PdfEditorEditMode {
Update = 'update',
Create = 'create',
}
@Component({
selector: 'pngx-pdf-editor',
templateUrl: './pdf-editor.component.html',