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
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
3d7c2b78
Commit
3d7c2b78
authored
1 year ago
by
Antoine Roy
Browse files
Options
Downloads
Patches
Plain Diff
some linter
parent
ec2e6452
Branches
Branches containing commit
No related tags found
1 merge request
!7
Change on the slide bar's UI from pluggin annotation
Pipeline
#1620
failed
1 year ago
Stage: test
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/AnnotationCreation.js
+161
-141
161 additions, 141 deletions
src/AnnotationCreation.js
with
161 additions
and
141 deletions
src/AnnotationCreation.js
+
161
−
141
View file @
3d7c2b78
...
...
@@ -19,7 +19,6 @@ import StrokeColorIcon from '@material-ui/icons/BorderColor';
import
LineWeightIcon
from
'
@material-ui/icons/LineWeight
'
;
import
ArrowDropDownIcon
from
'
@material-ui/icons/ArrowDropDown
'
;
import
FormatShapesIcon
from
'
@material-ui/icons/FormatShapes
'
;
import
TextField
from
'
@material-ui/core/TextField
'
;
import
{
SketchPicker
}
from
'
react-color
'
;
import
{
v4
as
uuid
}
from
'
uuid
'
;
import
{
withStyles
}
from
'
@material-ui/core/styles
'
;
...
...
@@ -205,7 +204,7 @@ class AnnotationCreation extends Component {
handleChangeTime
=
(
event
,
newValueTime
)
=>
{
const
timeStart
=
newValueTime
[
0
];
const
timeEnd
=
newValueTime
[
1
];
console
.
log
(
VideosReferences
.
valueOf
()
);
console
.
log
(
newValueTime
);
this
.
updateTstart
(
timeStart
);
this
.
updateTend
(
timeEnd
);
this
.
seekToTstart
();
...
...
@@ -244,7 +243,7 @@ class AnnotationCreation extends Component {
// eslint-disable-next-line require-jsdoc
valuetextTime
()
{
return
`
${
this
.
valueTime
}
°C`
;
return
this
.
valueTime
;
}
/** */
...
...
@@ -389,6 +388,7 @@ class AnnotationCreation extends Component {
player
=
{
mediaIsVideo
?
VideosReferences
.
get
(
windowId
)
:
OSDReferences
.
get
(
windowId
)}
/
>
<
form
onSubmit
=
{
this
.
submitForm
}
className
=
{
classes
.
section
}
>
<
div
>
<
Grid
item
xs
=
{
12
}
>
<
Typography
variant
=
"
overline
"
>
Text
Content
...
...
@@ -401,7 +401,9 @@ class AnnotationCreation extends Component {
updateAnnotationBody
=
{
this
.
updateTextBody
}
/
>
<
/Grid
>
<
Grid
container
>
<
/div
>
<
div
>
{
mediaIsVideo
&&
(
<>
<
Grid
item
xs
=
{
12
}
className
=
{
classes
.
paper
}
>
...
...
@@ -444,8 +446,13 @@ class AnnotationCreation extends Component {
<
div
>
<
p
className
=
{
classes
.
textTimeButton
}
>
End
<
/p
>
<
/div
>
<
ToggleButton
value
=
"
true
"
title
=
"
Set current time
"
size
=
"
small
"
onClick
=
{
this
.
setTendNow
}
className
=
{
classes
.
timecontrolsbutton
}
>
<
ToggleButton
value
=
"
true
"
title
=
"
Set current time
"
size
=
"
small
"
onClick
=
{
this
.
setTendNow
}
className
=
{
classes
.
timecontrolsbutton
}
>
<
Alarm
fontSize
=
"
small
"
/>
<
/ToggleButton
>
<
/div
>
...
...
@@ -454,6 +461,10 @@ class AnnotationCreation extends Component {
<
/div
>
<
/
>
)}
<
/div
>
<
div
>
<
Grid
container
>
<
Grid
item
xs
=
{
12
}
>
<
Typography
variant
=
"
overline
"
>
Image
Content
...
...
@@ -463,6 +474,8 @@ class AnnotationCreation extends Component {
<
ImageFormField
value
=
{
image
}
onChange
=
{
this
.
handleImgChange
}
/
>
<
/Grid
>
<
/Grid
>
<
/div
>
<
div
>
<
Grid
container
>
<
Grid
item
xs
=
{
12
}
>
<
Typography
variant
=
"
overline
"
>
...
...
@@ -511,6 +524,8 @@ class AnnotationCreation extends Component {
<
/Paper
>
<
/Grid
>
<
/Grid
>
<
/div
>
<
div
>
<
Grid
container
>
<
Grid
item
xs
=
{
12
}
>
<
Typography
variant
=
"
overline
"
>
...
...
@@ -569,12 +584,15 @@ class AnnotationCreation extends Component {
}
<
/Grid
>
<
/Grid
>
<
/div
>
<
div
>
<
Button
onClick
=
{
closeCompanionWindow
}
>
Cancel
<
/Button
>
<
Button
variant
=
"
contained
"
color
=
"
primary
"
type
=
"
submit
"
>
Save
<
/Button
>
<
/div
>
<
/form
>
<
Popover
open
=
{
lineWeightPopoverOpen
}
...
...
@@ -614,7 +632,6 @@ class AnnotationCreation extends Component {
);
}
}
/** */
const
styles
=
(
theme
)
=>
({
buttonTimeContainer
:
{
...
...
@@ -642,6 +659,9 @@ const styles = (theme) => ({
flexWrap
:
'
wrap
'
,
},
section
:
{
display
:
'
flex
'
,
flexDirection
:
'
column
'
,
gap
:
'
20px
'
,
paddingBottom
:
theme
.
spacing
(
1
),
paddingLeft
:
theme
.
spacing
(
2
),
paddingRight
:
theme
.
spacing
(
1
),
...
...
@@ -663,8 +683,8 @@ const styles = (theme) => ({
padding
:
'
5px
'
,
},
textTimeButton
:
{
margin
:
0
,
fontSize
:
'
15px
'
,
margin
:
0
,
},
timecontrolsbutton
:
{
border
:
'
none
'
,
...
...
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