mirror of
https://github.com/jzillmann/pdf-to-markdown.git
synced 2025-02-13 00:09:44 +01:00
34 lines
679 B
JavaScript
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'
|
|
}); |