123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100 |
- '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
|