Skip to content

Commit

Permalink
Remove "extends FilledShape" from Text-definitions.
Browse files Browse the repository at this point in the history
Closes# 2157
It has been deprecated for quite some time, and my proposal is that we either do it now or just after releasing 3.6.
  • Loading branch information
HansOlsson committed Dec 13, 2022
1 parent e0bd3cb commit 22283d1
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions chapters/annotations.tex
Original file line number Diff line number Diff line change
Expand Up @@ -852,13 +852,12 @@ \subsection{Connections}\label{connections1}
\begin{lstlisting}[language=modelica]
record Text
extends GraphicItem;
extends FilledShape;
Extent extent;
String string;
Real fontSize = 0 "unit pt";
String fontName;
TextStyle textStyle[:];
Color textColor = lineColor;
Color textColor = Color.Black;
TextAlignment horizontalAlignment =
if index < 0 then TextAlignment.Right else TextAligment.Left;
Integer index;
Expand Down Expand Up @@ -988,20 +987,18 @@ \subsubsection{Text}\label{text}
\begin{lstlisting}[language=modelica]
record Text
extends GraphicItem;
extends FilledShape;
Extent extent;
String textString;
Real fontSize = 0 "unit pt";
String fontName;
TextStyle textStyle[:];
Color textColor = lineColor;
Color textColor = Color.Black;
TextAlignment horizontalAlignment = TextAlignment.Center;
end Text;
\end{lstlisting}%
\annotationindex{Text}
The \lstinline!textColor! attribute defines the color of the text.
The text is drawn with transparent background and no border around the text (and without outline).
The contents inherited from \lstinline!FilledShape! is deprecated, but kept for compatibility reasons.

There are a number of common macros that can be used in the text, and they should be replaced when displaying the text as follows (in order such that the earliest ones have precedence, and using the longest sequence of identifier characters -- alphanumeric and underscore):
\begin{itemize}
Expand Down

0 comments on commit 22283d1

Please sign in to comment.