ui library

User interface library for rendering components and canvas management.

This library provides UI-specific components for map rendering, including tile management and canvas abstractions that work with Flutter's rendering system.

Key exports:

  • TilePicture: Manages rendered tile images and caching
  • UICanvas: Canvas abstraction for cross-platform rendering

Classes

DirectionVector
///////////////////////////////////////////////////////////////////////////// A helper class representing a directional vector between two points.
Offsets
///////////////////////////////////////////////////////////////////////////// A simple data class to hold a start and end offset.
ParagraphCacheMgr
A singleton manager for caching ui.Paragraph objects.
ParagraphEntry
////////////////////////////////////////////////////////////////////////// A wrapper around a ui.Paragraph object that represents a piece of laid-out text.
Pointinfo
///////////////////////////////////////////////////////////////////////////// A helper class that holds information about a point in a UiPath.
SymbolImage
A wrapper for a ui.Image that represents a bitmap symbol.
TilePicture
A container for either a ui.Picture (a recorded sequence of drawing commands) or a ui.Image (raw pixel data).
UiCanvas
Canvas abstraction for cross-platform rendering operations.
UiPaint
A wrapper around Flutter's ui.Paint to simplify paint configuration for map rendering.
UiPath
A wrapper around Flutter's ui.Path to simplify path creation and drawing for map rendering.
UiRect
A wrapper around Flutter's ui.Rect to provide additional utility methods.
UiRenderContext
A render context that holds all the necessary information for rendering a map tile.