Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
163 commits
Select commit Hold shift + click to select a range
0393600
test init commit
searpent-tomas Jun 20, 2022
cfa6657
added onImagesChange prop
searpent-tomas Jun 20, 2022
92eb69e
bumped patch
searpent-tomas Jun 20, 2022
1644e39
added groupId, GroupSelector
searpent-tomas Jun 23, 2022
bc80bd2
added support of highlight by groupId
searpent-tomas Jun 27, 2022
2a7ab94
added hideNotEditingLabel to hide small white labels above bboxes
searpent-tomas Jun 27, 2022
04c32e7
added selectedGroupId
searpent-tomas Jun 27, 2022
a2e6ab3
prepared base for Editor.js
searpent-tomas Jun 28, 2022
165cca5
added embedded editor.js with demo data
searpent-tomas Jun 29, 2022
66953e3
removed selectedGroupId from props
searpent-tomas Jun 30, 2022
f7e6448
interconnected Editor.js to Annotator
searpent-tomas Jun 30, 2022
17949ef
removed useEffect hook dependency to allow select of images
searpent-tomas Jun 30, 2022
d7f960d
added PageSelector
searpent-tomas Jun 30, 2022
36befde
added showPageSelector to Anotator
searpent-tomas Jul 1, 2022
0445748
added bbox colors mapping
searpent-tomas Jul 11, 2022
16fb914
added onImageChanged hook
searpent-tomas Jul 12, 2022
431b602
fixed page-selector
searpent-tomas Jul 12, 2022
c92b13f
removed selectedGroupId indicator
searpent-tomas Jul 12, 2022
7916724
added reasonable color mapping
searpent-tomas Jul 12, 2022
7f02b25
added onRecalc, onSave props, tuned up pageSelector
searpent-tomas Jul 13, 2022
9c4bae3
removed empty line
searpent-tomas Jul 13, 2022
00fc976
added allowedGroups props to annotator
searpent-tomas Jul 13, 2022
df72b80
set allowed colors to 10
searpent-tomas Jul 13, 2022
9b1ee44
added support for metadata, page number displayed
searpent-tomas Jul 17, 2022
86c2a08
bumped version to 2.0.4
searpent-tomas Jul 17, 2022
89b7c11
added onSave call with data, tuneuped color of BBoxes in canvas
searpent-tomas Jul 18, 2022
a2499b5
canvas fullheight
searpent-tomas Jul 18, 2022
7fe8e3f
added disabled buttons variants
searpent-tomas Jul 18, 2022
88f43f2
version bump
searpent-tomas Jul 18, 2022
c620413
redesigned bbox grabber
searpent-tomas Jul 26, 2022
fd48bde
sidebar regions colors defined by groupId
searpent-tomas Jul 26, 2022
38ab15f
added addedble groups
searpent-tomas Jul 27, 2022
4532cd0
bumped version
searpent-tomas Jul 27, 2022
4f0c2f5
cleanup
searpent-tomas Jul 27, 2022
27d3cc0
cls colors changed to greyscale
searpent-tomas Jul 28, 2022
f97c890
changed coloring of bboxes by cls
searpent-tomas Jul 28, 2022
5b341cb
applied hotkeys config + disabled toolbar when no enabledTool defined
searpent-tomas Jul 28, 2022
f6f0731
added metadata to PageSelector
searpent-tomas Aug 1, 2022
59f1ea5
added 'DELETE_GROUP' button
searpent-tomas Aug 1, 2022
f673ea5
bumped version
searpent-tomas Aug 3, 2022
12e302f
bumped version
searpent-tomas Aug 3, 2022
f7091e4
moved metadata toggle to top
searpent-tomas Aug 4, 2022
ba9d02c
changed select hotkey to 'e'
searpent-tomas Aug 4, 2022
b9da75c
version bump
searpent-tomas Aug 4, 2022
dda0fd3
fixed bugs
searpent-tomas Aug 5, 2022
102f67e
fixed bugs 2
searpent-tomas Aug 5, 2022
306675f
fixed bugs 3
searpent-tomas Aug 5, 2022
ea6563b
fixed css import bug, version bump
searpent-tomas Aug 15, 2022
2c8e9fa
bumped version and fixed missing css dependencies in build
searpent-tomas Aug 15, 2022
59500e9
fixed metadata columns, layout
searpent-tomas Sep 23, 2022
59d154b
bumped version
searpent-tomas Sep 26, 2022
9bdfd68
fixed collision with argon css design system
searpent-tomas Sep 27, 2022
fe8f27b
fixed collision with argon design 2
searpent-tomas Sep 27, 2022
fe3fcdd
fixed canvasa fullheight
searpent-tomas Sep 27, 2022
7e7b8c4
added editable metadata in PageSelector
searpent-tomas Sep 27, 2022
07961f3
added activation of save button after metadata changed
searpent-tomas Sep 27, 2022
20e3c41
bumped version
searpent-tomas Sep 27, 2022
d8fa19c
fixed pageselector css problems
searpent-tomas Sep 28, 2022
6a5bfb0
fixed unnnecessary propagation on page selector input click
searpent-tomas Sep 28, 2022
b108ad4
version bump
searpent-tomas Sep 28, 2022
84fc3b5
fixed css REM dependency
searpent-tomas Sep 28, 2022
c48f510
version bump
searpent-tomas Sep 28, 2022
48bfba6
open editting with Ctrl
searpent-tomas Oct 4, 2022
c1910f0
changed calculation of allowedGroups
searpent-tomas Oct 4, 2022
ee9e733
added auto group - new or selected group
searpent-tomas Oct 4, 2022
a590fa3
added support for help description
searpent-tomas Oct 5, 2022
dc5355b
added autoselection of cls for new bbox when group selected
searpent-tomas Oct 5, 2022
7495eb6
when creating BBox, don't unhighlight selected groupId
searpent-tomas Oct 5, 2022
7d8a3e6
when new BBox with selected group, no edit box
searpent-tomas Oct 5, 2022
92e0306
version bump
searpent-tomas Oct 5, 2022
3f7233f
switch to select tool afer creating BBox
searpent-tomas Nov 3, 2022
1682120
bumped version
searpent-tomas Nov 3, 2022
e305351
added deletion action to history
searpent-tomas Nov 15, 2022
d8800ae
sidebar chavron button not transparent
searpent-tomas Nov 15, 2022
d0892d6
scroollable sidebar
searpent-tomas Nov 15, 2022
1c628e9
fixed css
searpent-tomas Nov 15, 2022
e3eeccd
fixed bug with sidebar expander button opacity
searpent-tomas Nov 18, 2022
54a4ac9
changed groupID generator to UUID version
searpent-tomas Nov 21, 2022
cd4ff50
added article lvl metadata, metadata config etc
searpent-tomas Nov 23, 2022
45d99f2
added filtering out of metadata frames to text editor
searpent-tomas Nov 23, 2022
3f305b8
version bump
searpent-tomas Nov 23, 2022
cca2d68
editable metadataa in PageSelector
searpent-tomas Nov 25, 2022
121dc15
fixed bug: no change detected when cls changed
searpent-tomas Nov 28, 2022
30c39ca
changed pageNumber key
searpent-tomas Nov 28, 2022
9dbddc6
removed SELECT_CLASSIFICATION
searpent-tomas Nov 29, 2022
64db229
add returning of state on error
searpent-tomas Nov 29, 2022
b12776a
fixed groupId condition
searpent-tomas Nov 29, 2022
e5305ec
uuid groupId correct coloring
searpent-tomas Nov 30, 2022
3cf577b
fixed ignored region deletion
searpent-tomas Nov 30, 2022
260cbc6
added albumMetadata to onSave
searpent-tomas Dec 1, 2022
4df2020
added timestamp to onSave payload
searpent-tomas Dec 2, 2022
15c2dc3
return selectedImage when save clicked
searpent-tomas Dec 5, 2022
c220286
added lockedImages
searpent-tomas Dec 21, 2022
124f4ef
added locker.css build copy
searpent-tomas Dec 21, 2022
3954d5f
aded default array to lockedImages
searpent-tomas Dec 21, 2022
c4f4511
fixed paage selector not updating metadata bug
searpent-tomas Dec 28, 2022
e0fe276
fixed new groupId problem
searpent-tomas Dec 28, 2022
cae34d1
added recalc handler
searpent-tomas Jan 4, 2023
b8828fb
added onSelectedImageChange hook
polakto Jan 11, 2023
07ce278
added whitespace escaping to editor js
polakto Jan 13, 2023
60fe824
added saveableActions to image in reducer
polakto Jan 18, 2023
644fa56
removed lockedImages prop
polakto Jan 18, 2023
7c10a03
added parsing of lockeUntil attribute on Page entity
polakto Jan 18, 2023
692703b
added image updating via callback
polakto Jan 18, 2023
73edcf6
added image polling
polakto Jan 23, 2023
3be6361
added initial parsing of locked images
polakto Jan 23, 2023
4292a3c
added Errorer.css to build step
polakto Jan 23, 2023
8d43ad1
removed onSave, onRecalc handlers
polakto Jan 23, 2023
89b169b
aded recalc button
polakto Jan 30, 2023
4f16922
added 'r' hotkey to reset zoom
polakto Jan 31, 2023
7d812a4
removed locking of processed page thumbnail
polakto Jan 31, 2023
48f0107
changed src for pageSelector
polakto Jan 31, 2023
efa3cea
added class change to recalc actions
polakto Feb 6, 2023
4e3b326
added read-only mode to editor
polakto Feb 8, 2023
e2b3960
bumped version
polakto Feb 8, 2023
a6645d1
fixed blocksToArticle bug
polakto Feb 8, 2023
6e4bf13
fixed blocksToArticle
polakto Feb 8, 2023
a4364aa
fixe ReadOnly editor
polakto Feb 9, 2023
962f2e4
fixed region selector color bug
polakto Feb 20, 2023
4bdcfac
blockToArticle newline when no text/interview
polakto Feb 23, 2023
4aaeb39
added user-friendly group names
polakto Feb 27, 2023
d123d36
fixed new frame bug
polakto Mar 27, 2023
e51a689
added color highlighting in editor
polakto Apr 13, 2023
a195173
added support for value/label metadata options
polakto May 16, 2023
81d67b8
added select box for metadataconfig selectables
polakto May 17, 2023
7fc7f94
fixed metadata select selected attribute
polakto May 17, 2023
e8eed12
formatte dmetadata forms
polakto May 24, 2023
d460110
added metadataId
polakto May 31, 2023
815bc94
bumped version
polakto May 31, 2023
a380b2e
added deselecting of frames after reset by 'R'
polakto Jun 26, 2023
da6e192
added deselecting of frames after reset by 'R' fix
polakto Jun 26, 2023
ad9e223
fixed deleting of region to be considered saveable action
polakto Jul 1, 2023
7bfba6c
added support for section cls
polakto Aug 26, 2023
a0cc89c
version bump
polakto Aug 26, 2023
4eadfb4
added new classes
polakto Nov 2, 2024
ed25bfb
added spellcheck
polakto Dec 19, 2024
499cc13
added autofill of metadata per article when new region created
polakto Feb 16, 2025
bbe10a0
version bump to 2.0.81
polakto Dec 19, 2025
1cdcb9c
stuff updated and spell check controlled by toggle reintroduced - E2E…
Jan 23, 2026
38caa95
minor story revert
Jan 26, 2026
95453de
fix for undefined articleType
Jan 27, 2026
426ecaa
Merge pull request #2 from searpent/SI-2468-rect-image-annotate-vesio…
juzam1979 Jan 29, 2026
d8f5592
Merge branch 'master' into SI-2467-button-to-delete-all-the-frames-
Jan 29, 2026
1e99492
updates to delete all frames on page
Jan 29, 2026
4018acd
Merge pull request #3 from searpent/SI-2467-button-to-delete-all-the-…
juzam1979 Feb 9, 2026
3f85868
ArticleType and PreviousArticleId saved immediatelly after changed
Feb 9, 2026
64ea387
Merge pull request #4 from searpent/SI-2459-article-type-not-saved-wh…
juzam1979 Feb 9, 2026
461f5d3
Autosave Section metadata on page-level change.
Jul 2, 2026
6332923
Merge branch 'SI-2507-section-is-not-saved-automatical'
Jul 2, 2026
849a446
Fix stale article metadata when switching articles (SI-2461).
Jul 2, 2026
23fda03
Merge branch 'SI-2461-articletype-controlled-select-keys'
Jul 2, 2026
1d3b2c2
Fix missing editor text when selectedGroupId is null (SI-2462).
Jul 2, 2026
9ee13bc
Merge branch 'SI-2462-no-text-in-edit-mode-after-recen'
Jul 2, 2026
8ad59bf
Semaphor functionality recovered
Jul 20, 2026
814afd4
Merge pull request #5 from searpent/SI-2513-semaphor-case-ready-is-mi…
juzam1979 Jul 20, 2026
109be9f
Fix hotkeys stopping after Enter in annotate mode
Sep 7, 2026
452b62d
Increase section autosave debounce to 3s and bump to 2.3.14.
Sep 7, 2026
7387d63
Keep focus in metadata fields while moving the mouse; bump to 2.3.15.
Sep 9, 2026
91f3609
Merge pull request #6 from searpent/bugfix/SI-2531-lost-focus-on-sect…
juzam1979 Sep 9, 2026
3754dfc
Show full option list in metadata hints (SI-2536); bump to 2.3.16.
Sep 24, 2026
ac9d8d0
Add Review completed checkbox under the Ready semaphore (SI-2548).
Nov 11, 2026
9f4ab08
Track editor.css, which Editor/index.js already imports.
Nov 11, 2026
6387146
2.3.17 bump
Nov 11, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .babelrc
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,8 @@
"presets": [
[ "react-app", { "absoluteRuntime": false } ]
],
"plugins": ["@babel/plugin-proposal-optional-chaining"]
"plugins": [
"@babel/plugin-proposal-optional-chaining",
"@babel/plugin-proposal-nullish-coalescing-operator"
]
}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# React Image Annotate
# React Image Annotate (Searpent fork)

