@nativescript-community/ui-image 4.3.18 → 4.3.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
@@ -3,6 +3,12 @@
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
5
5
|
|
6
|
+
## [4.3.19](https://github.com/nativescript-community/ui-image/compare/v4.3.18...v4.3.19) (2023-10-10)
|
7
|
+
|
8
|
+
### Bug Fixes
|
9
|
+
|
10
|
+
* **android:** imageRotation fix for negative values ([45ebf54](https://github.com/nativescript-community/ui-image/commit/45ebf54ff472829f74a336bb8d6511ad53c453d7))
|
11
|
+
|
6
12
|
## [4.3.18](https://github.com/nativescript-community/ui-image/compare/v4.3.17...v4.3.18) (2023-10-09)
|
7
13
|
|
8
14
|
**Note:** Version bump only for package @nativescript-community/ui-image
|
package/index.d.ts
CHANGED
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@nativescript-community/ui-image",
|
3
|
-
"version": "4.3.
|
3
|
+
"version": "4.3.19",
|
4
4
|
"description": "Advanced and efficient image display plugin which uses Fresco (Android) and SDWebImage (iOS) to implement caching, placeholders, image effects, and much more.",
|
5
5
|
"main": "./index",
|
6
6
|
"sideEffects": false,
|
@@ -44,5 +44,5 @@
|
|
44
44
|
},
|
45
45
|
"license": "Apache-2.0",
|
46
46
|
"readmeFilename": "README.md",
|
47
|
-
"gitHead": "
|
47
|
+
"gitHead": "ae8d3a7db18627516d125198f1958bddc90b023b"
|
48
48
|
}
|
@@ -144,7 +144,8 @@ public class ScalingUtils {
|
|
144
144
|
float focusY) {
|
145
145
|
float sX = (float) parentRect.width() / (float) childWidth;
|
146
146
|
float sY = (float) parentRect.height() / (float) childHeight;
|
147
|
-
|
147
|
+
// add 360 to ensure we get positive value
|
148
|
+
float rotationDelta = (90 - ((_imageRotation + 360) % 180))/90.0f;
|
148
149
|
if (rotationDelta != 1) {
|
149
150
|
float destSX = (float) parentRect.width() / (float) childHeight;
|
150
151
|
float destSY = (float) parentRect.height() / (float) childWidth;
|
Binary file
|