123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112 |
- "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 Business Analytics (C) Copyright IBM Corp. 2019, 2020
- * US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
- */
- /**
- * @typedef {Object} Category
- * @memberof DataPointSelectionsAPI
- * @property {String} dataItemId dataItem id of the category data
- * @property {String} columnId column id of the category data
- * @property {String} label display label of the category data
- * @property {String} value value of the category data
- */
- /**
- * @typedef {Object} Fact
- * @memberof DataPointSelectionsAPI
- * @property {String} dataItemId dataItem id of the fact data
- * @property {String} columnId column id of the fact data
- * @property {String} value value of the fact data
- */
- /**
- * @typedef {Object} DataPointSelection
- * @memberof DataPointSelectionsAPI
- * @property {Category[]} categories Array of categeory specs
- * @property {Fact[]} [facts] Array of categeory specs
- */
- /**
- * @interface DataPointSelectionsAPI
- * @classdesc API class that is used to control data point selections within a visualization.
- * @example content.getFeature('DataPointSelections')
- */
- define([], function () {
- var DataPointSelectionsAPI = function () {
- function DataPointSelectionsAPI() {
- _classCallCheck(this, DataPointSelectionsAPI);
- }
- /**
- * @function DataPointSelectionsAPI#select
- * @public
- * @description Selects data points of the visualization with the given selection spec.
- * @param {DataPointSelection[]} dataPointSelection Array of data point selection spec
- * @param {TransactionToken} transactionToken Transaction token
- * @fires DataPointSelectionsAPI#CanvasAPI change:content:selections:select
- * @fires DataPointSelectionsAPI#ContentAPI change:selections:select
- */
- DataPointSelectionsAPI.prototype.select = function select() {};
- /**
- * @function DataPointSelectionsAPI#deselect
- * @public
- * @description Deselects data points of the visualization with the given selection spec.
- * @param {DataPointSelection[]} dataPointSelection Array of data point selection spec
- * @param {TransactionToken} transactionToken Transaction token
- * @fires DataPointSelectionsAPI#CanvasAPI change:content:selections:deselect
- * @fires DataPointSelectionsAPI#ContentAPI change:selections:deselect
- */
- DataPointSelectionsAPI.prototype.deselect = function deselect() {};
- /**
- * @function DataPointSelectionsAPI#clearAll
- * @public
- * @description Clears all data point selections from the visualization
- * @param {TransactionToken} transactionToken Transaction token
- * @fires DataPointSelectionsAPI#CanvasAPI change:content:selections:clearAll
- * @fires DataPointSelectionsAPI#ContentAPI change:selections:clearAll
- */
- DataPointSelectionsAPI.prototype.clearAll = function clearAll() {};
- /**
- * @description Returns the list of data point selections.
- * @function DataPointSelectionsAPI#getSelections
- * @public
- *
- * @param {Array} selectedDataItemList Optional array containing the selected data items
- *
- * @return {DataPointSelection[]} Array of data point selections
- */
- DataPointSelectionsAPI.prototype.getSelections = function getSelections() /* selectedDataItemList */{};
- /**
- * @function DataPointSelectionsAPI#isSelected
- * @public
- * @description Checks whether the given resolved items are selected.
- *
- * @param {DataPointSelection[]} dataPointSelection Array of data point selection spec
- * @return {boolean} True if the resolved items are included in the current selections.
- */
- DataPointSelectionsAPI.prototype.isSelected = function isSelected() {};
- return DataPointSelectionsAPI;
- }();
- return DataPointSelectionsAPI;
- });
- //# sourceMappingURL=DataPointSelectionsAPI.js.map
|