Socket
Socket
Sign inDemoInstall

vega-lite

Package Overview
Dependencies
Maintainers
4
Versions
470
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vega-lite - npm Package Compare versions

Comparing version 5.6.1-next.1 to 5.7.0--canary.8145.0eb1af7.0

10

build/package.json

@@ -93,4 +93,4 @@ {

"@rollup/plugin-babel": "^6.0.0",
"@rollup/plugin-commonjs": "^23.0.0",
"@rollup/plugin-json": "^5.0.0",
"@rollup/plugin-commonjs": "^24.0.0",
"@rollup/plugin-json": "^6.0.0",
"@rollup/plugin-node-resolve": "^15.0.1",

@@ -116,7 +116,7 @@ "@types/chai": "^4.3.3",

"eslint-plugin-prettier": "^4.2.1",
"gh-pages": "^4.0.0",
"gh-pages": "^5.0.0",
"highlight.js": "^11.6.0",
"jest": "^27.5.1",
"jest-dev-server": "^6.1.1",
"mkdirp": "^1.0.4",
"mkdirp": "^2.1.3",
"pako": "^2.0.4",

@@ -146,3 +146,3 @@ "prettier": "^2.7.1",

"json-stringify-pretty-compact": "~3.0.0",
"tslib": "~2.4.0",
"tslib": "~2.5.0",
"vega-event-selector": "~3.0.0",

@@ -149,0 +149,0 @@ "vega-expression": "~5.0.0",

@@ -82,5 +82,5 @@ import { RangeType } from './compile/scale/type';

export declare const SINGLE_DEF_CHANNELS: ("fill" | "key" | "url" | "color" | "fillOpacity" | "opacity" | "stroke" | "strokeOpacity" | "strokeWidth" | "text" | "size" | "description" | "x" | "x2" | "y" | "y2" | "strokeDash" | "angle" | "shape" | "radius" | "theta" | "facet" | "href" | "theta2" | "radius2" | "xOffset" | "yOffset" | "longitude" | "latitude" | "longitude2" | "latitude2" | "row" | "column")[];
export declare type SingleDefChannel = typeof SINGLE_DEF_CHANNELS[number];
export declare type SingleDefChannel = (typeof SINGLE_DEF_CHANNELS)[number];
export declare const SINGLE_DEF_UNIT_CHANNELS: ("fill" | "key" | "url" | "color" | "fillOpacity" | "opacity" | "stroke" | "strokeOpacity" | "strokeWidth" | "text" | "size" | "description" | "x" | "x2" | "y" | "y2" | "strokeDash" | "angle" | "shape" | "radius" | "theta" | "href" | "theta2" | "radius2" | "xOffset" | "yOffset" | "longitude" | "latitude" | "longitude2" | "latitude2")[];
export declare type SingleDefUnitChannel = typeof SINGLE_DEF_UNIT_CHANNELS[number];
export declare type SingleDefUnitChannel = (typeof SINGLE_DEF_UNIT_CHANNELS)[number];
export declare function isSingleDefUnitChannel(str: string): str is SingleDefUnitChannel;

@@ -115,3 +115,3 @@ export declare function isChannel(str: string): str is Channel;

export declare const NONPOSITION_CHANNELS: ("fill" | "detail" | "key" | "url" | "color" | "fillOpacity" | "opacity" | "order" | "stroke" | "strokeOpacity" | "strokeWidth" | "text" | "size" | "description" | "strokeDash" | "tooltip" | "angle" | "shape" | "href")[];
export declare type NonPositionChannel = typeof NONPOSITION_CHANNELS[number];
export declare type NonPositionChannel = (typeof NONPOSITION_CHANNELS)[number];
declare const POSITION_SCALE_CHANNEL_INDEX: {

@@ -132,6 +132,6 @@ readonly x: 1;

export declare const OFFSET_SCALE_CHANNELS: ("xOffset" | "yOffset")[];
export declare type OffsetScaleChannel = typeof OFFSET_SCALE_CHANNELS[0];
export declare type OffsetScaleChannel = (typeof OFFSET_SCALE_CHANNELS)[0];
export declare function isXorYOffset(channel: Channel): channel is OffsetScaleChannel;
export declare const NONPOSITION_SCALE_CHANNELS: ("fill" | "color" | "fillOpacity" | "opacity" | "stroke" | "strokeOpacity" | "strokeWidth" | "size" | "strokeDash" | "angle" | "shape")[];
export declare type NonPositionScaleChannel = typeof NONPOSITION_SCALE_CHANNELS[number];
export declare type NonPositionScaleChannel = (typeof NONPOSITION_SCALE_CHANNELS)[number];
export declare function isNonPositionScaleChannel(channel: Channel): channel is NonPositionScaleChannel;

@@ -144,3 +144,3 @@ /**

export declare const SCALE_CHANNELS: ("fill" | "color" | "fillOpacity" | "opacity" | "stroke" | "strokeOpacity" | "strokeWidth" | "size" | "x" | "y" | "strokeDash" | "angle" | "shape" | "radius" | "theta" | "xOffset" | "yOffset")[];
export declare type ScaleChannel = typeof SCALE_CHANNELS[number];
export declare type ScaleChannel = (typeof SCALE_CHANNELS)[number];
export declare function isScaleChannel(channel: Channel): channel is ScaleChannel;

@@ -147,0 +147,0 @@ export declare type SupportedMark = Partial<Record<Mark, 'always' | 'binned'>>;

@@ -168,3 +168,3 @@ import { Gradient, ScaleType, SignalRef, Text } from 'vega';

* - `"temporal"` is the default type if (1) the encoded field contains `timeUnit` or (2) the specified scale type is a time or utc scale
* - `ordinal""` is the default type if (1) the encoded field contains a [custom `sort` order](https://vega.github.io/vega-lite/docs/sort.html#specifying-custom-sort-order), (2) the specified scale type is an ordinal/point/band scale, or (3) the encoding channel is `order`.
* - `"ordinal"` is the default type if (1) the encoded field contains a [custom `sort` order](https://vega.github.io/vega-lite/docs/sort.html#specifying-custom-sort-order), (2) the specified scale type is an ordinal/point/band scale, or (3) the encoding channel is `order`.
*

@@ -578,3 +578,3 @@ * 2) For a constant value in data domain (`datum`):

* - `"temporal"` is the default type if (1) the encoded field contains `timeUnit` or (2) the specified scale type is a time or utc scale
* - `ordinal""` is the default type if (1) the encoded field contains a [custom `sort` order](https://vega.github.io/vega-lite/docs/sort.html#specifying-custom-sort-order), (2) the specified scale type is an ordinal/point/band scale, or (3) the encoding channel is `order`.
* - `"ordinal"` is the default type if (1) the encoded field contains a [custom `sort` order](https://vega.github.io/vega-lite/docs/sort.html#specifying-custom-sort-order), (2) the specified scale type is an ordinal/point/band scale, or (3) the encoding channel is `order`.
*

@@ -666,3 +666,3 @@ * 2) For a constant value in data domain (`datum`):

* - `"temporal"` is the default type if (1) the encoded field contains `timeUnit` or (2) the specified scale type is a time or utc scale
* - `ordinal""` is the default type if (1) the encoded field contains a [custom `sort` order](https://vega.github.io/vega-lite/docs/sort.html#specifying-custom-sort-order), (2) the specified scale type is an ordinal/point/band scale, or (3) the encoding channel is `order`.
* - `"ordinal"` is the default type if (1) the encoded field contains a [custom `sort` order](https://vega.github.io/vega-lite/docs/sort.html#specifying-custom-sort-order), (2) the specified scale type is an ordinal/point/band scale, or (3) the encoding channel is `order`.
*

@@ -803,3 +803,3 @@ * 2) For a constant value in data domain (`datum`):

* - `"temporal"` is the default type if (1) the encoded field contains `timeUnit` or (2) the specified scale type is a time or utc scale
* - `ordinal""` is the default type if (1) the encoded field contains a [custom `sort` order](https://vega.github.io/vega-lite/docs/sort.html#specifying-custom-sort-order), (2) the specified scale type is an ordinal/point/band scale, or (3) the encoding channel is `order`.
* - `"ordinal"` is the default type if (1) the encoded field contains a [custom `sort` order](https://vega.github.io/vega-lite/docs/sort.html#specifying-custom-sort-order), (2) the specified scale type is an ordinal/point/band scale, or (3) the encoding channel is `order`.
*

@@ -806,0 +806,0 @@ * 2) For a constant value in data domain (`datum`):

@@ -11,3 +11,3 @@ import { Orientation } from 'vega';

export declare const BOXPLOT_PARTS: readonly ["box", "median", "outliers", "rule", "ticks"];
declare type BoxPlotPart = typeof BOXPLOT_PARTS[number];
declare type BoxPlotPart = (typeof BOXPLOT_PARTS)[number];
export declare type BoxPlotPartsMixins = PartsMixins<BoxPlotPart>;

@@ -14,0 +14,0 @@ export interface BoxPlotConfig extends BoxPlotPartsMixins {

@@ -6,5 +6,5 @@ import { Orientation, SignalRef, Text } from 'vega';

import { ExprRef } from '../expr';
import { ColorMixins, GenericMarkDef, Mark, MarkConfig, MarkDef } from '../mark';
import { ColorMixins, GenericMarkDef, Mark, AnyMarkConfig, MarkDef } from '../mark';
import { GenericUnitSpec, NormalizedUnitSpec } from '../spec';
export declare type PartsMixins<P extends string> = Partial<Record<P, boolean | MarkConfig<ExprRef | SignalRef>>>;
export declare type PartsMixins<P extends string> = Partial<Record<P, boolean | AnyMarkConfig<ExprRef | SignalRef>>>;
export declare type GenericCompositeMarkDef<T> = GenericMarkDef<T> & ColorMixins<ExprRef | SignalRef> & {

@@ -11,0 +11,0 @@ /**

@@ -13,3 +13,3 @@ import { Interpolate, Orientation } from 'vega';

export declare const ERRORBAND_PARTS: readonly ["band", "borders"];
declare type ErrorBandPart = typeof ERRORBAND_PARTS[number];
declare type ErrorBandPart = (typeof ERRORBAND_PARTS)[number];
export declare type ErrorBandPartsMixins = PartsMixins<ErrorBandPart>;

@@ -16,0 +16,0 @@ export interface ErrorBandConfig extends ErrorBandPartsMixins {

@@ -23,3 +23,3 @@ import { Orientation, SignalRef, Text } from 'vega';

export declare const ERRORBAR_PARTS: readonly ["ticks", "rule"];
export declare type ErrorBarPart = typeof ERRORBAR_PARTS[number];
export declare type ErrorBarPart = (typeof ERRORBAR_PARTS)[number];
export interface ErrorExtraEncoding<F extends Field> {

@@ -26,0 +26,0 @@ /**

{
"name": "vega-lite",
"author": "Dominik Moritz, Kanit \"Ham\" Wongsuphasawat, Arvind Satyanarayan, Jeffrey Heer",
"version": "5.6.1-next.1",
"version": "5.7.0--canary.8145.0eb1af7.0",
"collaborators": [

@@ -93,4 +93,4 @@ "Kanit Wongsuphasawat (http://kanitw.yellowpigz.com)",

"@rollup/plugin-babel": "^6.0.0",
"@rollup/plugin-commonjs": "^23.0.0",
"@rollup/plugin-json": "^5.0.0",
"@rollup/plugin-commonjs": "^24.0.0",
"@rollup/plugin-json": "^6.0.0",
"@rollup/plugin-node-resolve": "^15.0.1",

@@ -116,7 +116,7 @@ "@types/chai": "^4.3.3",

"eslint-plugin-prettier": "^4.2.1",
"gh-pages": "^4.0.0",
"gh-pages": "^5.0.0",
"highlight.js": "^11.6.0",
"jest": "^27.5.1",
"jest-dev-server": "^6.1.1",
"mkdirp": "^1.0.4",
"mkdirp": "^2.1.3",
"pako": "^2.0.4",

@@ -146,3 +146,3 @@ "prettier": "^2.7.1",

"json-stringify-pretty-compact": "~3.0.0",
"tslib": "~2.4.0",
"tslib": "~2.5.0",
"vega-event-selector": "~3.0.0",

@@ -149,0 +149,0 @@ "vega-expression": "~5.0.0",

@@ -196,7 +196,7 @@ /*

export type SingleDefChannel = typeof SINGLE_DEF_CHANNELS[number];
export type SingleDefChannel = (typeof SINGLE_DEF_CHANNELS)[number];
export const SINGLE_DEF_UNIT_CHANNELS = keys(SINGLE_DEF_UNIT_CHANNEL_INDEX);
export type SingleDefUnitChannel = typeof SINGLE_DEF_UNIT_CHANNELS[number];
export type SingleDefUnitChannel = (typeof SINGLE_DEF_UNIT_CHANNELS)[number];

@@ -393,3 +393,3 @@ export function isSingleDefUnitChannel(str: string): str is SingleDefUnitChannel {

export const NONPOSITION_CHANNELS = keys(NONPOSITION_CHANNEL_INDEX);
export type NonPositionChannel = typeof NONPOSITION_CHANNELS[number];
export type NonPositionChannel = (typeof NONPOSITION_CHANNELS)[number];

@@ -423,3 +423,3 @@ const POSITION_SCALE_CHANNEL_INDEX = {

export type OffsetScaleChannel = typeof OFFSET_SCALE_CHANNELS[0];
export type OffsetScaleChannel = (typeof OFFSET_SCALE_CHANNELS)[0];

@@ -447,3 +447,3 @@ export function isXorYOffset(channel: Channel): channel is OffsetScaleChannel {

export const NONPOSITION_SCALE_CHANNELS = keys(NONPOSITION_SCALE_CHANNEL_INDEX);
export type NonPositionScaleChannel = typeof NONPOSITION_SCALE_CHANNELS[number];
export type NonPositionScaleChannel = (typeof NONPOSITION_SCALE_CHANNELS)[number];

@@ -485,3 +485,3 @@ export function isNonPositionScaleChannel(channel: Channel): channel is NonPositionScaleChannel {

export const SCALE_CHANNELS = keys(SCALE_CHANNEL_INDEX);
export type ScaleChannel = typeof SCALE_CHANNELS[number];
export type ScaleChannel = (typeof SCALE_CHANNELS)[number];

@@ -488,0 +488,0 @@ export function isScaleChannel(channel: Channel): channel is ScaleChannel {

@@ -301,3 +301,3 @@ import {Gradient, ScaleType, SignalRef, Text} from 'vega';

* - `"temporal"` is the default type if (1) the encoded field contains `timeUnit` or (2) the specified scale type is a time or utc scale
* - `ordinal""` is the default type if (1) the encoded field contains a [custom `sort` order](https://vega.github.io/vega-lite/docs/sort.html#specifying-custom-sort-order), (2) the specified scale type is an ordinal/point/band scale, or (3) the encoding channel is `order`.
* - `"ordinal"` is the default type if (1) the encoded field contains a [custom `sort` order](https://vega.github.io/vega-lite/docs/sort.html#specifying-custom-sort-order), (2) the specified scale type is an ordinal/point/band scale, or (3) the encoding channel is `order`.
*

@@ -304,0 +304,0 @@ * 2) For a constant value in data domain (`datum`):

@@ -30,3 +30,3 @@ import {Orientation} from 'vega';

type BoxPlotPart = typeof BOXPLOT_PARTS[number];
type BoxPlotPart = (typeof BOXPLOT_PARTS)[number];

@@ -33,0 +33,0 @@ export type BoxPlotPartsMixins = PartsMixins<BoxPlotPart>;

@@ -19,3 +19,3 @@ import {Orientation, SignalRef, Text} from 'vega';

import * as log from '../log';
import {ColorMixins, GenericMarkDef, isMarkDef, Mark, MarkConfig, MarkDef} from '../mark';
import {ColorMixins, GenericMarkDef, isMarkDef, Mark, AnyMarkConfig, MarkDef} from '../mark';
import {GenericUnitSpec, NormalizedUnitSpec} from '../spec';

@@ -26,3 +26,4 @@ import {getFirstDefined, hash, unique} from '../util';

export type PartsMixins<P extends string> = Partial<Record<P, boolean | MarkConfig<ExprRef | SignalRef>>>;
// Parts mixins can be any mark type. We could make a more specific type for each part.
export type PartsMixins<P extends string> = Partial<Record<P, boolean | AnyMarkConfig<ExprRef | SignalRef>>>;

@@ -212,3 +213,3 @@ export type GenericCompositeMarkDef<T> = GenericMarkDef<T> &

mark: {
...(compositeMarkConfig[part] as MarkConfig<ExprRef | SignalRef>),
...(compositeMarkConfig[part] as AnyMarkConfig<ExprRef | SignalRef>),
...(clip ? {clip} : {}),

@@ -219,3 +220,3 @@ ...(color ? {color} : {}),

style: `${mark}-${String(part)}`,
...(isBoolean(markDef[part]) ? {} : (markDef[part] as MarkConfig<ExprRef | SignalRef>))
...(isBoolean(markDef[part]) ? {} : (markDef[part] as AnyMarkConfig<ExprRef | SignalRef>))
}

@@ -222,0 +223,0 @@ }

@@ -21,3 +21,3 @@ import {Interpolate, Orientation} from 'vega';

type ErrorBandPart = typeof ERRORBAND_PARTS[number];
type ErrorBandPart = (typeof ERRORBAND_PARTS)[number];

@@ -24,0 +24,0 @@ export type ErrorBandPartsMixins = PartsMixins<ErrorBandPart>;

@@ -47,3 +47,3 @@ import {AggregateOp, Orientation, SignalRef, Text} from 'vega';

export type ErrorBarPart = typeof ERRORBAR_PARTS[number];
export type ErrorBarPart = (typeof ERRORBAR_PARTS)[number];

@@ -50,0 +50,0 @@ export interface ErrorExtraEncoding<F extends Field> {

@@ -604,6 +604,4 @@ import {Align, Color, Gradient, MarkConfig as VgMarkConfig, Orientation, SignalRef, TextBaseline} from 'vega';

// Point/Line OverlayMixins are only for area, line, and trail but we don't want to declare multiple types of MarkDef
export interface MarkDef<
M extends string | Mark = Mark,
ES extends ExprRef | SignalRef = ExprRef | SignalRef
> extends GenericMarkDef<M>,
export interface MarkDef<M extends string | Mark = Mark, ES extends ExprRef | SignalRef = ExprRef | SignalRef>
extends GenericMarkDef<M>,
Omit<

@@ -610,0 +608,0 @@ MarkConfig<ES> &

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 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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc