Skip to content

Commit

Permalink
Cleanup related to 'textColor'
Browse files Browse the repository at this point in the history
  • Loading branch information
henrikt-ma committed Oct 14, 2020
1 parent 24c173d commit 2d11561
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 24 deletions.
17 changes: 4 additions & 13 deletions chapters/annotations.tex
Original file line number Diff line number Diff line change
Expand Up @@ -628,26 +628,17 @@ \subsection{Connections}\label{connections1}
Real fontSize = 0 "unit pt";
String fontName;
TextStyle textStyle[:];
Color textColor=lineColor;
Color textColor = lineColor;
TextAlignment horizontalAlignment = if index<0 then TextAlignment.Right else TextAligment.Left;
Integer index;
end Text;
\end{lstlisting}

The \lstinline!index! is one of the points of Line (numbered 1, 2, 3, \ldots{} where
negative numbers count from the end, thus -1 indicate the last one). The \lstinline!string!
may use the special
symbols \lstinline!"\%first"! and \lstinline!"\%second"! to indicate the connectors in the
connect-equation.
The \lstinline!index! is one of the points of Line (numbered 1, 2, 3, \ldots{} where negative numbers count from the end, thus -1 indicate the last one). The \lstinline!string! may use the special symbols \lstinline!"%first"! and \lstinline!"%second"! to indicate the connectors in the connect-equation.

The \lstinline!extent! and \lstinline!rotation! are relative to the \lstinline!origin! (default \lstinline!{0,0}!)
and the \lstinline!origin! is relative to the point on the Line.
The \lstinline!extent! and \lstinline!rotation! are relative to the \lstinline!origin! (default \lstinline!{0,0}!) and the \lstinline!origin! is relative to the point on the \lstinline!Line!.

The 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 FilledShape is deprecated, but kept for compatibility reasons.
The default value for \lstinline!horizontalAlignment! is deprecated.
Having a zero size for the extent is deprecated and is handled as if upper part is moved up an appropriate amount.
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. The default value for \lstinline!horizontalAlignment! is deprecated. Having a zero size for the \lstinline!extent! is deprecated and is handled as if upper part is moved up an appropriate amount.

\begin{example}
\begin{lstlisting}[language=modelica]
Expand Down
22 changes: 11 additions & 11 deletions chapters/statemachines.tex
Original file line number Diff line number Diff line change
Expand Up @@ -181,18 +181,18 @@ \section{State Machine Graphics}\label{state-machine-graphics}
transition(state2, state1, x < 10, immediate=true, reset=true, synchronize=false, priority=1)
annotation (
Line(
points={{-40,-16},{-36,-4},{-32,8},{-40,26},{-40,32},{-46,50}},
color={175,175,175},
thickness=0.25,
smooth=Smooth.Bezier),
points = {{-40,-16},{-36,-4},{-32,8},{-40,26},{-40,32},{-46,50}},
color = {175, 175, 175},
thickness = 0.25,
smooth = Smooth.Bezier),
Text(
string="%condition",
extent={{4,-4},{4,-10}},
fontSize=10,
textStyle={TextStyle.Bold},
textColor={95,95,95},
horizontalAlignment=TextAlignment.Left),
);
string = "%condition",
extent = {{4, -4}, {4, -10}},
fontSize = 10,
textStyle = {TextStyle.Bold},
textColor = {95, 95, 95},
horizontalAlignment = TextAlignment.Left),
);
\end{lstlisting}
\end{example}

Expand Down

0 comments on commit 2d11561

Please sign in to comment.