The viewScreens function aggregates screen functionality.
Set height and width. Set option for svg or canvas mode. Set option for showing download links under the screens. Set option for dark mode. This is the model part of a model-view relationship. Buttons are added with other functions.
Display the entities and visualizations in policy space. Calls screen
Display a sequence of images of policy space at 1/3 size.
A base class for ViewEntitiesOne and ViewEntitiesSample.
ClickDrag handles mouse interactions with the entities on a screen. Switching modes changes which entities are moved. Also, events happen on the screen wrap.
Store option to show non-existing entities, ghosts.
Draw entities: voters, candidates, test voters.
Test votes aren’t part of sim. View calls sim’s cast vote functions to cast one vote as a test for visualization.
Draw entities: voters, candidates.
Draw visualization for one election.
Draw visualization for a sampling of elections.
Draw visualization for budgeting methods in an additional screen.
Visualize districts in an additional screen.
Some views call visualizations, viz’s.
Other views call entity drawing functions, which are in vizEntities.