screens/main/map/campus_map_room_labels library

Classes

CampusMapRoomLabelLayout
A centered, optionally rotated room label fitted to its projected outline.
CampusMapRoomLabels
Draws visible selected-floor labels with stable wrapping during map gestures.

Functions

layoutCampusMapRoomLabel({required List<List<Offset>> rings, required String number, required String name, required Color color, TextScaler textScaler = TextScaler.noScaling}) → CampusMapRoomLabelLayout
Fits number above name at a room's center, using projected pixel rings.