2022-12-24 22:59:33 +03:00
|
|
|
package center.sciprog.maps.features
|
|
|
|
|
|
|
|
import androidx.compose.ui.input.pointer.PointerEvent
|
|
|
|
import androidx.compose.ui.unit.DpSize
|
|
|
|
|
|
|
|
public data class ViewConfig<T : Any>(
|
2022-12-25 14:33:31 +03:00
|
|
|
val zoomSpeed: Float = 1f / 3f,
|
2022-12-24 22:59:33 +03:00
|
|
|
val onClick: ViewPoint<T>.(PointerEvent) -> Unit = {},
|
|
|
|
val dragHandle: DragHandle<T> = DragHandle.bypass(),
|
|
|
|
val onViewChange: ViewPoint<T>.() -> Unit = {},
|
|
|
|
val onSelect: (Rectangle<T>) -> Unit = {},
|
|
|
|
val zoomOnSelect: Boolean = true,
|
|
|
|
val onCanvasSizeChange: (DpSize) -> Unit = {},
|
|
|
|
)
|