@vizabi/core
Advanced tools
Comparing version 1.28.2 to 1.28.3
@@ -1,2 +0,2 @@ | ||
// http://vizabi.org v1.28.2 Copyright 2023 Jasper Heeffer and others at Gapminder Foundation | ||
// http://vizabi.org v1.28.3 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.2", | ||
"version": "1.28.3", | ||
"description": "Vizabi core (data layer)", | ||
@@ -5,0 +5,0 @@ "main": "dist/Vizabi.js", |
@@ -57,2 +57,3 @@ import { encoding } from './encoding'; | ||
parseValue(value){ | ||
if (typeof value === "number") value = "" + value; | ||
return parseConfigValue(value, this.data.conceptProps); | ||
@@ -59,0 +60,0 @@ }, |
@@ -127,2 +127,9 @@ import { createModel, isNumeric, parseConfigValue, sortDateSafe } from "../utils"; | ||
get clampDomainToData() { return this.config.clampDomainToData ?? this.defaults.clampDomainToData }, | ||
get isSameAsFrameEncScale() { | ||
const enc = this.parent; | ||
const marker = this.parent.marker; | ||
const frame = marker?.encoding?.frame; | ||
return enc.config.modelType !== "frame" && frame && enc.data.concept === frame.data.concept; | ||
}, | ||
get domain() { | ||
@@ -136,2 +143,4 @@ let domain; | ||
domain = [...this.range].sort(sortDateSafe); | ||
} else if (this.isSameAsFrameEncScale) { | ||
domain = this.parent.marker.encoding.frame.scale.domain; | ||
} else if (this.data.domain) { | ||
@@ -138,0 +147,0 @@ domain = this.data.domain; |
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
1307645
13562