From 53923d34f9dacf31787f960cc2361f92358f5cf4 Mon Sep 17 00:00:00 2001 From: Stanimira Vlaeva Date: Mon, 4 Dec 2017 23:41:39 -0800 Subject: [PATCH] refactor: export list of valid css animation properties (#5114) --- tns-core-modules/ui/core/properties/properties.d.ts | 4 ++++ tns-core-modules/ui/core/properties/properties.ts | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/tns-core-modules/ui/core/properties/properties.d.ts b/tns-core-modules/ui/core/properties/properties.d.ts index 33adfae64..a6f9f50a7 100644 --- a/tns-core-modules/ui/core/properties/properties.d.ts +++ b/tns-core-modules/ui/core/properties/properties.d.ts @@ -125,6 +125,10 @@ export class CssAnimationProperty { * @private */ public static _getByCssName(name: string): CssAnimationProperty; + /** + * @private + */ + public static _getPropertyNames(): string[]; } export function initNativeView(view: ViewBase): void; diff --git a/tns-core-modules/ui/core/properties/properties.ts b/tns-core-modules/ui/core/properties/properties.ts index d2df3ef75..bdf4a1a93 100644 --- a/tns-core-modules/ui/core/properties/properties.ts +++ b/tns-core-modules/ui/core/properties/properties.ts @@ -829,6 +829,10 @@ export class CssAnimationProperty implements definitions.Css return this.properties[name]; } + public static _getPropertyNames(): string[] { + return Object.keys(CssAnimationProperty.properties); + } + public isSet(instance: T): boolean { return instance[this.source] !== ValueSource.Default; }