forked from DonJayamanne/pythonVSCode
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtypes.ts
More file actions
31 lines (27 loc) · 1.1 KB
/
types.ts
File metadata and controls
31 lines (27 loc) · 1.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
'use strict';
import { CssMessages, IGetCssRequest, IGetCssResponse, SharedMessages } from '../messages';
export namespace PlotViewerMessages {
export const Started = SharedMessages.Started;
export const UpdateSettings = SharedMessages.UpdateSettings;
export const SendPlot = 'send_plot';
export const CopyPlot = 'copy_plot';
export const ExportPlot = 'export_plot';
export const RemovePlot = 'remove_plot';
}
export interface IExportPlotRequest {
svg: string;
png: string;
}
// Map all messages to specific payloads
export class IPlotViewerMapping {
public [PlotViewerMessages.Started]: never | undefined;
public [PlotViewerMessages.UpdateSettings]: string;
public [PlotViewerMessages.SendPlot]: string;
public [PlotViewerMessages.CopyPlot]: string;
public [PlotViewerMessages.ExportPlot]: IExportPlotRequest;
public [PlotViewerMessages.RemovePlot]: number;
public [CssMessages.GetCssRequest]: IGetCssRequest;
public [CssMessages.GetCssResponse]: IGetCssResponse;
}