FredIsRedAPI.js 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. "use strict";
  2. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  3. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  4. /**
  5. * Licensed Materials - Property of IBM
  6. * IBM Business Analytics (C) Copyright IBM Corp. 2019
  7. * US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
  8. */
  9. /**
  10. * @class FredIsRedFeatureAPI
  11. * @hideconstructor
  12. * @classdesc
  13. */
  14. define([], function () {
  15. var FredIsRedFeatureAPI = function () {
  16. function FredIsRedFeatureAPI() {
  17. _classCallCheck(this, FredIsRedFeatureAPI);
  18. }
  19. _createClass(FredIsRedFeatureAPI, [{
  20. key: "initializeFredIsRedFeature",
  21. /**
  22. * initializeFredIsRedFeature is function that initializes FredIsRed
  23. * @param fredIsRedSpec an object that contains FredIsRed spec
  24. */
  25. value: function initializeFredIsRedFeature() {}
  26. /**
  27. * getColor is the main API to a renderer.
  28. * it honours an existing sharedPalette but, if the value is not there, augments it.
  29. * @param paletteInfo an object that includes a color table, a default index and a Class to be returned with the color
  30. * (where the color expects an RGB object).
  31. * @param labelArray -an array of 1 or more labels that make up a tuple (label value) to be coloured eg: ['Canada'] or ['Canada', '2005']
  32. * @param {DataItemAPI} dataItem - data item type
  33. * @returns an instance of the ColorClass.
  34. */
  35. }, {
  36. key: "getColor",
  37. value: function getColor() {}
  38. /**
  39. * setUserColorMap - sets user color map
  40. * @param colorMap - object representing user color map
  41. */
  42. }, {
  43. key: "setUserColorMap",
  44. value: function setUserColorMap() {}
  45. /**
  46. * getUserColorMap - gets user color map (used for testing primarily)
  47. */
  48. }, {
  49. key: "getUserColorMap",
  50. value: function getUserColorMap() {}
  51. /**
  52. * registerKeyProvider is function that registeres key provider
  53. * @param keyProvider an object that includes key provider to be registered
  54. */
  55. }, {
  56. key: "registerKeyProvider",
  57. value: function registerKeyProvider() {}
  58. }]);
  59. return FredIsRedFeatureAPI;
  60. }();
  61. return FredIsRedFeatureAPI;
  62. });
  63. //# sourceMappingURL=FredIsRedAPI.js.map