antares/src/renderer/ipc-api/Views.js

21 lines
468 B
JavaScript

'use strict';
import { ipcRenderer } from 'electron';
export default class {
static getViewInformations (params) {
return ipcRenderer.invoke('get-view-informations', params);
}
static dropView (params) {
return ipcRenderer.invoke('drop-view', params);
}
static alterView (params) {
return ipcRenderer.invoke('alter-view', params);
}
static createView (params) {
return ipcRenderer.invoke('create-view', params);
}
}