mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
fix: add css-agent declarations (#4361)
* fix: add css-agent declarations * fix: remove css-agent ts
This commit is contained in:
committed by
Alexander Vakrilov
parent
08af2efe0c
commit
c62e79e17b
59
tns-core-modules/debugger/css-agent.d.ts
vendored
Normal file
59
tns-core-modules/debugger/css-agent.d.ts
vendored
Normal file
@@ -0,0 +1,59 @@
|
||||
export interface CSSProperty {
|
||||
name: string;
|
||||
value: string;
|
||||
disabled: boolean;
|
||||
}
|
||||
export interface ShorthandEntry {
|
||||
name: string;
|
||||
value: string;
|
||||
}
|
||||
export interface CSSStyle {
|
||||
cssProperties: CSSProperty[];
|
||||
shorthandEntries: ShorthandEntry[];
|
||||
cssText?: string;
|
||||
}
|
||||
export interface Value {
|
||||
text: string;
|
||||
}
|
||||
export interface SelectorList {
|
||||
selectors: Value[];
|
||||
text: string;
|
||||
}
|
||||
export interface CSSRule {
|
||||
selectorList: SelectorList;
|
||||
origin: string;
|
||||
style: CSSStyle;
|
||||
styleSheetId?: string;
|
||||
}
|
||||
export interface RuleMatch {
|
||||
rule: CSSRule;
|
||||
matchingSelectors: number[];
|
||||
}
|
||||
export interface InheritedStyleEntry {
|
||||
matchedCSSRules: RuleMatch[];
|
||||
inlineStyle?: CSSStyle;
|
||||
}
|
||||
export interface CSSComputedStyleProperty {
|
||||
name: string;
|
||||
value: string;
|
||||
}
|
||||
export interface PlatformFontUsage {
|
||||
familyName: string;
|
||||
glyphCount: number;
|
||||
isCustomFont: boolean;
|
||||
}
|
||||
export interface CSSStyleSheetHeader {
|
||||
styleSheetId: string;
|
||||
frameId: string;
|
||||
sourceUrl: string;
|
||||
origin: string;
|
||||
title: string;
|
||||
disabled: boolean;
|
||||
isInLine: boolean;
|
||||
startLine: number;
|
||||
startColumn: number;
|
||||
}
|
||||
export interface PseudoElementMatches {
|
||||
pseudoType: string;
|
||||
matches: RuleMatch[];
|
||||
}
|
||||
Reference in New Issue
Block a user