'use strict'; function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } /** * Licensed Materials - Property of IBM * IBM Cognos Products: BI Cloud (C) Copyright IBM Corp. 2020 * US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp. */ /** * API specification of DataPointSelectionsAPI * * @class DataPointSelectionsAPISpec * @private * @hideconstructor * @classdesc */ define([], function () { var APISpec = function () { function APISpec() { _classCallCheck(this, APISpec); } APISpec.prototype.getAPISpec = function getAPISpec() { var _this = this; if (!this.apiSpec) { this.apiSpec = { name: 'dataPointSelections API', events: { propagationInfo: { namespace: 'selections', info: { name: 'DataPointSelections' }, callStack: { name: 'getFeature', params: ['DataPointSelections'] } }, actions: { /** * @event DataPointSelectionsAPI#CanvasAPI change:content:selections:select */ /** * @event DataPointSelectionsAPI#ContentAPI change:selections:select */ 'select': { eventName: 'select', getUndoActions: function getUndoActions(args) { return [{ name: 'deselect', params: [args[0]] }]; } }, /** * @event DataPointSelectionsAPI#CanvasAPI change:content:selections:deselect */ /** * @event DataPointSelectionsAPI#ContentAPI change:selections:deselect */ 'deselect': { eventName: 'deselect', getUndoActions: function getUndoActions(args) { return [{ name: 'select', params: [args[0]] }]; } }, /** * @event DataPointSelectionsAPI#CanvasAPI change:content:selections:clearAll */ /** * @event DataPointSelectionsAPI#ContentAPI change:selections:clearAll */ 'clearAll': { eventName: 'clearAll', getUndoActions: function getUndoActions() { return [{ name: 'select', params: [_this.getSelections()] }]; } } } } }; } return this.apiSpec; }; return APISpec; }(); return APISpec; }); //# sourceMappingURL=DataPointSelectionsAPISpec.js.map