Skip to content

Commit

Permalink
update multi
Browse files Browse the repository at this point in the history
  • Loading branch information
dnoneill committed May 22, 2019
1 parent 4164bbf commit 41a9278
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion dist/js/iiif-annotation.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/js/iiif-annotation.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/dist/iiif-annotation.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/dist/iiif-annotation.js.map

Large diffs are not rendered by default.

Binary file modified docs/dist2.zip
Binary file not shown.
7 changes: 4 additions & 3 deletions src/components/storyboard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -541,12 +541,13 @@ export default {
var lowx = Math.min(...xs)
var highx = Math.max(...xs)
var ys = sections.map(element => element.split(",")[1])
var lowy = Math.min(...ys) - 100;
var highy = Math.max(...ys)
var lowy = Math.min(...ys);
var ws = sections.map(element => element.split(",")[2])
var sumw = ws.reduce((a, b) => parseInt(a) + parseInt(b), 0)
var width = (highx - lowx) + sumw;
var zoomarea = this.viewer.world.getItemAt(0).imageToViewportRectangle(lowx, lowy, width, highy);
var hs = sections.map(element => element.split(",")[3])
var height = hs.reduce((a, b) => parseInt(a) + parseInt(b), 0);
var zoomarea = this.viewer.world.getItemAt(0).imageToViewportRectangle(lowx, lowy, width, height);
this.goToArea(zoomarea);
var elements = this.anno_elem.querySelectorAll(`#position${this.position}`)
for (var tk=0; tk<elements.length; tk++){
Expand Down

0 comments on commit 41a9278

Please sign in to comment.