@vizabi/core
Advanced tools
Comparing version 1.28.5 to 1.28.7
@@ -1,2 +0,2 @@ | ||
// http://vizabi.org v1.28.5 Copyright 2023 Jasper Heeffer and others at Gapminder Foundation | ||
// http://vizabi.org v1.28.7 Copyright 2023 Jasper Heeffer and others at Gapminder Foundation | ||
(function (global, factory) { | ||
@@ -3,0 +3,0 @@ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('mobx'), require('d3')) : |
{ | ||
"name": "@vizabi/core", | ||
"version": "1.28.5", | ||
"version": "1.28.7", | ||
"description": "Vizabi core (data layer)", | ||
@@ -5,0 +5,0 @@ "main": "dist/Vizabi.js", |
@@ -204,2 +204,7 @@ import { resolveRef } from "../config"; | ||
const keyStr = createKeyStr(space); | ||
//add isness for entity sets | ||
if(concept === this.concept && this.conceptIsEntitySetAndItsDomainIsInSpace) | ||
concept = [concept, "is--" + concept]; | ||
concept = Array.isArray(concept) ? concept : [concept]; | ||
@@ -261,3 +266,3 @@ concept = concept.filter(concept => { | ||
response.raw.forEach(m => { | ||
m[this.concept] = m[this.concept] ?? m[this.conceptProps.domain]; | ||
if(m[this.concept] == null && m["is--" + this.concept]) m[this.concept] = m[this.conceptProps.domain]; | ||
}); | ||
@@ -264,0 +269,0 @@ } |
@@ -20,3 +20,3 @@ import { action } from 'mobx'; | ||
"_ordinal": { | ||
"_default": "#ffb600", | ||
"_default": "#aaa", | ||
"0": "#4cd843", | ||
@@ -35,3 +35,3 @@ "1": "#e83739", | ||
}, | ||
"_default": { | ||
"_constant": { | ||
"_default": "#ffb600" | ||
@@ -67,3 +67,3 @@ } | ||
} else { | ||
palette = deepclone(this.defaultPalettes["_default"]); | ||
palette = deepclone(this.defaultPalettes["_constant"]); | ||
} | ||
@@ -81,3 +81,3 @@ } else if (this.colorConceptProp.palette) { | ||
//constant | ||
if (this.encoding.data.isConstant) return "_default"; | ||
if (this.encoding.data.isConstant) return "_constant"; | ||
//measure | ||
@@ -102,3 +102,3 @@ if (["time", "measure"].includes(this.encoding.data.conceptProps.concept_type)) return "_continuous"; | ||
get defaultColor() { | ||
return this.getColor("_default") || this.defaultPalettes["_default"]["_default"]; | ||
return this.getColor("_default") || this.defaultPalettes[this.paletteType]["_default"]; | ||
}, | ||
@@ -105,0 +105,0 @@ get paletteDomain() { |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
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
1311417
13602