Skip to content

Commit

Permalink
position highlight
Browse files Browse the repository at this point in the history
  • Loading branch information
edsilv committed Jan 12, 2018
1 parent ad11a33 commit 43342bb
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion dist/iiif-av-component.bundle.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/iiif-av-component.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// iiif-av-component v0.0.10 https://github.com/iiif-commons/iiif-av-component#readme
// iiif-av-component v0.0.11 https://github.com/iiif-commons/iiif-av-component#readme

/// <reference types="base-component" />
declare namespace IIIFComponents {
Expand Down
4 changes: 2 additions & 2 deletions dist/iiif-av-component.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// iiif-av-component v0.0.10 https://github.com/iiif-commons/iiif-av-component#readme
// iiif-av-component v0.0.11 https://github.com/iiif-commons/iiif-av-component#readme
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.iiifAvComponent = f()}})(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){
(function (global){
/// <reference types="exjs" />
Expand Down Expand Up @@ -207,7 +207,6 @@ var IIIFComponents;
// loop through all canvases resizing their elements
for (var i = 0; i < this.canvasInstances.length; i++) {
var canvasInstance = this.canvasInstances[i];
canvasInstance.highlightDuration();
if (canvasInstance.$playerElement) {
var $canvasContainer = canvasInstance.$playerElement.find('.canvasContainer');
var $timelineContainer = canvasInstance.$playerElement.find('.timelineContainer');
Expand All @@ -219,6 +218,7 @@ var IIIFComponents;
var $options = canvasInstance.$playerElement.find('.optionsContainer');
$canvasContainer.height(this._$element.height() - $options.height());
}
canvasInstance.highlightDuration();
}
}
};
Expand Down
4 changes: 2 additions & 2 deletions dist/iiif-av-component.min.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions examples/js/iiif-av-component.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// iiif-av-component v0.0.10 https://github.com/iiif-commons/iiif-av-component#readme
// iiif-av-component v0.0.11 https://github.com/iiif-commons/iiif-av-component#readme
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.iiifAvComponent = f()}})(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){
(function (global){
/// <reference types="exjs" />
Expand Down Expand Up @@ -207,7 +207,6 @@ var IIIFComponents;
// loop through all canvases resizing their elements
for (var i = 0; i < this.canvasInstances.length; i++) {
var canvasInstance = this.canvasInstances[i];
canvasInstance.highlightDuration();
if (canvasInstance.$playerElement) {
var $canvasContainer = canvasInstance.$playerElement.find('.canvasContainer');
var $timelineContainer = canvasInstance.$playerElement.find('.timelineContainer');
Expand All @@ -219,6 +218,7 @@ var IIIFComponents;
var $options = canvasInstance.$playerElement.find('.optionsContainer');
$canvasContainer.height(this._$element.height() - $options.height());
}
canvasInstance.highlightDuration();
}
}
};
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "iiif-av-component",
"version": "0.0.11",
"version": "0.0.12",
"description": "",
"main": "index.js",
"types": "./dist/iiif-av-component.d.ts",
Expand Down
4 changes: 2 additions & 2 deletions src/AVComponent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -259,8 +259,6 @@ namespace IIIFComponents {

const canvasInstance: CanvasInstance = this.canvasInstances[i];

canvasInstance.highlightDuration();

if (canvasInstance.$playerElement) {
const $canvasContainer = canvasInstance.$playerElement.find('.canvasContainer');
const $timelineContainer = canvasInstance.$playerElement.find('.timelineContainer');
Expand All @@ -276,6 +274,8 @@ namespace IIIFComponents {
const $options: JQuery = canvasInstance.$playerElement.find('.optionsContainer');
$canvasContainer.height(<number>this._$element.height() - <number>$options.height());
}

canvasInstance.highlightDuration();

}

Expand Down

0 comments on commit 43342bb

Please sign in to comment.