UNPKG

sprotty

Version:

A next-gen framework for graphical views

55 lines 2.54 kB
/******************************************************************************** * Copyright (c) 2017-2024 TypeFox and others. * * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v. 2.0 which is available at * http://www.eclipse.org/legal/epl-2.0. * * This Source Code may also be made available under the following Secondary * Licenses when the conditions for such availability set forth in the Eclipse * Public License v. 2.0 are satisfied: GNU General Public License, version 2 * with the GNU Classpath Exception which is available at * https://www.gnu.org/software/classpath/license.html. * * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 ********************************************************************************/ import { VNode } from 'snabbdom'; import { Action, ExportSvgAction, RequestAction } from 'sprotty-protocol/lib/actions'; import { CommandExecutionContext, HiddenCommand, CommandResult } from '../../base/commands/command'; import { IVNodePostprocessor } from '../../base/views/vnode-postprocessor'; import { SModelElementImpl, SModelRootImpl } from '../../base/model/smodel'; import { KeyListener } from '../../base/views/key-tool'; import { SvgExporter } from './svg-exporter'; export declare class ExportSvgKeyListener extends KeyListener { keyDown(element: SModelElementImpl, event: KeyboardEvent): Action[]; } /** * @deprecated Use the definition from `sprotty-protocol` instead. */ export interface ExportSvgOptions { skipCopyStyles?: boolean; } /** * @deprecated Use the definition from `sprotty-protocol` instead. */ export interface RequestExportSvgAction extends RequestAction<ExportSvgAction> { kind: typeof RequestExportSvgAction.KIND; options?: ExportSvgOptions; } export declare namespace RequestExportSvgAction { const KIND = "requestExportSvg"; function create(options?: ExportSvgOptions): RequestExportSvgAction; } export declare class ExportSvgCommand extends HiddenCommand { protected action: RequestExportSvgAction; static readonly KIND = "requestExportSvg"; constructor(action: RequestExportSvgAction); execute(context: CommandExecutionContext): CommandResult; } export declare class ExportSvgPostprocessor implements IVNodePostprocessor { root: SModelRootImpl; protected svgExporter: SvgExporter; decorate(vnode: VNode, element: SModelElementImpl): VNode; postUpdate(cause?: Action): void; } //# sourceMappingURL=export.d.ts.map