FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

fix(animations): remove default getters for tranform properties (#4286) · NativeScript/NativeScript@26e2748 · GitHub

Commit 26e2748

Browse files
authored
fix(animations): remove default getters for tranform properties (#4286)
1 parent 44b4afa commit 26e2748

1 file changed

Lines changed: 0 additions & 19 deletions

File tree

‎tns-core-modules/ui/core/view/view.android.ts‎

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -394,37 +394,22 @@ export class View extends ViewCommon {
394394
}
395395
}
396396

397-
[rotateProperty.getDefault](): number {
398-
return org.nativescript.widgets.ViewHelper.getRotate(this.nativeView);
399-
}
400397
[rotateProperty.setNative](value: number) {
401398
org.nativescript.widgets.ViewHelper.setRotate(this.nativeView, float(value));
402399
}
403400

404-
[scaleXProperty.getDefault](): number {
405-
return org.nativescript.widgets.ViewHelper.getScaleX(this.nativeView);
406-
}
407401
[scaleXProperty.setNative](value: number) {
408402
org.nativescript.widgets.ViewHelper.setScaleX(this.nativeView, float(value));
409403
}
410404

411-
[scaleYProperty.getDefault](): number {
412-
return org.nativescript.widgets.ViewHelper.getScaleY(this.nativeView);
413-
}
414405
[scaleYProperty.setNative](value: number) {
415406
org.nativescript.widgets.ViewHelper.setScaleY(this.nativeView, float(value));
416407
}
417408

418-
[translateXProperty.getDefault](): dip {
419-
return layout.toDeviceIndependentPixels(org.nativescript.widgets.ViewHelper.getTranslateX(this.nativeView));
420-
}
421409
[translateXProperty.setNative](value: dip) {
422410
org.nativescript.widgets.ViewHelper.setTranslateX(this.nativeView, layout.toDevicePixels(value));
423411
}
424412

425-
[translateYProperty.getDefault](): dip {
426-
return layout.toDeviceIndependentPixels(org.nativescript.widgets.ViewHelper.getTranslateY(this.nativeView));
427-
}
428413
[translateYProperty.setNative](value: dip) {
429414
org.nativescript.widgets.ViewHelper.setTranslateY(this.nativeView, layout.toDevicePixels(value));
430415
}
@@ -434,10 +419,6 @@ export class View extends ViewCommon {
434419
}
435420
[zIndexProperty.setNative](value: number) {
436421
org.nativescript.widgets.ViewHelper.setZIndex(this.nativeView, value);
437-
// let nativeView = this.nativeView;
438-
// if (nativeView instanceof android.widget.Button) {
439-
// nativeView.setStateListAnimator(null);
440-
// }
441422
}
442423

443424
[backgroundInternalProperty.getDefault](): android.graphics.drawable.Drawable {

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL