mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
refactor: export list of valid css animation properties (#5114)
This commit is contained in:
@@ -125,6 +125,10 @@ export class CssAnimationProperty<T extends Style, U> {
|
||||
* @private
|
||||
*/
|
||||
public static _getByCssName(name: string): CssAnimationProperty<any, any>;
|
||||
/**
|
||||
* @private
|
||||
*/
|
||||
public static _getPropertyNames(): string[];
|
||||
}
|
||||
|
||||
export function initNativeView(view: ViewBase): void;
|
||||
|
||||
@@ -829,6 +829,10 @@ export class CssAnimationProperty<T extends Style, U> 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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user