@searpent/react-image-annotate 2.0.76 → 2.0.77

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@searpent/react-image-annotate",
3
- "version": "2.0.76",
3
+ "version": "2.0.77",
4
4
  "dependencies": {
5
5
  "@editorjs/editorjs": "^2.25.0",
6
6
  "@editorjs/paragraph": "^2.8.0",
@@ -77,6 +77,17 @@ storiesOf("Annotator", module)
77
77
  "interview",
78
78
  "table",
79
79
  "text",
80
+ "continuation_ref",
81
+ "cover_clip",
82
+ "page_id",
83
+ "continuation_mark",
84
+ "follow_up_mark",
85
+ "article_termination_mark",
86
+ "page_splitting_stripe",
87
+ "column_id_stripe",
88
+ "prev_page_reference",
89
+ "section_subcategory"
90
+
80
91
  ]}
81
92
  help={`# Tools\n\n**E** - select tool\n\n**D** - frame tool\n\n**Ctrl** + **click frame** - edit frame\n\n**1**- **9** - change class`}
82
93
  onImagesChange={(images) => console.log("[images changed to]:", images)}
@@ -96,6 +107,17 @@ storiesOf("Annotator", module)
96
107
  image: "#14deef",
97
108
  interview: "#23b20f",
98
109
  table: "#02b4ba",
110
+ continuation_ref: '#FF33CC',
111
+ cover_clip: '#669966',
112
+ page_id: '#4433AA',
113
+ continuation_mark: '#660066',
114
+ follow_up_mark: '#873e23',
115
+ article_termination_mark: '#873e23',
116
+ page_splitting_stripe: '#873e23',
117
+ column_id_stripe: '#873e23',
118
+ prev_page_reference: '#f3a864',
119
+ section_subcategory: '#442c55',
120
+
99
121
  }}
100
122
  // groupColors={[
101
123
  // "#3853F1",
@@ -83,6 +83,26 @@ button.MuiButtonBase-root.expanded {
83
83
 
84
84
  .ro-table {}
85
85
 
86
+ .ro-continuation_ref {}
87
+
88
+ .ro-cover_clip {}
89
+
90
+ .ro-page_id {}
91
+
92
+ .ro-continuation_mark {}
93
+
94
+ .ro-follow_up_mark {}
95
+
96
+ .ro-article_termination_mark {}
97
+
98
+ .ro-page_splitting_stripe {}
99
+
100
+ .ro-column_id_stripe {}
101
+
102
+ .ro-prev_page_reference {}
103
+
104
+ .ro-section_subcategory {}
105
+
86
106
  .instructions {
87
107
  height: 100%;
88
108
  display: flex;
@@ -446,7 +446,17 @@ class Annotation {
446
446
  { labelName: 'image', tag: 'p', name: 'image', backgroundColor: '#ffffcc' },
447
447
  { labelName: 'interview', tag: 'p', name: 'interview', backgroundColor: '#23b20f' },
448
448
  { labelName: 'table', tag: 'p', name: 'table', backgroundColor: '#0000bb' },
449
- { labelName: 'section', tag: 'p', name: 'section', backgroundColor: '#ffcccc' }
449
+ { labelName: 'section', tag: 'p', name: 'section', backgroundColor: '#ffcccc' },
450
+ { labelName: 'continuation_ref', backgroundColor: '#FF33CC', name: 'continuation_ref', tag: 'p' },
451
+ { labelName: 'cover_clip', backgroundColor: '#669966', name: 'cover_clip', tag: 'p' },
452
+ { labelName: 'page_id', backgroundColor: '#4433AA', name: 'page_id', tag: 'p' },
453
+ { labelName: 'continuation_mark', backgroundColor: '#660066', name: 'continuation_mark', tag: 'p' },
454
+ { labelName: 'follow_up_mark', backgroundColor: '#873e23', name: 'follow_up_mark', tag: 'p' },
455
+ { labelName: 'article_termination_mark', backgroundColor: '#873e23', name: 'article_termination_mark', tag: 'p' },
456
+ { labelName: 'page_splitting_stripe', backgroundColor: '#873e23', name: 'page_splitting_stripe', tag: 'p' },
457
+ { labelName: 'column_id_stripe', backgroundColor: '#873e23', name: 'column_id_stripe', tag: 'p' },
458
+ { labelName: 'prev_page_reference', backgroundColor: '#f3a864', name: 'prev_page_reference', tag: 'p' },
459
+ { labelName: 'section_subcategory', backgroundColor: '#442c55', name: 'section_subcategory', tag: 'p' },
450
460
  ];
451
461
 
452
462
  return this._settings.labels
@@ -15,6 +15,16 @@ function ReadOnly({ article }) {
15
15
  <p className='ro-unknown' dangerouslySetInnerHTML={{ __html: article.unknown }}></p>
16
16
  <p className='ro-table' dangerouslySetInnerHTML={{ __html: article.table }}></p>
17
17
  <p className='ro-section' dangerouslySetInnerHTML={{ __html: article.section }}></p>
18
+ <p className='ro-continuation_ref' dangerouslySetInnerHTML={{ __html: article.continuation_ref }}></p>
19
+ <p className='ro-cover_clip' dangerouslySetInnerHTML={{ __html: article.cover_clip }}></p>
20
+ <p className='ro-page_id' dangerouslySetInnerHTML={{ __html: article.page_id }}></p>
21
+ <p className='ro-continuation_mark' dangerouslySetInnerHTML={{ __html: article.continuation_mark }}></p>
22
+ <p className='ro-follow_up_mark' dangerouslySetInnerHTML={{ __html: article.follow_up_mark }}></p>
23
+ <p className='ro-article_termination_mark' dangerouslySetInnerHTML={{ __html: article.article_termination_mark }}></p>
24
+ <p className='ro-page_splitting_stripe' dangerouslySetInnerHTML={{ __html: article.page_splitting_stripe }}></p>
25
+ <p className='ro-column_id_stripe' dangerouslySetInnerHTML={{ __html: article.column_id_stripe }}></p>
26
+ <p className='ro-prev_page_reference' dangerouslySetInnerHTML={{ __html: article.prev_page_reference }}></p>
27
+ <p className='ro-section_subcategory' dangerouslySetInnerHTML={{ __html: article.section_subcategory }}></p>
18
28
  </div>)
19
29
  }
20
30
 
@@ -34,6 +34,26 @@ function defaultClsColor(cls) {
34
34
  return "#02b4ba"
35
35
  case 'section':
36
36
  return "#ffcccc"
37
+ case 'continuation_ref':
38
+ return '#FF33CC'
39
+ case 'cover_clip':
40
+ return '#669966'
41
+ case 'page_id':
42
+ return '#4433AA'
43
+ case 'continuation_mark':
44
+ return '#660066'
45
+ case 'follow_up_mark':
46
+ return '#873e23'
47
+ case 'article_termination_mark':
48
+ return '#873e23'
49
+ case 'page_splitting_stripe':
50
+ return '#873e23'
51
+ case 'column_id_stripe':
52
+ return '#873e23'
53
+ case 'prev_page_reference':
54
+ return '#f3a864'
55
+ case 'section_subcategory':
56
+ return '#442c55'
37
57
  default:
38
58
  return "#02b4ba"
39
59
  }