1
0

add initial marp implementation with sample content and build configuration

This commit is contained in:
2025-09-13 18:13:22 +02:00
parent dcacc9b409
commit e5f219507f
10319 changed files with 1402023 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
import { MathItem } from '../../core/MathItem.js';
import { MmlNode } from '../../core/MmlTree/MmlNode.js';
import { SelectableInfo } from './SelectableInfo.js';
import { ContextMenu } from 'mj-context-menu/js/context_menu.js';
import { SubMenu } from 'mj-context-menu/js/sub_menu.js';
import { Submenu } from 'mj-context-menu/js/item_submenu.js';
import { Item } from 'mj-context-menu/js/item.js';
export declare class MJContextMenu extends ContextMenu {
static DynamicSubmenus: Map<string, (menu: MJContextMenu, sub: Submenu) => SubMenu>;
mathItem: MathItem<HTMLElement, Text, Document>;
annotation: string;
showAnnotation: SelectableInfo;
copyAnnotation: () => void;
annotationTypes: {
[type: string]: string[];
};
post(x?: any, y?: number): void;
unpost(): void;
findID(...names: string[]): Item;
protected getAnnotationMenu(): void;
protected getSemanticNode(): MmlNode | null;
protected getAnnotations(node: MmlNode): [string, string][];
protected annotationMatch(child: MmlNode): string | null;
protected createAnnotationMenu(id: string, annotations: [string, string][], action: () => void): void;
dynamicSubmenus(): void;
}