Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@superset-ui/color

Package Overview
Dependencies
Maintainers
3
Versions
40
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@superset-ui/color - npm Package Compare versions

Comparing version 0.5.0 to 0.6.0

2

esm/CategoricalColorNamespace.js

@@ -1,1 +0,1 @@

import"core-js/modules/es6.function.name";import CategoricalColorScale from"./CategoricalColorScale";import getCategoricalSchemeRegistry from"./CategoricalSchemeRegistrySingleton";var CategoricalColorNamespace=/*#__PURE__*/function(){function a(a){this.name=a,this.scales={},this.forcedItems={}}var b=a.prototype;return b.getScale=function(a){var b=a||getCategoricalSchemeRegistry().getDefaultSchemeName(),c=this.scales[b];if(c)return c;var d=new CategoricalColorScale(getCategoricalSchemeRegistry().get(b).colors,this.forcedItems);return this.scales[b]=d,d},b.setColor=function c(a,b){return this.forcedItems[a]=b,this},a}();export{CategoricalColorNamespace as default};var namespaces={};export var DEFAULT_NAMESPACE="GLOBAL";export function getNamespace(a){void 0===a&&(a=DEFAULT_NAMESPACE);var b=namespaces[a];if(b)return b;var c=new CategoricalColorNamespace(a);return namespaces[a]=c,c}export function getColor(a,b,c){return getNamespace(c).getScale(b).getColor(a)}export function getScale(a,b){return getNamespace(b).getScale(a)}
import"core-js/modules/es6.function.name";import CategoricalColorScale from"./CategoricalColorScale";import getCategoricalSchemeRegistry from"./CategoricalSchemeRegistrySingleton";var CategoricalColorNamespace=/*#__PURE__*/function(){function a(a){this.name=a,this.scales={},this.forcedItems={}}var b=a.prototype;return b.getScale=function(a){var b=a||getCategoricalSchemeRegistry().getDefaultKey(),c=this.scales[b];if(c)return c;var d=new CategoricalColorScale(getCategoricalSchemeRegistry().get(b).colors,this.forcedItems);return this.scales[b]=d,d},b.setColor=function c(a,b){return this.forcedItems[a]=b,this},a}();export{CategoricalColorNamespace as default};var namespaces={};export var DEFAULT_NAMESPACE="GLOBAL";export function getNamespace(a){void 0===a&&(a=DEFAULT_NAMESPACE);var b=namespaces[a];if(b)return b;var c=new CategoricalColorNamespace(a);return namespaces[a]=c,c}export function getColor(a,b,c){return getNamespace(c).getScale(b).getColor(a)}export function getScale(a,b){return getNamespace(b).getScale(a)}

@@ -1,1 +0,1 @@

function _inheritsLoose(a,b){a.prototype=Object.create(b.prototype),a.prototype.constructor=a,a.__proto__=b}import{Registry}from"@superset-ui/core";var ColorSchemeRegistry=/*#__PURE__*/function(a){function b(){return a.apply(this,arguments)||this}_inheritsLoose(b,a);var c=b.prototype;return c.clear=function b(){return a.prototype.clear.call(this),this.defaultSchemeName=void 0,this},c.getDefaultSchemeName=function a(){return this.defaultSchemeName},c.setDefaultSchemeName=function b(a){return this.defaultSchemeName=a,this},c.get=function c(b){return a.prototype.get.call(this,b||this.defaultSchemeName)},c.registerValue=function d(b,c){return a.prototype.registerValue.call(this,b,c),this.defaultSchemeName||(this.defaultSchemeName=b),this},c.registerLoader=function d(b,c){return a.prototype.registerLoader.call(this,b,c),this.defaultSchemeName||(this.defaultSchemeName=b),this},b}(Registry);export default ColorSchemeRegistry;
function _inheritsLoose(a,b){a.prototype=Object.create(b.prototype),a.prototype.constructor=a,a.__proto__=b}import{RegistryWithDefaultKey}from"@superset-ui/core";var ColorSchemeRegistry=/*#__PURE__*/function(a){function b(){return a.call(this,{name:"ColorScheme",setFirstItemAsDefault:!0})||this}return _inheritsLoose(b,a),b}(RegistryWithDefaultKey);export{ColorSchemeRegistry as default};

@@ -1,1 +0,1 @@

