StackGenVis: Alignment of Data, Algorithms, and Models for Stacking Ensemble Learning Using Performance Metrics https://doi.org/10.1109/TVCG.2020.3030352
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
StackGenVis/frontend/node_modules/@interactjs/modifiers/base.d.ts

134 lines
4.2 KiB

4 years ago
declare module '@interactjs/core/scope' {
interface Scope {
modifiers?: any;
}
}
declare module '@interactjs/core/Interaction' {
interface Interaction {
modifiers?: {
states: ModifierState[];
startOffset: Interact.Rect;
startDelta: Interact.Point;
result?: ModifiersResult;
endResult: Interact.Point | void;
};
}
}
declare module '@interactjs/core/InteractEvent' {
interface InteractEvent {
modifiers?: Array<{
name: string;
[key: string]: any;
}>;
}
}
declare module '@interactjs/core/defaultOptions' {
interface PerActionDefaults {
modifiers?: Modifier[];
}
}
export interface Modifier<Defaults = any, State extends ModifierState = any, Name extends string = any> {
options?: Defaults;
methods: {
start?: (arg: ModifierArg<State>) => void;
set: (arg: ModifierArg<State>) => void;
beforeEnd?: (arg: ModifierArg<State>) => Interact.Point | void;
stop?: (arg: ModifierArg<State>) => void;
};
name?: Name;
}
export declare type ModifierState<Defaults = {}, StateProps extends {
[prop: string]: any;
} = {}, Name extends string = any> = {
options: Defaults;
methods?: Modifier<Defaults>['methods'];
index?: number;
name?: Name;
result?: object;
} & StateProps;
export interface ModifierArg<State extends ModifierState = ModifierState> {
interaction: Interact.Interaction;
interactable: Interact.Interactable;
phase: Interact.EventPhase;
rect: Interact.FullRect;
edges: Interact.EdgeOptions;
states?: State[];
state?: State;
element: Interact.Element;
pageCoords?: Interact.Point;
prevCoords?: Interact.Point;
prevRect?: Interact.FullRect;
coords?: Interact.Point;
startOffset?: Interact.Rect;
preEnd?: boolean;
requireEndOnly?: boolean;
}
export interface ModifierModule<Defaults extends {
enabled?: boolean;
}, State extends ModifierState> {
defaults?: Defaults;
start?(arg: ModifierArg<State>): void;
set?(arg: ModifierArg<State>): any;
beforeEnd?(arg: ModifierArg<State>): Interact.Point | void;
stop?(arg: ModifierArg<State>): void;
}
export interface ModifiersResult {
delta: {
x: number;
y: number;
};
rectDelta: {
left: number;
right: number;
top: number;
bottom: number;
};
coords: Interact.Point;
rect: Interact.FullRect;
eventProps: any[];
changed: boolean;
}
export declare function startAll(arg: ModifierArg<any>): void;
export declare function setAll(arg: ModifierArg): ModifiersResult;
export declare function prepareStates(modifierList: Modifier[]): {
options: {};
methods?: {
start?: (arg: ModifierArg<any>) => void;
set: (arg: ModifierArg<any>) => void;
beforeEnd?: (arg: ModifierArg<any>) => void | import("@interactjs/types/types").Point;
stop?: (arg: ModifierArg<any>) => void;
};
index?: number;
name?: any;
result?: object;
}[];
export declare function setCoords(arg: {
interaction: Interact.Interaction;
phase: Interact.EventPhase;
rect?: Interact.Rect;
}): void;
export declare function restoreCoords({ interaction: { coords, rect, modifiers } }: {
interaction: Interact.Interaction;
}): void;
export declare function shouldDo(options: any, preEnd?: boolean, requireEndOnly?: boolean, phase?: string): any;
export declare function getRectOffset(rect: any, coords: any): {
left: number;
top: number;
right: number;
bottom: number;
};
export declare function makeModifier<Defaults extends {
enabled?: boolean;
}, State extends ModifierState, Name extends string>(module: ModifierModule<Defaults, State>, name?: Name): {
(_options?: Partial<Defaults>): Modifier<Defaults, State, Name>;
_defaults: Defaults;
_methods: {
start: (arg: ModifierArg<State>) => void;
set: (arg: ModifierArg<State>) => any;
beforeEnd: (arg: ModifierArg<State>) => void | import("@interactjs/types/types").Point;
stop: (arg: ModifierArg<State>) => void;
};
};
declare const modifiersBase: Interact.Plugin;
export default modifiersBase;