Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Mirador annotations
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
IIIF
Mirador
Mirador annotations
Commits
983dcb82
Commit
983dcb82
authored
Feb 2, 2024
by
Anthony
Browse files
Options
Downloads
Patches
Plain Diff
Fix test on save to avoid transformer
parent
eb14ddba
No related branches found
No related tags found
2 merge requests
!28
Resolve "Sauvegarder une annotation"
,
!10
Draft: MigratingAnnotationCreation to MUI5.
Pipeline
#1883
failed
Feb 2, 2024
Stage: test
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/AnnotationCreation.js
+5
-5
5 additions, 5 deletions
src/AnnotationCreation.js
with
5 additions
and
5 deletions
src/AnnotationCreation.js
+
5
−
5
View file @
983dcb82
...
...
@@ -115,7 +115,7 @@ function AnnotationCreation(props) {
const
[
isMouseOverSave
,
setIsMouseOverSave
]
=
useState
(
false
);
const
[
scale
,
setScale
]
=
useState
(
1
);
const
[
v
alue
,
setValue
]
=
useState
(
TARGET_VIEW
);
const
[
v
iewTool
,
setViewTool
]
=
useState
(
TARGET_VIEW
);
const
{
height
,
width
}
=
props
.
mediaVideo
?
props
.
mediaVideo
:
0
;
// TODO Check the effect to keep and remove the other
...
...
@@ -182,7 +182,7 @@ function AnnotationCreation(props) {
}));
};
const
tabHandler
=
(
event
,
TabIndex
)
=>
{
setV
alue
(
TabIndex
);
setV
iewTool
(
TabIndex
);
};
/**
* Change from slider
...
...
@@ -302,7 +302,7 @@ function AnnotationCreation(props) {
// TODO Possibly problem of syncing
// TODO Improve this code
// If we are in edit mode, we have the transformer on the stage saved in the annotation
if
(
state
.
activeTool
===
'
edit
'
)
{
if
(
viewTool
===
OVERLAY_VIEW
&&
state
.
activeTool
===
'
edit
'
)
{
setState
((
prevState
)
=>
({
...
prevState
,
activeTool
:
'
cursor
'
,
...
...
@@ -490,8 +490,8 @@ function AnnotationCreation(props) {
<
StyledForm
onSubmit
=
{
submitForm
}
>
<
TabContext
value
=
{
v
alue
}
>
<
TabList
value
=
{
v
alue
}
onChange
=
{
tabHandler
}
aria
-
label
=
"
icon tabs
"
>
<
TabContext
value
=
{
v
iewTool
}
>
<
TabList
value
=
{
v
iewTool
}
onChange
=
{
tabHandler
}
aria
-
label
=
"
icon tabs
"
>
<
StyledTab
icon
=
{
<
HighlightAltIcon
/>
}
aria
-
label
=
"
TargetSelector
"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment