@meta2d/core
Version:
@meta2d/core: Powerful, Beautiful, Simple, Open - Web-Based 2D At Its Best .
22 lines (21 loc) • 607 B
TypeScript
import { Pen } from '../pen';
import { Point } from '../point';
import { Meta2dStore } from '../store';
export declare class Popconfirm {
parentElement: HTMLElement;
private store;
box: HTMLElement;
text: HTMLElement;
arrowUp: HTMLElement;
arrowDown: HTMLElement;
icon: HTMLElement;
confirm: HTMLElement;
cancel: HTMLElement;
x: number;
y: number;
constructor(parentElement: HTMLElement, store: Meta2dStore);
show(pen: Pen, pos: Point): void;
hide(): void;
showModal(pen: Pen, pos: Point, title?: string): Promise<boolean>;
destroy(): void;
}