@searpent/react-image-annotate 2.3.4 → 2.3.5
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/Annotator/examplePhotos.js +28 -28
- package/Annotator/examplePhotos_repr.js +28 -28
- package/Annotator/index.js +38 -31
- package/Annotator/index.story_bugdemo_15_1.js +895 -773
- package/Annotator/index.story_repr.js +1048 -933
- package/Annotator/reducers/convert-expanding-line-to-polygon.js +15 -16
- package/ClassSelectionMenu/index.js +55 -35
- package/Crosshairs/index.js +30 -23
- package/DebugSidebarBox/index.js +40 -9
- package/DemoSite/Editor.js +124 -79
- package/DemoSite/ErrorBoundaryDialog.js +19 -6
- package/DemoSite/index.js +26 -17
- package/Editor/index.js +70 -36
- package/Editor/index_bugdemo_15_1.js +68 -35
- package/Editor/readOnly.js +178 -127
- package/Errorer/index.js +8 -3
- package/FullImageSegmentationAnnotator/index.js +6 -3
- package/GroupSelectorSidebarBox/index.js +48 -32
- package/GroupsEditorSidebarBox/index.js +75 -40
- package/HelpSidebarBox/index.js +24 -13
- package/HighlightBox/index.js +37 -30
- package/HistorySidebarBox/index.js +51 -29
- package/ImageCanvas/index.js +165 -130
- package/ImageMask/index.js +9 -6
- package/ImageSelectorSidebarBox/index.js +44 -26
- package/KeyframeTimeline/index.js +65 -45
- package/KeyframesSelectorSidebarBox/index.js +76 -54
- package/LandingPage/index.js +76 -38
- package/Locker/index.js +8 -3
- package/MainLayout/RightSidebarItemsWrapper.js +7 -4
- package/MainLayout/icon-dictionary.js +99 -66
- package/MainLayout/index.js +256 -196
- package/MainLayout/index_bugdemo_15_1.js +253 -195
- package/MetadataEditorSidebarBox/index.js +152 -102
- package/MetadataEditorSidebarBox/index_14_01_25.js +152 -102
- package/MetadataEditorSidebarBox/index_repr.js +183 -128
- package/PageSelector/UpdatedBySemaphore.js +54 -0
- package/PageSelector/index.js +172 -96
- package/PageSelector/page-selector.css +126 -2
- package/PointDistances/index.js +45 -33
- package/PreventScrollToParents/index.js +16 -9
- package/RegionLabel/index.js +217 -165
- package/RegionSelectAndTransformBoxes/index.js +131 -105
- package/RegionSelectorSidebarBox/index.js +243 -165
- package/RegionShapes/index.js +213 -153
- package/RegionTags/index.js +83 -69
- package/SettingsDialog/index.js +50 -37
- package/SettingsProvider/index.js +8 -5
- package/Shortcuts/ShortcutField.js +21 -14
- package/Shortcuts/index.js +18 -12
- package/ShortcutsManager/index.js +7 -4
- package/Sidebar/index.js +46 -29
- package/SidebarBoxContainer/index.js +14 -7
- package/SmallToolButton/index.js +23 -16
- package/TagsSidebarBox/index.js +41 -28
- package/TaskDescriptionSidebarBox/index.js +24 -13
- package/Theme/index.js +8 -3
- package/VideoOrImageCanvasBackground/index.js +30 -17
- package/package.json +1 -1
- package/utils/spellcheck-nspell.js +2 -2
package/Editor/index.js
CHANGED
|
@@ -77,45 +77,79 @@ function Editor(_ref) {
|
|
|
77
77
|
};
|
|
78
78
|
|
|
79
79
|
if (blocks.length < 1) {
|
|
80
|
-
return
|
|
81
|
-
|
|
82
|
-
|
|
80
|
+
return (
|
|
81
|
+
/*#__PURE__*/
|
|
82
|
+
React.createElement("div", {
|
|
83
|
+
className: "instructions"
|
|
84
|
+
},
|
|
85
|
+
/*#__PURE__*/
|
|
86
|
+
React.createElement("h1", null, "Click article to display text."))
|
|
87
|
+
);
|
|
83
88
|
}
|
|
84
89
|
|
|
85
|
-
return
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
90
|
+
return (
|
|
91
|
+
/*#__PURE__*/
|
|
92
|
+
React.createElement("div", null,
|
|
93
|
+
/*#__PURE__*/
|
|
94
|
+
React.createElement("div", {
|
|
95
|
+
className: "show-metadata-wrapper editor-toggle-wrapper"
|
|
96
|
+
},
|
|
97
|
+
/*#__PURE__*/
|
|
98
|
+
React.createElement("div", null,
|
|
99
|
+
/*#__PURE__*/
|
|
100
|
+
React.createElement("label", {
|
|
101
|
+
className: "switch mr-2 editor-switch"
|
|
102
|
+
},
|
|
103
|
+
/*#__PURE__*/
|
|
104
|
+
React.createElement("input", {
|
|
105
|
+
id: "automatic-spellcheck",
|
|
106
|
+
type: "checkbox",
|
|
107
|
+
checked: autoSpellcheck,
|
|
108
|
+
onChange: toggleAutoSpellcheck
|
|
109
|
+
}),
|
|
110
|
+
/*#__PURE__*/
|
|
111
|
+
React.createElement("span", {
|
|
112
|
+
className: "slider round"
|
|
113
|
+
})),
|
|
114
|
+
/*#__PURE__*/
|
|
115
|
+
React.createElement("label", {
|
|
116
|
+
className: "mr-4"
|
|
117
|
+
}, "Spellcheck")),
|
|
118
|
+
/*#__PURE__*/
|
|
119
|
+
React.createElement("div", null,
|
|
120
|
+
/*#__PURE__*/
|
|
121
|
+
React.createElement("label", {
|
|
122
|
+
className: "switch mr-2 editor-switch"
|
|
112
123
|
},
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
124
|
+
/*#__PURE__*/
|
|
125
|
+
React.createElement("input", {
|
|
126
|
+
id: "show-metadata",
|
|
127
|
+
type: "checkbox",
|
|
128
|
+
checked: editMode,
|
|
129
|
+
onChange: toggleEditMode
|
|
130
|
+
}),
|
|
131
|
+
/*#__PURE__*/
|
|
132
|
+
React.createElement("span", {
|
|
133
|
+
className: "slider round"
|
|
134
|
+
})),
|
|
135
|
+
/*#__PURE__*/
|
|
136
|
+
React.createElement("label", null, "Edit mode"))), !editMode ?
|
|
137
|
+
/*#__PURE__*/
|
|
138
|
+
React.createElement(ReadOnly, {
|
|
139
|
+
article: blocksToArticle(blocks)
|
|
140
|
+
}) :
|
|
141
|
+
/*#__PURE__*/
|
|
142
|
+
React.createElement(ReactEditorJS, {
|
|
143
|
+
defaultValue: {
|
|
144
|
+
blocks: blocks
|
|
145
|
+
},
|
|
146
|
+
tools: EDITOR_JS_TOOLS,
|
|
147
|
+
onChange: handleChange,
|
|
148
|
+
onInitialize: function onInitialize() {},
|
|
149
|
+
enableReInitialize: true,
|
|
150
|
+
key: selectedFrame
|
|
151
|
+
}))
|
|
152
|
+
);
|
|
119
153
|
}
|
|
120
154
|
|
|
121
155
|
export default Editor;
|
|
@@ -110,42 +110,75 @@ function Editor(_ref) {
|
|
|
110
110
|
return (i === null || i === void 0 ? void 0 : (_i$data3 = i.data) === null || _i$data3 === void 0 ? void 0 : _i$data3.groupId) === groupIdForEdit;
|
|
111
111
|
}); // Normal: filter by selected article
|
|
112
112
|
|
|
113
|
-
return
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
className: "mr-4"
|
|
126
|
-
}, "Spellcheck")), React.createElement("div", null, React.createElement("label", {
|
|
127
|
-
className: "switch mr-2 editor-switch"
|
|
128
|
-
}, React.createElement("input", {
|
|
129
|
-
id: "show-metadata",
|
|
130
|
-
type: "checkbox",
|
|
131
|
-
checked: editMode,
|
|
132
|
-
onChange: toggleEditMode
|
|
133
|
-
}), React.createElement("span", {
|
|
134
|
-
className: "slider round"
|
|
135
|
-
})), React.createElement("label", null, "Edit mode"))), blocksForReadOnly.length < 1 ? React.createElement("div", {
|
|
136
|
-
className: "instructions"
|
|
137
|
-
}, React.createElement("h1", null, "Click article to display text.")) : !editMode ? React.createElement(ReadOnly, {
|
|
138
|
-
article: blocksToArticle(blocksForReadOnly)
|
|
139
|
-
}) : React.createElement(ReactEditorJS, {
|
|
140
|
-
defaultValue: {
|
|
141
|
-
blocks: blocksForEdit
|
|
113
|
+
return (
|
|
114
|
+
/*#__PURE__*/
|
|
115
|
+
React.createElement("div", null,
|
|
116
|
+
/*#__PURE__*/
|
|
117
|
+
React.createElement("div", {
|
|
118
|
+
className: "show-metadata-wrapper editor-toggle-wrapper"
|
|
119
|
+
},
|
|
120
|
+
/*#__PURE__*/
|
|
121
|
+
React.createElement("div", null,
|
|
122
|
+
/*#__PURE__*/
|
|
123
|
+
React.createElement("label", {
|
|
124
|
+
className: "switch mr-2 editor-switch"
|
|
142
125
|
},
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
126
|
+
/*#__PURE__*/
|
|
127
|
+
React.createElement("input", {
|
|
128
|
+
id: "automatic-spellcheck",
|
|
129
|
+
type: "checkbox",
|
|
130
|
+
checked: autoSpellcheck,
|
|
131
|
+
onChange: toggleAutoSpellcheck
|
|
132
|
+
}),
|
|
133
|
+
/*#__PURE__*/
|
|
134
|
+
React.createElement("span", {
|
|
135
|
+
className: "slider round"
|
|
136
|
+
})),
|
|
137
|
+
/*#__PURE__*/
|
|
138
|
+
React.createElement("label", {
|
|
139
|
+
className: "mr-4"
|
|
140
|
+
}, "Spellcheck")),
|
|
141
|
+
/*#__PURE__*/
|
|
142
|
+
React.createElement("div", null,
|
|
143
|
+
/*#__PURE__*/
|
|
144
|
+
React.createElement("label", {
|
|
145
|
+
className: "switch mr-2 editor-switch"
|
|
146
|
+
},
|
|
147
|
+
/*#__PURE__*/
|
|
148
|
+
React.createElement("input", {
|
|
149
|
+
id: "show-metadata",
|
|
150
|
+
type: "checkbox",
|
|
151
|
+
checked: editMode,
|
|
152
|
+
onChange: toggleEditMode
|
|
153
|
+
}),
|
|
154
|
+
/*#__PURE__*/
|
|
155
|
+
React.createElement("span", {
|
|
156
|
+
className: "slider round"
|
|
157
|
+
})),
|
|
158
|
+
/*#__PURE__*/
|
|
159
|
+
React.createElement("label", null, "Edit mode"))), blocksForReadOnly.length < 1 ?
|
|
160
|
+
/*#__PURE__*/
|
|
161
|
+
React.createElement("div", {
|
|
162
|
+
className: "instructions"
|
|
163
|
+
},
|
|
164
|
+
/*#__PURE__*/
|
|
165
|
+
React.createElement("h1", null, "Click article to display text.")) : !editMode ?
|
|
166
|
+
/*#__PURE__*/
|
|
167
|
+
React.createElement(ReadOnly, {
|
|
168
|
+
article: blocksToArticle(blocksForReadOnly)
|
|
169
|
+
}) :
|
|
170
|
+
/*#__PURE__*/
|
|
171
|
+
React.createElement(ReactEditorJS, {
|
|
172
|
+
defaultValue: {
|
|
173
|
+
blocks: blocksForEdit
|
|
174
|
+
},
|
|
175
|
+
tools: EDITOR_JS_TOOLS,
|
|
176
|
+
onChange: handleChange,
|
|
177
|
+
onInitialize: function onInitialize() {},
|
|
178
|
+
enableReInitialize: true,
|
|
179
|
+
key: selectedFrame
|
|
180
|
+
}))
|
|
181
|
+
);
|
|
149
182
|
}
|
|
150
183
|
|
|
151
184
|
export default Editor;
|
package/Editor/readOnly.js
CHANGED
|
@@ -347,133 +347,184 @@ function ReadOnly(_ref) {
|
|
|
347
347
|
cancelled = true;
|
|
348
348
|
};
|
|
349
349
|
}, [article]);
|
|
350
|
-
return
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
}
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
}
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
}
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
}
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
350
|
+
return (
|
|
351
|
+
/*#__PURE__*/
|
|
352
|
+
React.createElement("div", {
|
|
353
|
+
ref: containerRef,
|
|
354
|
+
contentEditable: false,
|
|
355
|
+
suppressContentEditableWarning: true,
|
|
356
|
+
spellCheck: false,
|
|
357
|
+
lang: "en-US",
|
|
358
|
+
style: {
|
|
359
|
+
outline: 'none',
|
|
360
|
+
userSelect: 'text',
|
|
361
|
+
minHeight: '100px'
|
|
362
|
+
}
|
|
363
|
+
},
|
|
364
|
+
/*#__PURE__*/
|
|
365
|
+
React.createElement("style", null, ".spell-error { text-decoration: wavy underline red; text-decoration-skip-ink: auto; }"),
|
|
366
|
+
/*#__PURE__*/
|
|
367
|
+
React.createElement("h1", {
|
|
368
|
+
className: "ro-title",
|
|
369
|
+
dangerouslySetInnerHTML: {
|
|
370
|
+
__html: titleHTML
|
|
371
|
+
}
|
|
372
|
+
}),
|
|
373
|
+
/*#__PURE__*/
|
|
374
|
+
React.createElement("h2", {
|
|
375
|
+
className: "ro-subtitle",
|
|
376
|
+
dangerouslySetInnerHTML: {
|
|
377
|
+
__html: subtitleHTML
|
|
378
|
+
}
|
|
379
|
+
}),
|
|
380
|
+
/*#__PURE__*/
|
|
381
|
+
React.createElement("p", {
|
|
382
|
+
className: "ro-text",
|
|
383
|
+
dangerouslySetInnerHTML: {
|
|
384
|
+
__html: textHTML
|
|
385
|
+
}
|
|
386
|
+
}),
|
|
387
|
+
/*#__PURE__*/
|
|
388
|
+
React.createElement("p", {
|
|
389
|
+
className: "ro-author",
|
|
390
|
+
dangerouslySetInnerHTML: {
|
|
391
|
+
__html: authorHTML
|
|
392
|
+
}
|
|
393
|
+
}),
|
|
394
|
+
/*#__PURE__*/
|
|
395
|
+
React.createElement("p", {
|
|
396
|
+
className: "ro-about-author",
|
|
397
|
+
dangerouslySetInnerHTML: {
|
|
398
|
+
__html: aboutHTML
|
|
399
|
+
}
|
|
400
|
+
}),
|
|
401
|
+
/*#__PURE__*/
|
|
402
|
+
React.createElement("p", {
|
|
403
|
+
className: "ro-appendix",
|
|
404
|
+
dangerouslySetInnerHTML: {
|
|
405
|
+
__html: appendixHTML
|
|
406
|
+
}
|
|
407
|
+
}),
|
|
408
|
+
/*#__PURE__*/
|
|
409
|
+
React.createElement("p", {
|
|
410
|
+
className: "ro-photo-author",
|
|
411
|
+
dangerouslySetInnerHTML: {
|
|
412
|
+
__html: photoAuthorHTML
|
|
413
|
+
}
|
|
414
|
+
}),
|
|
415
|
+
/*#__PURE__*/
|
|
416
|
+
React.createElement("p", {
|
|
417
|
+
className: "ro-photo-caption",
|
|
418
|
+
dangerouslySetInnerHTML: {
|
|
419
|
+
__html: photoCaptionHTML
|
|
420
|
+
}
|
|
421
|
+
}),
|
|
422
|
+
/*#__PURE__*/
|
|
423
|
+
React.createElement("p", {
|
|
424
|
+
className: "ro-advertisment",
|
|
425
|
+
dangerouslySetInnerHTML: {
|
|
426
|
+
__html: adHTML
|
|
427
|
+
}
|
|
428
|
+
}),
|
|
429
|
+
/*#__PURE__*/
|
|
430
|
+
React.createElement("p", {
|
|
431
|
+
className: "ro-other-graphics",
|
|
432
|
+
dangerouslySetInnerHTML: {
|
|
433
|
+
__html: otherGraphicsHTML
|
|
434
|
+
}
|
|
435
|
+
}),
|
|
436
|
+
/*#__PURE__*/
|
|
437
|
+
React.createElement("p", {
|
|
438
|
+
className: "ro-unknown",
|
|
439
|
+
dangerouslySetInnerHTML: {
|
|
440
|
+
__html: unknownHTML
|
|
441
|
+
}
|
|
442
|
+
}),
|
|
443
|
+
/*#__PURE__*/
|
|
444
|
+
React.createElement("p", {
|
|
445
|
+
className: "ro-table",
|
|
446
|
+
dangerouslySetInnerHTML: {
|
|
447
|
+
__html: tableHTML
|
|
448
|
+
}
|
|
449
|
+
}),
|
|
450
|
+
/*#__PURE__*/
|
|
451
|
+
React.createElement("p", {
|
|
452
|
+
className: "ro-section",
|
|
453
|
+
dangerouslySetInnerHTML: {
|
|
454
|
+
__html: sectionHTML
|
|
455
|
+
}
|
|
456
|
+
}),
|
|
457
|
+
/*#__PURE__*/
|
|
458
|
+
React.createElement("p", {
|
|
459
|
+
className: "ro-continuation_ref",
|
|
460
|
+
dangerouslySetInnerHTML: {
|
|
461
|
+
__html: continuationRefHTML
|
|
462
|
+
}
|
|
463
|
+
}),
|
|
464
|
+
/*#__PURE__*/
|
|
465
|
+
React.createElement("p", {
|
|
466
|
+
className: "ro-cover_clip",
|
|
467
|
+
dangerouslySetInnerHTML: {
|
|
468
|
+
__html: coverClipHTML
|
|
469
|
+
}
|
|
470
|
+
}),
|
|
471
|
+
/*#__PURE__*/
|
|
472
|
+
React.createElement("p", {
|
|
473
|
+
className: "ro-page_id",
|
|
474
|
+
dangerouslySetInnerHTML: {
|
|
475
|
+
__html: pageIdHTML
|
|
476
|
+
}
|
|
477
|
+
}),
|
|
478
|
+
/*#__PURE__*/
|
|
479
|
+
React.createElement("p", {
|
|
480
|
+
className: "ro-continuation_mark",
|
|
481
|
+
dangerouslySetInnerHTML: {
|
|
482
|
+
__html: continuationMarkHTML
|
|
483
|
+
}
|
|
484
|
+
}),
|
|
485
|
+
/*#__PURE__*/
|
|
486
|
+
React.createElement("p", {
|
|
487
|
+
className: "ro-follow_up_mark",
|
|
488
|
+
dangerouslySetInnerHTML: {
|
|
489
|
+
__html: followUpMarkHTML
|
|
490
|
+
}
|
|
491
|
+
}),
|
|
492
|
+
/*#__PURE__*/
|
|
493
|
+
React.createElement("p", {
|
|
494
|
+
className: "ro-article_termination_mark",
|
|
495
|
+
dangerouslySetInnerHTML: {
|
|
496
|
+
__html: articleTerminationMarkHTML
|
|
497
|
+
}
|
|
498
|
+
}),
|
|
499
|
+
/*#__PURE__*/
|
|
500
|
+
React.createElement("p", {
|
|
501
|
+
className: "ro-page_splitting_stripe",
|
|
502
|
+
dangerouslySetInnerHTML: {
|
|
503
|
+
__html: pageSplittingStripeHTML
|
|
504
|
+
}
|
|
505
|
+
}),
|
|
506
|
+
/*#__PURE__*/
|
|
507
|
+
React.createElement("p", {
|
|
508
|
+
className: "ro-column_id_stripe",
|
|
509
|
+
dangerouslySetInnerHTML: {
|
|
510
|
+
__html: columnIdStripeHTML
|
|
511
|
+
}
|
|
512
|
+
}),
|
|
513
|
+
/*#__PURE__*/
|
|
514
|
+
React.createElement("p", {
|
|
515
|
+
className: "ro-prev_page_reference",
|
|
516
|
+
dangerouslySetInnerHTML: {
|
|
517
|
+
__html: prevPageReferenceHTML
|
|
518
|
+
}
|
|
519
|
+
}),
|
|
520
|
+
/*#__PURE__*/
|
|
521
|
+
React.createElement("p", {
|
|
522
|
+
className: "ro-section_subcategory",
|
|
523
|
+
dangerouslySetInnerHTML: {
|
|
524
|
+
__html: sectionSubcategoryHTML
|
|
525
|
+
}
|
|
526
|
+
}))
|
|
527
|
+
);
|
|
477
528
|
}
|
|
478
529
|
|
|
479
530
|
export default ReadOnly;
|
package/Errorer/index.js
CHANGED
|
@@ -3,9 +3,14 @@ import ErrorIcon from '@mui/icons-material/Error';
|
|
|
3
3
|
import './errorer.css';
|
|
4
4
|
|
|
5
5
|
function Errorer() {
|
|
6
|
-
return
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
return (
|
|
7
|
+
/*#__PURE__*/
|
|
8
|
+
React.createElement("div", {
|
|
9
|
+
className: "errorer"
|
|
10
|
+
},
|
|
11
|
+
/*#__PURE__*/
|
|
12
|
+
React.createElement(ErrorIcon, null))
|
|
13
|
+
);
|
|
9
14
|
}
|
|
10
15
|
|
|
11
16
|
export default Errorer;
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import Annotator from "../Annotator";
|
|
3
3
|
export default (function (props) {
|
|
4
|
-
return
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
return (
|
|
5
|
+
/*#__PURE__*/
|
|
6
|
+
React.createElement(Annotator, Object.assign({}, props, {
|
|
7
|
+
fullImageSegmentationMode: true
|
|
8
|
+
}))
|
|
9
|
+
);
|
|
7
10
|
});
|
|
@@ -25,39 +25,55 @@ export var GroupSelectorSidebarBox = function GroupSelectorSidebarBox(_ref) {
|
|
|
25
25
|
onSelect = _ref.onSelect,
|
|
26
26
|
selectedGroupId = _ref.selectedGroupId;
|
|
27
27
|
var classes = useStyles();
|
|
28
|
-
return
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
groupTitle = _ref2.title,
|
|
41
|
-
groupSubtitle = _ref2.subtitle,
|
|
42
|
-
color = _ref2.color;
|
|
43
|
-
return React.createElement(ListItem, {
|
|
44
|
-
button: true,
|
|
45
|
-
onClick: function onClick() {
|
|
46
|
-
return onSelect(id);
|
|
47
|
-
},
|
|
48
|
-
dense: true,
|
|
49
|
-
key: id,
|
|
50
|
-
style: {
|
|
51
|
-
backgroundColor: id === selectedGroupId ? '#bbdefb' : null
|
|
52
|
-
}
|
|
53
|
-
}, React.createElement(ListItemText, {
|
|
54
|
-
primary: React.createElement("strong", {
|
|
28
|
+
return (
|
|
29
|
+
/*#__PURE__*/
|
|
30
|
+
React.createElement(ThemeProvider, {
|
|
31
|
+
theme: theme
|
|
32
|
+
},
|
|
33
|
+
/*#__PURE__*/
|
|
34
|
+
React.createElement(SidebarBoxContainer, {
|
|
35
|
+
title: title || '',
|
|
36
|
+
subTitle: subtitle || '',
|
|
37
|
+
icon:
|
|
38
|
+
/*#__PURE__*/
|
|
39
|
+
React.createElement(CollectionsIcon, {
|
|
55
40
|
style: {
|
|
56
|
-
color:
|
|
41
|
+
color: grey[700]
|
|
57
42
|
}
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
43
|
+
})
|
|
44
|
+
},
|
|
45
|
+
/*#__PURE__*/
|
|
46
|
+
React.createElement(List, null, groups.map(function (_ref2, i) {
|
|
47
|
+
var id = _ref2.id,
|
|
48
|
+
groupTitle = _ref2.title,
|
|
49
|
+
groupSubtitle = _ref2.subtitle,
|
|
50
|
+
color = _ref2.color;
|
|
51
|
+
return (
|
|
52
|
+
/*#__PURE__*/
|
|
53
|
+
React.createElement(ListItem, {
|
|
54
|
+
button: true,
|
|
55
|
+
onClick: function onClick() {
|
|
56
|
+
return onSelect(id);
|
|
57
|
+
},
|
|
58
|
+
dense: true,
|
|
59
|
+
key: id,
|
|
60
|
+
style: {
|
|
61
|
+
backgroundColor: id === selectedGroupId ? '#bbdefb' : null
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
/*#__PURE__*/
|
|
65
|
+
React.createElement(ListItemText, {
|
|
66
|
+
primary:
|
|
67
|
+
/*#__PURE__*/
|
|
68
|
+
React.createElement("strong", {
|
|
69
|
+
style: {
|
|
70
|
+
color: color
|
|
71
|
+
}
|
|
72
|
+
}, uuidToHash(groupTitle)),
|
|
73
|
+
secondary: groupSubtitle
|
|
74
|
+
}))
|
|
75
|
+
);
|
|
76
|
+
}))))
|
|
77
|
+
);
|
|
62
78
|
};
|
|
63
79
|
export default GroupSelectorSidebarBox;
|