UNPKG

@kieler/klighd-core

Version:

Core KLighD diagram visualization with Sprotty

29 lines 1.21 kB
import { Action } from 'sprotty-protocol'; /** Data sent to the client for setting the available syntheses. */ export interface SetSynthesesActionData { /** The ID of the synthesis */ id: string; /** The displayable name of the synthesis. */ displayName: string; } /** Sent from the server to the client to send a list of all available syntheses for the current model. */ export interface SetSynthesesAction extends Action { kind: typeof SetSynthesesAction.KIND; syntheses: SetSynthesesActionData[]; } export declare namespace SetSynthesesAction { const KIND = "setSyntheses"; function create(syntheses: SetSynthesesActionData[]): SetSynthesesAction; function isThisAction(action: Action): action is SetSynthesesAction; } /** Sent from the client to the server to request a new diagram with the given synthesis. */ export interface SetSynthesisAction extends Action { kind: typeof SetSynthesisAction.KIND; id: string; } export declare namespace SetSynthesisAction { const KIND = "setSynthesis"; function create(id: string): SetSynthesisAction; function isThisAction(action: Action): action is SetSynthesisAction; } //# sourceMappingURL=actions.d.ts.map