From fdd604682dc6c93865d0cc0c403d36bee3019532 Mon Sep 17 00:00:00 2001 From: edsilv Date: Fri, 8 Dec 2017 16:37:49 +0000 Subject: [PATCH] remove lib.d.ts --- dist/iiif-av-component.d.ts | 3 +-- dist/iiif-av-component.js | 3 +-- dist/iiif-av-component.min.js | 2 +- examples/js/iiif-av-component.js | 3 +-- package.json | 2 +- src/Definitions.ts | 1 - 6 files changed, 5 insertions(+), 9 deletions(-) diff --git a/dist/iiif-av-component.d.ts b/dist/iiif-av-component.d.ts index a56e615..94a7deb 100644 --- a/dist/iiif-av-component.d.ts +++ b/dist/iiif-av-component.d.ts @@ -1,5 +1,4 @@ -// iiif-av-component v0.0.1 https://github.com/iiif-commons/iiif-av-component#readme -/// +// iiif-av-component v0.0.2 https://github.com/iiif-commons/iiif-av-component#readme /// declare namespace IIIFComponents { diff --git a/dist/iiif-av-component.js b/dist/iiif-av-component.js index 82901cc..5067861 100644 --- a/dist/iiif-av-component.js +++ b/dist/iiif-av-component.js @@ -1,7 +1,6 @@ -// iiif-av-component v0.0.1 https://github.com/iiif-commons/iiif-av-component#readme +// iiif-av-component v0.0.2 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 var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || diff --git a/dist/iiif-av-component.min.js b/dist/iiif-av-component.min.js index 9c8ee96..46cb133 100644 --- a/dist/iiif-av-component.min.js +++ b/dist/iiif-av-component.min.js @@ -1,2 +1,2 @@ -// iiif-av-component v0.0.1 https://github.com/iiif-commons/iiif-av-component#readme +// iiif-av-component v0.0.2 https://github.com/iiif-commons/iiif-av-component#readme !function(f){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=f();else if("function"==typeof define&&define.amd)define([],f);else{var g;g="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,g.iiifAvComponent=f()}}(function(){return function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a="function"==typeof require&&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}for(var i="function"==typeof require&&require,o=0;o'),$canvasContainer=$('
'),$optionsContainer=$('
'),$timelineContainer=$('
'),$timelineItemContainer=$('
'),$controlsContainer=$('
'),$playButton=$(''),$pauseButton=$(''),$timingControls=$('Current Time: / Duration: ');$controlsContainer.append($playButton,$pauseButton,$timingControls),$optionsContainer.append($timelineContainer,$timelineItemContainer,$controlsContainer),$player.append($canvasContainer,$optionsContainer),this._$element.append($player);var canvasInstance=new IIIFComponents.CanvasInstance(canvas),canvasWidth=canvas.getWidth(),canvasHeight=canvas.getHeight();canvasWidth?canvasInstance.canvasWidth=canvasWidth:canvasInstance.canvasWidth=this._$element.width(),canvasHeight?canvasInstance.canvasHeight=canvasHeight:canvasInstance.canvasHeight=canvasInstance.canvasWidth*this.options.data.defaultAspectRatio,canvasInstance.$playerElement=$player,canvasInstance.logMessage=this._logMessage.bind(this),$timelineContainer.slider({value:0,step:.01,orientation:"horizontal",range:"min",max:canvasInstance.canvasClockDuration,animate:!1,create:function(evt,ui){},slide:function(evt,ui){canvasInstance.setCurrentTime(ui.value)},stop:function(evt,ui){}}),this.canvasInstances.push(canvasInstance),canvasInstance.initContents(),$playButton.on("click",function(){canvasInstance.playCanvas()}),$pauseButton.on("click",function(){canvasInstance.pauseCanvas()}),canvasInstance.setCurrentTime(0),$timingControls.find(".canvasDuration").text(IIIFComponents.AVComponentUtils.Utils.formatTime(canvasInstance.canvasClockDuration)),this._logMessage("CREATED CANVAS: "+canvasInstance.canvasClockDuration+" seconds, "+canvasInstance.canvasWidth+" x "+canvasInstance.canvasHeight+" px.")},AVComponent.prototype.getCanvasInstanceById=function(canvasId){canvasId=manifesto.Utils.normaliseUrl(canvasId);for(var i=0;i');break;case"Video":mediaElement=$('