"use strict";exports.__esModule=!0,exports.getNamespace=getNamespace,exports.getColor=getColor,exports.getScale=getScale,exports.DEFAULT_NAMESPACE=exports.default=void 0,require("core-js/modules/es6.function.name");var _CategoricalColorScale=_interopRequireDefault(require("./CategoricalColorScale")),_CategoricalSchemeRegistrySingleton=_interopRequireDefault(require("./CategoricalSchemeRegistrySingleton"));function _interopRequireDefault(a){return a&&a.__esModule?a:{default:a}}var CategoricalColorNamespace=/*#__PURE__*/function(){function a(a){this.name=a,this.scales={},this.forcedItems={}}var b=a.prototype;return b.getScale=function(a){var b=a||(0,_CategoricalSchemeRegistrySingleton.default)().getDefaultSchemeName(),c=this.scales[b];if(c)return c;var d=new _CategoricalColorScale.default((0,_CategoricalSchemeRegistrySingleton.default)().get(b).colors,this.forcedItems);return this.scales[b]=d,d},b.setColor=function c(a,b){return this.forcedItems[a]=b,this},a}();exports.default=CategoricalColorNamespace;var namespaces={},DEFAULT_NAMESPACE="GLOBAL";exports.DEFAULT_NAMESPACE=DEFAULT_NAMESPACE;function getNamespace(a){void 0===a&&(a=DEFAULT_NAMESPACE);var b=namespaces[a];if(b)return b;var c=new CategoricalColorNamespace(a);return namespaces[a]=c,c}function getColor(a,b,c){return getNamespace(c).getScale(b).getColor(a)}function getScale(a,b){return getNamespace(b).getScale(a)}
"use strict";exports.__esModule=!0,exports.getNamespace=getNamespace,exports.getColor=getColor,exports.getScale=getScale,exports.DEFAULT_NAMESPACE=exports.default=void 0,require("core-js/modules/es6.function.name");var _CategoricalColorScale=_interopRequireDefault(require("./CategoricalColorScale")),_CategoricalSchemeRegistrySingleton=_interopRequireDefault(require("./CategoricalSchemeRegistrySingleton"));function _interopRequireDefault(a){return a&&a.__esModule?a:{default:a}}var CategoricalColorNamespace=/*#__PURE__*/function(){function a(a){this.name=a,this.scales={},this.forcedItems={}}var b=a.prototype;return b.getScale=function(a){var b=a||(0,_CategoricalSchemeRegistrySingleton.default)().getDefaultKey(),c=this.scales[b];if(c)return c;var d=new _CategoricalColorScale.default((0,_CategoricalSchemeRegistrySingleton.default)().get(b).colors,this.forcedItems);return this.scales[b]=d,d},b.setColor=function c(a,b){return this.forcedItems[a]=b,this},a}();exports.default=CategoricalColorNamespace;var namespaces={},DEFAULT_NAMESPACE="GLOBAL";exports.DEFAULT_NAMESPACE=DEFAULT_NAMESPACE;function getNamespace(a){void 0===a&&(a=DEFAULT_NAMESPACE);var b=namespaces[a];if(b)return b;var c=new CategoricalColorNamespace(a);return namespaces[a]=c,c}function getColor(a,b,c){return getNamespace(c).getScale(b).getColor(a)}function getScale(a,b){return getNamespace(b).getScale(a)}

@@ -1,1 +0,1 @@

"use strict";var _core=require("@superset-ui/core");exports.__esModule=!0,exports.default=void 0;function _inheritsLoose(a,b){a.prototype=Object.create(b.prototype),a.prototype.constructor=a,a.__proto__=b}var ColorSchemeRegistry=/*#__PURE__*/function(a){function b(){return a.apply(this,arguments)||this}_inheritsLoose(b,a);var c=b.prototype;return c.clear=function b(){return a.prototype.clear.call(this),this.defaultSchemeName=void 0,this},c.getDefaultSchemeName=function a(){return this.defaultSchemeName},c.setDefaultSchemeName=function b(a){return this.defaultSchemeName=a,this},c.get=function c(b){return a.prototype.get.call(this,b||this.defaultSchemeName)},c.registerValue=function d(b,c){return a.prototype.registerValue.call(this,b,c),this.defaultSchemeName||(this.defaultSchemeName=b),this},c.registerLoader=function d(b,c){return a.prototype.registerLoader.call(this,b,c),this.defaultSchemeName||(this.defaultSchemeName=b),this},b}(_core.Registry),_default=ColorSchemeRegistry;exports.default=_default;
"use strict";var _core=require("@superset-ui/core");exports.__esModule=!0,exports.default=void 0;function _inheritsLoose(a,b){a.prototype=Object.create(b.prototype),a.prototype.constructor=a,a.__proto__=b}var ColorSchemeRegistry=/*#__PURE__*/function(a){function b(){return a.call(this,{name:"ColorScheme",setFirstItemAsDefault:!0})||this}return _inheritsLoose(b,a),b}(_core.RegistryWithDefaultKey);exports.default=ColorSchemeRegistry;

