vega-lite
Advanced tools
Comparing version 5.5.1--canary.cef01d6.0 to 5.6.0--canary.8434.91e1716.0
@@ -86,40 +86,40 @@ { | ||
"devDependencies": { | ||
"@auto-it/conventional-commits": "^10.34.1", | ||
"@auto-it/first-time-contributor": "^10.34.1", | ||
"@babel/core": "^7.17.5", | ||
"@babel/preset-env": "^7.16.11", | ||
"@babel/preset-typescript": "^7.16.7", | ||
"@auto-it/conventional-commits": "^10.37.6", | ||
"@auto-it/first-time-contributor": "^10.37.6", | ||
"@babel/core": "^7.19.1", | ||
"@babel/preset-env": "^7.19.1", | ||
"@babel/preset-typescript": "^7.18.6", | ||
"@rollup/plugin-alias": "^3.1.9", | ||
"@rollup/plugin-babel": "^5.3.1", | ||
"@rollup/plugin-commonjs": "^22.0.0", | ||
"@rollup/plugin-commonjs": "^22.0.2", | ||
"@rollup/plugin-json": "^4.1.0", | ||
"@rollup/plugin-node-resolve": "^13.1.3", | ||
"@types/chai": "^4.3.0", | ||
"@types/d3": "^7.1.0", | ||
"@types/jest": "^27.4.1", | ||
"@rollup/plugin-node-resolve": "^14.1.0", | ||
"@types/chai": "^4.3.3", | ||
"@types/d3": "^7.4.0", | ||
"@types/mkdirp": "^1.0.2", | ||
"@types/pako": "^2.0.0", | ||
"@typescript-eslint/eslint-plugin": "^5.14.0", | ||
"@typescript-eslint/parser": "^5.14.0", | ||
"ajv": "^8.10.0", | ||
"@typescript-eslint/eslint-plugin": "^5.38.0", | ||
"@typescript-eslint/parser": "^5.38.0", | ||
"ajv": "^8.11.0", | ||
"ajv-formats": "^2.1.1", | ||
"auto": "^10.34.1", | ||
"auto": "^10.37.6", | ||
"chai": "^4.3.6", | ||
"cheerio": "^1.0.0-rc.10", | ||
"cheerio": "^1.0.0-rc.12", | ||
"conventional-changelog-cli": "^2.2.2", | ||
"d3": "^7.4.4", | ||
"d3": "^7.6.1", | ||
"del-cli": "^5.0.0", | ||
"eslint": "^8.11.0", | ||
"eslint": "^8.23.1", | ||
"eslint-config-prettier": "^8.5.0", | ||
"eslint-plugin-jest": "^27.0.1", | ||
"eslint-plugin-prettier": "^4.0.0", | ||
"eslint-plugin-jest": "^27.0.4", | ||
"eslint-plugin-prettier": "^4.2.1", | ||
"gh-pages": "^4.0.0", | ||
"highlight.js": "^11.5.0", | ||
"jest": "^27.5.1", | ||
"jest-dev-server": "^6.0.3", | ||
"highlight.js": "^11.6.0", | ||
"jest-dev-server": "^6.1.1", | ||
"mkdirp": "^1.0.4", | ||
"pako": "^2.0.4", | ||
"prettier": "^2.5.1", | ||
"prettier": "^2.7.1", | ||
"puppeteer": "^15.0.0", | ||
"rollup": "^2.70.1", | ||
"rollup": "^2.79.1", | ||
"rollup-plugin-bundle-size": "^1.0.3", | ||
@@ -129,9 +129,9 @@ "rollup-plugin-sourcemaps": "^0.6.3", | ||
"serve": "^14.0.1", | ||
"terser": "^5.12.1", | ||
"ts-jest": "^27.1.3", | ||
"ts-json-schema-generator": "^1.0.0", | ||
"vega-cli": "^5.22.0", | ||
"typescript": "~4.8.2", | ||
"terser": "^5.15.0", | ||
"ts-jest": "^29.0.1", | ||
"ts-json-schema-generator": "^1.1.1", | ||
"vega-cli": "^5.22.1", | ||
"typescript": "~4.8.3", | ||
"vega-datasets": "~2.4.0", | ||
"vega-embed": "^6.20.8", | ||
"vega-embed": "^6.21.0", | ||
"vega-tooltip": "^0.28.0", | ||
@@ -142,3 +142,2 @@ "yaml-front-matter": "^4.1.1" | ||
"@types/clone": "~2.1.1", | ||
"array-flat-polyfill": "^1.0.1", | ||
"clone": "~2.1.2", | ||
@@ -145,0 +144,0 @@ "fast-deep-equal": "~3.1.3", |
import { Orientation } from 'vega'; | ||
import { Encoding } from '../encoding'; | ||
import { MarkInvalidMixins } from '../mark'; | ||
import { NormalizerParams } from '../normalize'; | ||
@@ -24,3 +25,3 @@ import { GenericUnitSpec, NormalizedLayerSpec } from '../spec'; | ||
} | ||
export declare type BoxPlotDef = GenericCompositeMarkDef<BoxPlot> & BoxPlotConfig & { | ||
export declare type BoxPlotDef = GenericCompositeMarkDef<BoxPlot> & BoxPlotConfig & MarkInvalidMixins & { | ||
/** | ||
@@ -27,0 +28,0 @@ * Type of the mark. For box plots, this should always be `"boxplot"`. |
@@ -43,2 +43,3 @@ var __rest = (this && this.__rest) || function (s, e) { | ||
config); | ||
const invalid = markDef.invalid; | ||
const boxPlotType = getBoxPlotType(extent); | ||
@@ -61,3 +62,3 @@ const { bins, timeUnits, transform, continuousAxisChannelDef, continuousAxis, groupby, aggregate, encodingWithoutContinuousAxis, ticksOrient, boxOrient, customTooltipWithoutAggregatedField } = boxParams(spec, extent, config); | ||
// ## Whisker Layers | ||
const endTick = { type: 'tick', color: 'black', opacity: 1, orient: ticksOrient, invalid: null, aria: false }; | ||
const endTick = { type: 'tick', color: 'black', opacity: 1, orient: ticksOrient, invalid, aria: false }; | ||
const whiskerTooltipEncoding = boxPlotType === 'min-max' | ||
@@ -73,3 +74,3 @@ ? fiveSummaryTooltipEncoding // for min-max, show five-summary tooltip for whisker | ||
partName: 'rule', | ||
mark: { type: 'rule', invalid: null, aria: false }, | ||
mark: { type: 'rule', invalid, aria: false }, | ||
positionPrefix: 'lower_whisker', | ||
@@ -81,3 +82,3 @@ endPositionPrefix: 'lower_box', | ||
partName: 'rule', | ||
mark: { type: 'rule', invalid: null, aria: false }, | ||
mark: { type: 'rule', invalid, aria: false }, | ||
positionPrefix: 'upper_box', | ||
@@ -106,3 +107,3 @@ endPositionPrefix: 'upper_whisker', | ||
partName: 'box', | ||
mark: Object.assign(Object.assign({ type: 'bar' }, (sizeValue ? { size: sizeValue } : {})), { orient: boxOrient, invalid: null, ariaRoleDescription: 'box' }), | ||
mark: Object.assign(Object.assign({ type: 'bar' }, (sizeValue ? { size: sizeValue } : {})), { orient: boxOrient, invalid, ariaRoleDescription: 'box' }), | ||
positionPrefix: 'lower_box', | ||
@@ -114,3 +115,3 @@ endPositionPrefix: 'upper_box', | ||
partName: 'median', | ||
mark: Object.assign(Object.assign(Object.assign({ type: 'tick', invalid: null }, (isObject(config.boxplot.median) && config.boxplot.median.color ? { color: config.boxplot.median.color } : {})), (sizeValue ? { size: sizeValue } : {})), { orient: ticksOrient, aria: false }), | ||
mark: Object.assign(Object.assign(Object.assign({ type: 'tick', invalid }, (isObject(config.boxplot.median) && config.boxplot.median.color ? { color: config.boxplot.median.color } : {})), (sizeValue ? { size: sizeValue } : {})), { orient: ticksOrient, aria: false }), | ||
positionPrefix: 'mid_box', | ||
@@ -117,0 +118,0 @@ extraEncoding: fiveSummaryTooltipEncoding |
@@ -60,4 +60,12 @@ import { Align, Color, Gradient, MarkConfig as VgMarkConfig, Orientation, SignalRef, TextBaseline } from 'vega'; | ||
export declare type Hide = 'hide'; | ||
export interface VLOnlyMarkConfig<ES extends ExprRef | SignalRef> extends ColorMixins<ES> { | ||
export interface MarkInvalidMixins { | ||
/** | ||
* Defines how Vega-Lite should handle marks for invalid values (`null` and `NaN`). | ||
* - If set to `"filter"` (default), all data items with null values will be skipped (for line, trail, and area marks) or filtered (for other marks). | ||
* - If `null`, all data items are included. In this case, invalid values will be interpreted as zeroes. | ||
*/ | ||
invalid?: 'filter' | Hide | null; | ||
} | ||
export interface VLOnlyMarkConfig<ES extends ExprRef | SignalRef> extends ColorMixins<ES>, MarkInvalidMixins { | ||
/** | ||
* Whether the mark's color should be used as fill color instead of stroke color. | ||
@@ -72,8 +80,2 @@ * | ||
/** | ||
* Defines how Vega-Lite should handle marks for invalid values (`null` and `NaN`). | ||
* - If set to `"filter"` (default), all data items with null values will be skipped (for line, trail, and area marks) or filtered (for other marks). | ||
* - If `null`, all data items are included. In this case, invalid values will be interpreted as zeroes. | ||
*/ | ||
invalid?: 'filter' | Hide | null; | ||
/** | ||
* For line and trail marks, this `order` property can be set to `null` or `false` to make the lines use the original order in the data sources. | ||
@@ -80,0 +82,0 @@ */ |
@@ -1,2 +0,1 @@ | ||
import 'array-flat-polyfill'; | ||
import { default as clone_ } from 'clone'; | ||
@@ -3,0 +2,0 @@ import stableStringify from 'fast-json-stable-stringify'; |
@@ -1,2 +0,1 @@ | ||
import 'array-flat-polyfill'; | ||
import { default as clone_ } from 'clone'; | ||
@@ -3,0 +2,0 @@ import deepEqual_ from 'fast-deep-equal'; |
{ | ||
"name": "vega-lite", | ||
"author": "Dominik Moritz, Kanit \"Ham\" Wongsuphasawat, Arvind Satyanarayan, Jeffrey Heer", | ||
"version": "5.5.1--canary.cef01d6.0", | ||
"version": "5.6.0--canary.8434.91e1716.0", | ||
"collaborators": [ | ||
@@ -86,40 +86,40 @@ "Kanit Wongsuphasawat (http://kanitw.yellowpigz.com)", | ||
"devDependencies": { | ||
"@auto-it/conventional-commits": "^10.34.1", | ||
"@auto-it/first-time-contributor": "^10.34.1", | ||
"@babel/core": "^7.17.5", | ||
"@babel/preset-env": "^7.16.11", | ||
"@babel/preset-typescript": "^7.16.7", | ||
"@auto-it/conventional-commits": "^10.37.6", | ||
"@auto-it/first-time-contributor": "^10.37.6", | ||
"@babel/core": "^7.19.1", | ||
"@babel/preset-env": "^7.19.1", | ||
"@babel/preset-typescript": "^7.18.6", | ||
"@rollup/plugin-alias": "^3.1.9", | ||
"@rollup/plugin-babel": "^5.3.1", | ||
"@rollup/plugin-commonjs": "^22.0.0", | ||
"@rollup/plugin-commonjs": "^22.0.2", | ||
"@rollup/plugin-json": "^4.1.0", | ||
"@rollup/plugin-node-resolve": "^13.1.3", | ||
"@types/chai": "^4.3.0", | ||
"@types/d3": "^7.1.0", | ||
"@types/jest": "^27.4.1", | ||
"@rollup/plugin-node-resolve": "^14.1.0", | ||
"@types/chai": "^4.3.3", | ||
"@types/d3": "^7.4.0", | ||
"@types/mkdirp": "^1.0.2", | ||
"@types/pako": "^2.0.0", | ||
"@typescript-eslint/eslint-plugin": "^5.14.0", | ||
"@typescript-eslint/parser": "^5.14.0", | ||
"ajv": "^8.10.0", | ||
"@typescript-eslint/eslint-plugin": "^5.38.0", | ||
"@typescript-eslint/parser": "^5.38.0", | ||
"ajv": "^8.11.0", | ||
"ajv-formats": "^2.1.1", | ||
"auto": "^10.34.1", | ||
"auto": "^10.37.6", | ||
"chai": "^4.3.6", | ||
"cheerio": "^1.0.0-rc.10", | ||
"cheerio": "^1.0.0-rc.12", | ||
"conventional-changelog-cli": "^2.2.2", | ||
"d3": "^7.4.4", | ||
"d3": "^7.6.1", | ||
"del-cli": "^5.0.0", | ||
"eslint": "^8.11.0", | ||
"eslint": "^8.23.1", | ||
"eslint-config-prettier": "^8.5.0", | ||
"eslint-plugin-jest": "^27.0.1", | ||
"eslint-plugin-prettier": "^4.0.0", | ||
"eslint-plugin-jest": "^27.0.4", | ||
"eslint-plugin-prettier": "^4.2.1", | ||
"gh-pages": "^4.0.0", | ||
"highlight.js": "^11.5.0", | ||
"jest": "^27.5.1", | ||
"jest-dev-server": "^6.0.3", | ||
"highlight.js": "^11.6.0", | ||
"jest-dev-server": "^6.1.1", | ||
"mkdirp": "^1.0.4", | ||
"pako": "^2.0.4", | ||
"prettier": "^2.5.1", | ||
"prettier": "^2.7.1", | ||
"puppeteer": "^15.0.0", | ||
"rollup": "^2.70.1", | ||
"rollup": "^2.79.1", | ||
"rollup-plugin-bundle-size": "^1.0.3", | ||
@@ -129,9 +129,9 @@ "rollup-plugin-sourcemaps": "^0.6.3", | ||
"serve": "^14.0.1", | ||
"terser": "^5.12.1", | ||
"ts-jest": "^27.1.3", | ||
"ts-json-schema-generator": "^1.0.0", | ||
"vega-cli": "^5.22.0", | ||
"typescript": "~4.8.2", | ||
"terser": "^5.15.0", | ||
"ts-jest": "^29.0.1", | ||
"ts-json-schema-generator": "^1.1.1", | ||
"vega-cli": "^5.22.1", | ||
"typescript": "~4.8.3", | ||
"vega-datasets": "~2.4.0", | ||
"vega-embed": "^6.20.8", | ||
"vega-embed": "^6.21.0", | ||
"vega-tooltip": "^0.28.0", | ||
@@ -142,3 +142,2 @@ "yaml-front-matter": "^4.1.1" | ||
"@types/clone": "~2.1.1", | ||
"array-flat-polyfill": "^1.0.1", | ||
"clone": "~2.1.2", | ||
@@ -145,0 +144,0 @@ "fast-deep-equal": "~3.1.3", |
@@ -7,3 +7,3 @@ import {Orientation} from 'vega'; | ||
import * as log from '../log'; | ||
import {isMarkDef, MarkDef} from '../mark'; | ||
import {isMarkDef, MarkDef, MarkInvalidMixins} from '../mark'; | ||
import {NormalizerParams} from '../normalize'; | ||
@@ -50,3 +50,4 @@ import {GenericUnitSpec, NormalizedLayerSpec, NormalizedUnitSpec} from '../spec'; | ||
export type BoxPlotDef = GenericCompositeMarkDef<BoxPlot> & | ||
BoxPlotConfig & { | ||
BoxPlotConfig & | ||
MarkInvalidMixins & { | ||
/** | ||
@@ -107,2 +108,4 @@ * Type of the mark. For box plots, this should always be `"boxplot"`. | ||
const invalid = markDef.invalid; | ||
const boxPlotType = getBoxPlotType(extent); | ||
@@ -153,3 +156,3 @@ const { | ||
const endTick: MarkDef = {type: 'tick', color: 'black', opacity: 1, orient: ticksOrient, invalid: null, aria: false}; | ||
const endTick: MarkDef = {type: 'tick', color: 'black', opacity: 1, orient: ticksOrient, invalid, aria: false}; | ||
const whiskerTooltipEncoding: Encoding<string> = | ||
@@ -171,3 +174,3 @@ boxPlotType === 'min-max' | ||
partName: 'rule', | ||
mark: {type: 'rule', invalid: null, aria: false}, | ||
mark: {type: 'rule', invalid, aria: false}, | ||
positionPrefix: 'lower_whisker', | ||
@@ -179,3 +182,3 @@ endPositionPrefix: 'lower_box', | ||
partName: 'rule', | ||
mark: {type: 'rule', invalid: null, aria: false}, | ||
mark: {type: 'rule', invalid, aria: false}, | ||
positionPrefix: 'upper_box', | ||
@@ -210,3 +213,3 @@ endPositionPrefix: 'upper_whisker', | ||
orient: boxOrient, | ||
invalid: null, | ||
invalid, | ||
ariaRoleDescription: 'box' | ||
@@ -222,3 +225,3 @@ }, | ||
type: 'tick', | ||
invalid: null, | ||
invalid, | ||
...(isObject(config.boxplot.median) && config.boxplot.median.color ? {color: config.boxplot.median.color} : {}), | ||
@@ -225,0 +228,0 @@ ...(sizeValue ? {size: sizeValue} : {}), |
@@ -78,4 +78,13 @@ import {Align, Color, Gradient, MarkConfig as VgMarkConfig, Orientation, SignalRef, TextBaseline} from 'vega'; | ||
export interface VLOnlyMarkConfig<ES extends ExprRef | SignalRef> extends ColorMixins<ES> { | ||
export interface MarkInvalidMixins { | ||
/** | ||
* Defines how Vega-Lite should handle marks for invalid values (`null` and `NaN`). | ||
* - If set to `"filter"` (default), all data items with null values will be skipped (for line, trail, and area marks) or filtered (for other marks). | ||
* - If `null`, all data items are included. In this case, invalid values will be interpreted as zeroes. | ||
*/ | ||
invalid?: 'filter' | Hide | null; | ||
} | ||
export interface VLOnlyMarkConfig<ES extends ExprRef | SignalRef> extends ColorMixins<ES>, MarkInvalidMixins { | ||
/** | ||
* Whether the mark's color should be used as fill color instead of stroke color. | ||
@@ -91,9 +100,2 @@ * | ||
/** | ||
* Defines how Vega-Lite should handle marks for invalid values (`null` and `NaN`). | ||
* - If set to `"filter"` (default), all data items with null values will be skipped (for line, trail, and area marks) or filtered (for other marks). | ||
* - If `null`, all data items are included. In this case, invalid values will be interpreted as zeroes. | ||
*/ | ||
invalid?: 'filter' | Hide | null; | ||
/** | ||
* For line and trail marks, this `order` property can be set to `null` or `false` to make the lines use the original order in the data sources. | ||
@@ -100,0 +102,0 @@ */ |
@@ -1,2 +0,1 @@ | ||
import 'array-flat-polyfill'; | ||
import {default as clone_} from 'clone'; | ||
@@ -3,0 +2,0 @@ import deepEqual_ from 'fast-deep-equal'; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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 too big to display
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
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
11
9352025
115655
- Removedarray-flat-polyfill@^1.0.1
- Removedarray-flat-polyfill@1.0.1(transitive)