Release 0.7.20

This commit is contained in:
Yanzhen Yu
2019-08-10 17:32:24 +08:00
parent af994ac8bb
commit dbcf03e415
4 changed files with 8 additions and 5 deletions

7
typings/types.d.ts vendored
View File

@@ -50,13 +50,14 @@ export declare enum IncrementalSource {
MouseInteraction = 2,
Scroll = 3,
ViewportResize = 4,
Input = 5
Input = 5,
TouchMove = 6
}
export declare type mutationData = {
source: IncrementalSource.Mutation;
} & mutationCallbackParam;
export declare type mousemoveData = {
source: IncrementalSource.MouseMove;
source: IncrementalSource.MouseMove | IncrementalSource.TouchMove;
positions: mousePosition[];
};
export declare type mouseInteractionData = {
@@ -137,7 +138,7 @@ declare type mutationCallbackParam = {
adds: addedNodeMutation[];
};
export declare type mutationCallBack = (m: mutationCallbackParam) => void;
export declare type mousemoveCallBack = (p: mousePosition[]) => void;
export declare type mousemoveCallBack = (p: mousePosition[], source: IncrementalSource.MouseMove | IncrementalSource.TouchMove) => void;
export declare type mousePosition = {
x: number;
y: number;