texlive[61019] Master/texmf-dist: animate (10nov21)
commits+karl at tug.org
commits+karl at tug.org
Wed Nov 10 22:17:55 CET 2021
Revision: 61019
http://tug.org/svn/texlive?view=revision&revision=61019
Author: karl
Date: 2021-11-10 22:17:55 +0100 (Wed, 10 Nov 2021)
Log Message:
-----------
animate (10nov21)
Modified Paths:
--------------
trunk/Master/texmf-dist/doc/latex/animate/ChangeLog
trunk/Master/texmf-dist/doc/latex/animate/animate.pdf
trunk/Master/texmf-dist/source/latex/animate/animate.tex
trunk/Master/texmf-dist/tex/latex/animate/animate.sty
Modified: trunk/Master/texmf-dist/doc/latex/animate/ChangeLog
===================================================================
--- trunk/Master/texmf-dist/doc/latex/animate/ChangeLog 2021-11-10 21:17:37 UTC (rev 61018)
+++ trunk/Master/texmf-dist/doc/latex/animate/ChangeLog 2021-11-10 21:17:55 UTC (rev 61019)
@@ -1,3 +1,6 @@
+2021-11-09
+ * improvement: play from beginning, regardless of poster frame setting
+
2021-09-02
* fix: non-conforming SVG id attribute values
Modified: trunk/Master/texmf-dist/doc/latex/animate/animate.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/source/latex/animate/animate.tex
===================================================================
--- trunk/Master/texmf-dist/source/latex/animate/animate.tex 2021-11-10 21:17:37 UTC (rev 61018)
+++ trunk/Master/texmf-dist/source/latex/animate/animate.tex 2021-11-10 21:17:55 UTC (rev 61019)
@@ -1,3 +1,4 @@
+\listfiles
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Copyright 2007--\today Alexander Grahn
%
Modified: trunk/Master/texmf-dist/tex/latex/animate/animate.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/animate/animate.sty 2021-11-10 21:17:37 UTC (rev 61018)
+++ trunk/Master/texmf-dist/tex/latex/animate/animate.sty 2021-11-10 21:17:55 UTC (rev 61019)
@@ -13,7 +13,7 @@
\NeedsTeXFormat{LaTeX2e}[2020-10-01]
-\def\@anim at version{2021/09/02}
+\def\@anim at version{2021/11/09}
\ProvidesPackage{animate}
[\@anim at version\space PDF & SVG animations from files and inline graphics]
@@ -3643,7 +3643,10 @@
\fi%
var a#1_playsRight,a#1_isPaused\if at anim@step\else,a#1_playing\fi;$%
\if at anim@step\else
- var a#1_int;$% timer id (takes return val of setIntervall())
+ var a#1_int% timer id (takes return val of setIntervall())
+ \ifnum\@anim at poster>\z@% custom poster (frame _between_, i. e.
+ ,a#1_posterOn% not including, first and last)
+ \fi;$%
% function pointers
var a#1_pause,a#1_playRight,a#1_playLeft,a#1_playBwd,a#1_playFwd;$%
\if at anim@pauseframes
@@ -3692,6 +3695,11 @@
\ifnum\@anim at method>\z@%
a#1_on=0;$%
\fi%
+ \if at anim@step\else%
+ \ifnum\@anim at poster>\z@% poster frame _between_ (i. e. non including) first
+ a#1_posterOn=true;% and last
+ \fi%
+ \fi%
\ifcase\@anim at method %icon based
a#1_wid=this.getField('anm#1');$%reference to interactive widget
for(var i=0;i<=\@anim at maxframe;i++){$%
@@ -3941,6 +3949,12 @@
\fi%
};$%
a#1_playRight=function(){$%
+ \ifnum\@anim at poster>\z@%
+ if(a#1_posterOn&&!a#1_isPaused){%
+ a#1_seekFrame(0);%
+ a#1_posterOn=false;%
+ }$%
+ \fi%
\if at anim@meas a#1_startMeas();\fi
var tmp_int;$%
try{tmp_int=\@anim at app setInterval('a#1_gotoNext()',%
@@ -3966,6 +3980,12 @@
\fi%
};$%
a#1_playLeft=function(){$%
+ \ifnum\@anim at poster>\z@%
+ if(a#1_posterOn&&!a#1_isPaused){%
+ a#1_seekFrame(\@anim at maxframe);%
+ a#1_posterOn=false;%
+ }$%
+ \fi%
\if at anim@meas a#1_startMeas();\fi
var tmp_int;$%
try{tmp_int=\@anim at app setInterval('a#1_gotoPrev()',%
@@ -4172,7 +4192,16 @@
if(!a#1_isPaused&&a#1_idx!=-2)a#1_seekFrame(-2);$% not paused == stopped
\fi%
\ifnum\@anim at poster>\@anim at mone %poster=<num>|first
- if(!a#1_isPaused&&a#1_idx!=\@anim at poster)a#1_seekFrame(\@anim at poster);$%
+ \ifnum\numexpr%
+ \ifnum\@anim at poster>\z@\@ne\else\z@\fi% custom poster
+ *\if at anim@step\z@\else\@ne\fi\relax>\z@%
+ if(!a#1_isPaused){$%
+ if(a#1_idx!=\@anim at poster)a#1_seekFrame(\@anim at poster);$%
+ a#1_posterOn=true;$%
+ }$%
+ \else
+ if(!a#1_isPaused&&a#1_idx!=\@anim at poster)a#1_seekFrame(\@anim at poster);$%
+ \fi%
\fi%
\ifnum\@anim at poster=\@anim at mone %poster=last
if(!a#1_isPaused&&a#1_idx!=\@anim at maxframe)a#1_seekFrame(\@anim at maxframe);$%
More information about the tex-live-commits
mailing list.