@vizabi/core
Advanced tools
Comparing version 1.28.0 to 1.28.1
@@ -1,2 +0,2 @@ | ||
// http://vizabi.org v1.28.0 Copyright 2023 Jasper Heeffer and others at Gapminder Foundation | ||
// http://vizabi.org v1.28.1 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.0", | ||
"version": "1.28.1", | ||
"description": "Vizabi core (data layer)", | ||
@@ -5,0 +5,0 @@ "main": "dist/Vizabi.js", |
import { resolveRef } from "../config"; | ||
import { dataSourceStore } from "../dataSource/dataSourceStore"; | ||
import { computed, observable, reaction, trace } from "mobx"; | ||
import { arrayEquals, combineStates, combineStatesSequential, createModel, createSpaceFilterFn, getConceptsCatalog, intersect, isNumeric } from "../utils"; | ||
import { arrayEquals, combineStates, combineStatesSequential, createModel, createSpaceFilterFn, createConceptFilterFn, getConceptsCatalog, intersect, isNumeric } from "../utils"; | ||
import { fromPromise } from "mobx-utils"; | ||
@@ -67,3 +67,5 @@ import { extent } from "../../dataframe/info/extent"; | ||
get concept() { | ||
return this.config.concept; | ||
return { | ||
filter: createConceptFilterFn(this.config.concept?.filter) | ||
} | ||
}, | ||
@@ -70,0 +72,0 @@ get source() { |
@@ -539,2 +539,9 @@ import { fromPromise } from "mobx-utils"; | ||
export function createConceptFilterFn(filterSpec = {}) { | ||
if (Object.keys(filterSpec) == 0) { | ||
return () => true; | ||
} | ||
return createFilterFn(filterSpec); | ||
} | ||
export function createSpaceFilterFn(filterSpec = {}, dataConfig) { | ||
@@ -541,0 +548,0 @@ if (Object.keys(filterSpec) == 0) { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
1305350
13544