UNPKG

1.04 kBTypeScriptView Raw
1import { VNode } from 'snabbdom';
2import { EventDelegator } from './EventDelegator';
3import { Scope } from './isolate';
4export declare class IsolateModule {
5 private namespaceTree;
6 private namespaceByElement;
7 private eventDelegator;
8 /**
9 * A registry that keeps track of all the nodes that are removed from
10 * the virtual DOM in a single patch. Those nodes are cleaned once snabbdom
11 * has finished patching the DOM.
12 */
13 private vnodesBeingRemoved;
14 constructor();
15 setEventDelegator(del: EventDelegator): void;
16 private insertElement;
17 private removeElement;
18 getElement(namespace: Array<Scope>, max?: number): Element | undefined;
19 getRootElement(elm: Element): Element | undefined;
20 getNamespace(elm: Element): Array<Scope> | undefined;
21 createModule(): {
22 create(emptyVNode: VNode, vNode: VNode): void;
23 update(oldVNode: VNode, vNode: VNode): void;
24 destroy(vNode: VNode): void;
25 remove(vNode: VNode, cb: Function): void;
26 post(): void;
27 };
28}