Skip to content

Commit

Permalink
Merge branch 'main' into dom/rebuild-6782
Browse files Browse the repository at this point in the history
  • Loading branch information
domoritz committed Feb 18, 2024
2 parents 7455b87 + 9da3ecb commit a13fd7a
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 36 deletions.
6 changes: 6 additions & 0 deletions build/vega-lite-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -21928,6 +21928,12 @@
{
"$ref": "#/definitions/ColorScheme"
},
{
"items": {
"type": "string"
},
"type": "array"
},
{
"$ref": "#/definitions/SchemeParams"
},
Expand Down
29 changes: 0 additions & 29 deletions examples/specs/line_dynamic_axis.vl.json

This file was deleted.

4 changes: 0 additions & 4 deletions site/_data/examples.json
Original file line number Diff line number Diff line change
Expand Up @@ -520,10 +520,6 @@
{
"name": "layer_point_line_loess",
"title": "Loess Regression"
},
{
"name": "line_dynamic_axis",
"title": "Dynamic Minimum and Maximum Y Axis"
}
]
},
Expand Down
2 changes: 1 addition & 1 deletion src/compile/scale/range.ts
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ export function parseRangeForChannel(channel: ScaleChannel, model: UnitModel): E
return makeImplicit(d);
}

function parseScheme(scheme: Scheme | SignalRef): RangeScheme {
function parseScheme(scheme: Scheme | SignalRef | string[]): RangeScheme {
if (isExtendedScheme(scheme)) {
return {
scheme: scheme.name,
Expand Down
4 changes: 2 additions & 2 deletions src/scale.ts
Original file line number Diff line number Diff line change
Expand Up @@ -481,7 +481,7 @@ export type Domain =

export type Scheme = string | SchemeParams;

export function isExtendedScheme(scheme: Scheme | SignalRef): scheme is SchemeParams {
export function isExtendedScheme(scheme: Scheme | SignalRef | string[]): scheme is SchemeParams {
return !isString(scheme) && !!scheme['name'];
}

Expand Down Expand Up @@ -611,7 +611,7 @@ export interface Scale<ES extends ExprRef | SignalRef = ExprRef | SignalRef> {
*
* For the full list of supported schemes, please refer to the [Vega Scheme](https://vega.github.io/vega/docs/schemes/#reference) reference.
*/
scheme?: ColorScheme | SchemeParams | ES;
scheme?: ColorScheme | string[] | SchemeParams | ES;

/**
* The alignment of the steps within the scale range.
Expand Down

0 comments on commit a13fd7a

Please sign in to comment.