yarn typings (#635)
This commit is contained in:
2
typings/replay/index.d.ts
vendored
2
typings/replay/index.d.ts
vendored
@@ -18,6 +18,7 @@ export declare class Replayer {
|
||||
private treeIndex;
|
||||
private fragmentParentMap;
|
||||
private elementStateMap;
|
||||
private virtualStyleRulesMap;
|
||||
private imageMap;
|
||||
private mirror;
|
||||
private firstFullSnapshot;
|
||||
@@ -59,6 +60,7 @@ export declare class Replayer {
|
||||
private restoreRealParent;
|
||||
private storeState;
|
||||
private restoreState;
|
||||
private restoreNodeSheet;
|
||||
private warnNodeNotFound;
|
||||
private warnCanvasMutationFailed;
|
||||
private debugNodeNotFound;
|
||||
|
||||
24
typings/replay/virtual-styles.d.ts
vendored
Normal file
24
typings/replay/virtual-styles.d.ts
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
import { INode } from 'rrweb-snapshot';
|
||||
export declare enum StyleRuleType {
|
||||
Insert = 0,
|
||||
Remove = 1,
|
||||
Snapshot = 2
|
||||
}
|
||||
declare type InsertRule = {
|
||||
cssText: string;
|
||||
type: StyleRuleType.Insert;
|
||||
index?: number;
|
||||
};
|
||||
declare type RemoveRule = {
|
||||
type: StyleRuleType.Remove;
|
||||
index: number;
|
||||
};
|
||||
declare type SnapshotRule = {
|
||||
type: StyleRuleType.Snapshot;
|
||||
cssTexts: string[];
|
||||
};
|
||||
export declare type VirtualStyleRules = Array<InsertRule | RemoveRule | SnapshotRule>;
|
||||
export declare type VirtualStyleRulesMap = Map<INode, VirtualStyleRules>;
|
||||
export declare function applyVirtualStyleRulesToNode(storedRules: VirtualStyleRules, styleNode: HTMLStyleElement): void;
|
||||
export declare function storeCSSRules(parentElement: HTMLStyleElement, virtualStyleRulesMap: VirtualStyleRulesMap): void;
|
||||
export {};
|
||||
Reference in New Issue
Block a user