@@ -1,1 +0,1 @@

"use strict";var CategoricalColorNamespace=_interopRequireWildcard(require("./CategoricalColorNamespace"));var _CategoricalColorScale=_interopRequireDefault(require("./CategoricalColorScale"));var _CategoricalScheme=_interopRequireDefault(require("./CategoricalScheme"));var _CategoricalSchemeRegistrySingleton=_interopRequireDefault(require("./CategoricalSchemeRegistrySingleton"));var _SequentialSchemeRegistrySingleton=_interopRequireDefault(require("./SequentialSchemeRegistrySingleton"));var _SequentialScheme=_interopRequireDefault(require("./SequentialScheme"));exports.__esModule=!0,exports.CategoricalColorNamespace=exports.BRAND_COLOR=exports.SequentialScheme=exports.getSequentialSchemeRegistry=exports.getCategoricalSchemeRegistry=exports.CategoricalScheme=exports.CategoricalColorScale=void 0;exports.CategoricalColorNamespace=CategoricalColorNamespace;exports.CategoricalColorScale=_CategoricalColorScale.default;exports.CategoricalScheme=_CategoricalScheme.default;exports.getCategoricalSchemeRegistry=_CategoricalSchemeRegistrySingleton.default;exports.getSequentialSchemeRegistry=_SequentialSchemeRegistrySingleton.default;exports.SequentialScheme=_SequentialScheme.default;function _interopRequireDefault(a){return a&&a.__esModule?a:{default:a}}function _interopRequireWildcard(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)if(Object.prototype.hasOwnProperty.call(a,c)){var d=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(a,c):{};d.get||d.set?Object.defineProperty(b,c,d):b[c]=a[c]}return b.default=a,b}var BRAND_COLOR="#00A699";exports.BRAND_COLOR="#00A699";
"use strict";var CategoricalColorNamespace=_interopRequireWildcard(require("./CategoricalColorNamespace"));var _CategoricalColorScale=_interopRequireDefault(require("./CategoricalColorScale"));var _CategoricalScheme=_interopRequireDefault(require("./CategoricalScheme"));var _CategoricalSchemeRegistrySingleton=_interopRequireDefault(require("./CategoricalSchemeRegistrySingleton"));var _SequentialSchemeRegistrySingleton=_interopRequireDefault(require("./SequentialSchemeRegistrySingleton"));var _SequentialScheme=_interopRequireDefault(require("./SequentialScheme"));exports.__esModule=!0,exports.CategoricalColorNamespace=exports.BRAND_COLOR=exports.SequentialScheme=exports.getSequentialSchemeRegistry=exports.getCategoricalSchemeRegistry=exports.CategoricalScheme=exports.CategoricalColorScale=void 0;exports.CategoricalColorNamespace=CategoricalColorNamespace;exports.CategoricalColorScale=_CategoricalColorScale.default;exports.CategoricalScheme=_CategoricalScheme.default;exports.getCategoricalSchemeRegistry=_CategoricalSchemeRegistrySingleton.default;exports.getSequentialSchemeRegistry=_SequentialSchemeRegistrySingleton.default;exports.SequentialScheme=_SequentialScheme.default;function _interopRequireDefault(a){return a&&a.__esModule?a:{default:a}}function _interopRequireWildcard(a){if(a&&a.__esModule)return a;var b={};if(null!=a)for(var c in a)if(Object.prototype.hasOwnProperty.call(a,c)){var d=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(a,c):{};d.get||d.set?Object.defineProperty(b,c,d):b[c]=a[c]}return b.default=a,b}var BRAND_COLOR="#00A699";exports.BRAND_COLOR=BRAND_COLOR;
{
"name": "@superset-ui/color",
"version": "0.5.0",
"version": "0.6.0",
"description": "Superset UI color",

@@ -29,6 +29,5 @@ "sideEffects": false,

"dependencies": {
"@superset-ui/core": "^0.5.0",
"@superset-ui/core": "^0.6.0",
"d3-scale": "^2.1.2"
},
"gitHead": "31eec0f496b66098ad887bd64fc13f3882bcdc71"
}
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc