pdf-to-markdown/oldSrc/javascript/models/Annotation.jsx
2024-03-26 10:52:54 -06:00

34 lines
679 B
JavaScript

// Annotation for a text item
export default class Annotation {
constructor(options) {
this.category = options.category;
this.color = options.color;
}
}
export const ADDED_ANNOTATION = new Annotation({
category: 'Added',
color: 'green'
});
export const REMOVED_ANNOTATION = new Annotation({
category: 'Removed',
color: 'red'
});
export const UNCHANGED_ANNOTATION = new Annotation({
category: 'Unchanged',
color: 'brown'
})
export const DETECTED_ANNOTATION = new Annotation({
category: 'Detected',
color: 'green'
});
export const MODIFIED_ANNOTATION = new Annotation({
category: 'Modified',
color: 'green'
});