Skip to content

Commit

Permalink
update multi and add test to build
Browse files Browse the repository at this point in the history
  • Loading branch information
dnoneill committed May 22, 2019
1 parent 41a9278 commit f7eaeca
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ npm install
npm run serve
```

### Compiles and minifies for production
### Runs tests then compiles and minifies for production
```
npm run build
```
Expand Down
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.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"private": true,
"scripts": {
"serve": "vue-cli-service serve",
"build": "vue-cli-service build && ./docs.sh",
"build": "jest && vue-cli-service build && ./docs.sh",
"lint": "vue-cli-service lint",
"test": "jest"
},
Expand Down
5 changes: 3 additions & 2 deletions src/components/storyboard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -542,11 +542,12 @@ export default {
var highx = Math.max(...xs)
var ys = sections.map(element => element.split(",")[1])
var lowy = Math.min(...ys);
var highy = Math.max(...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 hs = sections.map(element => element.split(",")[3])
var height = hs.reduce((a, b) => parseInt(a) + parseInt(b), 0);
var highinfo = sections.filter(element => parseInt(element.split(",")[1]) === highy)[0]
var height = highy - lowy + parseInt(highinfo.split(',')[3]);
var zoomarea = this.viewer.world.getItemAt(0).imageToViewportRectangle(lowx, lowy, width, height);
this.goToArea(zoomarea);
var elements = this.anno_elem.querySelectorAll(`#position${this.position}`)
Expand Down

0 comments on commit f7eaeca

Please sign in to comment.