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/snap/pointer.d.ts

48 lines
1.3 KiB

import { ModifierArg, ModifierState } from '../base';
export interface Offset {
x: number;
y: number;
index: number;
relativePoint?: Interact.Point;
}
export interface SnapPosition {
x?: number;
y?: number;
range?: number;
offset?: Offset;
[index: string]: any;
}
export declare type SnapFunction = (x: number, y: number, interaction: Interact.Interaction, offset: Offset, index: number) => SnapPosition;
export declare type SnapTarget = SnapPosition | SnapFunction;
export interface SnapOptions {
targets: SnapTarget[];
range: number;
relativePoints: Interact.Point[];
offset: Interact.Point | Interact.RectResolvable<[Interact.Interaction]> | 'startCoords';
offsetWithOrigin?: boolean;
origin: Interact.RectResolvable<[Interact.Element]> | Interact.Point;
endOnly?: boolean;
enabled?: boolean;
}
export declare type SnapState = ModifierState<SnapOptions, {
offsets?: Offset[];
closest?: any;
targetFields?: string[][];
}>;
declare function start(arg: ModifierArg<SnapState>): void;
declare function set(arg: ModifierArg<SnapState>): {
target: any;
inRange: boolean;
distance: number;
range: number;
delta: {
x: number;
y: number;
};
};
declare const snap: {
start: typeof start;
set: typeof set;
defaults: SnapOptions;
};
export default snap;