Namespace EditorDecorationStyle
Functions
copyStyle
- copyStyle(from: CSSStyleDeclaration, to: CSSStyleDeclaration): void
-
Parameters
-
from: CSSStyleDeclaration
-
to: CSSStyleDeclaration
Returns void
createRule
- createRule(selector: string, styleProvider: (style: CSSStyleDeclaration) => void, styleSheet?: CSSStyleSheet | undefined): void
-
Parameters
-
selector: string
-
styleProvider: (style: CSSStyleDeclaration) => void
-
- (style: CSSStyleDeclaration): void
-
Parameters
-
style: CSSStyleDeclaration
Returns void
-
styleSheet: CSSStyleSheet | undefined = ...
Returns void
createStyleSheet
- createStyleSheet(container?: HTMLElement): CSSStyleSheet | undefined
-
Parameters
-
container: HTMLElement = ...
Returns CSSStyleSheet | undefined
deleteRule
- deleteRule(selector: string, styleSheet?: CSSStyleSheet | undefined): void
-
Parameters
-
selector: string
-
styleSheet: CSSStyleSheet | undefined = ...
Returns void