@nativescript-community/ui-image 4.3.29 → 4.3.30

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.30](https://github.com/nativescript-community/ui-image/compare/v4.3.29...v4.3.30) (2024-02-16)
7
+
8
+ ### Bug Fixes
9
+
10
+ * allow only decodeWidth or decodeHeight to be specified ([6062459](https://github.com/nativescript-community/ui-image/commit/60624598e9226bedaebe682cfdb0219235fcb36d))
11
+
6
12
  ## [4.3.29](https://github.com/nativescript-community/ui-image/compare/v4.3.28...v4.3.29) (2024-02-02)
7
13
 
8
14
  ### Bug Fixes
package/index.ios.js CHANGED
@@ -402,7 +402,7 @@ export class Img extends ImageBase {
402
402
  }
403
403
  if (this.decodeWidth || this.decodeHeight) {
404
404
  //@ts-ignore
405
- transformers.push(NSImageDecodeSizeTransformer.transformerWithDecodeWidthDecodeHeight(this.decodeWidth, this.decodeHeight));
405
+ transformers.push(NSImageDecodeSizeTransformer.transformerWithDecodeWidthDecodeHeight(this.decodeWidth || this.decodeHeight, this.decodeHeight || this.decodeWidth));
406
406
  }
407
407
  if (this.tintColor) {
408
408
  transformers.push(SDImageTintTransformer.transformerWithColor(this.tintColor.ios));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nativescript-community/ui-image",
3
- "version": "4.3.29",
3
+ "version": "4.3.30",
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,
@@ -36,5 +36,5 @@
36
36
  },
37
37
  "license": "Apache-2.0",
38
38
  "readmeFilename": "README.md",
39
- "gitHead": "0940ba815f6f11c1b94f13050689e4e1d472855a"
39
+ "gitHead": "95005c4a9c0c019f01ea8ae88e87a80745507f49"
40
40
  }
@@ -288,8 +288,8 @@ public class DraweeView extends SimpleDraweeView {
288
288
  int decodeWidth = object.optInt("decodeWidth");
289
289
  int decodeHeight = object.optInt("decodeHeight");
290
290
 
291
- if (decodeWidth > 0 && decodeHeight > 0) {
292
- requestBuilder = requestBuilder.setResizeOptions(new com.facebook.imagepipeline.common.ResizeOptions(decodeWidth, decodeHeight));
291
+ if (decodeWidth > 0 || decodeHeight > 0) {
292
+ requestBuilder = requestBuilder.setResizeOptions(new com.facebook.imagepipeline.common.ResizeOptions(decodeWidth > 0 ? decodeWidth : decodeHeight, decodeHeight > 0 ? decodeHeight : decodeWidth));
293
293
  }
294
294
  int blurRadius = object.optInt("blurRadius", 0);
295
295
  if (blurRadius > 0) {
Binary file
@@ -1,24 +0,0 @@
1
- {
2
- "name": "@nativescript-community/ui-image-angular",
3
- "main": "index.js",
4
- "module": "fesm2022/nativescript-community-ui-image-angular.mjs",
5
- "typings": "index.d.ts",
6
- "exports": {
7
- "./package.json": {
8
- "default": "./package.json"
9
- },
10
- ".": {
11
- "types": "./index.d.ts",
12
- "esm2022": "./esm2022/nativescript-community-ui-image-angular.mjs",
13
- "esm": "./esm2022/nativescript-community-ui-image-angular.mjs",
14
- "default": "./fesm2022/nativescript-community-ui-image-angular.mjs"
15
- }
16
- },
17
- "sideEffects": false,
18
- "dependencies": {
19
- "tslib": "^2.3.0"
20
- },
21
- "scripts": {
22
- "prepublishOnly": "node --eval \"console.error('ERROR: Trying to publish a package that has been compiled by Ivy in full compilation mode. This is not allowed.\\nPlease delete and rebuild the package with Ivy partial compilation mode, before attempting to publish.\\n')\" && exit 1"
23
- }
24
- }
package/vue/index.mjs DELETED
@@ -1,8 +0,0 @@
1
- import { Img } from '../image';
2
- const ImagePlugin = {
3
- install(Vue) {
4
- Vue.registerElement('NSImg', () => Img);
5
- }
6
- };
7
- export default ImagePlugin;
8
- //# sourceMappingURL=index.mjs.map