vgplot 0.31.0__tar.gz → 0.32.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: vgplot
3
- Version: 0.31.0
3
+ Version: 0.32.0
4
4
  Summary: A Python API for authoring Mosaic vgplot visualizations
5
5
  Project-URL: homepage, https://github.com/uwdata/mosaic
6
6
  Requires-Python: >=3.10
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vgplot-python",
3
- "version": "0.31.0",
3
+ "version": "0.32.0",
4
4
  "private": true,
5
5
  "scripts": {
6
6
  "prerelease": "uv run ruff check && uv run ruff format --check",
@@ -62,7 +62,7 @@ if TYPE_CHECKING:
62
62
  from typing_extensions import assert_type
63
63
 
64
64
  def typing_unset(
65
- a: UNSET, b: str | UNSET, c: Any | UNSET, d: int | None | UNSET = UNSET
65
+ a: UNSET, b: str | UNSET, c: Any | UNSET, d: int | UNSET | None = UNSET
66
66
  ) -> None:
67
67
  assert_type(a, UNSET)
68
68
  assert_type(b, str | UNSET)
@@ -20,6 +20,7 @@ from .plot import (
20
20
  margins,
21
21
  mark,
22
22
  menu,
23
+ nearest,
23
24
  nearest_x,
24
25
  nearest_y,
25
26
  opacity_legend,
@@ -43,6 +44,7 @@ from .plot import (
43
44
  toggle_color,
44
45
  toggle_x,
45
46
  toggle_y,
47
+ toggle_z,
46
48
  vconcat,
47
49
  vspace,
48
50
  )
@@ -69,6 +71,7 @@ __all__ = [
69
71
  "margins",
70
72
  "mark",
71
73
  "menu",
74
+ "nearest",
72
75
  "nearest_x",
73
76
  "nearest_y",
74
77
  "opacity_legend",
@@ -99,6 +102,7 @@ __all__ = [
99
102
  "toggle_color",
100
103
  "toggle_x",
101
104
  "toggle_y",
105
+ "toggle_z",
102
106
  "vconcat",
103
107
  "vspace",
104
108
  ] + list(_generated_all) # pyright: ignore[reportUnsupportedDunderAll]
@@ -152,7 +152,7 @@ def mode(col: TransformArg, **options: Any) -> dict[str, Any]:
152
152
 
153
153
 
154
154
  def nth_value(
155
- col: TransformArg, offset: TransformArg | UNSET = UNSET, **options: Any
155
+ col: TransformArg, offset: TransformArg, **options: Any
156
156
  ) -> dict[str, Any]:
157
157
  """Get the nth value of the given column in the current window frame, counting from one."""
158
158
  return _transform("nth_value", (col, offset), options)
@@ -20,7 +20,7 @@ AttrValue = (
20
20
  str | float | bool | date | dict[str, Any] | Sequence[Any] | _ParamBase | None
21
21
  )
22
22
  MarkData = str | FromRef | DataDef | dict[str, Any] | Sequence[Any] | _ParamBase | None
23
- TransformArg = str | float | bool | _ParamBase
23
+ TransformArg = str | float | bool | dict[str, Any] | _ParamBase
24
24
 
25
25
  UNSET = sentinel("UNSET")
26
26
  """Sentinel for mark channels that were not passed (distinct from None)."""
@@ -301,6 +301,16 @@ def toggle_color(bind: Any = None, peers: Any = None) -> dict[str, Any]:
301
301
  return _interactor("toggleColor", **{"as": bind, "peers": peers})
302
302
 
303
303
 
304
+ def toggle_z(bind: Any = None, peers: Any = None) -> dict[str, Any]:
305
+ return _interactor("toggleZ", **{"as": bind, "peers": peers})
306
+
307
+
308
+ def nearest(
309
+ bind: Any = None, field: Any = None, channels: Any = None
310
+ ) -> dict[str, Any]:
311
+ return _interactor("nearest", **{"as": bind, "field": field, "channels": channels})
312
+
313
+
304
314
  def nearest_x(
305
315
  bind: Any = None, field: Any = None, channels: Any = None
306
316
  ) -> dict[str, Any]:
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes