js
export enum LanguageType {
zh = 'zh',
en = 'en',
}
export class LearningMarkers {
type = {
origin: LanguageType.en,
target: LanguageType.zh,
} // 表明此次翻译的类型是 en-> zh
originalText = ''
myTranslation = ''
correctTranslation = ''
mark: {
start: {
filed: 'originalText' | 'myTranslation' | 'correctTranslation'
position: [number, number]
}
end: {
filed: 'originalText' | 'myTranslation' | 'correctTranslation'
position: [number, number]
}
}[] = []
markUnit: string[] = []
}