UNPKG

@itwin/presentation-frontend

Version:

Frontend of iModel.js Presentation library

33 lines 1.41 kB
"use strict"; /*--------------------------------------------------------------------------------------------- * Copyright (c) Bentley Systems, Incorporated. All rights reserved. * See LICENSE.md in the project root for license terms and full copyright notice. *--------------------------------------------------------------------------------------------*/ Object.defineProperty(exports, "__esModule", { value: true }); exports.IpcRequestsHandler = void 0; const core_frontend_1 = require("@itwin/core-frontend"); const presentation_common_1 = require("@itwin/presentation-common"); /** @internal */ class IpcRequestsHandler { constructor(clientId) { this._ipcProxy = core_frontend_1.IpcApp.makeIpcProxy(presentation_common_1.PRESENTATION_IPC_CHANNEL_NAME); this.clientId = clientId; } async setRulesetVariable(params) { const jsonParams = { ...params, clientId: this.clientId, variable: presentation_common_1.RulesetVariable.toJSON(params.variable), }; return this._ipcProxy.setRulesetVariable(jsonParams); } async unsetRulesetVariable(params) { const jsonParams = { ...params, clientId: this.clientId, }; return this._ipcProxy.unsetRulesetVariable(jsonParams); } } exports.IpcRequestsHandler = IpcRequestsHandler; //# sourceMappingURL=IpcRequestsHandler.js.map