mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
chore: better trace handling around css
This commit is contained in:
@@ -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",
|
||||
|
||||
@@ -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.)
|
||||
}
|
||||
|
||||
@@ -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 = [];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user