[![npm version](https://badge.fury.io/js/react-image-annotate.svg)](https://badge.fury.io/js/react-image-annotate)

Expand Down
26 changes: 20 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
{
"name": "react-image-annotate",
"version": "2.0.0",
"name": "@searpent/react-image-annotate",
"version": "2.3.17",
"dependencies": {
"@editorjs/editorjs": "^2.25.0",
"@editorjs/paragraph": "^2.8.0",
"@emotion/react": "^11.7.0",
"@emotion/styled": "^11.6.0",
"@fortawesome/fontawesome-svg-core": "^1.2.12",
Expand All @@ -18,8 +20,10 @@
"material-survey": "^2.1.0",
"mmgc1-cpp": "^1.0.50",
"moment": "^2.23.0",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"nspell": "^2.1.5",
"react": "^17.0.0",
"react-dom": "^17.0.0",
"react-editor-js": "^2.0.6",
"react-full-screen": "^0.3.1",
"react-hotkeys": "^2.0.0",
"react-json-view": "^1.19.1",
Expand All @@ -37,12 +41,20 @@
"styled-components": "^5.2.1",
"transformation-matrix-js": "^2.7.6",
"use-event-callback": "^0.1.0",
"use-key-hook": "^1.3.0"
"use-key-hook": "^1.3.0",
"uuid": "^9.0.0"
},
"peerDependencies": {
"react": "^17.0.0",
"react-dom": "^17.0.0"
},
"engines": {
"node": ">=14.0.0 <18.0.0",
"yarn": ">=1.22.0"
},
"resolutions": {
"@babel/plugin-transform-typescript": "^7.9.4"
},
"homepage": "/react-image-annotate",
"repository": {
"type": "git",
Expand All @@ -55,7 +67,7 @@
"storybook": "start-storybook -p 9090 -s public",
"build": "npm run build:babel && cp ./package.json ./dist/package.json && cp ./README.md ./dist/README.md",
"dist": "npm run build && cd dist && npm publish",
"build:babel": "NODE_ENV=production babel ./src --ignore \"src/**/*.story.js\" --out-dir=./dist && rm dist/index.js && cp dist/lib.js dist/index.js",
"build:babel": "NODE_ENV=production babel ./src --ignore \"src/**/*.story.js\" --out-dir=./dist && rm dist/index.js && cp dist/lib.js dist/index.js && cp src/PageSelector/page-selector.css dist/PageSelector/ && cp src/Locker/locker.css dist/Locker/ && cp src/Errorer/errorer.css dist/Errorer/ && cp src/Editor/editor.css dist/Editor/ && cp src/Editor/annotation-plugin/annotation.css dist/Editor/annotation-plugin",
"build-storybook": "build-storybook",
"build:gh-pages": "CI=false react-scripts build && mkdir build/demo && cp build/index.html build/demo/index.html",
"gh-pages": "npm run build:gh-pages && gh-pages -d build",
Expand All @@ -74,7 +86,9 @@
"devDependencies": {
"@babel/cli": "^7.2.3",
"@babel/core": "^7.2.2",
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.18.6",
"@babel/plugin-proposal-optional-chaining": "^7.11.0",
"@babel/plugin-transform-typescript": "^7.9.4",
"@storybook/addon-actions": "^5.3.14",
"@storybook/addon-links": "^5.3.14",
"@storybook/addons": "^5.3.14",
Expand Down
48 changes: 48 additions & 0 deletions src/Annotator/exampleImages.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
const mockedImage = {
"id": "NA",
"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",
"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",
"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",
"regions": [
{
"id": "346807698131517440",
"type": "box",
"visible": true,
"cls": "title",
"highlighted": false,
"groupHighlighted": false,
"x": 0.5189794,
"y": 0.043963477,
"w": 0.46070240000000007,
"h": 0.13752678299999999,
"groupId": "0",
"text": "komerční příloha čtvrtek 29. dubna 2021 Robotické sekačky na trávu - nový pohled na sekání trávy"
},
{
"id": "346807698131517441",
"type": "box",
"visible": true,
"cls": "subtitle",
"highlighted": false,
"groupHighlighted": false,
"x": 0.51976687,
"y": 0.17134483,
"w": 0.18034333000000002,
"h": 0.10370872999999997,
"groupId": "0",
"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."
},
],
"metadata": [
{
"key": "page",
"value": "66"
},
{
"key": "mockedBy",
"value": "artificial server"
}
]
}

export default [mockedImage];
Loading