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
d57ab90a
Commit
d57ab90a
authored
Nov 30, 2023
by
Antoine Roy
Browse files
Options
Downloads
Patches
Plain Diff
updating the location of the video's time selection on the annotation panel
parent
42632439
No related branches found
No related tags found
1 merge request
!7
Change on the slide bar's UI from pluggin annotation
Pipeline
#1610
failed
Nov 30, 2023
Stage: test
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/AnnotationCreation.js
+69
-68
69 additions, 68 deletions
src/AnnotationCreation.js
with
69 additions
and
68 deletions
src/AnnotationCreation.js
+
69
−
68
View file @
d57ab90a
...
@@ -238,7 +238,7 @@ class AnnotationCreation extends Component {
...
@@ -238,7 +238,7 @@ class AnnotationCreation extends Component {
handleChangeTime
=
(
event
,
newValueTime
)
=>
{
handleChangeTime
=
(
event
,
newValueTime
)
=>
{
let
timeStart
=
newValueTime
[
0
];
let
timeStart
=
newValueTime
[
0
];
let
timeEnd
=
newValueTime
[
1
];
let
timeEnd
=
newValueTime
[
1
];
console
.
log
(
VideosReferences
.
valueOf
());
this
.
updateTstart
(
timeStart
);
this
.
updateTstart
(
timeStart
);
this
.
updateTend
(
timeEnd
);
this
.
updateTend
(
timeEnd
);
};
};
...
@@ -386,6 +386,74 @@ class AnnotationCreation extends Component {
...
@@ -386,6 +386,74 @@ class AnnotationCreation extends Component {
player
=
{
mediaIsVideo
?
VideosReferences
.
get
(
windowId
)
:
OSDReferences
.
get
(
windowId
)}
player
=
{
mediaIsVideo
?
VideosReferences
.
get
(
windowId
)
:
OSDReferences
.
get
(
windowId
)}
/
>
/
>
<
form
onSubmit
=
{
this
.
submitForm
}
className
=
{
classes
.
section
}
>
<
form
onSubmit
=
{
this
.
submitForm
}
className
=
{
classes
.
section
}
>
<
Grid
container
>
{
mediaIsVideo
&&
(
<>
<
Grid
item
xs
=
{
12
}
className
=
{
classes
.
paper
}
>
<
Typography
id
=
"
range-slider
"
gutterBottom
>
Time
range
<
/Typography
>
<
Slider
value
=
{
valueTime
}
onChange
=
{
this
.
handleChangeTime
}
valueLabelDisplay
=
"
auto
"
aria
-
labelledby
=
"
range-slider
"
getAriaValueText
=
{
this
.
valuetextTime
}
max
=
{
2000
}
/
>
<
/Grid
>
<
Grid
item
xs
=
{
12
}
>
<
ToggleButton
value
=
"
true
"
title
=
"
Go to start time
"
size
=
"
small
"
onClick
=
{
this
.
seekToTstart
}
className
=
{
classes
.
timecontrolsbutton
}
>
<
LastPage
/>
<
/ToggleButton
>
<
Typography
variant
=
"
overline
"
>
Start
<
/Typography
>
<
/Grid
>
<
ToggleButton
value
=
"
true
"
title
=
"
Set current time
"
size
=
"
small
"
onClick
=
{
this
.
setTstartNow
}
className
=
{
classes
.
timecontrolsbutton
}
>
<
Alarm
/>
<
/ToggleButton
>
<
HMSInput
seconds
=
{
tstart
}
onChange
=
{
this
.
updateTstart
}
/
>
<
Grid
item
xs
=
{
12
}
>
<
Typography
variant
=
"
overline
"
>
<
ToggleButton
value
=
"
true
"
title
=
"
Go to end time
"
size
=
"
small
"
onClick
=
{
this
.
seekToTend
}
className
=
{
classes
.
timecontrolsbutton
}
>
<
LastPage
/>
<
/ToggleButton
>
End
<
/Typography
>
<
/Grid
>
<
Grid
item
xs
=
{
12
}
className
=
{
classes
.
paper
}
>
<
ToggleButton
value
=
"
true
"
title
=
"
Set current time
"
size
=
"
small
"
onClick
=
{
this
.
setTendNow
}
className
=
{
classes
.
timecontrolsbutton
}
>
<
Alarm
/>
<
/ToggleButton
>
<
HMSInput
seconds
=
{
tend
}
onChange
=
{
this
.
updateTend
}
/
>
<
/Grid
>
<
/
>
)}
<
Grid
item
xs
=
{
12
}
>
<
Typography
variant
=
"
overline
"
>
Image
Content
<
/Typography
>
<
/Grid
>
<
Grid
item
xs
=
{
12
}
style
=
{{
marginBottom
:
10
}}
>
<
ImageFormField
value
=
{
image
}
onChange
=
{
this
.
handleImgChange
}
/
>
<
/Grid
>
<
Grid
item
xs
=
{
12
}
>
<
Typography
variant
=
"
overline
"
>
Text
Content
<
/Typography
>
<
/Grid
>
<
Grid
item
xs
=
{
12
}
>
<
TextEditor
key
=
{
textEditorStateBustingKey
}
annoHtml
=
{
textBody
}
updateAnnotationBody
=
{
this
.
updateTextBody
}
/
>
<
/Grid
>
<
/Grid
>
<
Grid
container
>
<
Grid
container
>
<
Grid
item
xs
=
{
12
}
>
<
Grid
item
xs
=
{
12
}
>
<
Typography
variant
=
"
overline
"
>
<
Typography
variant
=
"
overline
"
>
...
@@ -492,73 +560,6 @@ class AnnotationCreation extends Component {
...
@@ -492,73 +560,6 @@ class AnnotationCreation extends Component {
}
}
<
/Grid
>
<
/Grid
>
<
/Grid
>
<
/Grid
>
<
Grid
container
>
{
mediaIsVideo
&&
(
<>
<
Grid
item
xs
=
{
12
}
>
<
ToggleButton
value
=
"
true
"
title
=
"
Go to start time
"
size
=
"
small
"
onClick
=
{
this
.
seekToTstart
}
className
=
{
classes
.
timecontrolsbutton
}
>
<
LastPage
/>
<
/ToggleButton
>
<
Typography
variant
=
"
overline
"
>
Start
<
/Typography
>
<
/Grid
>
<
Grid
item
xs
=
{
12
}
className
=
{
classes
.
paper
}
>
<
Typography
id
=
"
range-slider
"
gutterBottom
>
Time
range
<
/Typography
>
<
Slider
value
=
{
valueTime
}
onChange
=
{
this
.
handleChangeTime
}
valueLabelDisplay
=
"
auto
"
aria
-
labelledby
=
"
range-slider
"
getAriaValueText
=
{
this
.
valuetextTime
}
max
=
{
2000
}
/
>
<
ToggleButton
value
=
"
true
"
title
=
"
Set current time
"
size
=
"
small
"
onClick
=
{
this
.
setTstartNow
}
className
=
{
classes
.
timecontrolsbutton
}
>
<
Alarm
/>
<
/ToggleButton
>
<
HMSInput
seconds
=
{
tstart
}
onChange
=
{
this
.
updateTstart
}
/
>
<
/Grid
>
<
Grid
item
xs
=
{
12
}
>
<
Typography
variant
=
"
overline
"
>
<
ToggleButton
value
=
"
true
"
title
=
"
Go to end time
"
size
=
"
small
"
onClick
=
{
this
.
seekToTend
}
className
=
{
classes
.
timecontrolsbutton
}
>
<
LastPage
/>
<
/ToggleButton
>
End
<
/Typography
>
<
/Grid
>
<
Grid
item
xs
=
{
12
}
className
=
{
classes
.
paper
}
>
<
ToggleButton
value
=
"
true
"
title
=
"
Set current time
"
size
=
"
small
"
onClick
=
{
this
.
setTendNow
}
className
=
{
classes
.
timecontrolsbutton
}
>
<
Alarm
/>
<
/ToggleButton
>
<
HMSInput
seconds
=
{
tend
}
onChange
=
{
this
.
updateTend
}
/
>
<
/Grid
>
<
/
>
)}
<
Grid
item
xs
=
{
12
}
>
<
Typography
variant
=
"
overline
"
>
Image
Content
<
/Typography
>
<
/Grid
>
<
Grid
item
xs
=
{
12
}
style
=
{{
marginBottom
:
10
}}
>
<
ImageFormField
value
=
{
image
}
onChange
=
{
this
.
handleImgChange
}
/
>
<
/Grid
>
<
Grid
item
xs
=
{
12
}
>
<
Typography
variant
=
"
overline
"
>
Text
Content
<
/Typography
>
<
/Grid
>
<
Grid
item
xs
=
{
12
}
>
<
TextEditor
key
=
{
textEditorStateBustingKey
}
annoHtml
=
{
textBody
}
updateAnnotationBody
=
{
this
.
updateTextBody
}
/
>
<
/Grid
>
<
/Grid
>
<
Button
onClick
=
{
closeCompanionWindow
}
>
<
Button
onClick
=
{
closeCompanionWindow
}
>
Cancel
Cancel
<
/Button
>
<
/Button
>
...
...
This diff is collapsed.
Click to expand it.
Antoine Roy
@antoine
mentioned in issue
#13 (closed)
·
Nov 30, 2023
mentioned in issue
#13 (closed)
mentioned in issue #13
Toggle commit list
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