%%
%% This is file `tikz-timing-interval.sty',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% tikz-timing.dtx  (with options: `tikz-timing-interval.sty')
%% 
%% IMPORTANT NOTICE:
%% 
%% For the copyright see the source file.
%% 
%% Any modified versions of this file must be renamed
%% with new filenames distinct from tikz-timing-interval.sty.
%% 
%% For distribution of the original source see the terms
%% for copying and modification in the file tikz-timing.dtx.
%% 
%% This generated file may be distributed as long as the
%% original source files, as listed above, are part of the
%% same distribution. (The sources need not necessarily be
%% in the same archive or directory.)
%% Copyright (C) 2009-2012 by Martin Scharrer <martin@scharrer-online.de>
%% ----------------------------------------------------------------------
%% This work may be distributed and/or modified under the
%% conditions of the LaTeX Project Public License, either version 1.3
%% of this license or (at your option) any later version.
%% The latest version of this license is in
%%   http://www.latex-project.org/lppl.txt
%% and version 1.3 or later is part of all distributions of LaTeX
%% version 2005/12/01 or later.
%%
%% This work has the LPPL maintenance status `maintained'.
%%
%% The Current Maintainer of this work is Martin Scharrer.
%%
%% This work consists of the files tikz-timing.dtx and tikz-timing.ins
%% and the derived filebase tikz-timing*.sty.
%%
\NeedsTeXFormat{LaTeX2e}[1999/12/01]
\ProvidesPackage{tikz-timing-interval}[%
    2017/12/20
    v0.7f
    tikz-timing library for alternative Z transitions]
\let\tikztiming@linterval\relax
\let\tikztiming@rinterval\relax

\tikztimingdef{LZ}{
  \tikztiming@rinterval
  {\newdraw [\style]}
  {-- ++(\zslope,+\height/2.)}
  -- ++($ (#1,0) - (\zslope,0) $)
}

\tikztimingdef{HZ}{%
  \tikztiming@rinterval
  {\newdraw [\style]}
  {-- ++(\zslope,-\height/2.)}
  -- ++($ (#1,0) - (\zslope,0) $)
}

\tikztimingdef{TZ}{%
  \code{\setcounter{tikztimingtrans}{-\value{tikztimingtrans}}}
  \tikztiming@rinterval
  {\newdraw [\style]}
  {-- ++(\zslope,\value{tikztimingtrans}*\height/2.)}
  -- ++($ (#1,0) - (\zslope,0) $)
}

\tikztimingdef{ZL}{%
  \tikztiming@linterval
  {\newdraw}
  {-- ++(\zslope,-\height/2.)}
  -- ++($ (#1,0) - (\zslope,0) $)
}

\tikztimingdef{ZH}{%
  \tikztiming@linterval
  {\newdraw}
  {-- ++(\zslope,\height/2.)}
  -- ++($ (#1,0) - (\zslope,0) $)
}

\tikztimingdef{ZT}{%
  \code{\setcounter{tikztimingtrans}{-\value{tikztimingtrans}}}
  \tikztiming@linterval
  {\newdraw [\style]}
  {-- ++(\zslope,\value{tikztimingtrans}*\height/2.)}
  -- ++($ (#1,0) - (\zslope,0) $)
}

\def\tikztiming@onetwo#1#2{#1#2}
\def\tikztiming@twoone#1#2{#2#1}

\let\tikztiming@linterval\tikztiming@onetwo
\let\tikztiming@rinterval\tikztiming@onetwo

\tikzset{timing/interval/.code={\pgfqkeys{/tikz/timing/interval}{#1}}}
\tikzset{timing/interval/.cd,
   lo/.style={/tikz/timing/interval/left open},
   lc/.style={/tikz/timing/interval/left close},
   ro/.style={/tikz/timing/interval/right open},
   rc/.style={/tikz/timing/interval/right close},
   left close/.code={\let\tikztiming@linterval\tikztiming@onetwo},
   left open/.code={\let\tikztiming@linterval\tikztiming@twoone},
   right open/.code={\let\tikztiming@rinterval\tikztiming@onetwo},
   right close/.code={\let\tikztiming@rinterval\tikztiming@twoone},
}
\tikzset{
  timing/interval/normal/.style={/tikz/timing/interval/left close,/tikz/timing/interval/right open},
  timing/interval/verilog/.style={/tikz/timing/interval/normal},
  timing/interval/metachar/.style={/tikz/timing/metachar={#1}[2]{[timing/interval={##2}]}},
}

\endinput
%%
%% End of file `tikz-timing-interval.sty'.
