Skip to content

Commit

Permalink
Update Vega-Lite to 5.16.3 and run generate_schema_wrapper.py
Browse files Browse the repository at this point in the history
  • Loading branch information
jonmmease committed Nov 23, 2023
1 parent 44e4020 commit b432738
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 37 deletions.
4 changes: 2 additions & 2 deletions altair/vegalite/v5/schema/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
from .core import *
from .channels import * # type: ignore[assignment]

SCHEMA_VERSION = "v5.15.1"
SCHEMA_VERSION = "v5.16.3"

SCHEMA_URL = "https://vega.github.io/schema/vega-lite/v5.15.1.json"
SCHEMA_URL = "https://vega.github.io/schema/vega-lite/v5.16.3.json"
18 changes: 6 additions & 12 deletions altair/vegalite/v5/schema/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -11418,7 +11418,7 @@ class DomainUnionWith(VegaLiteSchema):
Parameters
----------

unionWith : Sequence[:class:`DateTime`, Dict], Sequence[bool], Sequence[float], Sequence[str]
unionWith : Sequence[:class:`DateTime`, Dict, bool, float, str]
Customized domain values to be union with the field's values or explicitly defined
domain. Should be an array of valid scale domain values.
"""
Expand All @@ -11428,13 +11428,7 @@ class DomainUnionWith(VegaLiteSchema):
def __init__(
self,
unionWith: Union[
Union[
Sequence[Union["DateTime", dict]],
Sequence[bool],
Sequence[float],
Sequence[str],
],
UndefinedType,
Sequence[Union[Union["DateTime", dict], bool, float, str]], UndefinedType
] = Undefined,
**kwds,
):
Expand Down Expand Up @@ -17884,8 +17878,8 @@ class IntervalSelectionConfig(VegaLiteSchema):
include a start and end event to trigger continuous panning. Discrete panning (e.g.,
pressing the left/right arrow keys) will be supported in future versions.

**Default value:** ``true``, which corresponds to ``[mousedown, window:mouseup] >
window:mousemove!``. This default allows users to clicks and drags within an
**Default value:** ``true``, which corresponds to ``[pointerdown, window:pointerup]
> window:pointermove!``. This default allows users to clicks and drags within an
interval selection to reposition it.

**See also:** `translate examples
Expand Down Expand Up @@ -18073,8 +18067,8 @@ class IntervalSelectionConfigWithoutType(VegaLiteSchema):
include a start and end event to trigger continuous panning. Discrete panning (e.g.,
pressing the left/right arrow keys) will be supported in future versions.

**Default value:** ``true``, which corresponds to ``[mousedown, window:mouseup] >
window:mousemove!``. This default allows users to clicks and drags within an
**Default value:** ``true``, which corresponds to ``[pointerdown, window:pointerup]
> window:pointermove!``. This default allows users to clicks and drags within an
interval selection to reposition it.

**See also:** `translate examples
Expand Down
35 changes: 13 additions & 22 deletions altair/vegalite/v5/schema/vega-lite-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -8330,33 +8330,24 @@
"additionalProperties": false,
"properties": {
"unionWith": {
"anyOf": [
{
"items": {
"description": "Customized domain values to be union with the field's values or explicitly defined domain. Should be an array of valid scale domain values.",
"items": {
"anyOf": [
{
"type": "number"
},
"type": "array"
},
{
"items": {
{
"type": "string"
},
"type": "array"
},
{
"items": {
{
"type": "boolean"
},
"type": "array"
},
{
"items": {
{
"$ref": "#/definitions/DateTime"
},
"type": "array"
}
],
"description": "Customized domain values to be union with the field's values or explicitly defined domain. Should be an array of valid scale domain values."
}
]
},
"type": "array"
}
},
"required": [
Expand Down Expand Up @@ -12499,7 +12490,7 @@
"description": "With layered and multi-view displays, a strategy that determines how selections' data queries are resolved when applied in a filter transform, conditional encoding rule, or scale domain.\n\nOne of:\n- `\"global\"` -- only one brush exists for the entire SPLOM. When the user begins to drag, any previous brushes are cleared, and a new one is constructed.\n- `\"union\"` -- each cell contains its own brush, and points are highlighted if they lie within _any_ of these individual brushes.\n- `\"intersect\"` -- each cell contains its own brush, and points are highlighted only if they fall within _all_ of these individual brushes.\n\n__Default value:__ `global`.\n\n__See also:__ [`resolve` examples](https://vega.github.io/vega-lite/docs/selection.html#resolve) in the documentation."
},
"translate": {
"description": "When truthy, allows a user to interactively move an interval selection back-and-forth. Can be `true`, `false` (to disable panning), or a [Vega event stream definition](https://vega.github.io/vega/docs/event-streams/) which must include a start and end event to trigger continuous panning. Discrete panning (e.g., pressing the left/right arrow keys) will be supported in future versions.\n\n__Default value:__ `true`, which corresponds to `[mousedown, window:mouseup] > window:mousemove!`. This default allows users to clicks and drags within an interval selection to reposition it.\n\n__See also:__ [`translate` examples](https://vega.github.io/vega-lite/docs/selection.html#translate) in the documentation.",
"description": "When truthy, allows a user to interactively move an interval selection back-and-forth. Can be `true`, `false` (to disable panning), or a [Vega event stream definition](https://vega.github.io/vega/docs/event-streams/) which must include a start and end event to trigger continuous panning. Discrete panning (e.g., pressing the left/right arrow keys) will be supported in future versions.\n\n__Default value:__ `true`, which corresponds to `[pointerdown, window:pointerup] > window:pointermove!`. This default allows users to clicks and drags within an interval selection to reposition it.\n\n__See also:__ [`translate` examples](https://vega.github.io/vega-lite/docs/selection.html#translate) in the documentation.",
"type": [
"string",
"boolean"
Expand Down Expand Up @@ -12574,7 +12565,7 @@
"description": "With layered and multi-view displays, a strategy that determines how selections' data queries are resolved when applied in a filter transform, conditional encoding rule, or scale domain.\n\nOne of:\n- `\"global\"` -- only one brush exists for the entire SPLOM. When the user begins to drag, any previous brushes are cleared, and a new one is constructed.\n- `\"union\"` -- each cell contains its own brush, and points are highlighted if they lie within _any_ of these individual brushes.\n- `\"intersect\"` -- each cell contains its own brush, and points are highlighted only if they fall within _all_ of these individual brushes.\n\n__Default value:__ `global`.\n\n__See also:__ [`resolve` examples](https://vega.github.io/vega-lite/docs/selection.html#resolve) in the documentation."
},
"translate": {
"description": "When truthy, allows a user to interactively move an interval selection back-and-forth. Can be `true`, `false` (to disable panning), or a [Vega event stream definition](https://vega.github.io/vega/docs/event-streams/) which must include a start and end event to trigger continuous panning. Discrete panning (e.g., pressing the left/right arrow keys) will be supported in future versions.\n\n__Default value:__ `true`, which corresponds to `[mousedown, window:mouseup] > window:mousemove!`. This default allows users to clicks and drags within an interval selection to reposition it.\n\n__See also:__ [`translate` examples](https://vega.github.io/vega-lite/docs/selection.html#translate) in the documentation.",
"description": "When truthy, allows a user to interactively move an interval selection back-and-forth. Can be `true`, `false` (to disable panning), or a [Vega event stream definition](https://vega.github.io/vega/docs/event-streams/) which must include a start and end event to trigger continuous panning. Discrete panning (e.g., pressing the left/right arrow keys) will be supported in future versions.\n\n__Default value:__ `true`, which corresponds to `[pointerdown, window:pointerup] > window:pointermove!`. This default allows users to clicks and drags within an interval selection to reposition it.\n\n__See also:__ [`translate` examples](https://vega.github.io/vega-lite/docs/selection.html#translate) in the documentation.",
"type": [
"string",
"boolean"
Expand Down
2 changes: 1 addition & 1 deletion tools/generate_schema_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
indent_docstring,
)

SCHEMA_VERSION: Final = "v5.15.1"
SCHEMA_VERSION: Final = "v5.16.3"

reLink = re.compile(r"(?<=\[)([^\]]+)(?=\]\([^\)]+\))", re.M)
reSpecial = re.compile(r"[*_]{2,3}|`", re.M)
Expand Down

0 comments on commit b432738

Please sign in to comment.