Skip to content

Commit c6fe9d9

Browse files
committed
Prepare to release v0.14.0
1 parent ff4fc5b commit c6fe9d9

File tree

4 files changed

+25
-17
lines changed

4 files changed

+25
-17
lines changed

docs/zoomable/index.md

+12-10
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,18 @@
11
# Modifier.zoomable()
22

3-
A `Modifier` for handling pan & zoom gestures, designed to be shared across all your media composables so that your users can use the same familiar gestures throughout your app. It offers,
3+
A `Modifier` for handling pan & zoom gestures, designed to be shared across all your media composables so that your users can use the same familiar gestures throughout your app.
44

5-
- Pinch to zoom and flings
6-
- Double click to zoom
7-
- Single finger zoom (double click and hold)
8-
- Haptic feedback for over/under zoom
5+
**Features**
6+
7+
- Gestures:
8+
- Pinch-to-zoom and flings
9+
- Double click to zoom
10+
- Single finger zoom (double-tap and hold)
11+
- Haptic feedback when reaching zoom limits
912
- Compatibility with nested scrolling
1013
- Click listeners
1114
- [Keyboard and mouse shortcuts](#keyboard-shortcuts)
15+
- State preservation across config changes (including screen rotations)
1216

1317
### Installation
1418

@@ -42,11 +46,9 @@ For preventing your content from over-zooming or over-panning, `Modifier.zoomabl
4246
For richer content such as an `Image()` whose _visual_ size may not always match its layout size, `Modifier.zoomable()` will need your assistance.
4347

4448
```kotlin hl_lines="5-7"
45-
val state = rememberZoomableState()
4649
val painter = resourcePainter(R.drawable.example)
47-
48-
LaunchedEffect(painter.intrinsicSize) {
49-
state.setContentLocation(
50+
val zoomableState = rememberZoomableState().apply {
51+
setContentLocation(
5052
ZoomableContentLocation.scaledInsideAndCenterAligned(painter.intrinsicSize)
5153
)
5254
}
@@ -55,7 +57,7 @@ Image(
5557
modifier = Modifier
5658
.fillMaxSize()
5759
.background(Color.Orange)
58-
.zoomable(state),
60+
.zoomable(zoomableState),
5961
painter = painter,
6062
contentDescription = …,
6163
contentScale = ContentScale.Inside,

docs/zoomableimage/index.md

+11-5
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,26 @@ A _drop-in_ replacement for async `Image()` composables featuring support for pa
66

77
**Features**
88

9-
- [Sub-sampling](sub-sampling.md) of bitmaps
10-
- Pinch to zoom and flings
11-
- Double click to zoom
12-
- Single finger zoom (double click and hold)
13-
- Haptic feedback for over/under zoom
9+
- Automatic [Sub-sampling](sub-sampling.md) of bitmaps
10+
- Gestures:
11+
- Pinch-to-zoom and flings
12+
- Double click to zoom
13+
- Single finger zoom (double-tap and hold)
14+
- Haptic feedback when reaching zoom limits
1415
- Compatibility with nested scrolling
1516
- Click listeners
1617
- [Keyboard and mouse shortcuts](#keyboard-shortcuts)
18+
- State preservation across config changes (including screen rotations)
1719

1820
### Installation
1921

2022
=== "Coil"
2123
```groovy
24+
// For Coil 2.x
2225
implementation("me.saket.telephoto:zoomable-image-coil:{{ versions.telephoto }}")
26+
27+
// For Coil 3.x
28+
implementation("me.saket.telephoto:zoomable-image-coil3:{{ versions.telephoto }}")
2329
```
2430
=== "Glide"
2531
```groovy

gradle.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ android.enableBuildConfigAsBytecode=true
1111
android.experimental.androidTest.enableEmulatorControl=true
1212

1313
GROUP=me.saket.telephoto
14-
VERSION_NAME=0.14.0-SNAPSHOT
14+
VERSION_NAME=0.14.0
1515

1616
SONATYPE_HOST=DEFAULT
1717
RELEASE_SIGNING_ENABLED=true

mkdocs.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ plugins:
6565

6666
extra:
6767
versions:
68-
telephoto: '0.13.0' # Env var for the latest version on maven.
68+
telephoto: '0.14.0' # Env var for the latest version on maven.
6969

7070
nav:
7171
- 'Overview': index.md

0 commit comments

Comments
 (0)