chore: better trace handling around css

This commit is contained in:
Nathan Walker
2021-03-28 14:39:02 -07:00
parent b50a2e618f
commit 8cd1872ef7
3 changed files with 7 additions and 5 deletions

View File

@@ -3,7 +3,7 @@
"main": "index",
"types": "index.d.ts",
"description": "NativeScript Core Modules",
"version": "8.0.0-alpha.8",
"version": "8.0.0-alpha.9",
"homepage": "https://nativescript.org",
"repository": {
"type": "git",

View File

@@ -24,8 +24,8 @@ export interface ShadeCoverOptions {
color?: string;
tapToClose?: boolean;
animation?: {
enterFrom?: TransitionAnimation; // these will only be applied if its the first one to be opened
exitTo?: TransitionAnimation; // these will only be applied if its the last one to be closed
enterFrom?: TransitionAnimation; // only applied if first one to be opened
exitTo?: TransitionAnimation; // only applied if last one to be closed
};
ignoreShadeRestore?: boolean;
}
@@ -38,5 +38,5 @@ export interface TransitionAnimation {
rotate?: number; // in degrees
opacity?: number;
duration?: number; // in milliseconds
curve?: any; // TODO: type collisision branch fixes this! AnimationCurve;
curve?: any; // CoreTypes.AnimationCurve (string, cubicBezier, etc.)
}

View File

@@ -207,7 +207,9 @@ class CSSSource {
this._selectors = [];
}
} catch (e) {
Trace.write('Css styling failed: ' + e, Trace.categories.Error, Trace.messageType.error);
if (Trace.isEnabled()) {
Trace.write('Css styling failed: ' + e, Trace.categories.Style, Trace.messageType.error);
}
this._selectors = [];
}
}