stuff
This commit is contained in:
parent
bc92231240
commit
b8225c639e
11904 changed files with 1472749 additions and 133 deletions
115
node_modules/mathjax-full/js/ui/menu/Menu.d.ts
generated
vendored
Normal file
115
node_modules/mathjax-full/js/ui/menu/Menu.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,115 @@
|
|||
import { MathItem } from '../../core/MathItem.js';
|
||||
import { OutputJax } from '../../core/OutputJax.js';
|
||||
import { OptionList } from '../../util/Options.js';
|
||||
import { MJContextMenu } from './MJContextMenu.js';
|
||||
import { MmlVisitor } from './MmlVisitor.js';
|
||||
import { SelectableInfo } from './SelectableInfo.js';
|
||||
import { MenuMathDocument } from './MenuHandler.js';
|
||||
import { Info } from 'mj-context-menu/js/info.js';
|
||||
export interface MenuSettings {
|
||||
texHints: boolean;
|
||||
semantics: boolean;
|
||||
zoom: string;
|
||||
zscale: string;
|
||||
renderer: string;
|
||||
alt: boolean;
|
||||
cmd: boolean;
|
||||
ctrl: boolean;
|
||||
shift: boolean;
|
||||
scale: string;
|
||||
autocollapse: boolean;
|
||||
collapsible: boolean;
|
||||
inTabOrder: boolean;
|
||||
assistiveMml: boolean;
|
||||
backgroundColor: string;
|
||||
backgroundOpacity: string;
|
||||
braille: boolean;
|
||||
explorer: boolean;
|
||||
foregroundColor: string;
|
||||
foregroundOpacity: string;
|
||||
highlight: string;
|
||||
locale: string;
|
||||
infoPrefix: boolean;
|
||||
infoRole: boolean;
|
||||
infoType: boolean;
|
||||
magnification: string;
|
||||
magnify: string;
|
||||
speech: boolean;
|
||||
speechRules: string;
|
||||
subtitles: boolean;
|
||||
treeColoring: boolean;
|
||||
viewBraille: boolean;
|
||||
}
|
||||
export declare type HTMLMATHITEM = MathItem<HTMLElement, Text, Document>;
|
||||
export declare class Menu {
|
||||
static MENU_STORAGE: string;
|
||||
static OPTIONS: OptionList;
|
||||
protected static loading: number;
|
||||
protected static loadingPromises: Map<string, Promise<void>>;
|
||||
protected static _loadingPromise: Promise<void>;
|
||||
protected static _loadingOK: Function;
|
||||
protected static _loadingFailed: Function;
|
||||
options: OptionList;
|
||||
settings: MenuSettings;
|
||||
defaultSettings: MenuSettings;
|
||||
menu: MJContextMenu;
|
||||
MmlVisitor: MmlVisitor<HTMLElement, Text, Document>;
|
||||
protected document: MenuMathDocument;
|
||||
protected jax: {
|
||||
[name: string]: OutputJax<HTMLElement, Text, Document>;
|
||||
};
|
||||
protected rerenderStart: number;
|
||||
get isLoading(): boolean;
|
||||
get loadingPromise(): Promise<void>;
|
||||
protected about: Info;
|
||||
protected help: Info;
|
||||
protected mathmlCode: SelectableInfo;
|
||||
protected originalText: SelectableInfo;
|
||||
protected annotationText: SelectableInfo;
|
||||
protected zoomBox: Info;
|
||||
constructor(document: MenuMathDocument, options?: OptionList);
|
||||
protected initSettings(): void;
|
||||
protected initMenu(): void;
|
||||
protected checkLoadableItems(): void;
|
||||
protected enableExplorerItems(enable: boolean): void;
|
||||
protected mergeUserSettings(): void;
|
||||
protected saveUserSettings(): void;
|
||||
protected setA11y(options: {
|
||||
[key: string]: any;
|
||||
}): void;
|
||||
protected getA11y(option: string): any;
|
||||
protected applySettings(): void;
|
||||
protected setScale(scale: string): void;
|
||||
protected setRenderer(jax: string): void;
|
||||
protected setOutputJax(jax: string): void;
|
||||
protected setTabOrder(tab: boolean): void;
|
||||
protected setAssistiveMml(mml: boolean): void;
|
||||
protected setExplorer(explore: boolean): void;
|
||||
protected setCollapsible(collapse: boolean): void;
|
||||
protected scaleAllMath(): void;
|
||||
protected resetDefaults(): void;
|
||||
checkComponent(name: string): void;
|
||||
protected loadComponent(name: string, callback: () => void): void;
|
||||
loadA11y(component: string): void;
|
||||
protected transferMathList(document: MenuMathDocument): void;
|
||||
protected formatSource(text: string): string;
|
||||
protected toMML(math: HTMLMATHITEM): string;
|
||||
protected zoom(event: MouseEvent, type: string, math: HTMLMATHITEM): void;
|
||||
protected isZoomEvent(event: MouseEvent, zoom: string): boolean;
|
||||
protected rerender(start?: number): void;
|
||||
protected copyMathML(): void;
|
||||
protected copyOriginal(): void;
|
||||
copyAnnotation(): void;
|
||||
protected copyToClipboard(text: string): void;
|
||||
addMenu(math: HTMLMATHITEM): void;
|
||||
clear(): void;
|
||||
variable<T extends (string | boolean)>(name: keyof MenuSettings, action?: (value: T) => void): Object;
|
||||
a11yVar<T extends (string | boolean)>(name: keyof MenuSettings, action?: (value: T) => void): Object;
|
||||
submenu(id: string, content: string, entries?: any[], disabled?: boolean): Object;
|
||||
command(id: string, content: string, action: () => void, other?: Object): Object;
|
||||
checkbox(id: string, content: string, variable: string, other?: Object): Object;
|
||||
radioGroup(variable: string, radios: string[][]): Object[];
|
||||
radio(id: string, content: string, variable: string, other?: Object): Object;
|
||||
label(id: string, content: string): Object;
|
||||
rule(): Object;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue