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

78

build/package.json
{
"name": "vega-lite",
"author": "Dominik Moritz, Kanit \"Ham\" Wongsuphasawat, Arvind Satyanarayan, Jeffrey Heer",
"version": "5.6.0",
"version": "5.6.1",
"collaborators": [

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

"build:toc": "yarn build:jekyll && scripts/generate-toc",
"build:site": "rollup -c site/rollup.config.js",
"build:site": "rollup -c site/rollup.config.mjs",
"build:jekyll": "pushd site && bundle exec jekyll build -q && popd",

@@ -75,4 +75,3 @@ "build:versions": "scripts/update-version.sh",

"watch:test:runtime": "NODE_OPTIONS=--experimental-vm-modules TZ=America/Los_Angeles npx jest --watch test-runtime/ --config test-runtime/jest-config.json",
"release": "yarn run prebuild && yarn build && yarn shipit",
"shipit": "auto shipit"
"release": "yarn release-it"
},

@@ -88,13 +87,13 @@ "repository": {

"devDependencies": {
"@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/core": "^7.20.12",
"@babel/preset-env": "^7.20.2",
"@babel/preset-typescript": "^7.18.6",
"@rollup/plugin-alias": "^4.0.0",
"@rollup/plugin-babel": "^6.0.0",
"@rollup/plugin-commonjs": "^23.0.0",
"@rollup/plugin-json": "^5.0.0",
"@release-it/conventional-changelog": "^5.1.1",
"@rollup/plugin-alias": "^4.0.3",
"@rollup/plugin-babel": "^6.0.3",
"@rollup/plugin-commonjs": "^24.0.1",
"@rollup/plugin-json": "^6.0.0",
"@rollup/plugin-node-resolve": "^15.0.1",
"@types/chai": "^4.3.3",
"@rollup/plugin-terser": "^0.4.0",
"@types/chai": "^4.3.4",
"@types/d3": "^7.4.0",

@@ -104,37 +103,36 @@ "@types/jest": "^27.4.1",

"@types/pako": "^2.0.0",
"@typescript-eslint/eslint-plugin": "^5.38.0",
"@typescript-eslint/parser": "^5.38.0",
"ajv": "^8.11.0",
"@typescript-eslint/eslint-plugin": "^5.52.0",
"@typescript-eslint/parser": "^5.52.0",
"ajv-formats": "^2.1.1",
"auto": "^10.37.6",
"chai": "^4.3.6",
"ajv": "^8.12.0",
"chai": "^4.3.7",
"cheerio": "^1.0.0-rc.12",
"conventional-changelog-cli": "^2.2.2",
"d3": "^7.6.1",
"d3": "^7.8.2",
"del-cli": "^5.0.0",
"eslint": "^8.23.1",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-jest": "^27.0.4",
"eslint-config-prettier": "^8.6.0",
"eslint-plugin-jest": "^27.2.1",
"eslint-plugin-prettier": "^4.2.1",
"gh-pages": "^4.0.0",
"highlight.js": "^11.6.0",
"eslint": "^8.34.0",
"gh-pages": "^5.0.0",
"highlight.js": "^11.7.0",
"jest-dev-server": "^6.1.1",
"jest": "^27.5.1",
"jest-dev-server": "^6.1.1",
"mkdirp": "^1.0.4",
"pako": "^2.0.4",
"prettier": "^2.7.1",
"mkdirp": "^2.1.3",
"pako": "^2.1.0",
"prettier": "^2.8.4",
"puppeteer": "^15.0.0",
"rollup": "^2.79.1",
"release-it": "^15.6.0",
"rollup-plugin-bundle-size": "^1.0.3",
"rollup-plugin-sourcemaps": "^0.6.3",
"rollup-plugin-terser": "^7.0.2",
"serve": "^14.0.1",
"terser": "^5.15.0",
"ts-jest": "^29.0.1",
"ts-json-schema-generator": "^1.1.1",
"typescript": "~4.8.3",
"rollup": "^3.15.0",
"serve": "^14.2.0",
"terser": "^5.16.3",
"ts-jest": "^29.0.5",
"ts-json-schema-generator": "^1.2.0",
"typescript": "~4.9.5",
"vega-cli": "^5.22.1",
"vega-datasets": "~2.5.1",
"vega-embed": "^6.21.0",
"vega-tooltip": "^0.30.0",
"vega-datasets": "~2.5.4",
"vega-embed": "^6.21.2",
"vega-tooltip": "^0.30.1",
"yaml-front-matter": "^4.1.1"

@@ -148,7 +146,7 @@ },

"json-stringify-pretty-compact": "~3.0.0",
"tslib": "~2.4.0",
"tslib": "~2.5.0",
"vega-event-selector": "~3.0.0",
"vega-expression": "~5.0.0",
"vega-util": "~1.17.0",
"yargs": "~17.6.0"
"yargs": "~17.6.2"
},

@@ -155,0 +153,0 @@ "peerDependencies": {

@@ -14,4 +14,4 @@ import { AggregateOp } from 'vega';

}
export declare type NonArgAggregateOp = Exclude<AggregateOp, 'argmin' | 'argmax'>;
export declare type Aggregate = NonArgAggregateOp | ArgmaxDef | ArgminDef;
export type NonArgAggregateOp = Exclude<AggregateOp, 'argmin' | 'argmax'>;
export type Aggregate = NonArgAggregateOp | ArgmaxDef | ArgminDef;
export declare function isArgminDef(a: Aggregate | string): a is ArgminDef;

@@ -18,0 +18,0 @@ export declare function isArgmaxDef(a: Aggregate | string): a is ArgmaxDef;

@@ -8,3 +8,3 @@ import { Align, Axis as VgAxis, AxisEncode, AxisOrient, BaseAxis, Color, FontStyle, FontWeight, LabelOverlap, SignalRef, TextBaseline, TimeInterval, TimeIntervalStep } from 'vega';

import { MapExcludeValueRefAndReplaceSignalWith, VgEncodeChannel } from './vega.schema';
export declare type BaseAxisNoValueRefs<ES extends ExprRef | SignalRef> = AxisOverrideMixins<ES> & VLOnlyAxisMixins & Omit<MapExcludeValueRefAndReplaceSignalWith<BaseAxis, ES>, 'labelOverlap'>;
export type BaseAxisNoValueRefs<ES extends ExprRef | SignalRef> = AxisOverrideMixins<ES> & VLOnlyAxisMixins & Omit<MapExcludeValueRefAndReplaceSignalWith<BaseAxis, ES>, 'labelOverlap'>;
interface AxisOverrideMixins<ES extends ExprRef | SignalRef> {

@@ -120,3 +120,3 @@ /**

}
export declare type ConditionalAxisProp = 'labelAlign' | 'labelBaseline' | 'labelColor' | 'labelFont' | 'labelFontSize' | 'labelFontStyle' | 'labelFontWeight' | 'labelOpacity' | 'labelOffset' | 'labelPadding' | 'gridColor' | 'gridDash' | 'gridDashOffset' | 'gridOpacity' | 'gridWidth' | 'tickColor' | 'tickDash' | 'tickDashOffset' | 'tickOpacity' | 'tickSize' | 'tickWidth';
export type ConditionalAxisProp = 'labelAlign' | 'labelBaseline' | 'labelColor' | 'labelFont' | 'labelFontSize' | 'labelFontStyle' | 'labelFontWeight' | 'labelOpacity' | 'labelOffset' | 'labelPadding' | 'gridColor' | 'gridDash' | 'gridDashOffset' | 'gridOpacity' | 'gridWidth' | 'tickColor' | 'tickDash' | 'tickDashOffset' | 'tickOpacity' | 'tickSize' | 'tickWidth';
export declare const CONDITIONAL_AXIS_PROP_INDEX: Record<ConditionalAxisProp, {

@@ -126,15 +126,15 @@ part: keyof AxisEncode;

} | null>;
export declare type ConditionalAxisProperty<V extends Value | number[], ES extends ExprRef | SignalRef> = (ValueDef<V> | ES) & {
export type ConditionalAxisProperty<V extends Value | number[], ES extends ExprRef | SignalRef> = (ValueDef<V> | ES) & {
condition: ConditionalPredicate<ValueDef<V> | ES> | ConditionalPredicate<ValueDef<V> | ES>[];
};
export declare function isConditionalAxisValue<V extends Value | number[], ES extends ExprRef | SignalRef>(v: any): v is ConditionalAxisProperty<V, ES>;
export declare type ConditionalAxisNumber<ES extends ExprRef | SignalRef = ExprRef | SignalRef> = ConditionalAxisProperty<number | null, ES>;
export declare type ConditionalAxisLabelAlign<ES extends ExprRef | SignalRef = ExprRef | SignalRef> = ConditionalAxisProperty<Align | null, ES>;
export declare type ConditionalAxisLabelBaseline<ES extends ExprRef | SignalRef = ExprRef | SignalRef> = ConditionalAxisProperty<TextBaseline | null, ES>;
export declare type ConditionalAxisColor<ES extends ExprRef | SignalRef = ExprRef | SignalRef> = ConditionalAxisProperty<Color | null, ES>;
export declare type ConditionalAxisString<ES extends ExprRef | SignalRef = ExprRef | SignalRef> = ConditionalAxisProperty<string | null, ES>;
export declare type ConditionalAxisLabelFontStyle<ES extends ExprRef | SignalRef = ExprRef | SignalRef> = ConditionalAxisProperty<FontStyle | null, ES>;
export declare type ConditionalAxisLabelFontWeight<ES extends ExprRef | SignalRef = ExprRef | SignalRef> = ConditionalAxisProperty<FontWeight | null, ES>;
export declare type ConditionalAxisNumberArray<ES extends ExprRef | SignalRef = ExprRef | SignalRef> = ConditionalAxisProperty<number[] | null, ES>;
export declare type AxisConfigBaseWithConditionalAndSignal<ES extends ExprRef | SignalRef> = Omit<BaseAxisNoValueRefs<ES>, ConditionalAxisProp | 'title'> & AxisPropsWithCondition<ES>;
export type ConditionalAxisNumber<ES extends ExprRef | SignalRef = ExprRef | SignalRef> = ConditionalAxisProperty<number | null, ES>;
export type ConditionalAxisLabelAlign<ES extends ExprRef | SignalRef = ExprRef | SignalRef> = ConditionalAxisProperty<Align | null, ES>;
export type ConditionalAxisLabelBaseline<ES extends ExprRef | SignalRef = ExprRef | SignalRef> = ConditionalAxisProperty<TextBaseline | null, ES>;
export type ConditionalAxisColor<ES extends ExprRef | SignalRef = ExprRef | SignalRef> = ConditionalAxisProperty<Color | null, ES>;
export type ConditionalAxisString<ES extends ExprRef | SignalRef = ExprRef | SignalRef> = ConditionalAxisProperty<string | null, ES>;
export type ConditionalAxisLabelFontStyle<ES extends ExprRef | SignalRef = ExprRef | SignalRef> = ConditionalAxisProperty<FontStyle | null, ES>;
export type ConditionalAxisLabelFontWeight<ES extends ExprRef | SignalRef = ExprRef | SignalRef> = ConditionalAxisProperty<FontWeight | null, ES>;
export type ConditionalAxisNumberArray<ES extends ExprRef | SignalRef = ExprRef | SignalRef> = ConditionalAxisProperty<number[] | null, ES>;
export type AxisConfigBaseWithConditionalAndSignal<ES extends ExprRef | SignalRef> = Omit<BaseAxisNoValueRefs<ES>, ConditionalAxisProp | 'title'> & AxisPropsWithCondition<ES>;
export interface AxisPropsWithCondition<ES extends ExprRef | SignalRef> {

@@ -165,3 +165,3 @@ labelAlign?: BaseAxisNoValueRefs<ES>['labelAlign'] | ConditionalAxisLabelAlign<ES>;

}
export declare type AxisConfig<ES extends ExprRef | SignalRef> = Guide & VlOnlyGuideConfig & AxisConfigBaseWithConditionalAndSignal<ES> & {
export type AxisConfig<ES extends ExprRef | SignalRef> = Guide & VlOnlyGuideConfig & AxisConfigBaseWithConditionalAndSignal<ES> & {
/**

@@ -180,4 +180,4 @@ * Disable axis by default.

}
export declare type AxisInternal = Axis<SignalRef>;
export declare type AxisPart = keyof AxisEncoding;
export type AxisInternal = Axis<SignalRef>;
export type AxisPart = keyof AxisEncoding;
export declare const AXIS_PARTS: AxisPart[];

@@ -184,0 +184,0 @@ /**

@@ -68,4 +68,4 @@ import { ExtendedChannel } from './channel';

}
export declare type Bin = boolean | BinParams | 'binned' | null;
export declare type BinExtent = [number, number] | ParameterExtent;
export type Bin = boolean | BinParams | 'binned' | null;
export type BinExtent = [number, number] | ParameterExtent;
/**

@@ -72,0 +72,0 @@ * Create a key for the bin configuration. Not for prebinned bin.

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

import { EncodingFacetMapping } from './spec/facet';
export declare type Channel = keyof Encoding<any>;
export declare type ExtendedChannel = Channel | FacetChannel;
export type Channel = keyof Encoding<any>;
export type ExtendedChannel = Channel | FacetChannel;
export declare const ROW: "row";

@@ -50,3 +50,3 @@ export declare const COLUMN: "column";

};
export declare type PositionChannel = keyof typeof POSITION_CHANNEL_INDEX;
export type PositionChannel = keyof typeof POSITION_CHANNEL_INDEX;
declare const POLAR_POSITION_CHANNEL_INDEX: {

@@ -58,3 +58,3 @@ readonly theta: 1;

};
export declare type PolarPositionChannel = keyof typeof POLAR_POSITION_CHANNEL_INDEX;
export type PolarPositionChannel = keyof typeof POLAR_POSITION_CHANNEL_INDEX;
export declare function isPolarPositionChannel(c: Channel): c is PolarPositionChannel;

@@ -67,9 +67,9 @@ declare const GEO_POSIITON_CHANNEL_INDEX: {

};
export declare type GeoPositionChannel = keyof typeof GEO_POSIITON_CHANNEL_INDEX;
export type GeoPositionChannel = keyof typeof GEO_POSIITON_CHANNEL_INDEX;
export declare function getPositionChannelFromLatLong(channel: GeoPositionChannel): PositionChannel;
export declare function isGeoPositionChannel(c: Channel): c is GeoPositionChannel;
export declare const GEOPOSITION_CHANNELS: ("longitude" | "latitude" | "longitude2" | "latitude2")[];
export declare type ColorChannel = 'color' | 'fill' | 'stroke';
export type ColorChannel = 'color' | 'fill' | 'stroke';
export declare function isColorChannel(channel: Channel): channel is ColorChannel;
export declare type FacetChannel = keyof EncodingFacetMapping<any, any>;
export type FacetChannel = keyof EncodingFacetMapping<any, any>;
export declare const FACET_CHANNELS: (keyof EncodingFacetMapping<any, any>)[];

@@ -86,11 +86,11 @@ export declare const CHANNELS: ("fill" | "detail" | "key" | "url" | "color" | "fillOpacity" | "opacity" | "order" | "stroke" | "strokeOpacity" | "strokeWidth" | "text" | "size" | "description" | "x" | "x2" | "y" | "y2" | "strokeDash" | "tooltip" | "angle" | "shape" | "radius" | "theta" | "facet" | "href" | "theta2" | "radius2" | "xOffset" | "yOffset" | "longitude" | "latitude" | "longitude2" | "latitude2" | "row" | "column")[];

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 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 type SingleDefUnitChannel = (typeof SINGLE_DEF_UNIT_CHANNELS)[number];
export declare function isSingleDefUnitChannel(str: string): str is SingleDefUnitChannel;
export declare function isChannel(str: string): str is Channel;
export declare type SecondaryRangeChannel = 'x2' | 'y2' | 'latitude2' | 'longitude2' | 'theta2' | 'radius2';
export type SecondaryRangeChannel = 'x2' | 'y2' | 'latitude2' | 'longitude2' | 'theta2' | 'radius2';
export declare const SECONDARY_RANGE_CHANNEL: SecondaryRangeChannel[];
export declare function isSecondaryRangeChannel(c: ExtendedChannel): c is SecondaryRangeChannel;
export declare type MainChannelOf<C extends ExtendedChannel> = C extends 'x2' ? 'x' : C extends 'y2' ? 'y' : C extends 'latitude2' ? 'latitude' : C extends 'longitude2' ? 'longitude' : C extends 'theta2' ? 'theta' : C extends 'radius2' ? 'radius' : C;
export type MainChannelOf<C extends ExtendedChannel> = C extends 'x2' ? 'x' : C extends 'y2' ? 'y' : C extends 'latitude2' ? 'latitude' : C extends 'longitude2' ? 'longitude' : C extends 'theta2' ? 'theta' : C extends 'radius2' ? 'radius' : C;
/**

@@ -100,3 +100,3 @@ * Get the main channel for a range channel. E.g. `x` for `x2`.

export declare function getMainRangeChannel<C extends ExtendedChannel>(channel: C): MainChannelOf<C>;
export declare type SecondaryChannelOf<C extends Channel> = C extends 'x' ? 'x2' : C extends 'y' ? 'y2' : C extends 'latitude' ? 'latitude2' : C extends 'longitude' ? 'longitude2' : C extends 'theta' ? 'theta2' : C extends 'radius' ? 'radius2' : undefined;
export type SecondaryChannelOf<C extends Channel> = C extends 'x' ? 'x2' : C extends 'y' ? 'y2' : C extends 'latitude' ? 'latitude2' : C extends 'longitude' ? 'longitude2' : C extends 'theta' ? 'theta2' : C extends 'radius' ? 'radius2' : undefined;
export declare function getVgPositionChannel(channel: PolarPositionChannel | PositionChannel): "x" | "x2" | "y" | "y2" | "innerRadius" | "outerRadius" | "startAngle" | "endAngle";

@@ -120,3 +120,3 @@ /**

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 type NonPositionChannel = (typeof NONPOSITION_CHANNELS)[number];
declare const POSITION_SCALE_CHANNEL_INDEX: {

@@ -127,3 +127,3 @@ readonly x: 1;

export declare const POSITION_SCALE_CHANNELS: ("x" | "y")[];
export declare type PositionScaleChannel = keyof typeof POSITION_SCALE_CHANNEL_INDEX;
export type PositionScaleChannel = keyof typeof POSITION_SCALE_CHANNEL_INDEX;
export declare function isXorY(channel: ExtendedChannel): channel is PositionScaleChannel;

@@ -135,9 +135,9 @@ export declare const POLAR_POSITION_SCALE_CHANNEL_INDEX: {

export declare const POLAR_POSITION_SCALE_CHANNELS: ("radius" | "theta")[];
export declare type PolarPositionScaleChannel = keyof typeof POLAR_POSITION_SCALE_CHANNEL_INDEX;
export type PolarPositionScaleChannel = keyof typeof POLAR_POSITION_SCALE_CHANNEL_INDEX;
export declare function getPositionScaleChannel(sizeType: 'width' | 'height'): PositionScaleChannel;
export declare const OFFSET_SCALE_CHANNELS: ("xOffset" | "yOffset")[];
export declare type OffsetScaleChannel = typeof OFFSET_SCALE_CHANNELS[0];
export 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 type NonPositionScaleChannel = (typeof NONPOSITION_SCALE_CHANNELS)[number];
export declare function isNonPositionScaleChannel(channel: Channel): channel is NonPositionScaleChannel;

@@ -150,5 +150,5 @@ /**

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 type ScaleChannel = (typeof SCALE_CHANNELS)[number];
export declare function isScaleChannel(channel: Channel): channel is ScaleChannel;
export declare type SupportedMark = Partial<Record<Mark, 'always' | 'binned'>>;
export type SupportedMark = Partial<Record<Mark, 'always' | 'binned'>>;
/**

@@ -155,0 +155,0 @@ * Return whether a channel supports a particular mark type.

@@ -24,4 +24,4 @@ import { Gradient, ScaleType, SignalRef, Text } from 'vega';

import { Dict } from './util';
export declare type PrimitiveValue = number | string | boolean | null;
export declare type Value<ES extends ExprRef | SignalRef = ExprRef | SignalRef> = PrimitiveValue | number[] | Gradient | Text | ES;
export type PrimitiveValue = number | string | boolean | null;
export type Value<ES extends ExprRef | SignalRef = ExprRef | SignalRef> = PrimitiveValue | number[] | Gradient | Text | ES;
/**

@@ -36,4 +36,4 @@ * Definition object for a constant value (primitive value or gradient definition) of an encoding channel.

}
export declare type PositionValueDef = ValueDef<number | 'width' | 'height' | ExprRef | SignalRef>;
export declare type NumericValueDef = ValueDef<number | ExprRef | SignalRef>;
export type PositionValueDef = ValueDef<number | 'width' | 'height' | ExprRef | SignalRef>;
export type NumericValueDef = ValueDef<number | ExprRef | SignalRef>;
/**

@@ -49,3 +49,3 @@ * A ValueDef with Condition<ValueDef | FieldDef> where either the condition or the value are optional.

*/
export declare type ValueDefWithCondition<F extends FieldDef<any> | DatumDef<any>, V extends Value = Value> = Partial<ValueDef<V | ExprRef | SignalRef>> & {
export type ValueDefWithCondition<F extends FieldDef<any> | DatumDef<any>, V extends Value = Value> = Partial<ValueDef<V | ExprRef | SignalRef>> & {
/**

@@ -56,7 +56,7 @@ * A field definition or one or more value definition(s) with a parameter predicate.

};
export declare type StringValueDefWithCondition<F extends Field, T extends Type = StandardType> = ValueDefWithCondition<MarkPropFieldOrDatumDef<F, T>, string | null>;
export declare type TypeForShape = 'nominal' | 'ordinal' | 'geojson';
export declare type ConditionalTemplate = FieldDef<any> | DatumDef | ValueDef<any> | ExprRef | SignalRef;
export declare type Conditional<CD extends ConditionalTemplate> = ConditionalPredicate<CD> | ConditionalParameter<CD>;
export declare type ConditionalPredicate<CD extends ConditionalTemplate> = {
export type StringValueDefWithCondition<F extends Field, T extends Type = StandardType> = ValueDefWithCondition<MarkPropFieldOrDatumDef<F, T>, string | null>;
export type TypeForShape = 'nominal' | 'ordinal' | 'geojson';
export type ConditionalTemplate = FieldDef<any> | DatumDef | ValueDef<any> | ExprRef | SignalRef;
export type Conditional<CD extends ConditionalTemplate> = ConditionalPredicate<CD> | ConditionalParameter<CD>;
export type ConditionalPredicate<CD extends ConditionalTemplate> = {
/**

@@ -67,3 +67,3 @@ * Predicate for triggering the condition

} & CD;
export declare type ConditionalParameter<CD extends ConditionalTemplate> = ParameterPredicate & CD;
export type ConditionalParameter<CD extends ConditionalTemplate> = ParameterPredicate & CD;
export declare function isConditionalParameter<T extends ConditionalTemplate>(c: Conditional<T>): c is ConditionalParameter<T>;

@@ -87,10 +87,10 @@ export interface ConditionValueDefMixins<V extends Value = Value> {

*/
export declare type FieldOrDatumDefWithCondition<F extends FieldDef<any, any> | DatumDef<any>, V extends Value = Value> = F & ConditionValueDefMixins<V | ExprRef | SignalRef>;
export declare type MarkPropDef<F extends Field, V extends Value, T extends Type = StandardType> = FieldOrDatumDefWithCondition<MarkPropFieldDef<F, T>, V> | FieldOrDatumDefWithCondition<DatumDef<F>, V> | ValueDefWithCondition<MarkPropFieldOrDatumDef<F, T>, V>;
export declare type ColorDef<F extends Field> = MarkPropDef<F, Gradient | string | null>;
export declare type NumericMarkPropDef<F extends Field> = MarkPropDef<F, number>;
export declare type NumericArrayMarkPropDef<F extends Field> = MarkPropDef<F, number[]>;
export declare type ShapeDef<F extends Field> = MarkPropDef<F, string | null, TypeForShape>;
export declare type StringFieldDefWithCondition<F extends Field> = FieldOrDatumDefWithCondition<StringFieldDef<F>, string>;
export declare type TextDef<F extends Field> = FieldOrDatumDefWithCondition<StringFieldDef<F>, Text> | FieldOrDatumDefWithCondition<StringDatumDef<F>, Text> | ValueDefWithCondition<StringFieldDef<F>, Text>;
export type FieldOrDatumDefWithCondition<F extends FieldDef<any, any> | DatumDef<any>, V extends Value = Value> = F & ConditionValueDefMixins<V | ExprRef | SignalRef>;
export type MarkPropDef<F extends Field, V extends Value, T extends Type = StandardType> = FieldOrDatumDefWithCondition<MarkPropFieldDef<F, T>, V> | FieldOrDatumDefWithCondition<DatumDef<F>, V> | ValueDefWithCondition<MarkPropFieldOrDatumDef<F, T>, V>;
export type ColorDef<F extends Field> = MarkPropDef<F, Gradient | string | null>;
export type NumericMarkPropDef<F extends Field> = MarkPropDef<F, number>;
export type NumericArrayMarkPropDef<F extends Field> = MarkPropDef<F, number[]>;
export type ShapeDef<F extends Field> = MarkPropDef<F, string | null, TypeForShape>;
export type StringFieldDefWithCondition<F extends Field> = FieldOrDatumDefWithCondition<StringFieldDef<F>, string>;
export type TextDef<F extends Field> = FieldOrDatumDefWithCondition<StringFieldDef<F>, Text> | FieldOrDatumDefWithCondition<StringDatumDef<F>, Text> | ValueDefWithCondition<StringFieldDef<F>, Text>;
/**

@@ -109,7 +109,7 @@ * A ValueDef with optional Condition<ValueDef | FieldDef>

}
export declare type FieldName = string;
export declare type Field = FieldName | RepeatRef;
export type FieldName = string;
export type Field = FieldName | RepeatRef;
export declare function isRepeatRef(field: Field | any): field is RepeatRef;
/** @@hidden */
export declare type HiddenCompositeAggregate = CompositeAggregate;
export type HiddenCompositeAggregate = CompositeAggregate;
export interface FieldDefBase<F, B extends Bin = Bin> extends BandMixins {

@@ -175,3 +175,3 @@ /**

* - `"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`.
*

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

*/
export declare type TypedFieldDef<F extends Field, T extends Type = any, B extends Bin = boolean | BinParams | 'binned' | null> = FieldDefBase<F, B> & TitleMixins & TypeMixins<T>;
export type TypedFieldDef<F extends Field, T extends Type = any, B extends Bin = boolean | BinParams | 'binned' | null> = FieldDefBase<F, B> & TitleMixins & TypeMixins<T>;
export interface SortableFieldDef<F extends Field, T extends Type = StandardType, B extends Bin = boolean | BinParams | null> extends TypedFieldDef<F, T, B> {

@@ -222,3 +222,3 @@ /**

export declare function isSortableFieldDef<F extends Field>(fieldDef: FieldDef<F>): fieldDef is SortableFieldDef<F>;
export declare type ScaleFieldDef<F extends Field, T extends Type = StandardType, B extends Bin = boolean | BinParams | null> = SortableFieldDef<F, T, B> & ScaleMixins;
export type ScaleFieldDef<F extends Field, T extends Type = StandardType, B extends Bin = boolean | BinParams | null> = SortableFieldDef<F, T, B> & ScaleMixins;
export interface ScaleMixins {

@@ -236,3 +236,3 @@ /**

}
export declare type OffsetDef<F extends Field, T extends Type = StandardType> = ScaleFieldDef<F, T> | ScaleDatumDef<F> | ValueDef<number>;
export type OffsetDef<F extends Field, T extends Type = StandardType> = ScaleFieldDef<F, T> | ScaleDatumDef<F> | ValueDef<number>;
export interface DatumDef<F extends Field = string, V extends PrimitiveValue | DateTime | ExprRef | SignalRef = PrimitiveValue | DateTime | ExprRef | SignalRef> extends Partial<TypeMixins<Type>>, BandMixins, TitleMixins {

@@ -267,18 +267,18 @@ /**

}
export declare type StringDatumDef<F extends Field = string> = DatumDef<F> & FormatMixins;
export declare type ScaleDatumDef<F extends Field = string> = ScaleMixins & DatumDef<F>;
export type StringDatumDef<F extends Field = string> = DatumDef<F> & FormatMixins;
export type ScaleDatumDef<F extends Field = string> = ScaleMixins & DatumDef<F>;
/**
* A field definition of a secondary channel that shares a scale with another primary channel. For example, `x2`, `xError` and `xError2` share the same scale with `x`.
*/
export declare type SecondaryFieldDef<F extends Field> = FieldDefBase<F, null> & TitleMixins;
export declare type Position2Def<F extends Field> = SecondaryFieldDef<F> | DatumDef<F> | PositionValueDef;
export declare type SecondaryChannelDef<F extends Field> = Encoding<F>['x2' | 'y2'];
export type SecondaryFieldDef<F extends Field> = FieldDefBase<F, null> & TitleMixins;
export type Position2Def<F extends Field> = SecondaryFieldDef<F> | DatumDef<F> | PositionValueDef;
export type SecondaryChannelDef<F extends Field> = Encoding<F>['x2' | 'y2'];
/**
* Field Def without scale (and without bin: "binned" support).
*/
export declare type FieldDefWithoutScale<F extends Field, T extends Type = StandardType> = TypedFieldDef<F, T>;
export declare type LatLongFieldDef<F extends Field> = FieldDefBase<F, null> & TitleMixins & Partial<TypeMixins<'quantitative'>>;
export declare type LatLongDef<F extends Field> = LatLongFieldDef<F> | DatumDef<F>;
export declare type PositionFieldDefBase<F extends Field> = ScaleFieldDef<F, StandardType, boolean | BinParams | 'binned' | null> & PositionBaseMixins;
export declare type PositionDatumDefBase<F extends Field> = ScaleDatumDef<F> & PositionBaseMixins;
export type FieldDefWithoutScale<F extends Field, T extends Type = StandardType> = TypedFieldDef<F, T>;
export type LatLongFieldDef<F extends Field> = FieldDefBase<F, null> & TitleMixins & Partial<TypeMixins<'quantitative'>>;
export type LatLongDef<F extends Field> = LatLongFieldDef<F> | DatumDef<F>;
export type PositionFieldDefBase<F extends Field> = ScaleFieldDef<F, StandardType, boolean | BinParams | 'binned' | null> & PositionBaseMixins;
export type PositionDatumDefBase<F extends Field> = ScaleDatumDef<F> & PositionBaseMixins;
export interface PositionBaseMixins {

@@ -314,5 +314,5 @@ /**

}
export declare type PositionFieldDef<F extends Field> = PositionFieldDefBase<F> & PositionMixins;
export declare type PositionDatumDef<F extends Field> = PositionDatumDefBase<F> & PositionMixins;
export declare type PositionDef<F extends Field> = PositionFieldDef<F> | PositionDatumDef<F> | PositionValueDef;
export type PositionFieldDef<F extends Field> = PositionFieldDefBase<F> & PositionMixins;
export type PositionDatumDef<F extends Field> = PositionDatumDefBase<F> & PositionMixins;
export type PositionDef<F extends Field> = PositionFieldDef<F> | PositionDatumDef<F> | PositionValueDef;
export interface PositionMixins {

@@ -337,3 +337,3 @@ /**

}
export declare type PolarDef<F extends Field> = PositionFieldDefBase<F> | PositionDatumDefBase<F> | PositionValueDef;
export type PolarDef<F extends Field> = PositionFieldDefBase<F> | PositionDatumDefBase<F> | PositionValueDef;
export declare function getBandPosition({ fieldDef, fieldDef2, markDef: mark, config }: {

@@ -358,5 +358,5 @@ fieldDef: FieldDef<string> | DatumDef;

*/
export declare type MarkPropFieldDef<F extends Field, T extends Type = Type> = ScaleFieldDef<F, T, boolean | BinParams | null> & LegendMixins;
export declare type MarkPropDatumDef<F extends Field> = LegendMixins & ScaleDatumDef<F>;
export declare type MarkPropFieldOrDatumDef<F extends Field, T extends Type = Type> = MarkPropFieldDef<F, T> | MarkPropDatumDef<F>;
export type MarkPropFieldDef<F extends Field, T extends Type = Type> = ScaleFieldDef<F, T, boolean | BinParams | null> & LegendMixins;
export type MarkPropDatumDef<F extends Field> = LegendMixins & ScaleDatumDef<F>;
export type MarkPropFieldOrDatumDef<F extends Field, T extends Type = Type> = MarkPropFieldDef<F, T> | MarkPropDatumDef<F>;
export interface LegendMixins {

@@ -379,7 +379,7 @@ /**

}
export declare type OrderValueDef = ConditionValueDefMixins<number> & NumericValueDef;
export type OrderValueDef = ConditionValueDefMixins<number> & NumericValueDef;
export interface StringFieldDef<F extends Field> extends FieldDefWithoutScale<F, StandardType>, FormatMixins {
}
export declare type FieldDef<F extends Field, T extends Type = any> = SecondaryFieldDef<F> | TypedFieldDef<F, T>;
export declare type ChannelDef<F extends Field = string> = Encoding<F>[keyof Encoding<F>];
export type FieldDef<F extends Field, T extends Type = any> = SecondaryFieldDef<F> | TypedFieldDef<F, T>;
export type ChannelDef<F extends Field = string> = Encoding<F>[keyof Encoding<F>];
export declare function isConditionalDef<CD extends ChannelDef<any> | GuideEncodingConditionalValueDef | ExprRef | SignalRef>(channelDef: CD): channelDef is CD & {

@@ -438,3 +438,3 @@ condition: Conditional<any>;

export declare function isCount(fieldDef: FieldDefBase<Field>): boolean;
export declare type FieldTitleFormatter = (fieldDef: FieldDefBase<string>, config: Config) => string;
export type FieldTitleFormatter = (fieldDef: FieldDefBase<string>, config: Config) => string;
export declare function verbalTitleFormatter(fieldDef: FieldDefBase<string>, config: Config): string;

@@ -594,3 +594,3 @@ export declare function functionalTitleFormatter(fieldDef: FieldDefBase<string>): string;

* - `"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`.
*

@@ -682,3 +682,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`.
*

@@ -819,3 +819,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`.
*

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

@@ -5,3 +5,3 @@ import { Axis as VgAxis, SignalRef, Text } from 'vega';

import { Split } from '../split';
export declare type AxisComponentProps = Omit<VgAxis, 'title' | ConditionalAxisProp> & Omit<AxisPropsWithCondition<SignalRef>, 'title'> & {
export type AxisComponentProps = Omit<VgAxis, 'title' | ConditionalAxisProp> & Omit<AxisPropsWithCondition<SignalRef>, 'title'> & {
title: Text | FieldDefBase<string>[] | SignalRef;

@@ -8,0 +8,0 @@ labelExpr: string;

@@ -5,3 +5,3 @@ import { ScaleType, SignalRef } from 'vega';

import { Config, StyleConfigIndex } from '../../config';
export declare type AxisConfigs = ReturnType<typeof getAxisConfigs>;
export type AxisConfigs = ReturnType<typeof getAxisConfigs>;
export declare function getAxisConfigs(channel: PositionScaleChannel, scaleType: ScaleType, orient: string | SignalRef, config: Config): {

@@ -8,0 +8,0 @@ vlOnlyAxisConfig: any;

@@ -54,3 +54,3 @@ import { Align, AxisOrient, Orient, SignalRef } from 'vega';

})[];
export declare function defaultZindex(mark: Mark, fieldDef: TypedFieldDef<string> | DatumDef): 1 | 0;
export declare function defaultZindex(mark: Mark, fieldDef: TypedFieldDef<string> | DatumDef): 0 | 1;
//# sourceMappingURL=properties.d.ts.map

@@ -42,3 +42,3 @@ import { ExprRef, SignalRef, Text } from 'vega';

export declare function sortParams(orderDef: OrderFieldDef<string> | OrderFieldDef<string>[], fieldRefOption?: FieldRefOption): SortFields;
export declare type AxisTitleComponent = AxisComponentProps['title'];
export type AxisTitleComponent = AxisComponentProps['title'];
export declare function mergeTitleFieldDefs(f1: readonly FieldDefBase<string>[], f2: readonly FieldDefBase<string>[]): FieldDefBase<string, import("../bin").Bin>[];

@@ -45,0 +45,0 @@ export declare function mergeTitle(title1: Text | SignalRef, title2: Text | SignalRef): SignalRef | Text;

@@ -6,3 +6,3 @@ import { AggregateOp, AggregateTransform as VgAggregateTransform } from 'vega';

import { DataFlowNode } from './dataflow';
declare type Measures = Dict<Partial<Record<AggregateOp, Set<string>>>>;
type Measures = Dict<Partial<Record<AggregateOp, Set<string>>>>;
export declare class AggregateNode extends DataFlowNode {

@@ -9,0 +9,0 @@ private dimensions;

@@ -50,2 +50,5 @@ import { isArgmaxDef, isArgminDef } from '../../aggregate';

export class AggregateNode extends DataFlowNode {
clone() {
return new AggregateNode(null, new Set(this.dimensions), duplicate(this.measures));
}
/**

@@ -60,5 +63,2 @@ * @param dimensions string set for dimensions

}
clone() {
return new AggregateNode(null, new Set(this.dimensions), duplicate(this.measures));
}
get groupBy() {

@@ -65,0 +65,0 @@ return this.dimensions;

@@ -75,2 +75,5 @@ var __rest = (this && this.__rest) || function (s, e) {

export class BinNode extends DataFlowNode {
clone() {
return new BinNode(null, duplicate(this.bins));
}
constructor(parent, bins) {

@@ -80,5 +83,2 @@ super(parent);

}
clone() {
return new BinNode(null, duplicate(this.bins));
}
static makeFromEncoding(parent, model) {

@@ -85,0 +85,0 @@ const bins = model.reduceFieldDef((binComponentIndex, fieldDef, channel) => {

@@ -8,2 +8,5 @@ import { isScaleFieldDef, vgField } from '../../channeldef';

export class CalculateNode extends DataFlowNode {
clone() {
return new CalculateNode(null, duplicate(this.transform));
}
constructor(parent, transform) {

@@ -14,5 +17,2 @@ super(parent);

}
clone() {
return new CalculateNode(null, duplicate(this.transform));
}
static parseAllForSortIndex(parent, model) {

@@ -19,0 +19,0 @@ // get all the encoding with sort fields from model

@@ -95,2 +95,12 @@ import * as log from '../../log';

export class OutputNode extends DataFlowNode {
clone() {
const cloneObj = new this.constructor();
cloneObj.debugName = `clone_${this.debugName}`;
cloneObj._source = this._source;
cloneObj._name = `clone_${this._name}`;
cloneObj.type = this.type;
cloneObj.refCounts = this.refCounts;
cloneObj.refCounts[cloneObj._name] = 0;
return cloneObj;
}
/**

@@ -110,12 +120,2 @@ * @param source The name of the source. Will change in assemble.

}
clone() {
const cloneObj = new this.constructor();
cloneObj.debugName = `clone_${this.debugName}`;
cloneObj._source = this._source;
cloneObj._name = `clone_${this._name}`;
cloneObj.type = this.type;
cloneObj.refCounts = this.refCounts;
cloneObj.refCounts[cloneObj._name] = 0;
return cloneObj;
}
dependentFields() {

@@ -122,0 +122,0 @@ return new Set();

@@ -18,2 +18,5 @@ var __rest = (this && this.__rest) || function (s, e) {

export class DensityTransformNode extends DataFlowNode {
clone() {
return new DensityTransformNode(null, duplicate(this.transform));
}
constructor(parent, transform) {

@@ -31,5 +34,2 @@ var _a, _b, _c;

}
clone() {
return new DensityTransformNode(null, duplicate(this.transform));
}
dependentFields() {

@@ -36,0 +36,0 @@ var _a;

@@ -6,2 +6,5 @@ import { duplicate } from '../../util';

export class FilterNode extends DataFlowNode {
clone() {
return new FilterNode(null, this.model, duplicate(this.filter));
}
constructor(parent, model, filter) {

@@ -16,5 +19,2 @@ super(parent);

}
clone() {
return new FilterNode(null, this.model, duplicate(this.filter));
}
dependentFields() {

@@ -21,0 +21,0 @@ return this._dependentFields;

@@ -9,2 +9,5 @@ import { isScaleChannel } from '../../channel';

export class FilterInvalidNode extends DataFlowNode {
clone() {
return new FilterInvalidNode(null, Object.assign({}, this.filter));
}
constructor(parent, filter) {

@@ -14,5 +17,2 @@ super(parent);

}
clone() {
return new FilterInvalidNode(null, Object.assign({}, this.filter));
}
static make(parent, model) {

@@ -19,0 +19,0 @@ const { config, mark, markDef } = model;

@@ -7,2 +7,5 @@ import { duplicate, hash } from '../../util';

export class FlattenTransformNode extends DataFlowNode {
clone() {
return new FlattenTransformNode(this.parent, duplicate(this.transform));
}
constructor(parent, transform) {

@@ -15,5 +18,2 @@ super(parent);

}
clone() {
return new FlattenTransformNode(this.parent, duplicate(this.transform));
}
dependentFields() {

@@ -20,0 +20,0 @@ return new Set(this.transform.flatten);

@@ -7,2 +7,5 @@ import { duplicate, hash } from '../../util';

export class FoldTransformNode extends DataFlowNode {
clone() {
return new FoldTransformNode(null, duplicate(this.transform));
}
constructor(parent, transform) {

@@ -16,5 +19,2 @@ var _a, _b, _c;

}
clone() {
return new FoldTransformNode(null, duplicate(this.transform));
}
dependentFields() {

@@ -21,0 +21,0 @@ return new Set(this.transform.fold);

@@ -185,2 +185,5 @@ import { isNumber, isString } from 'vega-util';

export class ParseNode extends DataFlowNode {
clone() {
return new ParseNode(null, duplicate(this._parse));
}
constructor(parent, parse) {

@@ -190,5 +193,2 @@ super(parent);

}
clone() {
return new ParseNode(null, duplicate(this._parse));
}
hash() {

@@ -195,0 +195,0 @@ return `Parse ${hash(this._parse)}`;

@@ -8,8 +8,2 @@ import { isString } from 'vega-util';

export class GeoJSONNode extends DataFlowNode {
constructor(parent, fields, geojson, signal) {
super(parent);
this.fields = fields;
this.geojson = geojson;
this.signal = signal;
}
clone() {

@@ -49,2 +43,8 @@ return new GeoJSONNode(null, duplicate(this.fields), this.geojson, this.signal);

}
constructor(parent, fields, geojson, signal) {
super(parent);
this.fields = fields;
this.geojson = geojson;
this.signal = signal;
}
dependentFields() {

@@ -51,0 +51,0 @@ var _a;

@@ -7,2 +7,5 @@ import { isString } from 'vega-util';

export class GeoPointNode extends DataFlowNode {
clone() {
return new GeoPointNode(null, this.projection, duplicate(this.fields), duplicate(this.as));
}
constructor(parent, projection, fields, as) {

@@ -14,5 +17,2 @@ super(parent);

}
clone() {
return new GeoPointNode(null, this.projection, duplicate(this.fields), duplicate(this.as));
}
static parseAll(parent, model) {

@@ -19,0 +19,0 @@ if (!model.projectionName()) {

import { hash } from '../../util';
import { DataFlowNode } from './dataflow';
export class GraticuleNode extends DataFlowNode {
clone() {
return new GraticuleNode(null, this.params);
}
constructor(parent, params) {

@@ -8,5 +11,2 @@ super(parent);

}
clone() {
return new GraticuleNode(null, this.params);
}
dependentFields() {

@@ -13,0 +13,0 @@ return new Set();

@@ -7,2 +7,5 @@ import { isFieldDef } from '../../channeldef';

export class ImputeNode extends DataFlowNode {
clone() {
return new ImputeNode(null, duplicate(this.transform));
}
constructor(parent, transform) {

@@ -12,5 +15,2 @@ super(parent);

}
clone() {
return new ImputeNode(null, duplicate(this.transform));
}
dependentFields() {

@@ -17,0 +17,0 @@ var _a;

@@ -9,2 +9,5 @@ import { vgField } from '../../channeldef';

export class JoinAggregateTransformNode extends DataFlowNode {
clone() {
return new JoinAggregateTransformNode(null, duplicate(this.transform));
}
constructor(parent, transform) {

@@ -14,5 +17,2 @@ super(parent);

}
clone() {
return new JoinAggregateTransformNode(null, duplicate(this.transform));
}
addDimensions(fields) {

@@ -19,0 +19,0 @@ this.transform.groupby = unique(this.transform.groupby.concat(fields), d => d);

@@ -18,2 +18,5 @@ var __rest = (this && this.__rest) || function (s, e) {

export class LoessTransformNode extends DataFlowNode {
clone() {
return new LoessTransformNode(null, duplicate(this.transform));
}
constructor(parent, transform) {

@@ -27,5 +30,2 @@ var _a, _b, _c;

}
clone() {
return new LoessTransformNode(null, duplicate(this.transform));
}
dependentFields() {

@@ -32,0 +32,0 @@ var _a;

@@ -10,2 +10,5 @@ import { array, isString } from 'vega-util';

export class LookupNode extends DataFlowNode {
clone() {
return new LookupNode(null, duplicate(this.transform), this.secondary);
}
constructor(parent, transform, secondary) {

@@ -16,5 +19,2 @@ super(parent);

}
clone() {
return new LookupNode(null, duplicate(this.transform), this.secondary);
}
static make(parent, model, transform, counter) {

@@ -21,0 +21,0 @@ const sources = model.component.data.sources;

@@ -7,2 +7,5 @@ import { duplicate, hash, unique } from '../../util';

export class PivotTransformNode extends DataFlowNode {
clone() {
return new PivotTransformNode(null, duplicate(this.transform));
}
constructor(parent, transform) {

@@ -12,5 +15,2 @@ super(parent);

}
clone() {
return new PivotTransformNode(null, duplicate(this.transform));
}
addDimensions(fields) {

@@ -17,0 +17,0 @@ var _a;

@@ -18,2 +18,5 @@ var __rest = (this && this.__rest) || function (s, e) {

export class QuantileTransformNode extends DataFlowNode {
clone() {
return new QuantileTransformNode(null, duplicate(this.transform));
}
constructor(parent, transform) {

@@ -27,5 +30,2 @@ var _a, _b, _c;

}
clone() {
return new QuantileTransformNode(null, duplicate(this.transform));
}
dependentFields() {

@@ -32,0 +32,0 @@ var _a;

@@ -18,2 +18,5 @@ var __rest = (this && this.__rest) || function (s, e) {

export class RegressionTransformNode extends DataFlowNode {
clone() {
return new RegressionTransformNode(null, duplicate(this.transform));
}
constructor(parent, transform) {

@@ -27,5 +30,2 @@ var _a, _b, _c;

}
clone() {
return new RegressionTransformNode(null, duplicate(this.transform));
}
dependentFields() {

@@ -32,0 +32,0 @@ var _a;

@@ -7,2 +7,5 @@ import { duplicate, hash } from '../../util';

export class SampleTransformNode extends DataFlowNode {
clone() {
return new SampleTransformNode(null, duplicate(this.transform));
}
constructor(parent, transform) {

@@ -12,5 +15,2 @@ super(parent);

}
clone() {
return new SampleTransformNode(null, duplicate(this.transform));
}
dependentFields() {

@@ -17,0 +17,0 @@ return new Set();

import { hash } from '../../util';
import { DataFlowNode } from './dataflow';
export class SequenceNode extends DataFlowNode {
clone() {
return new SequenceNode(null, this.params);
}
constructor(parent, params) {

@@ -8,5 +11,2 @@ super(parent);

}
clone() {
return new SequenceNode(null, this.params);
}
dependentFields() {

@@ -13,0 +13,0 @@ return new Set();

@@ -20,2 +20,5 @@ import { isArray, isString } from 'vega-util';

export class StackNode extends DataFlowNode {
clone() {
return new StackNode(null, duplicate(this._stack));
}
constructor(parent, stack) {

@@ -25,5 +28,2 @@ super(parent);

}
clone() {
return new StackNode(null, duplicate(this._stack));
}
static makeFromTransform(parent, stackTransform) {

@@ -30,0 +30,0 @@ const { stack, groupby, as, offset = 'zero' } = stackTransform;

@@ -6,3 +6,3 @@ import { TimeUnitTransform as VgTimeUnitTransform } from 'vega';

import { DataFlowNode } from './dataflow';
export declare type TimeUnitComponent = TimeUnitTransform;
export type TimeUnitComponent = TimeUnitTransform;
export declare class TimeUnitNode extends DataFlowNode {

@@ -9,0 +9,0 @@ private formula;

@@ -17,2 +17,5 @@ var __rest = (this && this.__rest) || function (s, e) {

export class TimeUnitNode extends DataFlowNode {
clone() {
return new TimeUnitNode(null, duplicate(this.formula));
}
constructor(parent, formula) {

@@ -22,5 +25,2 @@ super(parent);

}
clone() {
return new TimeUnitNode(null, duplicate(this.formula));
}
static makeFromEncoding(parent, model) {

@@ -27,0 +27,0 @@ const formula = model.reduceFieldDef((timeUnitComponent, fieldDef) => {

@@ -10,2 +10,5 @@ import { isAggregateOp } from '../../aggregate';

export class WindowTransformNode extends DataFlowNode {
clone() {
return new WindowTransformNode(null, duplicate(this.transform));
}
constructor(parent, transform) {

@@ -15,5 +18,2 @@ super(parent);

}
clone() {
return new WindowTransformNode(null, duplicate(this.transform));
}
addDimensions(fields) {

@@ -20,0 +20,0 @@ this.transform.groupby = unique(this.transform.groupby.concat(fields), d => d);

@@ -6,5 +6,5 @@ /**

import { FacetFieldDef } from '../../spec/facet';
export declare type HeaderChannel = 'row' | 'column';
export type HeaderChannel = 'row' | 'column';
export declare const HEADER_CHANNELS: HeaderChannel[];
export declare type HeaderType = 'header' | 'footer';
export type HeaderType = 'header' | 'footer';
export declare const HEADER_TYPES: HeaderType[];

@@ -11,0 +11,0 @@ export interface LayoutHeaderComponentIndex {

import { Split } from '../split';
export declare type LayoutSize = number | 'container' | 'step' | 'merged';
export type LayoutSize = number | 'container' | 'step' | 'merged';
export interface LayoutSizeIndex {

@@ -9,5 +9,5 @@ width?: LayoutSize;

}
export declare type LayoutSizeType = keyof LayoutSizeIndex;
export declare type LayoutSizeComponent = Split<LayoutSizeIndex>;
export type LayoutSizeType = keyof LayoutSizeIndex;
export type LayoutSizeComponent = Split<LayoutSizeIndex>;
export declare function getSizeTypeFromLayoutSizeType(layoutSizeType: LayoutSizeType): 'width' | 'height';
//# sourceMappingURL=component.d.ts.map

@@ -5,3 +5,3 @@ import { Legend as VgLegend } from 'vega';

import { Split } from '../split';
export declare type LegendComponentProps = VgLegend & {
export type LegendComponentProps = VgLegend & {
labelExpr?: string;

@@ -14,4 +14,4 @@ selections?: string[];

}
export declare type LegendComponentIndex = Partial<Record<NonPositionScaleChannel, LegendComponent>>;
export declare type LegendInternalIndex = Partial<Record<NonPositionScaleChannel, LegendInternal>>;
export type LegendComponentIndex = Partial<Record<NonPositionScaleChannel, LegendComponent>>;
export type LegendInternalIndex = Partial<Record<NonPositionScaleChannel, LegendInternal>>;
//# sourceMappingURL=component.d.ts.map

@@ -11,3 +11,3 @@ import { VgValueRef } from '../../../vega.schema';

export { tooltip } from './tooltip';
export declare type Ignore = Record<'color' | 'size' | 'orient' | 'align' | 'baseline' | 'theta', 'ignore' | 'include'>;
export type Ignore = Record<'color' | 'size' | 'orient' | 'align' | 'baseline' | 'theta', 'ignore' | 'include'>;
export declare function baseEncodeEntry(model: UnitModel, ignore: Ignore): {

@@ -14,0 +14,0 @@ fill?: VgValueRef | (VgValueRef & {

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

*/
export declare type ScaleComponentProps = Omit<VgScale, 'domain' | 'domainRaw' | 'reverse'> & {
export type ScaleComponentProps = Omit<VgScale, 'domain' | 'domainRaw' | 'reverse'> & {
domains: VgNonUnionDomain[];

@@ -17,3 +17,3 @@ selectionExtent?: ParameterExtent;

};
export declare type Range = ScaleComponentProps['range'];
export type Range = ScaleComponentProps['range'];
export declare class ScaleComponent extends Split<ScaleComponentProps> {

@@ -27,4 +27,4 @@ merged: boolean;

}
export declare type ScaleComponentIndex = Partial<Record<ScaleChannel, ScaleComponent>>;
export declare type ScaleIndex = Partial<Record<ScaleChannel, Scale<SignalRef>>>;
export type ScaleComponentIndex = Partial<Record<ScaleChannel, ScaleComponent>>;
export type ScaleIndex = Partial<Record<ScaleChannel, Scale<SignalRef>>>;
//# sourceMappingURL=component.d.ts.map

@@ -5,3 +5,3 @@ import { ScaleChannel } from '../../channel';

import { Scale, ScaleType } from '../../scale';
export declare type RangeType = 'continuous' | 'discrete' | 'flexible' | undefined;
export type RangeType = 'continuous' | 'discrete' | 'flexible' | undefined;
/**

@@ -8,0 +8,0 @@ * Determine if there is a specified scale type and if it is appropriate,

@@ -8,3 +8,3 @@ import { SingleDefUnitChannel } from '../../channel';

*/
export declare type TupleStoreType = 'E' | 'R' | 'R-RE';
export type TupleStoreType = 'E' | 'R' | 'R-RE';
export interface SelectionProjection {

@@ -11,0 +11,0 @@ type: TupleStoreType;

import { SignalRef } from 'vega';
export declare type Rename = (oldSignalName: string) => string;
export type Rename = (oldSignalName: string) => string;
/**

@@ -4,0 +4,0 @@ * A class that behaves like a SignalRef but lazily generates the signal.

@@ -31,3 +31,3 @@ /**

export declare function makeImplicit<T>(value: T): Explicit<T>;
export declare type SplitParentProperty = 'scale' | 'axis' | 'legend' | '';
export type SplitParentProperty = 'scale' | 'axis' | 'legend' | '';
export declare function tieBreakByComparing<S, T>(compare: (v1: T, v2: T) => number): (v1: Explicit<T>, v2: Explicit<T>, property: keyof S | never, propertyOf: SplitParentProperty) => Explicit<T>;

@@ -34,0 +34,0 @@ export declare function defaultTieBreaker<S, T>(v1: Explicit<T>, v2: Explicit<T>, property: keyof S, propertyOf: SplitParentProperty): Explicit<T>;

@@ -8,3 +8,3 @@ import { Encoding } from '../encoding';

import { FieldName } from '../channeldef';
export declare type CompositeMarkUnitSpec<M extends string> = GenericUnitSpec<any, M | GenericMarkDef<M>>;
export type CompositeMarkUnitSpec<M extends string> = GenericUnitSpec<any, M | GenericMarkDef<M>>;
export declare class CompositeMarkNormalizer<M extends string> implements NonFacetUnitNormalizer<CompositeMarkUnitSpec<M>> {

@@ -11,0 +11,0 @@ name: string;

@@ -9,6 +9,6 @@ import { Orientation } from 'vega';

export declare const BOXPLOT: "boxplot";
export declare type BoxPlot = typeof BOXPLOT;
export type BoxPlot = typeof BOXPLOT;
export declare const BOXPLOT_PARTS: readonly ["box", "median", "outliers", "rule", "ticks"];
declare type BoxPlotPart = typeof BOXPLOT_PARTS[number];
export declare type BoxPlotPartsMixins = PartsMixins<BoxPlotPart>;
type BoxPlotPart = (typeof BOXPLOT_PARTS)[number];
export type BoxPlotPartsMixins = PartsMixins<BoxPlotPart>;
export interface BoxPlotConfig extends BoxPlotPartsMixins {

@@ -26,3 +26,3 @@ /** Size of the box and median tick of a box plot */

}
export declare type BoxPlotDef = GenericCompositeMarkDef<BoxPlot> & BoxPlotConfig & MarkInvalidMixins & {
export type BoxPlotDef = GenericCompositeMarkDef<BoxPlot> & BoxPlotConfig & MarkInvalidMixins & {
/**

@@ -29,0 +29,0 @@ * Type of the mark. For box plots, this should always be `"boxplot"`.

@@ -6,6 +6,6 @@ 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 GenericCompositeMarkDef<T> = GenericMarkDef<T> & ColorMixins<ExprRef | SignalRef> & {
export type PartsMixins<P extends string> = Partial<Record<P, boolean | AnyMarkConfig<ExprRef | SignalRef>>>;
export type GenericCompositeMarkDef<T> = GenericMarkDef<T> & ColorMixins<ExprRef | SignalRef> & {
/**

@@ -12,0 +12,0 @@ * The opacity (value between [0,1]) of the mark.

@@ -9,8 +9,8 @@ import { Interpolate, Orientation } from 'vega';

import { ErrorBarCenter, ErrorBarExtent, ErrorEncoding } from './errorbar';
export declare type ErrorBandUnitSpec<EE = undefined> = GenericUnitSpec<ErrorEncoding<Field> & EE, ErrorBand | ErrorBandDef>;
export type ErrorBandUnitSpec<EE = undefined> = GenericUnitSpec<ErrorEncoding<Field> & EE, ErrorBand | ErrorBandDef>;
export declare const ERRORBAND: "errorband";
export declare type ErrorBand = typeof ERRORBAND;
export type ErrorBand = typeof ERRORBAND;
export declare const ERRORBAND_PARTS: readonly ["band", "borders"];
declare type ErrorBandPart = typeof ERRORBAND_PARTS[number];
export declare type ErrorBandPartsMixins = PartsMixins<ErrorBandPart>;
type ErrorBandPart = (typeof ERRORBAND_PARTS)[number];
export type ErrorBandPartsMixins = PartsMixins<ErrorBandPart>;
export interface ErrorBandConfig extends ErrorBandPartsMixins {

@@ -61,3 +61,3 @@ /**

}
export declare type ErrorBandDef = GenericCompositeMarkDef<ErrorBand> & ErrorBandConfig & {
export type ErrorBandDef = GenericCompositeMarkDef<ErrorBand> & ErrorBandConfig & {
/**

@@ -64,0 +64,0 @@ * Orientation of the error band. This is normally automatically determined, but can be specified when the orientation is ambiguous and cannot be automatically determined.

@@ -18,8 +18,8 @@ import { Orientation, SignalRef, Text } from 'vega';

export declare const ERRORBAR: "errorbar";
export declare type ErrorBar = typeof ERRORBAR;
export declare type ErrorBarExtent = 'ci' | 'iqr' | 'stderr' | 'stdev';
export declare type ErrorBarCenter = 'mean' | 'median';
export declare type ErrorInputType = 'raw' | 'aggregated-upper-lower' | 'aggregated-error';
export type ErrorBar = typeof ERRORBAR;
export type ErrorBarExtent = 'ci' | 'iqr' | 'stderr' | 'stdev';
export type ErrorBarCenter = 'mean' | 'median';
export type ErrorInputType = 'raw' | 'aggregated-upper-lower' | 'aggregated-error';
export declare const ERRORBAR_PARTS: readonly ["ticks", "rule"];
export declare type ErrorBarPart = typeof ERRORBAR_PARTS[number];
export type ErrorBarPart = (typeof ERRORBAR_PARTS)[number];
export interface ErrorExtraEncoding<F extends Field> {

@@ -43,4 +43,4 @@ /**

}
export declare type ErrorEncoding<F extends Field> = Pick<Encoding<F>, PositionChannel | 'color' | 'detail' | 'opacity'> & ErrorExtraEncoding<F>;
export declare type ErrorBarPartsMixins = PartsMixins<ErrorBarPart>;
export type ErrorEncoding<F extends Field> = Pick<Encoding<F>, PositionChannel | 'color' | 'detail' | 'opacity'> & ErrorExtraEncoding<F>;
export type ErrorBarPartsMixins = PartsMixins<ErrorBarPart>;
export interface ErrorBarConfig extends ErrorBarPartsMixins {

@@ -71,3 +71,3 @@ /** Size of the ticks of an error bar */

}
export declare type ErrorBarDef = GenericCompositeMarkDef<ErrorBar> & ErrorBarConfig & {
export type ErrorBarDef = GenericCompositeMarkDef<ErrorBar> & ErrorBarConfig & {
/**

@@ -74,0 +74,0 @@ * Orientation of the error bar. This is normally automatically determined, but can be specified when the orientation is ambiguous and cannot be automatically determined.

@@ -13,17 +13,17 @@ import { Field } from '../channeldef';

export type { ErrorBarConfigMixins } from './errorbar';
export declare type CompositeMarkNormalizerRun = (spec: GenericUnitSpec<any, any>, params: NormalizerParams) => NormalizedLayerSpec | NormalizedUnitSpec;
export type CompositeMarkNormalizerRun = (spec: GenericUnitSpec<any, any>, params: NormalizerParams) => NormalizedLayerSpec | NormalizedUnitSpec;
export declare function add(mark: string, run: CompositeMarkNormalizerRun, parts: readonly string[]): void;
export declare function remove(mark: string): void;
export declare type CompositeEncoding<F extends Field> = Encoding<F> & ErrorExtraEncoding<F>;
export declare type PartialIndex<T extends Encoding<any>> = {
export type CompositeEncoding<F extends Field> = Encoding<F> & ErrorExtraEncoding<F>;
export type PartialIndex<T extends Encoding<any>> = {
[t in keyof T]?: Partial<T[t]>;
};
export declare type SharedCompositeEncoding<F extends Field> = PartialIndex<Omit<CompositeEncoding<F>, 'detail' | 'order' | 'tooltip'>> & Pick<Encoding<F>, 'detail' | 'order' | 'tooltip'>;
export declare type FacetedCompositeEncoding<F extends Field> = Encoding<F> & ErrorExtraEncoding<F> & EncodingFacetMapping<F>;
export declare type CompositeMark = BoxPlot | ErrorBar | ErrorBand;
export type SharedCompositeEncoding<F extends Field> = PartialIndex<Omit<CompositeEncoding<F>, 'detail' | 'order' | 'tooltip'>> & Pick<Encoding<F>, 'detail' | 'order' | 'tooltip'>;
export type FacetedCompositeEncoding<F extends Field> = Encoding<F> & ErrorExtraEncoding<F> & EncodingFacetMapping<F>;
export type CompositeMark = BoxPlot | ErrorBar | ErrorBand;
export declare function getAllCompositeMarks(): string[];
export declare type CompositeMarkDef = BoxPlotDef | ErrorBarDef | ErrorBandDef;
export declare type CompositeAggregate = BoxPlot | ErrorBar | ErrorBand;
export type CompositeMarkDef = BoxPlotDef | ErrorBarDef | ErrorBandDef;
export type CompositeAggregate = BoxPlot | ErrorBar | ErrorBand;
export interface CompositeMarkConfigMixins extends BoxPlotConfigMixins, ErrorBarConfigMixins, ErrorBandConfigMixins {
}
//# sourceMappingURL=index.d.ts.map

@@ -60,4 +60,4 @@ import { Color, InitSignal, Locale, NewSignal, RangeConfig, RangeScheme, SignalRef } from 'vega';

export declare function isVgScheme(rangeScheme: string[] | RangeScheme): rangeScheme is RangeScheme;
export declare type ColorConfig = Record<string, Color>;
export declare type FontSizeConfig = Record<string, number>;
export type ColorConfig = Record<string, Color>;
export type FontSizeConfig = Record<string, number>;
export interface VLOnlyConfig<ES extends ExprRef | SignalRef> {

@@ -156,3 +156,3 @@ /**

}
export declare type StyleConfigIndex<ES extends ExprRef | SignalRef> = Partial<Record<string, AnyMarkConfig<ES> | Axis<ES>>> & MarkConfigMixins<ES> & {
export type StyleConfigIndex<ES extends ExprRef | SignalRef> = Partial<Record<string, AnyMarkConfig<ES> | Axis<ES>>> & MarkConfigMixins<ES> & {
/**

@@ -159,0 +159,0 @@ * Default style for axis, legend, and header titles.

import { Vector2 } from 'vega';
import { FieldName } from './channeldef';
import { VgData } from './vega.schema';
export declare type ParseValue = null | string | 'string' | 'boolean' | 'date' | 'number';
export type ParseValue = null | string | 'string' | 'boolean' | 'date' | 'number';
export interface Parse {

@@ -65,7 +65,7 @@ [field: string]: ParseValue;

}
export declare type DataFormat = CsvDataFormat | DsvDataFormat | JsonDataFormat | TopoDataFormat;
export declare type DataFormatType = 'json' | 'csv' | 'tsv' | 'dsv' | 'topojson';
export declare type DataSource = UrlData | InlineData | NamedData;
export declare type Data = DataSource | Generator;
export declare type InlineDataset = number[] | string[] | boolean[] | object[] | string | object;
export type DataFormat = CsvDataFormat | DsvDataFormat | JsonDataFormat | TopoDataFormat;
export type DataFormatType = 'json' | 'csv' | 'tsv' | 'dsv' | 'topojson';
export type DataSource = UrlData | InlineData | NamedData;
export type Data = DataSource | Generator;
export type InlineDataset = number[] | string[] | boolean[] | object[] | string | object;
export interface DataBase {

@@ -117,3 +117,3 @@ /**

}
export declare type Generator = SequenceGenerator | SphereGenerator | GraticuleGenerator;
export type Generator = SequenceGenerator | SphereGenerator | GraticuleGenerator;
export interface GeneratorBase {

@@ -120,0 +120,0 @@ /**

@@ -6,3 +6,3 @@ /**

*/
export declare type Month = number;
export type Month = number;
/**

@@ -12,3 +12,3 @@ * @minimum 1

*/
export declare type Day = number;
export type Day = number;
/**

@@ -15,0 +15,0 @@ * Object for defining datetime in Vega-Lite Filter.

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

}
export declare type GuideEncodingConditionalValueDef = ValueDef & ConditionValueDefMixins;
export declare type GuideEncodingEntry = Partial<Record<VgEncodeChannel, GuideEncodingConditionalValueDef>>;
export type GuideEncodingConditionalValueDef = ValueDef & ConditionValueDefMixins;
export type GuideEncodingEntry = Partial<Record<VgEncodeChannel, GuideEncodingConditionalValueDef>>;
export declare const VL_ONLY_LEGEND_CONFIG: (keyof LegendConfig<any>)[];
//# sourceMappingURL=guide.d.ts.map

@@ -8,4 +8,4 @@ import { BaseLegend, LabelOverlap, Legend as VgLegend, LegendConfig as VgLegendConfig, LegendOrient, Orientation, SignalRef } from 'vega';

export declare const LEGEND_SCALE_CHANNELS: readonly ["size", "shape", "fill", "stroke", "strokeDash", "strokeWidth", "opacity"];
declare type BaseLegendNoValueRefs<ES extends ExprRef | SignalRef> = MapExcludeValueRefAndReplaceSignalWith<BaseLegend, ES>;
export declare type LegendConfig<ES extends ExprRef | SignalRef> = LegendMixins<ES> & VlOnlyGuideConfig & MapExcludeValueRefAndReplaceSignalWith<VgLegendConfig, ES> & {
type BaseLegendNoValueRefs<ES extends ExprRef | SignalRef> = MapExcludeValueRefAndReplaceSignalWith<BaseLegend, ES>;
export type LegendConfig<ES extends ExprRef | SignalRef> = LegendMixins<ES> & VlOnlyGuideConfig & MapExcludeValueRefAndReplaceSignalWith<VgLegendConfig, ES> & {
/**

@@ -123,3 +123,3 @@ * Max legend length for a vertical gradient when `config.legend.gradientLength` is undefined.

}
export declare type LegendInternal = Legend<SignalRef>;
export type LegendInternal = Legend<SignalRef>;
export interface LegendEncoding {

@@ -126,0 +126,0 @@ /**

@@ -1,2 +0,2 @@

export declare type LogicalComposition<T> = LogicalNot<T> | LogicalAnd<T> | LogicalOr<T> | T;
export type LogicalComposition<T> = LogicalNot<T> | LogicalAnd<T> | LogicalOr<T> | T;
export interface LogicalOr<T> {

@@ -3,0 +3,0 @@ or: LogicalComposition<T>[];

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

export declare const GEOSHAPE: "geoshape";
export declare type Mark = keyof typeof Mark;
export type Mark = keyof typeof Mark;
export declare function isMark(m: string): m is Mark;

@@ -60,3 +60,3 @@ export declare function isPathMark(m: Mark | CompositeMark): m is 'line' | 'area' | 'trail';

/** @hidden */
export declare type Hide = 'hide';
export type Hide = 'hide';
export interface MarkInvalidMixins {

@@ -254,3 +254,3 @@ /**

}
export declare type AnyMark = CompositeMark | CompositeMarkDef | Mark | MarkDef;
export type AnyMark = CompositeMark | CompositeMarkDef | Mark | MarkDef;
export declare function isMarkDef(mark: string | GenericMarkDef<any>): mark is GenericMarkDef<any>;

@@ -266,3 +266,3 @@ export declare function isPrimitiveMark(mark: AnyMark): mark is Mark;

export declare const defaultMarkConfig: MarkConfig<SignalRef>;
export declare type AnyMarkConfig<ES extends ExprRef | SignalRef> = MarkConfig<ES> | AreaConfig<ES> | BarConfig<ES> | RectConfig<ES> | LineConfig<ES> | TickConfig<ES>;
export type AnyMarkConfig<ES extends ExprRef | SignalRef> = MarkConfig<ES> | AreaConfig<ES> | BarConfig<ES> | RectConfig<ES> | LineConfig<ES> | TickConfig<ES>;
export interface MarkConfigMixins<ES extends ExprRef | SignalRef> {

@@ -316,3 +316,3 @@ /** Mark Config */

}
export declare type BandSize = number | RelativeBandSize | SignalRef;
export type BandSize = number | RelativeBandSize | SignalRef;
export interface RelativeBandSize {

@@ -334,4 +334,4 @@ /**

}
export declare type BarConfig<ES extends ExprRef | SignalRef> = RectConfig<ES> & BarCornerRadiusMixins<ES>;
export declare type OverlayMarkDef<ES extends ExprRef | SignalRef> = MarkConfig<ES> & MarkDefMixins<ES>;
export type BarConfig<ES extends ExprRef | SignalRef> = RectConfig<ES> & BarCornerRadiusMixins<ES>;
export type OverlayMarkDef<ES extends ExprRef | SignalRef> = MarkConfig<ES> & MarkDefMixins<ES>;
export interface PointOverlayMixins<ES extends ExprRef | SignalRef> {

@@ -338,0 +338,0 @@ /**

@@ -14,3 +14,3 @@ import { SignalRef } from 'vega';

import { RepeaterValue } from './repeater';
export declare type Normalize<S extends GenericSpec<any, any, any, any>, NS extends NormalizedSpec> = (spec: S, params: NormalizerParams) => NS;
export type Normalize<S extends GenericSpec<any, any, any, any>, NS extends NormalizedSpec> = (spec: S, params: NormalizerParams) => NS;
export interface ExtraNormalizer<S extends GenericSpec<any, any, any, FieldName>, // Input type

@@ -23,4 +23,4 @@ O extends NormalizedSpec, // Output Type

}
export declare type NonFacetUnitNormalizer<S extends GenericUnitSpec<any, any>> = ExtraNormalizer<S, NormalizedUnitSpec | NormalizedLayerSpec, GenericUnitSpec<any, any> | GenericLayerSpec<any>>;
export declare type NormalizeLayerOrUnit = Normalize<GenericUnitSpec<any, any> | GenericLayerSpec<any>, NormalizedUnitSpec | NormalizedLayerSpec>;
export type NonFacetUnitNormalizer<S extends GenericUnitSpec<any, any>> = ExtraNormalizer<S, NormalizedUnitSpec | NormalizedLayerSpec, GenericUnitSpec<any, any> | GenericLayerSpec<any>>;
export type NormalizeLayerOrUnit = Normalize<GenericUnitSpec<any, any> | GenericLayerSpec<any>, NormalizedUnitSpec | NormalizedLayerSpec>;
export interface NormalizerParams {

@@ -27,0 +27,0 @@ config: Config<SignalRef>;

@@ -6,3 +6,3 @@ import { Config } from '../config';

import { NonFacetUnitNormalizer, NormalizeLayerOrUnit, NormalizerParams } from './base';
declare type UnitSpecWithPathOverlay = GenericUnitSpec<Encoding<string>, Mark | MarkDef<'line' | 'area' | 'rule' | 'trail'>>;
type UnitSpecWithPathOverlay = GenericUnitSpec<Encoding<string>, Mark | MarkDef<'line' | 'area' | 'rule' | 'trail'>>;
export declare class PathOverlayNormalizer implements NonFacetUnitNormalizer<UnitSpecWithPathOverlay> {

@@ -9,0 +9,0 @@ name: string;

@@ -12,3 +12,3 @@ import { Field } from '../channeldef';

}
declare type RangedLineSpec = GenericUnitSpec<Encoding<Field> & (EncodingX2Mixins | EncodingY2Mixins), 'line' | {
type RangedLineSpec = GenericUnitSpec<Encoding<Field> & (EncodingX2Mixins | EncodingY2Mixins), 'line' | {
mark: 'line';

@@ -15,0 +15,0 @@ }>;

import { Binding, Expr, InitSignal, NewSignal } from 'vega';
import { TopLevelSelectionParameter } from './selection';
export declare type ParameterName = string;
export type ParameterName = string;
export interface VariableParameter {

@@ -5,0 +5,0 @@ /**

@@ -8,4 +8,4 @@ import { SignalRef } from 'vega';

import { TimeUnit, TimeUnitParams } from './timeunit';
export declare type Predicate = FieldEqualPredicate | FieldRangePredicate | FieldOneOfPredicate | FieldLTPredicate | FieldGTPredicate | FieldLTEPredicate | FieldGTEPredicate | FieldValidPredicate | ParameterPredicate | string;
export declare type FieldPredicate = FieldEqualPredicate | FieldLTPredicate | FieldGTPredicate | FieldLTEPredicate | FieldGTEPredicate | FieldRangePredicate | FieldOneOfPredicate | FieldValidPredicate;
export type Predicate = FieldEqualPredicate | FieldRangePredicate | FieldOneOfPredicate | FieldLTPredicate | FieldGTPredicate | FieldLTEPredicate | FieldGTEPredicate | FieldValidPredicate | ParameterPredicate | string;
export type FieldPredicate = FieldEqualPredicate | FieldLTPredicate | FieldGTPredicate | FieldLTEPredicate | FieldGTEPredicate | FieldRangePredicate | FieldOneOfPredicate | FieldValidPredicate;
export interface ParameterPredicate {

@@ -12,0 +12,0 @@ /**

@@ -23,4 +23,4 @@ import { BaseProjection, SignalRef, Vector2 } from 'vega';

*/
export declare type ProjectionConfig = Projection<ExprRef>;
export type ProjectionConfig = Projection<ExprRef>;
export declare const PROJECTION_PROPERTIES: (keyof Projection<ExprRef>)[];
//# sourceMappingURL=projection.d.ts.map
import { NonPositionScaleChannel, PositionScaleChannel, ScaleChannel } from './channel';
export declare type ResolveMode = 'independent' | 'shared';
export type ResolveMode = 'independent' | 'shared';
/**

@@ -11,5 +11,5 @@ * Defines how scales, axes, and legends from different specs should be combined. Resolve is a mapping from `scale`, `axis`, and `legend` to a mapping from channels to resolutions. Scales and guides can be resolved to be `"independent"` or `"shared"`.

}
export declare type ScaleResolveMap = Partial<Record<ScaleChannel, ResolveMode>>;
export declare type AxisResolveMap = Partial<Record<PositionScaleChannel, ResolveMode>>;
export declare type LegendResolveMap = Partial<Record<NonPositionScaleChannel, ResolveMode>>;
export type ScaleResolveMap = Partial<Record<ScaleChannel, ResolveMode>>;
export type AxisResolveMap = Partial<Record<PositionScaleChannel, ResolveMode>>;
export type LegendResolveMap = Partial<Record<NonPositionScaleChannel, ResolveMode>>;
//# sourceMappingURL=resolve.d.ts.map

@@ -25,4 +25,4 @@ import { RangeEnum, ScaleBins, ScaleInterpolateEnum, ScaleInterpolateParams, SignalRef, TimeInterval, TimeIntervalStep } from 'vega';

};
declare type ValueOf<T> = T[keyof T];
export declare type ScaleType = ValueOf<typeof ScaleType>;
type ValueOf<T> = T[keyof T];
export type ScaleType = ValueOf<typeof ScaleType>;
/**

@@ -283,4 +283,4 @@ * Index for scale categories -- only scale of the same categories can be merged together.

}
export declare type Domain = (null | string | number | boolean | DateTime | SignalRef)[] | 'unaggregated' | ParameterExtent | SignalRef | DomainUnionWith;
export declare type Scheme = string | SchemeParams;
export type Domain = (null | string | number | boolean | DateTime | SignalRef)[] | 'unaggregated' | ParameterExtent | SignalRef | DomainUnionWith;
export type Scheme = string | SchemeParams;
export declare function isExtendedScheme(scheme: Scheme | SignalRef): scheme is SchemeParams;

@@ -287,0 +287,0 @@ export declare function isParameterDomain(domain: Domain): domain is ParameterExtent;

@@ -8,12 +8,12 @@ import { Binding, Color, Cursor, Stream, Vector2 } from 'vega';

export declare const SELECTION_ID = "_vgsid_";
export declare type SelectionType = 'point' | 'interval';
export declare type SelectionResolution = 'global' | 'union' | 'intersect';
export declare type SelectionInit = PrimitiveValue | DateTime;
export declare type SelectionInitInterval = Vector2<boolean> | Vector2<number> | Vector2<string> | Vector2<DateTime>;
export declare type SelectionInitMapping = Dict<SelectionInit>;
export declare type SelectionInitIntervalMapping = Dict<SelectionInitInterval>;
export declare type LegendStreamBinding = {
export type SelectionType = 'point' | 'interval';
export type SelectionResolution = 'global' | 'union' | 'intersect';
export type SelectionInit = PrimitiveValue | DateTime;
export type SelectionInitInterval = Vector2<boolean> | Vector2<number> | Vector2<string> | Vector2<DateTime>;
export type SelectionInitMapping = Dict<SelectionInit>;
export type SelectionInitIntervalMapping = Dict<SelectionInitInterval>;
export type LegendStreamBinding = {
legend: string | Stream;
};
export declare type LegendBinding = 'legend' | LegendStreamBinding;
export type LegendBinding = 'legend' | LegendStreamBinding;
export interface BaseSelectionConfig<T extends SelectionType = SelectionType> {

@@ -208,3 +208,3 @@ /**

}
export declare type TopLevelSelectionParameter = SelectionParameter & {
export type TopLevelSelectionParameter = SelectionParameter & {
/**

@@ -216,3 +216,3 @@ * By default, top-level selections are applied to every view in the visualization.

};
export declare type ParameterExtent = {
export type ParameterExtent = {
/**

@@ -238,4 +238,4 @@ * The name of a parameter.

};
export declare type PointSelectionConfigWithoutType = Omit<PointSelectionConfig, 'type'>;
export declare type IntervalSelectionConfigWithoutType = Omit<IntervalSelectionConfig, 'type'>;
export type PointSelectionConfigWithoutType = Omit<PointSelectionConfig, 'type'>;
export type IntervalSelectionConfigWithoutType = Omit<IntervalSelectionConfig, 'type'>;
export interface SelectionConfig {

@@ -242,0 +242,0 @@ /**

import { NonArgAggregateOp } from './aggregate';
import { FieldName } from './channeldef';
import { DateTime } from './datetime';
export declare type SortOrder = 'ascending' | 'descending';
export type SortOrder = 'ascending' | 'descending';
/**

@@ -58,3 +58,3 @@ * A sort definition for transform

}
export declare type SortArray = number[] | string[] | boolean[] | DateTime[];
export type SortArray = number[] | string[] | boolean[] | DateTime[];
declare const SORT_BY_CHANNEL_INDEX: {

@@ -74,7 +74,7 @@ readonly x: 1;

};
export declare type SortByChannel = keyof typeof SORT_BY_CHANNEL_INDEX;
export type SortByChannel = keyof typeof SORT_BY_CHANNEL_INDEX;
export declare function isSortByChannel(c: string): c is SortByChannel;
export declare type SortByChannelDesc = '-x' | '-y' | '-color' | '-fill' | '-stroke' | '-strokeWidth' | '-size' | '-shape' | '-fillOpacity' | '-strokeOpacity' | '-opacity' | '-text';
export declare type AllSortString = SortOrder | SortByChannel | SortByChannelDesc;
export declare type Sort<F> = SortArray | AllSortString | EncodingSortField<F> | SortByEncoding | null;
export type SortByChannelDesc = '-x' | '-y' | '-color' | '-fill' | '-stroke' | '-strokeWidth' | '-size' | '-shape' | '-fillOpacity' | '-strokeOpacity' | '-opacity' | '-text';
export type AllSortString = SortOrder | SortByChannel | SortByChannelDesc;
export type Sort<F> = SortArray | AllSortString | EncodingSortField<F> | SortByEncoding | null;
export declare function isSortByEncoding<F>(sort: Sort<F>): sort is SortByEncoding;

@@ -81,0 +81,0 @@ export declare function isSortField<F>(sort: Sort<F>): sort is EncodingSortField<F>;

@@ -42,3 +42,3 @@ import { Color, Cursor, SignalRef, Text } from 'vega';

}
export declare type StepFor = 'position' | 'offset';
export type StepFor = 'position' | 'offset';
export interface Step {

@@ -200,4 +200,4 @@ /**

}
export declare type GenericCompositionLayoutWithColumns = GenericCompositionLayout & ColumnMixins;
export declare type CompositionConfig = ColumnMixins & {
export type GenericCompositionLayoutWithColumns = GenericCompositionLayout & ColumnMixins;
export type CompositionConfig = ColumnMixins & {
/**

@@ -216,4 +216,4 @@ * The default spacing in pixels between composed sub-views.

}
export declare type SpecType = 'unit' | 'facet' | 'layer' | 'concat';
export type SpecType = 'unit' | 'facet' | 'layer' | 'concat';
export declare function extractCompositionLayout(spec: NormalizedSpec, specType: keyof CompositionConfigMixins, config: CompositionConfigMixins): GenericCompositionLayoutWithColumns;
//# sourceMappingURL=base.d.ts.map

@@ -48,3 +48,3 @@ import { GenericSpec, NormalizedSpec } from '.';

/** A concat spec without any shortcut/expansion syntax */
export declare type NormalizedConcatSpec = GenericConcatSpec<NormalizedSpec> | GenericVConcatSpec<NormalizedSpec> | GenericHConcatSpec<NormalizedSpec>;
export type NormalizedConcatSpec = GenericConcatSpec<NormalizedSpec> | GenericVConcatSpec<NormalizedSpec> | GenericHConcatSpec<NormalizedSpec>;
export declare function isAnyConcatSpec(spec: BaseSpec): spec is GenericVConcatSpec<any> | GenericHConcatSpec<any>;

@@ -51,0 +51,0 @@ export declare function isConcatSpec(spec: BaseSpec): spec is GenericConcatSpec<any>;

@@ -33,3 +33,3 @@ import { LayoutAlign, SignalRef } from 'vega';

}
export declare type FacetEncodingFieldDef<F extends Field, ES extends ExprRef | SignalRef = ExprRef | SignalRef> = FacetFieldDef<F, ES> & GenericCompositionLayoutWithColumns;
export type FacetEncodingFieldDef<F extends Field, ES extends ExprRef | SignalRef = ExprRef | SignalRef> = FacetFieldDef<F, ES> & GenericCompositionLayoutWithColumns;
export interface RowColumnEncodingFieldDef<F extends Field, ES extends ExprRef | SignalRef> extends FacetFieldDef<F, ES> {

@@ -101,4 +101,4 @@ /**

*/
export declare type NormalizedFacetSpec = GenericFacetSpec<NormalizedUnitSpec, NormalizedLayerSpec, FieldName>;
export type NormalizedFacetSpec = GenericFacetSpec<NormalizedUnitSpec, NormalizedLayerSpec, FieldName>;
export declare function isFacetSpec(spec: BaseSpec): spec is GenericFacetSpec<any, any, any>;
//# sourceMappingURL=facet.d.ts.map

@@ -31,9 +31,9 @@ /**

*/
export declare type GenericSpec<U extends GenericUnitSpec<Encoding<F>, any>, L extends GenericLayerSpec<U>, R extends RepeatSpec, F extends Field> = U | L | R | GenericFacetSpec<U, L, F> | GenericConcatSpec<GenericSpec<U, L, R, F>> | GenericVConcatSpec<GenericSpec<U, L, R, F>> | GenericHConcatSpec<GenericSpec<U, L, R, F>>;
export type GenericSpec<U extends GenericUnitSpec<Encoding<F>, any>, L extends GenericLayerSpec<U>, R extends RepeatSpec, F extends Field> = U | L | R | GenericFacetSpec<U, L, F> | GenericConcatSpec<GenericSpec<U, L, R, F>> | GenericVConcatSpec<GenericSpec<U, L, R, F>> | GenericHConcatSpec<GenericSpec<U, L, R, F>>;
/**
* Specs with only primitive marks and without other macros.
*/
export declare type NormalizedSpec = GenericSpec<NormalizedUnitSpec, NormalizedLayerSpec, never, FieldName>;
export declare type TopLevelFacetSpec = TopLevel<GenericFacetSpec<UnitSpecWithFrame<Field>, LayerSpec<Field>, Field>> & DataMixins;
export declare type NonNormalizedSpec = GenericSpec<FacetedUnitSpec<Field>, LayerSpec<Field>, RepeatSpec, Field>;
export type NormalizedSpec = GenericSpec<NormalizedUnitSpec, NormalizedLayerSpec, never, FieldName>;
export type TopLevelFacetSpec = TopLevel<GenericFacetSpec<UnitSpecWithFrame<Field>, LayerSpec<Field>, Field>> & DataMixins;
export type NonNormalizedSpec = GenericSpec<FacetedUnitSpec<Field>, LayerSpec<Field>, RepeatSpec, Field>;
/**

@@ -44,3 +44,3 @@ * A Vega-Lite top-level specification.

*/
export declare type TopLevelSpec = TopLevelUnitSpec<Field> | TopLevelFacetSpec | TopLevel<LayerSpec<Field>> | TopLevel<RepeatSpec> | TopLevel<GenericConcatSpec<NonNormalizedSpec>> | TopLevel<GenericVConcatSpec<NonNormalizedSpec>> | TopLevel<GenericHConcatSpec<NonNormalizedSpec>>;
export type TopLevelSpec = TopLevelUnitSpec<Field> | TopLevelFacetSpec | TopLevel<LayerSpec<Field>> | TopLevel<RepeatSpec> | TopLevel<GenericConcatSpec<NonNormalizedSpec>> | TopLevel<GenericVConcatSpec<NonNormalizedSpec>> | TopLevel<GenericHConcatSpec<NonNormalizedSpec>>;
//# sourceMappingURL=index.d.ts.map

@@ -40,4 +40,4 @@ import { Field } from '../channeldef';

*/
export declare type NormalizedLayerSpec = GenericLayerSpec<NormalizedUnitSpec>;
export type NormalizedLayerSpec = GenericLayerSpec<NormalizedUnitSpec>;
export declare function isLayerSpec(spec: BaseSpec): spec is GenericLayerSpec<any>;
//# sourceMappingURL=layer.d.ts.map

@@ -21,3 +21,3 @@ import { LayerSpec, NonNormalizedSpec } from '.';

}
export declare type RepeatSpec = NonLayerRepeatSpec | LayerRepeatSpec;
export type RepeatSpec = NonLayerRepeatSpec | LayerRepeatSpec;
/**

@@ -24,0 +24,0 @@ * Base interface for a repeat specification.

@@ -12,3 +12,3 @@ import { Color, SignalRef } from 'vega';

*/
export declare type Padding = number | {
export type Padding = number | {
top?: number;

@@ -19,5 +19,5 @@ bottom?: number;

};
export declare type Datasets = Dict<InlineDataset>;
export declare type TopLevelParameter = VariableParameter | TopLevelSelectionParameter;
export declare type TopLevel<S extends BaseSpec> = S & TopLevelProperties & {
export type Datasets = Dict<InlineDataset>;
export type TopLevelParameter = VariableParameter | TopLevelSelectionParameter;
export type TopLevel<S extends BaseSpec> = S & TopLevelProperties & {
/**

@@ -72,6 +72,6 @@ * URL to [JSON schema](http://json-schema.org/) for a Vega-Lite specification. Unless you have a reason to change this, use `https://vega.github.io/schema/vega-lite/v5.json`. Setting the `$schema` property allows automatic validation and autocomplete in editors that support JSON schema.

}
export declare type FitType = 'fit' | 'fit-x' | 'fit-y';
export type FitType = 'fit' | 'fit-x' | 'fit-y';
export declare function isFitType(autoSizeType: AutosizeType): autoSizeType is FitType;
export declare function getFitType(sizeType?: 'width' | 'height'): FitType;
export declare type AutosizeType = 'pad' | 'none' | 'fit' | 'fit-x' | 'fit-y';
export type AutosizeType = 'pad' | 'none' | 'fit' | 'fit-x' | 'fit-y';
export interface AutoSizeParams {

@@ -78,0 +78,0 @@ /**

@@ -37,14 +37,14 @@ import { FieldName } from '../channeldef';

*/
export declare type NormalizedUnitSpec = GenericUnitSpec<Encoding<FieldName>, Mark | MarkDef>;
export type NormalizedUnitSpec = GenericUnitSpec<Encoding<FieldName>, Mark | MarkDef>;
/**
* A unit specification, which can contain either [primitive marks or composite marks](https://vega.github.io/vega-lite/docs/mark.html#types).
*/
export declare type UnitSpec<F extends Field> = GenericUnitSpec<CompositeEncoding<F>, AnyMark>;
export declare type UnitSpecWithFrame<F extends Field> = GenericUnitSpec<CompositeEncoding<F>, AnyMark> & FrameMixins;
export type UnitSpec<F extends Field> = GenericUnitSpec<CompositeEncoding<F>, AnyMark>;
export type UnitSpecWithFrame<F extends Field> = GenericUnitSpec<CompositeEncoding<F>, AnyMark> & FrameMixins;
/**
* Unit spec that can have a composite mark and row or column channels (shorthand for a facet spec).
*/
export declare type FacetedUnitSpec<F extends Field, P = SelectionParameter> = GenericUnitSpec<FacetedCompositeEncoding<F>, AnyMark, P> & ResolveMixins & GenericCompositionLayout & FrameMixins;
export declare type TopLevelUnitSpec<F extends Field> = TopLevel<FacetedUnitSpec<F, TopLevelParameter>> & DataMixins;
export type FacetedUnitSpec<F extends Field, P = SelectionParameter> = GenericUnitSpec<FacetedCompositeEncoding<F>, AnyMark, P> & ResolveMixins & GenericCompositionLayout & FrameMixins;
export type TopLevelUnitSpec<F extends Field> = TopLevel<FacetedUnitSpec<F, TopLevelParameter>> & DataMixins;
export declare function isUnitSpec(spec: BaseSpec): spec is FacetedUnitSpec<any> | NormalizedUnitSpec;
//# sourceMappingURL=unit.d.ts.map

@@ -10,3 +10,3 @@ import { NonPositionChannel } from './channel';

};
export declare type StackOffset = keyof typeof STACK_OFFSET_INDEX;
export type StackOffset = keyof typeof STACK_OFFSET_INDEX;
export declare function isStackOffset(s: string): s is StackOffset;

@@ -13,0 +13,0 @@ export interface StackProperties {

@@ -15,3 +15,3 @@ /** Time Unit that only corresponds to only one part of Date objects. */

};
export declare type LocalSingleTimeUnit = keyof typeof LOCAL_SINGLE_TIMEUNIT_INDEX;
export type LocalSingleTimeUnit = keyof typeof LOCAL_SINGLE_TIMEUNIT_INDEX;
export declare const TIMEUNIT_PARTS: ("day" | "month" | "year" | "quarter" | "week" | "hours" | "minutes" | "seconds" | "date" | "dayofyear" | "milliseconds")[];

@@ -32,4 +32,4 @@ export declare function isLocalSingleTimeUnit(timeUnit: string): timeUnit is LocalSingleTimeUnit;

};
export declare type UtcSingleTimeUnit = keyof typeof UTC_SINGLE_TIMEUNIT_INDEX;
export declare type SingleTimeUnit = LocalSingleTimeUnit | UtcSingleTimeUnit;
export type UtcSingleTimeUnit = keyof typeof UTC_SINGLE_TIMEUNIT_INDEX;
export type SingleTimeUnit = LocalSingleTimeUnit | UtcSingleTimeUnit;
export declare const LOCAL_MULTI_TIMEUNIT_INDEX: {

@@ -66,3 +66,3 @@ readonly yearquarter: 1;

};
export declare type LocalMultiTimeUnit = keyof typeof LOCAL_MULTI_TIMEUNIT_INDEX;
export type LocalMultiTimeUnit = keyof typeof LOCAL_MULTI_TIMEUNIT_INDEX;
export declare const UTC_MULTI_TIMEUNIT_INDEX: {

@@ -99,10 +99,10 @@ readonly utcyearquarter: 1;

};
export declare type UtcMultiTimeUnit = keyof typeof UTC_MULTI_TIMEUNIT_INDEX;
export declare type MultiTimeUnit = LocalMultiTimeUnit | UtcMultiTimeUnit;
export declare type LocalTimeUnit = LocalSingleTimeUnit | LocalMultiTimeUnit;
export declare type UtcTimeUnit = UtcSingleTimeUnit | UtcMultiTimeUnit;
export type UtcMultiTimeUnit = keyof typeof UTC_MULTI_TIMEUNIT_INDEX;
export type MultiTimeUnit = LocalMultiTimeUnit | UtcMultiTimeUnit;
export type LocalTimeUnit = LocalSingleTimeUnit | LocalMultiTimeUnit;
export type UtcTimeUnit = UtcSingleTimeUnit | UtcMultiTimeUnit;
export declare function isUTCTimeUnit(t: string): t is UtcTimeUnit;
export declare function getLocalTimeUnit(t: UtcTimeUnit): LocalTimeUnit;
export declare type TimeUnit = SingleTimeUnit | MultiTimeUnit;
export declare type TimeUnitFormat = 'year' | 'year-month' | 'year-month-date' | 'quarter' | 'month' | 'date' | 'week' | 'day' | 'hours' | 'hours-minutes' | 'minutes' | 'seconds' | 'milliseconds';
export type TimeUnit = SingleTimeUnit | MultiTimeUnit;
export type TimeUnitFormat = 'year' | 'year-month' | 'year-month-date' | 'quarter' | 'month' | 'date' | 'week' | 'day' | 'hours' | 'hours-minutes' | 'minutes' | 'seconds' | 'milliseconds';
export interface TimeUnitParams {

@@ -127,3 +127,3 @@ /**

}
export declare type TimeFormatConfig = Partial<Record<TimeUnitFormat, string>>;
export type TimeFormatConfig = Partial<Record<TimeUnitFormat, string>>;
export declare const VEGALITE_TIMEFORMAT: TimeFormatConfig;

@@ -130,0 +130,0 @@ export declare function getTimeUnitParts(timeUnit: TimeUnit): LocalSingleTimeUnit[];

@@ -5,4 +5,4 @@ import { BaseTitle, SignalRef, Text, TextEncodeEntry, TitleAnchor } from 'vega';

import { MapExcludeValueRefAndReplaceSignalWith, MappedExcludeValueRef } from './vega.schema';
export declare type BaseTitleNoValueRefs<ES extends ExprRef | SignalRef> = MapExcludeValueRefAndReplaceSignalWith<Omit<BaseTitle, 'align' | 'baseline'>, ES> & MappedExcludeValueRef<Pick<BaseTitle, 'align' | 'baseline'>>;
export declare type TitleConfig<ES extends ExprRef | SignalRef> = BaseTitleNoValueRefs<ES>;
export type BaseTitleNoValueRefs<ES extends ExprRef | SignalRef> = MapExcludeValueRefAndReplaceSignalWith<Omit<BaseTitle, 'align' | 'baseline'>, ES> & MappedExcludeValueRef<Pick<BaseTitle, 'align' | 'baseline'>>;
export type TitleConfig<ES extends ExprRef | SignalRef> = BaseTitleNoValueRefs<ES>;
export interface TitleBase<ES extends ExprRef | SignalRef> extends BaseTitleNoValueRefs<ES> {

@@ -9,0 +9,0 @@ /**

@@ -128,3 +128,3 @@ import { AggregateOp } from 'vega';

}
export declare type WindowOnlyOp = 'row_number' | 'rank' | 'dense_rank' | 'percent_rank' | 'cume_dist' | 'ntile' | 'lag' | 'lead' | 'first_value' | 'last_value' | 'nth_value';
export type WindowOnlyOp = 'row_number' | 'rank' | 'dense_rank' | 'percent_rank' | 'cume_dist' | 'ntile' | 'lag' | 'lead' | 'first_value' | 'last_value' | 'nth_value';
export interface WindowFieldDef {

@@ -508,3 +508,3 @@ /**

export declare function isFold(t: Transform): t is FoldTransform;
export declare type Transform = AggregateTransform | BinTransform | CalculateTransform | DensityTransform | FilterTransform | FlattenTransform | FoldTransform | ImputeTransform | JoinAggregateTransform | LoessTransform | LookupTransform | QuantileTransform | RegressionTransform | TimeUnitTransform | SampleTransform | StackTransform | WindowTransform | PivotTransform;
export type Transform = AggregateTransform | BinTransform | CalculateTransform | DensityTransform | FilterTransform | FlattenTransform | FoldTransform | ImputeTransform | JoinAggregateTransform | LoessTransform | LookupTransform | QuantileTransform | RegressionTransform | TimeUnitTransform | SampleTransform | StackTransform | WindowTransform | PivotTransform;
export declare function normalizeTransform(transform: Transform[]): (AggregateTransform | BinTransform | CalculateTransform | DensityTransform | FlattenTransform | FoldTransform | ImputeTransform | JoinAggregateTransform | LoessTransform | LookupTransform | QuantileTransform | RegressionTransform | TimeUnitTransform | SampleTransform | StackTransform | WindowTransform | PivotTransform | {

@@ -511,0 +511,0 @@ filter: LogicalComposition<Predicate>;

@@ -11,3 +11,3 @@ /**

};
export declare type Type = keyof typeof Type;
export type Type = keyof typeof Type;
export declare function isType(t: any): t is Type;

@@ -21,3 +21,3 @@ export declare function isContinuous(type: Type): type is 'quantitative' | 'temporal';

export declare const GEOJSON: "geojson";
export declare type StandardType = 'quantitative' | 'ordinal' | 'temporal' | 'nominal';
export type StandardType = 'quantitative' | 'ordinal' | 'temporal' | 'nominal';
export declare const TYPES: ("ordinal" | "geojson" | "quantitative" | "temporal" | "nominal")[];

@@ -24,0 +24,0 @@ /**

@@ -41,3 +41,3 @@ import { default as clone_ } from 'clone';

*/
export declare type DeepPartial<T> = {
export type DeepPartial<T> = {
[P in keyof T]?: DeepPartial<T[P]>;

@@ -50,3 +50,3 @@ };

export declare function unique<T>(values: readonly T[], f: (item: T) => string | number): T[];
export declare type Dict<T> = Record<string, T>;
export type Dict<T> = Record<string, T>;
/**

@@ -78,3 +78,3 @@ * Returns true if the two dictionaries disagree. Applies only to defined values.

};
export declare type Flag<S extends string> = {
export type Flag<S extends string> = {
[K in S]: 1;

@@ -81,0 +81,0 @@ };

@@ -7,10 +7,10 @@ import type { AggregateOp, BandScale, BaseScale, BinOrdinalScale, ColorValueRef, Compare as VgCompare, ExprRef as VgExprRef, GeoShapeTransform as VgGeoShapeTransform, IdentityScale, LayoutAlign, LinearScale, LogScale, Mark, MarkConfig, NumericValueRef, OrdinalScale, PointScale, PowScale, ProjectionType, QuantileScale, QuantizeScale, RangeBand, RangeRaw, RangeScheme, ScaleData, ScaleDataRef, ScaledValueRef, ScaleMultiDataRef, ScaleMultiFieldsRef, SequentialScale, SignalRef, SortField as VgSortField, SqrtScale, SymLogScale, ThresholdScale, TimeInterval, TimeIntervalStep, TimeScale, Title as VgTitle, Transforms as VgTransform, UnionSortField as VgUnionSortField } from 'vega';

export type { VgSortField, VgUnionSortField, VgCompare, VgTitle, LayoutAlign, ProjectionType, VgExprRef };
export declare type MappedExclude<T, E> = {
export type MappedExclude<T, E> = {
[P in keyof T]: Exclude<T[P], E>;
};
export declare type MapExcludeAndKeepSignalAs<T, E, S extends ExprRef | SignalRef> = {
export type MapExcludeAndKeepSignalAs<T, E, S extends ExprRef | SignalRef> = {
[P in keyof T]: SignalRef extends T[P] ? Exclude<T[P], E> | S : Exclude<T[P], E>;
};
export declare type MappedExcludeValueRef<T> = MappedExclude<T, ScaledValueRef<any> | NumericValueRef | ColorValueRef>;
export declare type MapExcludeValueRefAndReplaceSignalWith<T, S extends ExprRef | SignalRef> = MapExcludeAndKeepSignalAs<T, ScaledValueRef<any> | NumericValueRef | ColorValueRef, S>;
export type MappedExcludeValueRef<T> = MappedExclude<T, ScaledValueRef<any> | NumericValueRef | ColorValueRef>;
export type MapExcludeValueRefAndReplaceSignalWith<T, S extends ExprRef | SignalRef> = MapExcludeAndKeepSignalAs<T, ScaledValueRef<any> | NumericValueRef | ColorValueRef, S>;
export interface VgData {

@@ -30,3 +30,3 @@ name: string;

}
export declare type VgScaleDataRefWithSort = ScaleDataRef & {
export type VgScaleDataRefWithSort = ScaleDataRef & {
sort?: VgSortField;

@@ -49,10 +49,10 @@ };

}
export declare type VgScaleMultiDataRefWithSort = ScaleMultiDataRef & {
export type VgScaleMultiDataRefWithSort = ScaleMultiDataRef & {
fields: (any[] | VgScaleDataRefWithSort | SignalRef)[];
sort?: VgUnionSortField;
};
export declare type VgMultiFieldsRefWithSort = ScaleMultiFieldsRef & {
export type VgMultiFieldsRefWithSort = ScaleMultiFieldsRef & {
sort?: VgUnionSortField;
};
export declare type VgRange = RangeScheme | ScaleData | RangeBand | RangeRaw;
export type VgRange = RangeScheme | ScaleData | RangeBand | RangeRaw;
export declare function isVgRangeStep(range: VgRange): range is VgRangeStep;

@@ -62,9 +62,9 @@ export interface VgRangeStep {

}
export declare type VgNonUnionDomain = (null | string | number | boolean | SignalRef)[] | VgScaleDataRefWithSort | SignalRef;
export declare type VgDomain = BaseScale['domain'];
export declare type VgMarkGroup = any;
export type VgNonUnionDomain = (null | string | number | boolean | SignalRef)[] | VgScaleDataRefWithSort | SignalRef;
export type VgDomain = BaseScale['domain'];
export type VgMarkGroup = any;
/**
* A combined type for any Vega scales that Vega-Lite can generate
*/
export declare type VgScale = Pick<BaseScale, 'type'> & {
export type VgScale = Pick<BaseScale, 'type'> & {
range?: RangeScheme | RangeBand | ScaleData;

@@ -102,7 +102,7 @@ nice?: boolean | number | TimeInterval | TimeIntervalStep | SignalRef;

export declare function isDataRefDomain(domain: VgDomain | any): domain is VgScaleDataRefWithSort;
export declare type VgEncodeChannel = 'x' | 'x2' | 'xc' | 'width' | 'y' | 'y2' | 'yc' | 'height' | 'opacity' | 'fill' | 'fillOpacity' | 'stroke' | 'strokeWidth' | 'strokeCap' | 'strokeOpacity' | 'strokeDash' | 'strokeDashOffset' | 'strokeMiterLimit' | 'strokeJoin' | 'strokeOffset' | 'strokeForeground' | 'cursor' | 'clip' | 'size' | 'shape' | 'path' | 'innerRadius' | 'outerRadius' | 'startAngle' | 'endAngle' | 'interpolate' | 'tension' | 'orient' | 'url' | 'align' | 'baseline' | 'text' | 'dir' | 'ellipsis' | 'limit' | 'dx' | 'dy' | 'radius' | 'theta' | 'angle' | 'font' | 'fontSize' | 'fontWeight' | 'fontStyle' | 'tooltip' | 'href' | 'cursor' | 'defined' | 'cornerRadius' | 'cornerRadiusTopLeft' | 'cornerRadiusTopRight' | 'cornerRadiusBottomRight' | 'cornerRadiusBottomLeft' | 'scaleX' | 'scaleY';
export declare type VgEncodeEntry = Partial<Record<VgEncodeChannel, VgValueRef | (VgValueRef & {
export type VgEncodeChannel = 'x' | 'x2' | 'xc' | 'width' | 'y' | 'y2' | 'yc' | 'height' | 'opacity' | 'fill' | 'fillOpacity' | 'stroke' | 'strokeWidth' | 'strokeCap' | 'strokeOpacity' | 'strokeDash' | 'strokeDashOffset' | 'strokeMiterLimit' | 'strokeJoin' | 'strokeOffset' | 'strokeForeground' | 'cursor' | 'clip' | 'size' | 'shape' | 'path' | 'innerRadius' | 'outerRadius' | 'startAngle' | 'endAngle' | 'interpolate' | 'tension' | 'orient' | 'url' | 'align' | 'baseline' | 'text' | 'dir' | 'ellipsis' | 'limit' | 'dx' | 'dy' | 'radius' | 'theta' | 'angle' | 'font' | 'fontSize' | 'fontWeight' | 'fontStyle' | 'tooltip' | 'href' | 'cursor' | 'defined' | 'cornerRadius' | 'cornerRadiusTopLeft' | 'cornerRadiusTopRight' | 'cornerRadiusBottomRight' | 'cornerRadiusBottomLeft' | 'scaleX' | 'scaleY';
export type VgEncodeEntry = Partial<Record<VgEncodeChannel, VgValueRef | (VgValueRef & {
test?: string;
})[]>>;
export declare type VgPostEncodingTransform = VgGeoShapeTransform;
export type VgPostEncodingTransform = VgGeoShapeTransform;
export declare const VG_MARK_CONFIGS: (keyof MarkConfig)[];

@@ -109,0 +109,0 @@ export declare const VG_MARK_INDEX: Flag<Mark['type']>;

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

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

"build:toc": "yarn build:jekyll && scripts/generate-toc",
"build:site": "rollup -c site/rollup.config.js",
"build:site": "rollup -c site/rollup.config.mjs",
"build:jekyll": "pushd site && bundle exec jekyll build -q && popd",

@@ -75,4 +75,3 @@ "build:versions": "scripts/update-version.sh",

"watch:test:runtime": "NODE_OPTIONS=--experimental-vm-modules TZ=America/Los_Angeles npx jest --watch test-runtime/ --config test-runtime/jest-config.json",
"release": "yarn run prebuild && yarn build && yarn shipit",
"shipit": "auto shipit"
"release": "yarn release-it"
},

@@ -88,13 +87,13 @@ "repository": {

"devDependencies": {
"@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/core": "^7.20.12",
"@babel/preset-env": "^7.20.2",
"@babel/preset-typescript": "^7.18.6",
"@rollup/plugin-alias": "^4.0.0",
"@rollup/plugin-babel": "^6.0.0",
"@rollup/plugin-commonjs": "^23.0.0",
"@rollup/plugin-json": "^5.0.0",
"@release-it/conventional-changelog": "^5.1.1",
"@rollup/plugin-alias": "^4.0.3",
"@rollup/plugin-babel": "^6.0.3",
"@rollup/plugin-commonjs": "^24.0.1",
"@rollup/plugin-json": "^6.0.0",
"@rollup/plugin-node-resolve": "^15.0.1",
"@types/chai": "^4.3.3",
"@rollup/plugin-terser": "^0.4.0",
"@types/chai": "^4.3.4",
"@types/d3": "^7.4.0",

@@ -104,37 +103,36 @@ "@types/jest": "^27.4.1",

"@types/pako": "^2.0.0",
"@typescript-eslint/eslint-plugin": "^5.38.0",
"@typescript-eslint/parser": "^5.38.0",
"ajv": "^8.11.0",
"@typescript-eslint/eslint-plugin": "^5.52.0",
"@typescript-eslint/parser": "^5.52.0",
"ajv-formats": "^2.1.1",
"auto": "^10.37.6",
"chai": "^4.3.6",
"ajv": "^8.12.0",
"chai": "^4.3.7",
"cheerio": "^1.0.0-rc.12",
"conventional-changelog-cli": "^2.2.2",
"d3": "^7.6.1",
"d3": "^7.8.2",
"del-cli": "^5.0.0",
"eslint": "^8.23.1",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-jest": "^27.0.4",
"eslint-config-prettier": "^8.6.0",
"eslint-plugin-jest": "^27.2.1",
"eslint-plugin-prettier": "^4.2.1",
"gh-pages": "^4.0.0",
"highlight.js": "^11.6.0",
"eslint": "^8.34.0",
"gh-pages": "^5.0.0",
"highlight.js": "^11.7.0",
"jest-dev-server": "^6.1.1",
"jest": "^27.5.1",
"jest-dev-server": "^6.1.1",
"mkdirp": "^1.0.4",
"pako": "^2.0.4",
"prettier": "^2.7.1",
"mkdirp": "^2.1.3",
"pako": "^2.1.0",
"prettier": "^2.8.4",
"puppeteer": "^15.0.0",
"rollup": "^2.79.1",
"release-it": "^15.6.0",
"rollup-plugin-bundle-size": "^1.0.3",
"rollup-plugin-sourcemaps": "^0.6.3",
"rollup-plugin-terser": "^7.0.2",
"serve": "^14.0.1",
"terser": "^5.15.0",
"ts-jest": "^29.0.1",
"ts-json-schema-generator": "^1.1.1",
"typescript": "~4.8.3",
"rollup": "^3.15.0",
"serve": "^14.2.0",
"terser": "^5.16.3",
"ts-jest": "^29.0.5",
"ts-json-schema-generator": "^1.2.0",
"typescript": "~4.9.5",
"vega-cli": "^5.22.1",
"vega-datasets": "~2.5.1",
"vega-embed": "^6.21.0",
"vega-tooltip": "^0.30.0",
"vega-datasets": "~2.5.4",
"vega-embed": "^6.21.2",
"vega-tooltip": "^0.30.1",
"yaml-front-matter": "^4.1.1"

@@ -148,7 +146,7 @@ },

"json-stringify-pretty-compact": "~3.0.0",
"tslib": "~2.4.0",
"tslib": "~2.5.0",
"vega-event-selector": "~3.0.0",
"vega-expression": "~5.0.0",
"vega-util": "~1.17.0",
"yargs": "~17.6.0"
"yargs": "~17.6.2"
},

@@ -155,0 +153,0 @@ "peerDependencies": {

# Vega-Lite <a href="https://vega.github.io/vega-lite/"><img align="right" src="https://github.com/vega/logos/blob/master/assets/VL_Color@64.png?raw=true" height="38"></img></a>
[![npm version](https://img.shields.io/npm/v/vega-lite.svg)](https://www.npmjs.com/package/vega-lite) [![Build Status](https://github.com/vega/vega-lite/workflows/Test/badge.svg)](https://github.com/vega/vega-lite/actions) [![codecov](https://codecov.io/gh/vega/vega-lite/branch/next/graph/badge.svg)](https://codecov.io/gh/vega/vega-lite) [![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=rounded)](https://github.com/prettier/prettier) [![JSDevlivr](https://data.jsdelivr.com/v1/package/npm/vega-lite/badge?style=rounded)](https://www.jsdelivr.com/package/npm/vega-lite)
[![npm version](https://img.shields.io/npm/v/vega-lite.svg)](https://www.npmjs.com/package/vega-lite) [![Build Status](https://github.com/vega/vega-lite/workflows/Test/badge.svg)](https://github.com/vega/vega-lite/actions) [![codecov](https://codecov.io/gh/vega/vega-lite/branch/main/graph/badge.svg)](https://codecov.io/gh/vega/vega-lite) [![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=rounded)](https://github.com/prettier/prettier) [![JSDevlivr](https://data.jsdelivr.com/v1/package/npm/vega-lite/badge?style=rounded)](https://www.jsdelivr.com/package/npm/vega-lite)

@@ -5,0 +5,0 @@ ![Teaser](site/static/teaser.png)

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