@nativescript-community/ui-image 4.3.23 → 4.3.24
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 +4 -0
- package/index.ios.js +12 -3
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
@@ -3,6 +3,10 @@
|
|
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.24](https://github.com/nativescript-community/ui-image/compare/v4.3.23...v4.3.24) (2023-11-23)
|
7
|
+
|
8
|
+
**Note:** Version bump only for package @nativescript-community/ui-image
|
9
|
+
|
6
10
|
## [4.3.23](https://github.com/nativescript-community/ui-image/compare/v4.3.22...v4.3.23) (2023-11-22)
|
7
11
|
|
8
12
|
### Bug Fixes
|
package/index.ios.js
CHANGED
@@ -1,9 +1,9 @@
|
|
1
|
-
var _a, _b;
|
1
|
+
var _a, _b, _c;
|
2
2
|
export * from './index-common';
|
3
3
|
import { ImageAsset, ImageSource, Screen, Trace, Utils, knownFolders, path } from '@nativescript/core';
|
4
4
|
import { layout } from '@nativescript/core/utils/layout-helper';
|
5
5
|
import { isString } from '@nativescript/core/utils/types';
|
6
|
-
import { CLog, CLogTypes, EventData, ImageBase, ScaleType, failureImageUriProperty, placeholderImageUriProperty, srcProperty, stretchProperty } from './index-common';
|
6
|
+
import { CLog, CLogTypes, EventData, ImageBase, ScaleType, failureImageUriProperty, imageRotationProperty, placeholderImageUriProperty, srcProperty, stretchProperty } from './index-common';
|
7
7
|
export class ImageInfo {
|
8
8
|
constructor(width, height) {
|
9
9
|
this.width = width;
|
@@ -409,6 +409,9 @@ export class Img extends ImageBase {
|
|
409
409
|
//@ts-ignore
|
410
410
|
transformers.push(NSImageRoundAsCircleTransformer.transformer());
|
411
411
|
}
|
412
|
+
if (this.imageRotation !== 0 && !isNaN(this.imageRotation)) {
|
413
|
+
transformers.push(SDImageRotationTransformer.transformerWithAngleFitSize(this.imageRotation * (Math.PI / 180), true));
|
414
|
+
}
|
412
415
|
if (this.roundBottomLeftRadius || this.roundBottomRightRadius || this.roundTopLeftRadius || this.roundTopRightRadius) {
|
413
416
|
transformers.push(
|
414
417
|
//@ts-ignore
|
@@ -438,7 +441,10 @@ export class Img extends ImageBase {
|
|
438
441
|
[_a = srcProperty.setNative](value) {
|
439
442
|
this.initImage();
|
440
443
|
}
|
441
|
-
[_b =
|
444
|
+
[_b = imageRotationProperty.setNative](value) {
|
445
|
+
this.initImage();
|
446
|
+
}
|
447
|
+
[_c = placeholderImageUriProperty.setNative]() {
|
442
448
|
this.placeholderImage = this.getUIImage(this.placeholderImageUri);
|
443
449
|
this.initImage();
|
444
450
|
}
|
@@ -477,4 +483,7 @@ __decorate([
|
|
477
483
|
__decorate([
|
478
484
|
needRequestImage
|
479
485
|
], Img.prototype, _b, null);
|
486
|
+
__decorate([
|
487
|
+
needRequestImage
|
488
|
+
], Img.prototype, _c, null);
|
480
489
|
//# sourceMappingURL=index.ios.js.map
|
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.24",
|
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": "5ca4e8b22fa0dbcfa99812bb6f9782de39faa7c4"
|
48
48
|
}
|