@uwdata/vgplot
Advanced tools
Comparing version 0.3.1 to 0.3.2
{ | ||
"name": "@uwdata/vgplot", | ||
"version": "0.3.1", | ||
"version": "0.3.2", | ||
"description": "A Mosaic-based interactive grammar of graphics.", | ||
@@ -32,6 +32,6 @@ "keywords": [ | ||
"dependencies": { | ||
"@observablehq/plot": "^0.6.8", | ||
"@uwdata/mosaic-core": "^0.3.0", | ||
"@uwdata/mosaic-inputs": "^0.3.0", | ||
"@uwdata/mosaic-sql": "^0.3.0", | ||
"@observablehq/plot": "^0.6.9", | ||
"@uwdata/mosaic-core": "^0.3.2", | ||
"@uwdata/mosaic-inputs": "^0.3.2", | ||
"@uwdata/mosaic-sql": "^0.3.2", | ||
"d3": "^7.8.5", | ||
@@ -41,3 +41,3 @@ "isoformat": "^0.2.1", | ||
}, | ||
"gitHead": "99ecaf952e24072ce7553ecc818c405db2f92d25" | ||
"gitHead": "788bb137cc402b472fc7e4d84844c78151707c82" | ||
} |
@@ -10,2 +10,5 @@ import { MosaicClient } from '@uwdata/mosaic-core'; | ||
const isSymbolChannel = channel => channel === 'symbol'; | ||
const isFieldObject = (channel, field) => { | ||
return channel !== 'sort' && field != null && !Array.isArray(field); | ||
}; | ||
const fieldEntry = (channel, field) => ({ | ||
@@ -62,3 +65,3 @@ channel, | ||
} | ||
} else if (type === 'object' && !Array.isArray(entry) && entry != null) { | ||
} else if (type === 'object' && isFieldObject(channel, entry)) { | ||
channels.push(fieldEntry(channel, entry)); | ||
@@ -65,0 +68,0 @@ } else if (entry !== undefined) { |
const constantOptions = new Set([ | ||
'order', | ||
'sort', | ||
'label', | ||
@@ -4,0 +5,0 @@ 'anchor', |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
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
2936838
63428
Updated@observablehq/plot@^0.6.9
Updated@uwdata/mosaic-core@^0.3.2
Updated@uwdata/mosaic-inputs@^0.3.2
Updated@uwdata/mosaic-sql@^0.3.2