@nativescript-community/ui-image 4.3.0 → 4.3.1

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,17 @@
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.1](https://github.com/nativescript-community/ui-image/compare/v4.3.0...v4.3.1) (2022-07-14)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **image:** make imageRotation work in ListView ([58913bd](https://github.com/nativescript-community/ui-image/commit/58913bde275284ed704fac07b4154c11090bc7b9))
12
+
13
+
14
+
15
+
16
+
6
17
  # [4.3.0](https://github.com/nativescript-community/ui-image/compare/v4.2.1...v4.3.0) (2022-07-13)
7
18
 
8
19
 
package/index.android.js CHANGED
@@ -772,24 +772,24 @@ function getScaleType(scaleType) {
772
772
  if (isString(scaleType)) {
773
773
  switch (scaleType) {
774
774
  case ScaleType.Center:
775
- return com.nativescript.image.ScalingUtils.ScaleType.CENTER;
775
+ return new com.nativescript.image.ScalingUtils.ScaleTypeCenter();
776
776
  case ScaleType.AspectFill:
777
777
  case ScaleType.CenterCrop:
778
- return com.nativescript.image.ScalingUtils.ScaleType.CENTER_CROP;
778
+ return new com.nativescript.image.ScalingUtils.ScaleTypeCenterCrop();
779
779
  case ScaleType.CenterInside:
780
- return com.nativescript.image.ScalingUtils.ScaleType.CENTER_INSIDE;
780
+ return new com.nativescript.image.ScalingUtils.ScaleTypeCenterInside();
781
781
  case ScaleType.FitCenter:
782
782
  case ScaleType.AspectFit:
783
- return com.nativescript.image.ScalingUtils.ScaleType.FIT_CENTER;
783
+ return new com.nativescript.image.ScalingUtils.ScaleTypeFitCenter();
784
784
  case ScaleType.FitEnd:
785
- return com.nativescript.image.ScalingUtils.ScaleType.FIT_END;
785
+ return new com.nativescript.image.ScalingUtils.ScaleTypeFitEnd();
786
786
  case ScaleType.FitStart:
787
- return com.nativescript.image.ScalingUtils.ScaleType.FIT_START;
787
+ return new com.nativescript.image.ScalingUtils.ScaleTypeFitStart();
788
788
  case ScaleType.Fill:
789
789
  case ScaleType.FitXY:
790
- return com.nativescript.image.ScalingUtils.ScaleType.FIT_XY;
790
+ return new com.nativescript.image.ScalingUtils.ScaleTypeFitXY();
791
791
  case ScaleType.FocusCrop:
792
- return com.nativescript.image.ScalingUtils.ScaleType.FOCUS_CROP;
792
+ return new com.nativescript.image.ScalingUtils.ScaleTypeFocusCrop();
793
793
  default:
794
794
  break;
795
795
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nativescript-community/ui-image",
3
- "version": "4.3.0",
3
+ "version": "4.3.1",
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": "33aa9b9b923101c0c3f37f22a3ebaf245d6aa91e"
47
+ "gitHead": "e2ed0158295a64271550f8598a95b65384df0a75"
48
48
  }
@@ -173,7 +173,7 @@ public class ScalingUtils {
173
173
  float scaleY);
174
174
  }
175
175
 
176
- private static class ScaleTypeFitXY extends AbstractScaleType {
176
+ public static class ScaleTypeFitXY extends AbstractScaleType {
177
177
 
178
178
  public static final com.facebook.drawee.drawable.ScalingUtils.ScaleType INSTANCE = new ScaleTypeFitXY();
179
179
 
@@ -199,7 +199,7 @@ public class ScalingUtils {
199
199
  }
200
200
  }
201
201
 
202
- private static class ScaleTypeFitStart extends AbstractScaleType {
202
+ public static class ScaleTypeFitStart extends AbstractScaleType {
203
203
 
204
204
  public static final com.facebook.drawee.drawable.ScalingUtils.ScaleType INSTANCE = new ScaleTypeFitStart();
205
205
 
@@ -226,7 +226,7 @@ public class ScalingUtils {
226
226
  }
227
227
  }
228
228
 
229
- private static class ScaleTypeFitBottomStart extends AbstractScaleType {
229
+ public static class ScaleTypeFitBottomStart extends AbstractScaleType {
230
230
 
231
231
  public static final com.facebook.drawee.drawable.ScalingUtils.ScaleType INSTANCE = new ScaleTypeFitBottomStart();
232
232
 
@@ -253,7 +253,7 @@ public class ScalingUtils {
253
253
  }
254
254
  }
255
255
 
256
- private static class ScaleTypeFitCenter extends AbstractScaleType {
256
+ public static class ScaleTypeFitCenter extends AbstractScaleType {
257
257
 
258
258
  public static final com.facebook.drawee.drawable.ScalingUtils.ScaleType INSTANCE = new ScaleTypeFitCenter();
259
259
 
@@ -280,7 +280,7 @@ public class ScalingUtils {
280
280
  }
281
281
  }
282
282
 
283
- private static class ScaleTypeFitEnd extends AbstractScaleType {
283
+ public static class ScaleTypeFitEnd extends AbstractScaleType {
284
284
 
285
285
  public static final com.facebook.drawee.drawable.ScalingUtils.ScaleType INSTANCE = new ScaleTypeFitEnd();
286
286
 
@@ -307,7 +307,7 @@ public class ScalingUtils {
307
307
  }
308
308
  }
309
309
 
310
- private static class ScaleTypeCenter extends AbstractScaleType {
310
+ public static class ScaleTypeCenter extends AbstractScaleType {
311
311
 
312
312
  public static final com.facebook.drawee.drawable.ScalingUtils.ScaleType INSTANCE = new ScaleTypeCenter();
313
313
 
@@ -332,7 +332,7 @@ public class ScalingUtils {
332
332
  }
333
333
  }
334
334
 
335
- private static class ScaleTypeCenterInside extends AbstractScaleType {
335
+ public static class ScaleTypeCenterInside extends AbstractScaleType {
336
336
 
337
337
  public static final com.facebook.drawee.drawable.ScalingUtils.ScaleType INSTANCE = new ScaleTypeCenterInside();
338
338
 
@@ -359,7 +359,7 @@ public class ScalingUtils {
359
359
  }
360
360
  }
361
361
 
362
- private static class ScaleTypeCenterCrop extends AbstractScaleType {
362
+ public static class ScaleTypeCenterCrop extends AbstractScaleType {
363
363
 
364
364
  public static final com.facebook.drawee.drawable.ScalingUtils.ScaleType INSTANCE = new ScaleTypeCenterCrop();
365
365
 
@@ -393,7 +393,7 @@ public class ScalingUtils {
393
393
  }
394
394
  }
395
395
 
396
- private static class ScaleTypeFocusCrop extends AbstractScaleType {
396
+ public static class ScaleTypeFocusCrop extends AbstractScaleType {
397
397
 
398
398
  public static final com.facebook.drawee.drawable.ScalingUtils.ScaleType INSTANCE = new ScaleTypeFocusCrop();
399
399
 
@@ -429,7 +429,7 @@ public class ScalingUtils {
429
429
  }
430
430
  }
431
431
 
432
- private static class ScaleTypeFitX extends AbstractScaleType {
432
+ public static class ScaleTypeFitX extends AbstractScaleType {
433
433
 
434
434
  public static final com.facebook.drawee.drawable.ScalingUtils.ScaleType INSTANCE = new ScaleTypeFitX();
435
435
 
@@ -457,7 +457,7 @@ public class ScalingUtils {
457
457
  }
458
458
  }
459
459
 
460
- private static class ScaleTypeFitY extends AbstractScaleType {
460
+ public static class ScaleTypeFitY extends AbstractScaleType {
461
461
 
462
462
  public static final com.facebook.drawee.drawable.ScalingUtils.ScaleType INSTANCE = new ScaleTypeFitY();
463
463
 
Binary file