@searpent/react-image-annotate 2.1.0 → 2.1.2
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/exampleImages_bugdemo_15_1.js +80 -0
- package/Annotator/examplePhotos.js +4 -76
- package/Annotator/examplePhotos_repr.js +7052 -0
- package/Annotator/index.js +2 -94
- package/Annotator/index.story_bugdemo_15_1.js +882 -0
- package/Annotator/index.story_repr.js +1075 -0
- package/Annotator/reducers/general-reducer.js +5 -23
- package/Editor/editor.css +30 -0
- package/Editor/index.js +3 -7
- package/Editor/index_bugdemo_15_1.js +147 -0
- package/MainLayout/index.js +4 -2
- package/MainLayout/index_bugdemo_15_1.js +588 -0
- package/MetadataEditorSidebarBox/index_14_01_25.js +231 -0
- package/MetadataEditorSidebarBox/index_repr.js +271 -0
- package/package.json +2 -2
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
var mockedImage = {
|
|
2
|
+
"id": "NA",
|
|
3
|
+
"src": "https://www.gannett-cdn.com/presto/2022/01/12/NJDN/8088720b-446d-4693-be62-4dfdf1c3046f-DailyNewsSaturday.jpg?width=660&height=1253&fit=crop&format=pjpg&auto=webp",
|
|
4
|
+
"thumbnail": "https://www.gannett-cdn.com/presto/2022/01/12/NJDN/8088720b-446d-4693-be62-4dfdf1c3046f-DailyNewsSaturday.jpg?width=660&height=1253&fit=crop&format=pjpg&auto=webp",
|
|
5
|
+
"name": "https://www.gannett-cdn.com/presto/2022/01/12/NJDN/8088720b-446d-4693-be62-4dfdf1c3046f-DailyNewsSaturday.jpg?width=660&height=1253&fit=crop&format=pjpg&auto=webp",
|
|
6
|
+
"regions": [{
|
|
7
|
+
"id": "346807698131517440",
|
|
8
|
+
"type": "box",
|
|
9
|
+
"visible": true,
|
|
10
|
+
"cls": "title",
|
|
11
|
+
"highlighted": false,
|
|
12
|
+
"groupHighlighted": false,
|
|
13
|
+
"x": 0.5189794,
|
|
14
|
+
"y": 0.043963477,
|
|
15
|
+
"w": 0.46070240000000007,
|
|
16
|
+
"h": 0.13752678299999999,
|
|
17
|
+
"groupId": "0",
|
|
18
|
+
"text": "komerční příloha čtvrtek 29. dubna 2021 Robotické sekačky na trávu - nový pohled na sekání trávy"
|
|
19
|
+
}, {
|
|
20
|
+
"id": "346807698131517441",
|
|
21
|
+
"type": "box",
|
|
22
|
+
"visible": true,
|
|
23
|
+
"cls": "subtitle",
|
|
24
|
+
"highlighted": false,
|
|
25
|
+
"groupHighlighted": false,
|
|
26
|
+
"x": 0.51976687,
|
|
27
|
+
"y": 0.17134483,
|
|
28
|
+
"w": 0.18034333000000002,
|
|
29
|
+
"h": 0.10370872999999997,
|
|
30
|
+
"groupId": "0",
|
|
31
|
+
"text": "Udržet trávník v perfektním stavu, znamená věnovat mu ohromné množství času a cítit se neustále odpovědný za jeho stav. Znamená to nepopulární, mnohdy obtížnou, časově náročnou práci a také starost o likvidaci zahradního odpadu. Dobrou zprávou je, že robotická sekačka na trávu všechny tyto věci obstará za Vás."
|
|
32
|
+
}, {
|
|
33
|
+
"id": "346807698131517442",
|
|
34
|
+
"type": "box",
|
|
35
|
+
"visible": true,
|
|
36
|
+
"cls": "title",
|
|
37
|
+
"highlighted": false,
|
|
38
|
+
"groupHighlighted": false,
|
|
39
|
+
"x": 0.1,
|
|
40
|
+
"y": 0.35,
|
|
41
|
+
"w": 0.4,
|
|
42
|
+
"h": 0.08,
|
|
43
|
+
"groupId": "1",
|
|
44
|
+
"text": "Revolutionary AI Technology Transforms Healthcare"
|
|
45
|
+
}, {
|
|
46
|
+
"id": "346807698131517443",
|
|
47
|
+
"type": "box",
|
|
48
|
+
"visible": true,
|
|
49
|
+
"cls": "text",
|
|
50
|
+
"highlighted": false,
|
|
51
|
+
"groupHighlighted": false,
|
|
52
|
+
"x": 0.1,
|
|
53
|
+
"y": 0.43,
|
|
54
|
+
"w": 0.4,
|
|
55
|
+
"h": 0.15,
|
|
56
|
+
"groupId": "1",
|
|
57
|
+
"text": "Artificial intelligence is revolutionizing the healthcare sector, enabling doctors to diagnose diseases faster and more accurately than ever before."
|
|
58
|
+
}, {
|
|
59
|
+
"id": "346807698131517444",
|
|
60
|
+
"type": "box",
|
|
61
|
+
"visible": true,
|
|
62
|
+
"cls": "author",
|
|
63
|
+
"highlighted": false,
|
|
64
|
+
"groupHighlighted": false,
|
|
65
|
+
"x": 0.1,
|
|
66
|
+
"y": 0.58,
|
|
67
|
+
"w": 0.2,
|
|
68
|
+
"h": 0.03,
|
|
69
|
+
"groupId": "1",
|
|
70
|
+
"text": "By Dr. Sarah Johnson"
|
|
71
|
+
}],
|
|
72
|
+
"metadata": [{
|
|
73
|
+
"key": "page",
|
|
74
|
+
"value": "66"
|
|
75
|
+
}, {
|
|
76
|
+
"key": "mockedBy",
|
|
77
|
+
"value": "artificial server"
|
|
78
|
+
}]
|
|
79
|
+
};
|
|
80
|
+
export default [mockedImage];
|
|
@@ -750,68 +750,8 @@ var examplePhotos = [{
|
|
|
750
750
|
"Y1": 0,
|
|
751
751
|
"Y2": 1
|
|
752
752
|
},
|
|
753
|
-
"text": "[{\"key\":\"articleType\",\"value\":\"news\"
|
|
754
|
-
"groupId": "
|
|
755
|
-
"id": "metadata-0"
|
|
756
|
-
}, {
|
|
757
|
-
"label": "metadata",
|
|
758
|
-
"score": 1,
|
|
759
|
-
"box": {
|
|
760
|
-
"X1": 0,
|
|
761
|
-
"X2": 1,
|
|
762
|
-
"Y1": 0,
|
|
763
|
-
"Y2": 1
|
|
764
|
-
},
|
|
765
|
-
"text": "[{\"key\":\"articleType\",\"value\":\"news\",\"metadataId\":\"articleType-1\"}, {\"key\":\"section\",\"value\":\"editorial\",\"metadataId\":\"section-1\"}]",
|
|
766
|
-
"groupId": "1",
|
|
767
|
-
"id": "metadata-1"
|
|
768
|
-
}, {
|
|
769
|
-
"label": "metadata",
|
|
770
|
-
"score": 1,
|
|
771
|
-
"box": {
|
|
772
|
-
"X1": 0,
|
|
773
|
-
"X2": 1,
|
|
774
|
-
"Y1": 0,
|
|
775
|
-
"Y2": 1
|
|
776
|
-
},
|
|
777
|
-
"text": "[{\"key\":\"articleType\",\"value\":\"news\",\"metadataId\":\"articleType-2\"}, {\"key\":\"section\",\"value\":\"editorial\",\"metadataId\":\"section-2\"}]",
|
|
778
|
-
"groupId": "2",
|
|
779
|
-
"id": "metadata-2"
|
|
780
|
-
}, {
|
|
781
|
-
"label": "metadata",
|
|
782
|
-
"score": 1,
|
|
783
|
-
"box": {
|
|
784
|
-
"X1": 0,
|
|
785
|
-
"X2": 1,
|
|
786
|
-
"Y1": 0,
|
|
787
|
-
"Y2": 1
|
|
788
|
-
},
|
|
789
|
-
"text": "[{\"key\":\"articleType\",\"value\":\"news\",\"metadataId\":\"articleType-3\"}, {\"key\":\"section\",\"value\":\"editorial\",\"metadataId\":\"section-3\"}]",
|
|
790
|
-
"groupId": "3",
|
|
791
|
-
"id": "metadata-3"
|
|
792
|
-
}, {
|
|
793
|
-
"label": "metadata",
|
|
794
|
-
"score": 1,
|
|
795
|
-
"box": {
|
|
796
|
-
"X1": 0,
|
|
797
|
-
"X2": 1,
|
|
798
|
-
"Y1": 0,
|
|
799
|
-
"Y2": 1
|
|
800
|
-
},
|
|
801
|
-
"text": "[{\"key\":\"articleType\",\"value\":\"news\",\"metadataId\":\"articleType-4\"}, {\"key\":\"section\",\"value\":\"editorial\",\"metadataId\":\"section-4\"}]",
|
|
802
|
-
"groupId": "4",
|
|
803
|
-
"id": "metadata-4"
|
|
804
|
-
}, {
|
|
805
|
-
"label": "metadata",
|
|
806
|
-
"score": 1,
|
|
807
|
-
"box": {
|
|
808
|
-
"X1": 0,
|
|
809
|
-
"X2": 1,
|
|
810
|
-
"Y1": 0,
|
|
811
|
-
"Y2": 1
|
|
812
|
-
},
|
|
813
|
-
"text": "[{\"key\":\"articleType\",\"value\":\"news\",\"metadataId\":\"articleType-5\"}, {\"key\":\"section\",\"value\":\"editorial\",\"metadataId\":\"section-5\"}]",
|
|
814
|
-
"groupId": "5",
|
|
753
|
+
"text": "[{\"key\":\"articleType\",\"value\":\"news\"}, {\"key\":\"section\",\"value\":\"editorial\"}]",
|
|
754
|
+
"groupId": "42ba09e0-b2f5-439d-bdae-201e7c37787b",
|
|
815
755
|
"id": "aba453dd-f870-4510-ae40-a19eb52eb7d6"
|
|
816
756
|
}, {
|
|
817
757
|
"label": "metadata",
|
|
@@ -822,21 +762,9 @@ var examplePhotos = [{
|
|
|
822
762
|
"Y1": 0,
|
|
823
763
|
"Y2": 1
|
|
824
764
|
},
|
|
825
|
-
"text": "[{\"key\":\"articleType\",\"value\":\"ads\"
|
|
826
|
-
"groupId": "
|
|
765
|
+
"text": "[{\"key\":\"articleType\",\"value\":\"ads\"}, {\"key\":\"section\",\"value\":\"last page\"}]",
|
|
766
|
+
"groupId": "1",
|
|
827
767
|
"id": "2615bf87-7247-4bde-a0f9-45413034a6a6"
|
|
828
|
-
}, {
|
|
829
|
-
"label": "metadata",
|
|
830
|
-
"score": 1,
|
|
831
|
-
"box": {
|
|
832
|
-
"X1": 0,
|
|
833
|
-
"X2": 1,
|
|
834
|
-
"Y1": 0,
|
|
835
|
-
"Y2": 1
|
|
836
|
-
},
|
|
837
|
-
"text": "[{\"key\":\"articleType\",\"value\":\"news\",\"metadataId\":\"articleType-uuid\"}, {\"key\":\"section\",\"value\":\"editorial\",\"metadataId\":\"section-uuid\"}]",
|
|
838
|
-
"groupId": "42ba09e0-b2f5-439d-bdae-201e7c37787b",
|
|
839
|
-
"id": "metadata-uuid"
|
|
840
768
|
}]
|
|
841
769
|
}]
|
|
842
770
|
},
|