From 09f0e7a3973be41b9588a094256aa7a9b005eec7 Mon Sep 17 00:00:00 2001 From: Ammar Ahmed <40239442+ammarahm-ed@users.noreply.github.com> Date: Thu, 9 Oct 2025 11:29:28 +0500 Subject: [PATCH 1/3] docs: correct event type in accessibilityDecrement event documentation (#10897) --- packages/core/ui/button/index.d.ts | 2 +- packages/core/ui/slider/index.d.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/core/ui/button/index.d.ts b/packages/core/ui/button/index.d.ts index 57eee0edc..0515a19c4 100644 --- a/packages/core/ui/button/index.d.ts +++ b/packages/core/ui/button/index.d.ts @@ -10,7 +10,7 @@ export class Button extends TextBase { /** * String value used when hooking to tap event. * - * @nsEvent {EventData} string; + * @nsEvent {EventData} tap */ public static tapEvent: string; diff --git a/packages/core/ui/slider/index.d.ts b/packages/core/ui/slider/index.d.ts index bd3cc9a6c..a23e20769 100644 --- a/packages/core/ui/slider/index.d.ts +++ b/packages/core/ui/slider/index.d.ts @@ -18,7 +18,7 @@ export class Slider extends View { /** * String value used when hooking to accessibilityDecrement event. * - * @nsEvent {accessibilityDecrementEvent} accessibilityDecrement + * @nsEvent {AccessibilityDecrementEventData} accessibilityDecrement */ static readonly accessibilityDecrementEvent = 'accessibilityDecrement'; From 5f14845b27deb06ca1f2e55e291f2ba936acca2a Mon Sep 17 00:00:00 2001 From: Samuel Schultze Date: Mon, 13 Oct 2025 18:43:32 -0300 Subject: [PATCH 2/3] fix(android): proper image view scaling for ScaleTypes.CENTER (#10899) --- .../main/java/org/nativescript/widgets/ImageView.java | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/packages/ui-mobile-base/android/widgets/src/main/java/org/nativescript/widgets/ImageView.java b/packages/ui-mobile-base/android/widgets/src/main/java/org/nativescript/widgets/ImageView.java index 4996b0f54..81c7de963 100644 --- a/packages/ui-mobile-base/android/widgets/src/main/java/org/nativescript/widgets/ImageView.java +++ b/packages/ui-mobile-base/android/widgets/src/main/java/org/nativescript/widgets/ImageView.java @@ -364,6 +364,17 @@ public class ImageView extends androidx.appcompat.widget.AppCompatImageView impl float uniformScale; float pivotX, pivotY; switch (this.getScaleType()) { + case CENTER: + uniformScale = 1; + matrix.postTranslate((innerWidth - bitmapWidth) / 2, (innerHeight - bitmapHeight) / 2); + matrix.postScale(uniformScale, uniformScale, innerWidth / 2, innerHeight / 2); + canvas.clipRect( + borderLeftWidth + (innerWidth - bitmapWidth * uniformScale) / 2, + borderTopWidth + (innerHeight - bitmapHeight * uniformScale) / 2, + borderLeftWidth + (innerWidth + bitmapWidth * uniformScale) / 2, + borderTopWidth + (innerHeight + bitmapHeight * uniformScale) / 2 + ); + break; case FIT_CENTER: // aspectFit uniformScale = Math.min(fittingScaleX, fittingScaleY); matrix.postTranslate((innerWidth - bitmapWidth) / 2, (innerHeight - bitmapHeight) / 2); From e1ff2982e8855d6a77486b6d0233fec67ac32eca Mon Sep 17 00:00:00 2001 From: Nathan Walker Date: Wed, 29 Oct 2025 09:30:10 -0700 Subject: [PATCH 3/3] fix: animation types --- packages/core/ui/animation/index.d.ts | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/packages/core/ui/animation/index.d.ts b/packages/core/ui/animation/index.d.ts index 602a61bcc..eb610adc6 100644 --- a/packages/core/ui/animation/index.d.ts +++ b/packages/core/ui/animation/index.d.ts @@ -1,3 +1,16 @@ export type { Pair, Transformation, TransformationType, TransformationValue, TransformFunctionsInfo, Point3D, AnimationPromise, Cancelable } from './animation-types'; -export { Animation, _resolveAnimationCurve } from './animation'; export { KeyframeAnimation, KeyframeAnimationInfo, KeyframeDeclaration, KeyframeInfo } from './keyframe-animation'; +import type { AnimationDefinition, AnimationPromise } from './animation-types'; + +/** + * Defines a animation set. + */ +export class Animation { + constructor(animationDefinitions: Array, playSequentially?: boolean); + public play: (resetOnFinish?: boolean) => AnimationPromise; + public cancel: () => void; + public isPlaying: boolean; + public _resolveAnimationCurve(curve: any): any; +} + +export function _resolveAnimationCurve(curve: any): any;