Module mapspace

Source

Modules§

unzoomed 🔒
world 🔒

Structs§

DrawCustomUnzoomedShapes
Draw custom objects that scale their size as the canvas is zoomed.
DrawUnzoomedShapes
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.
DummyID
If you don’t ever need to refer to objects in a World, you can auto-assign dummy IDs.
PerZoom
ToggleZoomed
Draws one of two versions of something, based on whether the canvas is zoomed in past a threshold.
ToggleZoomedBuilder
World
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§

WorldOutcome
The result of a World handling an event

Traits§

ObjectID
Objects in a World are uniquely identified by this caller-specified type