mirror of
https://github.com/qurator-spk/neat.git
synced 2025-07-03 23:49:53 +02:00
enlarge image part
This commit is contained in:
parent
86a5f47ffd
commit
eebeada55d
1 changed files with 7 additions and 4 deletions
11
ner-edith.js
11
ner-edith.js
|
@ -23,8 +23,6 @@ function loadFile(evt, onComplete) {
|
||||||
|
|
||||||
if (tmp == null) continue;
|
if (tmp == null) continue;
|
||||||
|
|
||||||
//console.log(tmp);
|
|
||||||
|
|
||||||
if (urls == null) {
|
if (urls == null) {
|
||||||
urls = tmp;
|
urls = tmp;
|
||||||
}
|
}
|
||||||
|
@ -65,6 +63,11 @@ function setupInterface(data, file, urls) {
|
||||||
let top = data.data[nRow]['top'];
|
let top = data.data[nRow]['top'];
|
||||||
let bottom = data.data[nRow]['bottom'];
|
let bottom = data.data[nRow]['bottom'];
|
||||||
|
|
||||||
|
top = Math.max(0, top - 25);
|
||||||
|
bottom = bottom + 25;
|
||||||
|
left = Math.max(0, left - 50);
|
||||||
|
right = right + 50;
|
||||||
|
|
||||||
let width = right - left;
|
let width = right - left;
|
||||||
let height = bottom - top;
|
let height = bottom - top;
|
||||||
|
|
||||||
|
@ -75,7 +78,7 @@ function setupInterface(data, file, urls) {
|
||||||
img_url = img_url.replace('width', width.toString());
|
img_url = img_url.replace('width', width.toString());
|
||||||
img_url = img_url.replace('height', height.toString());
|
img_url = img_url.replace('height', height.toString());
|
||||||
|
|
||||||
console.log(img_url);
|
//console.log(img_url);
|
||||||
|
|
||||||
if (img_url == "http://empty")
|
if (img_url == "http://empty")
|
||||||
return
|
return
|
||||||
|
@ -366,7 +369,7 @@ function setupInterface(data, file, urls) {
|
||||||
|
|
||||||
$(".offset").on('click', gotoLocation);
|
$(".offset").on('click', gotoLocation);
|
||||||
|
|
||||||
updatePreview(startIndex)
|
//updatePreview(startIndex)
|
||||||
|
|
||||||
if ($("#docpos").val() != startIndex) {
|
if ($("#docpos").val() != startIndex) {
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue