/*! * Jodit Editor PRO (https://xdsoft.net/jodit/) * See LICENSE.md in the project root for license information. * Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/ */ import type { IJodit, Nullable } from "jodit/esm/types/index"; import "./config"; import { Plugin } from "jodit/esm/core/plugin/index"; /** * Inserts self-contained SVG charts (bar, horizontal bar, line, pie, donut) * and lets the user edit them in a dialog or remove them from a popup. */ export declare class Chart extends Plugin { static requires: string[]; buttons: Plugin['buttons']; private __dialog; private __editor; private __popup; private __toolbar; private __target; protected afterInit(jodit: IJodit): void; protected beforeDestruct(): void; /** * Opens the editor dialog for a new chart or for an existing one. */ openEditor(target?: Nullable): void; /** * Removes the chart that owns the given node. */ removeChart(target?: Nullable): void; private __save; private __getDialog; /** * Handler: clicking a chart opens its popup; clicking elsewhere closes it. */ protected onClick(e: MouseEvent): void; protected onDblClick(e: MouseEvent): void; protected onOutsideClick(): void; /** * Shows the contextual popup (edit / delete) above the chart. */ openPopup(figure: HTMLElement): void; closePopup(): void; /** * Decorates charts that arrived with the value (initial load, paste) and * re-renders charts whose box was changed by the resizer. */ protected onChange(): void; private __decorateAll; /** * A figure that carries data but no SVG (e.g. content produced by a * backend) is rendered on load. */ private __renderMissing; private __syncResized; }