ViewConfig
data class ViewConfig<T : Any>(val zoomSpeed: Float = 1f / 3f, val onClick: MouseListener<T>? = null, val dragHandle: DragHandle<T>? = null, val onViewChange: ViewPoint<T>.() -> Unit = {}, val onSelect: (Rectangle<T>) -> Unit = {}, val onCanvasSizeChange: (DpSize) -> Unit = {}, val zoomOnSelect: Boolean = true, val zoomOnDoubleClick: Boolean = true)
Constructors
Link copied to clipboard
constructor(zoomSpeed: Float = 1f / 3f, onClick: MouseListener<T>? = null, dragHandle: DragHandle<T>? = null, onViewChange: ViewPoint<T>.() -> Unit = {}, onSelect: (Rectangle<T>) -> Unit = {}, onCanvasSizeChange: (DpSize) -> Unit = {}, zoomOnSelect: Boolean = true, zoomOnDoubleClick: Boolean = true)