Ignore:
Timestamp:
2021-11-24T10:57:13+13:00 (2 years ago)
Author:
cstephen
Message:

Rework for single image content.
Implement rotation and inversion editing.

Location:
main/trunk/model-interfaces-dev/atea/ocr
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/model-interfaces-dev/atea/ocr

    • Property svn:ignore
      •  

        old new  
        11dist
         2node_modules
  • main/trunk/model-interfaces-dev/atea/ocr/src/main.js

    r35734 r35743  
    11import { createApp } from "vue";
    22import { createStore } from "vuex"
    3 import Util from "./js/Util"
    43import App from "./App.vue";
    54import ToggleButton from "./components/ToggleButton.vue"
     
    98        return {
    109            /** @type {Map<String, String>} */
    11             translations: new Map(),
    12             macronisedFileInfos: [],
    13             directInput: null,
    14             directOutput: []
     10            translations: new Map()
    1511        }
    1612    },
     
    1814        setTranslations(state, translations) {
    1915            state.translations = translations;
    20         },
    21         pushFileInfo(state, fileInfo) {
    22             state.macronisedFileInfos.push({
    23                 id: Util.generateUuid(),
    24                 ...fileInfo
    25             });
    26         },
    27         setDirectInput(state, input) {
    28             state.directInput = input;
    29         },
    30         setDirectOutput(state, output) {
    31             state.directOutput = output;
    3216        }
    3317    }
     
    4832/* eslint-disable no-undef */
    4933if (typeof gs !== "undefined" && gs.text && gs.text.atea && gs.text.atea.ocr) {
    50     for (const key in gs.text.atea) {
    51         translations.set(key, gs.text.atea[key]);
     34    for (const key in gs.text.atea.ocr) {
     35        translations.set(key, gs.text.atea.ocr[key]);
    5236    }
    5337
Note: See TracChangeset for help on using the changeset viewer.