site/node_modules/mathjax-full/js/output/common/Wrappers/menclose.d.ts

41 lines
1.6 KiB
TypeScript
Raw Permalink Normal View History

2024-10-14 06:09:33 +00:00
import { AnyWrapper, WrapperConstructor, Constructor, AnyWrapperClass } from '../Wrapper.js';
import * as Notation from '../Notation.js';
import { CommonMsqrt } from './msqrt.js';
export interface CommonMenclose<W extends AnyWrapper, S extends CommonMsqrt, N> extends AnyWrapper {
notations: Notation.List<W, N>;
renderChild: Notation.Renderer<W, N>;
msqrt: S;
padding: number;
thickness: number;
arrowhead: {
x: number;
y: number;
dx: number;
};
TRBL: Notation.PaddingData;
getParameters(): void;
getNotations(): void;
removeRedundantNotations(): void;
initializeNotations(): void;
getBBoxExtenders(): Notation.PaddingData;
getPadding(): Notation.PaddingData;
maximizeEntries(X: Notation.PaddingData, Y: Notation.PaddingData): void;
getOffset(direction: string): number;
getArgMod(w: number, h: number): [number, number];
arrow(w: number, a: number, double: boolean, offset?: string, trans?: number): N;
arrowData(): {
a: number;
W: number;
x: number;
y: number;
};
arrowAW(): [number, number];
createMsqrt(child: W): S;
sqrtTRBL(): number[];
}
export interface CommonMencloseClass<W extends AnyWrapper, N> extends AnyWrapperClass {
notations: Notation.DefList<W, N>;
}
export declare type MencloseConstructor<W extends AnyWrapper, S extends CommonMsqrt, N> = Constructor<CommonMenclose<W, S, N>>;
export declare function CommonMencloseMixin<W extends AnyWrapper, S extends CommonMsqrt, N, T extends WrapperConstructor>(Base: T): MencloseConstructor<W, S, N> & T;