8000 refactor: export list of valid css animation properties (#5114) · ArduinoMinas/NativeScript@53923d3 · GitHub
[go: up one dir, main page]

Skip to content

Commit 53923d3

Browse files
authored
refactor: export list of valid css animation properties (NativeScript#5114)
1 parent cb4691b commit 53923d3

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

tns-core-modules/ui/core/properties/properties.d.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,10 @@ export class CssAnimationProperty<T extends Style, U> {
125125
* @private
126126
*/
127127
public static _getByCssName(name: string): CssAnimationProperty<any, any>;
128+
/**
129+
* @private
130+
*/
131+
public static _getPropertyNames(): string[];
128132
}
129133

130134
export function initNativeView(view: ViewBase): void;

tns-core-modules/ui/core/properties/properties.ts

Lines changed: 4 additions & 0 deletions
835
Original file line numberDiff line numberDiff line change
@@ -829,6 +829,10 @@ export class CssAnimationProperty<T extends Style, U> implements definitions.Css
829829
return this.properties[name];
830830
}
831831

832+
public static _getPropertyNames(): string[] {
833+
return Object.keys(CssAnimationProperty.properties);
834+
}
+
832836
public isSet(instance: T): boolean {
833837
return instance[this.source] !== ValueSource.Default;
834838
}

0 commit comments

Comments
 (0)
0