-
Notifications
You must be signed in to change notification settings - Fork 0
4.4 LegendBox
amaliejvik edited this page Jul 3, 2024
·
7 revisions
A sticky box located in the upper left corner that displays an overview of which components are present in the scene in Latex. Can be collapsed into a small square, and then extended again by clicking the arrow icons.
When hovering over elements of type Plot, Point and Circle in the LegendBox, the corresponding Components in the scene are highlighted. Specific hover-functionality and which information is displayed for specific components can easily be modified further.
The following information is currently configured to be displayed for the given element types:
- Plots:
<Plot name>
:<Plot expression>
- Points:
<Point name>
:(x,y)
- State variables:
<State name>
:<State value>
- String:
<String with state variables>
:<String where state variables are replaced with actual current state values>
- Remaining components:
<Component ClassName>
- none
- none
-
elements?: (Component | String | State<number>)[]
A list of elements linked to the LegendBox. These are the elements that will be displayed in the LegendBox itself.
elements: []
- none
-
addElement(element: Component | String | State<number>)
Adds an element to the LegendBox elements list