Skip to content

Commit

Permalink
Clarify odd cases of IconMap and DiagramMap 'extent'
Browse files Browse the repository at this point in the history
  • Loading branch information
henrikt-ma committed Apr 27, 2022
1 parent e98a86b commit e24aac3
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions chapters/annotations.tex
Expand Up @@ -742,12 +742,17 @@ \subsection{Extends-Clause}\label{extends-clause}

\begin{itemize}
\item
If the extent of the \lstinline!extends!-clause defines a null region (the default), the base class contents is mapped to the same coordinates in the derived class, and the coordinate system (including \lstinline!preserveAspectRatio!) can be inherited as described in \cref{coordinate-systems}.
If the \lstinline!extent! is \lstinline!{{0, 0}, {0, 0}}! (the default), the base class contents is mapped to the same coordinates in the derived class, and the coordinate system (including \lstinline!preserveAspectRatio!) can be inherited as described in \cref{coordinate-systems}.
\item
If the extent of the \lstinline!extends!-clause defines a non-null region, the base class coordinate system is mapped to the region specified by the attribute extent, if \lstinline!preserveAspectRatio! is true for the base class the mapping shall preserve the aspect ratio.
For any other \lstinline!extent!, the base class coordinate system is mapped to this region, with the exception that \lstinline!preserveAspectRatio = true! in the base class requires that the mapping shall preserve the aspect ratio.
The base class coordinate system (and \lstinline!preserveAspectRatio!) is not inherited.
\end{itemize}

\begin{nonnormative}
A zero area \lstinline!extent! other than \lstinline!{{0, 0}, {0, 0}}! will result in the base class contents not being visible.
Reversed corners of the \lstinline!extent! will result in mirrored (rotated if reversed in both direction) base class contents.
\end{nonnormative}

\begin{example}
\begin{lstlisting}[language=modelica]
model A
Expand Down

0 comments on commit e24aac3

Please sign in to comment.