Skip to content

Commit 60442bb

Browse files
add ZoomData
1 parent 49aa9d3 commit 60442bb

File tree

2 files changed

+14
-11
lines changed

2 files changed

+14
-11
lines changed

image/src/main/java/com/smarttoolfactory/image/zoom/Zoom.kt

Lines changed: 0 additions & 11 deletions
This file was deleted.
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
package com.smarttoolfactory.image.zoom
2+
3+
import androidx.compose.runtime.Immutable
4+
import androidx.compose.ui.geometry.Offset
5+
6+
/**
7+
* class that contains current zoom, pan and rotation information
8+
*/
9+
@Immutable
10+
data class ZoomData(
11+
val zoom: Float = 1f,
12+
val pan: Offset = Offset.Zero,
13+
val rotation: Float = 0f
14+
)

0 commit comments

Comments
 (0)