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

22 lines
936 B
TypeScript
Raw Permalink Normal View History

2024-10-14 06:09:33 +00:00
import { AnyWrapper, WrapperConstructor, Constructor } from '../Wrapper.js';
import { BBox } from '../../../util/BBox.js';
import { DelimiterData } from '../FontData.js';
export declare const DirectionVH: {
[n: number]: string;
};
export interface CommonMo extends AnyWrapper {
size: number;
isAccent: boolean;
protoBBox(bbox: BBox): void;
getAccentOffset(): number;
getCenterOffset(bbox?: BBox): number;
getStretchedVariant(WH: number[], exact?: boolean): void;
getSize(name: string, value: number): number;
getWH(WH: number[]): number;
getStretchBBox(WHD: number[], D: number, C: DelimiterData): void;
getBaseline(WHD: number[], HD: number, C: DelimiterData): number[];
checkExtendedHeight(D: number, C: DelimiterData): number;
}
export declare type MoConstructor = Constructor<CommonMo>;
export declare function CommonMoMixin<T extends WrapperConstructor>(Base: T): MoConstructor & T;