Package-level declarations

Types

Link copied to clipboard

What a DrawMode.Combine does with the polygon that is tapped second.

Link copied to clipboard

Which kind of shape is being drawn. Needed while a shape is still in progress (see DrawMode.Draw) — before enough points exist to construct a real com.tcsappdev.worldwinddraw.core.geometry.DrawnPolygon, com.tcsappdev.worldwinddraw.core.geometry.DrawnPolyline, or com.tcsappdev.worldwinddraw.core.geometry.DrawnMarker, there is no com.tcsappdev.worldwinddraw.core.geometry.DrawableEntity instance yet to ask.

Link copied to clipboard
data class DrawEngineState(val mode: DrawMode = DrawMode.Idle)

An immutable snapshot of the draw engine's current interaction state. Does not hold the drawn shapes themselves — those live in a separate entity repository — only what mode the engine is in and that mode's associated data.

Link copied to clipboard
sealed interface DrawEvent

A user interaction, translated from whatever input system the host app uses (e.g. WWK pick/gesture callbacks in wwk-adapter) into a form DrawEngineReducer can act on without knowing anything about that platform.

Link copied to clipboard
sealed interface DrawMode

The interaction mode the draw engine is currently in. Sealed so every place that branches on mode (the reducer, and eventually the host UI) is guaranteed by the compiler to handle every case — adding a new mode later surfaces every place that needs updating as a compile error.

Link copied to clipboard
class DrawStateMachine(historyManager: HistoryManager, entityRepository: EntityRepository, overlay: OverlayEngine? = null)

Holds the draw engine's live DrawEngineState and exposes it reactively via state.