@superset-ui/color
Advanced tools
Comparing version 0.11.9 to 0.12.0
@@ -13,2 +13,2 @@ function _extends(){return _extends=Object.assign||function(a){for(var b,c=1;c<arguments.length;c++)for(var d in b=arguments[c],b)Object.prototype.hasOwnProperty.call(b,d)&&(a[d]=b[d]);return a},_extends.apply(this,arguments)}function _assertThisInitialized(a){if(void 0===a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a}function _inheritsLoose(a,b){a.prototype=Object.create(b.prototype),a.prototype.constructor=a,a.__proto__=b}function _defineProperty(a,b,c){return b in a?Object.defineProperty(a,b,{value:c,enumerable:!0,configurable:!0,writable:!0}):a[b]=c,a}import{ExtensibleFunction}from"@superset-ui/core";import stringifyAndTrim from"./stringifyAndTrim";var CategoricalColorScale=/*#__PURE__*/function(a){/** | ||
* @returns an object where the key is the data value and the value is the hex color code | ||
*/,c.getColorMap=function getColorMap(){var a=this,b={},c=this.colors.length;return Object.keys(this.seen).forEach(function(d){b[d]=a.colors[a.seen[d]%c]}),_extends({},b,this.forcedColors,this.parentForcedColors)},b}(ExtensibleFunction);export{CategoricalColorScale as default}; | ||
*/,c.getColorMap=function getColorMap(){var a=this,b={},c=this.colors.length;return Object.keys(this.seen).forEach(function(d){b[d]=a.colors[a.seen[d]%c]}),_extends({},b,{},this.forcedColors,{},this.parentForcedColors)},b}(ExtensibleFunction);export{CategoricalColorScale as default}; |
@@ -13,2 +13,2 @@ "use strict";exports.__esModule=!0,exports.default=void 0;var _core=require("@superset-ui/core"),_stringifyAndTrim=_interopRequireDefault(require("./stringifyAndTrim"));function _interopRequireDefault(a){return a&&a.__esModule?a:{default:a}}function _extends(){return _extends=Object.assign||function(a){for(var b,c=1;c<arguments.length;c++)for(var d in b=arguments[c],b)Object.prototype.hasOwnProperty.call(b,d)&&(a[d]=b[d]);return a},_extends.apply(this,arguments)}function _assertThisInitialized(a){if(void 0===a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a}function _inheritsLoose(a,b){a.prototype=Object.create(b.prototype),a.prototype.constructor=a,a.__proto__=b}function _defineProperty(a,b,c){return b in a?Object.defineProperty(a,b,{value:c,enumerable:!0,configurable:!0,writable:!0}):a[b]=c,a}var CategoricalColorScale=/*#__PURE__*/function(a){/** | ||
* @returns an object where the key is the data value and the value is the hex color code | ||
*/,c.getColorMap=function getColorMap(){var a=this,b={},c=this.colors.length;return Object.keys(this.seen).forEach(function(d){b[d]=a.colors[a.seen[d]%c]}),_extends({},b,this.forcedColors,this.parentForcedColors)},b}(_core.ExtensibleFunction);exports.default=CategoricalColorScale; | ||
*/,c.getColorMap=function getColorMap(){var a=this,b={},c=this.colors.length;return Object.keys(this.seen).forEach(function(d){b[d]=a.colors[a.seen[d]%c]}),_extends({},b,{},this.forcedColors,{},this.parentForcedColors)},b}(_core.ExtensibleFunction);exports.default=CategoricalColorScale; |
{ | ||
"name": "@superset-ui/color", | ||
"version": "0.11.9", | ||
"version": "0.12.0", | ||
"description": "Superset UI color", | ||
@@ -35,3 +35,3 @@ "sideEffects": false, | ||
}, | ||
"gitHead": "e1b45d00ef457ebabac0454a68dbcb666019e698" | ||
"gitHead": "73af3633ed6640f5d01c1dff7c60cca8bbaa52e3" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
54689