@vizabi/core
Advanced tools
Comparing version 1.31.3 to 1.31.4
@@ -1,2 +0,2 @@ | ||
// http://vizabi.org v1.31.3 Copyright 2023 Jasper Heeffer and others at Gapminder Foundation | ||
// http://vizabi.org v1.31.4 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.31.3", | ||
"version": "1.31.4", | ||
"description": "Vizabi core (data layer)", | ||
@@ -5,0 +5,0 @@ "main": "dist/Vizabi.js", |
@@ -90,3 +90,3 @@ import { createModel, isNumeric, parseConfigValue, sortDateSafe } from "../utils"; | ||
get allowedTypes() { | ||
return this.config.allowedTypes ?? this.defaults.allowedTypes; | ||
return this.config.allowedTypes ?? Object.keys(scales).filter(s => s !== "rank" || this.parent.config.modelType === "lane"); | ||
}, | ||
@@ -136,3 +136,3 @@ get type() { | ||
domain = this.parent.marker.encoding.frame.scale.domain; | ||
} else if (this.getScaleTypeWithoutLookingAtDomain() === "rank" && this.parent.config.modelType === "lane") { | ||
} else if (this.getScaleTypeWithoutLookingAtDomain() === "rank") { | ||
domain = [0, this.parent.totalTrackNumber]; | ||
@@ -139,0 +139,0 @@ } else if (this.data.domain) { |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
1339020