Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
V
Vue Jama
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
certic
Vue Jama
Commits
6183e098
Commit
6183e098
authored
May 24, 2022
by
Jerome Chauveau
Browse files
Options
Downloads
Patches
Plain Diff
catch erreur si serveur le iiif ne répond pas lors de l'édition d'une image
parent
dd9ba7f4
No related branches found
No related tags found
No related merge requests found
Pipeline
#15108
passed
May 24, 2022
Stage: release
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/components/editors/ImageResourceEditor.vue
+17
-5
17 additions, 5 deletions
src/components/editors/ImageResourceEditor.vue
with
17 additions
and
5 deletions
src/components/editors/ImageResourceEditor.vue
+
17
−
5
View file @
6183e098
...
@@ -420,7 +420,10 @@ export default {
...
@@ -420,7 +420,10 @@ export default {
this
.
maxHeight
=
document
.
querySelector
(
'
.jama-image-editor
'
).
clientHeight
-
2
*
this
.
margin
;
this
.
maxHeight
=
document
.
querySelector
(
'
.jama-image-editor
'
).
clientHeight
-
2
*
this
.
margin
;
}
}
this
.
renderedImageDimensions
=
{
width
:
this
.
imgWidth
,
height
:
this
.
imgHeight
};
this
.
renderedImageDimensions
=
{
width
:
this
.
imgWidth
,
height
:
this
.
imgHeight
};
}))
})).
catch
((
error
)
=>
{
this
.
$jamaAlert
(
error
);
this
.
loading
=
false
;
});
},
},
doIt
()
{
doIt
()
{
...
@@ -446,7 +449,10 @@ export default {
...
@@ -446,7 +449,10 @@ export default {
this
.
reset
();
this
.
reset
();
this
.
resetZoom
();
this
.
resetZoom
();
this
.
loading
=
false
;
this
.
loading
=
false
;
})
}).
catch
((
error
)
=>
{
this
.
$jamaAlert
(
error
);
this
.
loading
=
false
;
});
}
}
}
}
)
)
...
@@ -600,9 +606,15 @@ export default {
...
@@ -600,9 +606,15 @@ export default {
},
},
zoomIn
(
offset
,
origin
=
'
0% 0%
'
)
{
zoomIn
(
offset
,
origin
=
'
0% 0%
'
)
{
try
{
this
.
zoom
+=
offset
;
this
.
zoom
+=
offset
;
document
.
getElementById
(
'
img-viewer
'
).
style
.
transform
=
'
scale(
'
+
this
.
zoom
+
'
)
'
;
document
.
getElementById
(
'
img-viewer
'
).
style
.
transform
=
'
scale(
'
+
this
.
zoom
+
'
)
'
;
document
.
getElementById
(
'
img-viewer
'
).
style
.
transformOrigin
=
origin
;
document
.
getElementById
(
'
img-viewer
'
).
style
.
transformOrigin
=
origin
;
}
catch
(
e
){
console
.
log
(
e
);
this
.
$jamaAlert
(
"
Une erreur est survenue.
"
);
}
},
},
zoomAtScrolledPoint
(
event
)
{
zoomAtScrolledPoint
(
event
)
{
...
...
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