Module widgetry::mapspace [−][src]
Modules
Structs
Draw Circles
and PolyLines
in map-space that scale their size as the canvas is zoomed. The
goal is to appear with roughly constant screen-space size, but for the moment, this is
approximated by discretizing into 10 buckets. The scaling only happens when the canvas is
zoomed out less than a value of 1.0.
If you don’t ever need to refer to objects in a World
, you can auto-assign dummy IDs.
Draws one of two versions of something, based on whether the canvas is zoomed in past a threshold.
A World
manages objects that exist in “map-space”, the zoomable and pannable canvas. These
objects can be drawn, hovered on, clicked, dragged, etc.
Enums
The result of a World
handling an event
Traits
Objects in a World
are uniquely identified by this caller-specified type