@vizabi/core
Advanced tools
Comparing version 1.28.7 to 1.29.0
@@ -1,2 +0,2 @@ | ||
// http://vizabi.org v1.28.7 Copyright 2023 Jasper Heeffer and others at Gapminder Foundation | ||
// http://vizabi.org v1.29.0 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.7", | ||
"version": "1.29.0", | ||
"description": "Vizabi core (data layer)", | ||
@@ -5,0 +5,0 @@ "main": "dist/Vizabi.js", |
@@ -10,4 +10,3 @@ import { encoding } from './encoding'; | ||
const defaults = { | ||
direction: directions.ascending, | ||
custom: [] | ||
direction: directions.ascending | ||
} | ||
@@ -19,3 +18,3 @@ | ||
get direction() { | ||
return this.config.direction || defaults.direction; | ||
return resolveRef(this.config.direction).value || defaults.direction; | ||
}, | ||
@@ -29,7 +28,4 @@ get transformFields() { | ||
return df.order([{ [this.name]: this.custom?.length ? this.custom : this.direction }]); | ||
return df.order([{ [this.name]: this.direction }]); | ||
}, | ||
get custom() { | ||
return resolveRef(this.config.custom).value || defaults.custom; | ||
}, | ||
get transformationFns() { | ||
@@ -36,0 +32,0 @@ return { |
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
1310777
13594