UNPKG

758 BTypeScriptView Raw
1import { ViewBase } from '../ui/core/view-base';
2import { CSSComputedStyleProperty } from './css-agent';
3export declare function getNodeById(id: number): DOMNode;
4declare class WeakRef<T> {
5 constructor(obj: T);
6 get(): T;
7 clear(): void;
8}
9export declare class DOMNode {
10 nodeId: any;
11 nodeType: any;
12 nodeName: any;
13 localName: any;
14 nodeValue: string;
15 attributes: string[];
16 viewRef: WeakRef<ViewBase>;
17 constructor(view: ViewBase);
18 loadAttributes(): void;
19 readonly children: DOMNode[];
20 onChildAdded(childView: ViewBase): void;
21 onChildRemoved(view: ViewBase): void;
22 attributeModified(name: string, value: any): void;
23 attributeRemoved(name: string): void;
24 getComputedProperties(): CSSComputedStyleProperty[];
25 dispose(): void;
26 toJSON(): string;
27}