stuff
This commit is contained in:
parent
bc92231240
commit
b8225c639e
11904 changed files with 1472749 additions and 133 deletions
30
node_modules/mathjax-full/js/output/common/Wrappers/maction.d.ts
generated
vendored
Normal file
30
node_modules/mathjax-full/js/output/common/Wrappers/maction.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
import { AnyWrapper, WrapperConstructor, Constructor, AnyWrapperClass } from '../Wrapper.js';
|
||||
export declare type ActionData = {
|
||||
[name: string]: any;
|
||||
};
|
||||
export declare type ActionHandler<W extends AnyWrapper> = (node: W, data?: ActionData) => void;
|
||||
export declare type ActionPair<W extends AnyWrapper> = [ActionHandler<W>, ActionData];
|
||||
export declare type ActionMap<W extends AnyWrapper> = Map<string, ActionPair<W>>;
|
||||
export declare type ActionDef<W extends AnyWrapper> = [string, [ActionHandler<W>, ActionData]];
|
||||
export declare type EventHandler = (event: Event) => void;
|
||||
export declare const TooltipData: {
|
||||
dx: string;
|
||||
dy: string;
|
||||
postDelay: number;
|
||||
clearDelay: number;
|
||||
hoverTimer: Map<any, number>;
|
||||
clearTimer: Map<any, number>;
|
||||
stopTimers: (node: any, data: ActionData) => void;
|
||||
};
|
||||
export interface CommonMaction<W extends AnyWrapper> extends AnyWrapper {
|
||||
action: ActionHandler<W>;
|
||||
data: ActionData;
|
||||
dx: number;
|
||||
dy: number;
|
||||
readonly selected: W;
|
||||
}
|
||||
export interface CommonMactionClass<W extends AnyWrapper> extends AnyWrapperClass {
|
||||
actions: ActionMap<W>;
|
||||
}
|
||||
export declare type MactionConstructor<W extends AnyWrapper> = Constructor<CommonMaction<W>>;
|
||||
export declare function CommonMactionMixin<W extends AnyWrapper, T extends WrapperConstructor>(Base: T): MactionConstructor<W> & T;
|
||||
Loading…
Add table
Add a link
Reference in a new issue