From 1a1408f472bf9441bdfb843abe54322dcf13ec31 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Thu, 27 Nov 2014 23:13:12 +0000 Subject: animate (27nov14) git-svn-id: svn://tug.org/texlive/trunk@35674 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/tex/latex/animate/animate.sty | 45 +++++++++++++++++++------ 1 file changed, 34 insertions(+), 11 deletions(-) (limited to 'Master/texmf-dist/tex') diff --git a/Master/texmf-dist/tex/latex/animate/animate.sty b/Master/texmf-dist/tex/latex/animate/animate.sty index f53bf7a190b..4a74ebf8010 100644 --- a/Master/texmf-dist/tex/latex/animate/animate.sty +++ b/Master/texmf-dist/tex/latex/animate/animate.sty @@ -13,7 +13,7 @@ \NeedsTeXFormat{LaTeX2e} -\def\@anim@version{2014/11/25} +\def\@anim@version{2014/11/27} \ProvidesPackage{animate} [\@anim@version\space PDF animations from files and inline graphics] @@ -2994,7 +2994,11 @@ a#1.btnPlayRight=this.getField('#1.PlayRight');% \fi\fi% %playing state and direction - \if@anim@morejs a#1.playsRight=true;\fi% + \if@anim@step + \if@anim@palindrome a#1.playsRight=true;\fi% + \else% + \if@anim@morejs a#1.playsRight=true;\fi% + \fi% a#1.isPaused=false;% \if@anim@step\else a#1.playing=false;% @@ -3257,15 +3261,16 @@ a#1.isPaused=true;% }};% a#1.playBwd=function(){% - if(a#1.idx==0){a#1.stopLast();}% + if(a#1.idx==0||!a#1.isPaused){a#1.stopLast();}% a#1.playLeft();% };% a#1.playFwd=function(){% - if(a#1.idx==\@anim@maxframe){a#1.stopFirst();}% + if(a#1.idx==\@anim@maxframe||!a#1.isPaused){a#1.stopFirst();}% a#1.playRight();% };% \fi% \fi% + %animation API for labelled anims \ifx\empty\@anim@label\empty\else if(typeof anim==='undefined'){anim=new Array();}% if(typeof anim['\@anim@label']==='undefined'){% @@ -3282,8 +3287,8 @@ }else{a#1.setFps(f);}% },% get dt(){return 1000/(1e-6+a#1.fps)/a#1.sm;},% + get playsFwd(){return a#1.playsRight;},% \fi - get playsFwd(){return a#1.playsRight;},% get numFrames(){return \@anim@frames;},% get frameNum(){return a#1.idx;},% set frameNum(f){% @@ -3337,14 +3342,17 @@ \def\@anim@otherjscript#1{% \xdef\@anim@otherjscriptkey{% /PC <