ZTWHHH commited on
Commit
513f20f
·
verified ·
1 Parent(s): faeeecc

Add files using upload-large-folder tool

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. .gitattributes +1 -0
  2. videollama2/lib/python3.10/site-packages/altair/__pycache__/__init__.cpython-310.pyc +0 -0
  3. videollama2/lib/python3.10/site-packages/altair/__pycache__/_magics.cpython-310.pyc +0 -0
  4. videollama2/lib/python3.10/site-packages/altair/__pycache__/typing.cpython-310.pyc +0 -0
  5. videollama2/lib/python3.10/site-packages/altair/expr/__init__.py +1432 -0
  6. videollama2/lib/python3.10/site-packages/altair/expr/consts.py +13 -0
  7. videollama2/lib/python3.10/site-packages/altair/vegalite/__pycache__/__init__.cpython-310.pyc +0 -0
  8. videollama2/lib/python3.10/site-packages/altair/vegalite/__pycache__/api.cpython-310.pyc +0 -0
  9. videollama2/lib/python3.10/site-packages/altair/vegalite/__pycache__/data.cpython-310.pyc +0 -0
  10. videollama2/lib/python3.10/site-packages/altair/vegalite/__pycache__/display.cpython-310.pyc +0 -0
  11. videollama2/lib/python3.10/site-packages/altair/vegalite/__pycache__/schema.cpython-310.pyc +0 -0
  12. videollama2/lib/python3.10/site-packages/altair/vegalite/v5/schema/__pycache__/__init__.cpython-310.pyc +0 -0
  13. videollama2/lib/python3.10/site-packages/altair/vegalite/v5/schema/__pycache__/mixins.cpython-310.pyc +0 -0
  14. videollama2/lib/python3.10/site-packages/pydantic_core/_pydantic_core.cpython-310-x86_64-linux-gnu.so +3 -0
  15. vllm/lib/python3.10/site-packages/OpenGL/EGL/KHR/__init__.py +1 -0
  16. vllm/lib/python3.10/site-packages/OpenGL/EGL/KHR/__pycache__/__init__.cpython-310.pyc +0 -0
  17. vllm/lib/python3.10/site-packages/OpenGL/EGL/KHR/__pycache__/cl_event.cpython-310.pyc +0 -0
  18. vllm/lib/python3.10/site-packages/OpenGL/EGL/KHR/__pycache__/cl_event2.cpython-310.pyc +0 -0
  19. vllm/lib/python3.10/site-packages/OpenGL/EGL/KHR/__pycache__/client_get_all_proc_addresses.cpython-310.pyc +0 -0
  20. vllm/lib/python3.10/site-packages/OpenGL/EGL/KHR/__pycache__/config_attribs.cpython-310.pyc +0 -0
  21. vllm/lib/python3.10/site-packages/OpenGL/EGL/KHR/__pycache__/create_context.cpython-310.pyc +0 -0
  22. vllm/lib/python3.10/site-packages/OpenGL/EGL/KHR/__pycache__/fence_sync.cpython-310.pyc +0 -0
  23. vllm/lib/python3.10/site-packages/OpenGL/EGL/KHR/__pycache__/get_all_proc_addresses.cpython-310.pyc +0 -0
  24. vllm/lib/python3.10/site-packages/OpenGL/EGL/KHR/__pycache__/gl_colorspace.cpython-310.pyc +0 -0
  25. vllm/lib/python3.10/site-packages/OpenGL/EGL/KHR/__pycache__/gl_renderbuffer_image.cpython-310.pyc +0 -0
  26. vllm/lib/python3.10/site-packages/OpenGL/EGL/KHR/__pycache__/gl_texture_2D_image.cpython-310.pyc +0 -0
  27. vllm/lib/python3.10/site-packages/OpenGL/EGL/KHR/__pycache__/gl_texture_3D_image.cpython-310.pyc +0 -0
  28. vllm/lib/python3.10/site-packages/OpenGL/EGL/KHR/__pycache__/gl_texture_cubemap_image.cpython-310.pyc +0 -0
  29. vllm/lib/python3.10/site-packages/OpenGL/EGL/KHR/__pycache__/image.cpython-310.pyc +0 -0
  30. vllm/lib/python3.10/site-packages/OpenGL/EGL/KHR/__pycache__/image_base.cpython-310.pyc +0 -0
  31. vllm/lib/python3.10/site-packages/OpenGL/EGL/KHR/__pycache__/image_pixmap.cpython-310.pyc +0 -0
  32. vllm/lib/python3.10/site-packages/OpenGL/EGL/KHR/__pycache__/lock_surface.cpython-310.pyc +0 -0
  33. vllm/lib/python3.10/site-packages/OpenGL/EGL/KHR/__pycache__/lock_surface2.cpython-310.pyc +0 -0
  34. vllm/lib/python3.10/site-packages/OpenGL/EGL/KHR/__pycache__/lock_surface3.cpython-310.pyc +0 -0
  35. vllm/lib/python3.10/site-packages/OpenGL/EGL/KHR/__pycache__/platform_android.cpython-310.pyc +0 -0
  36. vllm/lib/python3.10/site-packages/OpenGL/EGL/KHR/__pycache__/platform_gbm.cpython-310.pyc +0 -0
  37. vllm/lib/python3.10/site-packages/OpenGL/EGL/KHR/__pycache__/platform_wayland.cpython-310.pyc +0 -0
  38. vllm/lib/python3.10/site-packages/OpenGL/EGL/KHR/__pycache__/platform_x11.cpython-310.pyc +0 -0
  39. vllm/lib/python3.10/site-packages/OpenGL/EGL/KHR/__pycache__/reusable_sync.cpython-310.pyc +0 -0
  40. vllm/lib/python3.10/site-packages/OpenGL/EGL/KHR/__pycache__/stream.cpython-310.pyc +0 -0
  41. vllm/lib/python3.10/site-packages/OpenGL/EGL/KHR/__pycache__/stream_consumer_gltexture.cpython-310.pyc +0 -0
  42. vllm/lib/python3.10/site-packages/OpenGL/EGL/KHR/__pycache__/stream_cross_process_fd.cpython-310.pyc +0 -0
  43. vllm/lib/python3.10/site-packages/OpenGL/EGL/KHR/__pycache__/stream_fifo.cpython-310.pyc +0 -0
  44. vllm/lib/python3.10/site-packages/OpenGL/EGL/KHR/__pycache__/stream_producer_aldatalocator.cpython-310.pyc +0 -0
  45. vllm/lib/python3.10/site-packages/OpenGL/EGL/KHR/__pycache__/stream_producer_eglsurface.cpython-310.pyc +0 -0
  46. vllm/lib/python3.10/site-packages/OpenGL/EGL/KHR/__pycache__/surfaceless_context.cpython-310.pyc +0 -0
  47. vllm/lib/python3.10/site-packages/OpenGL/EGL/KHR/__pycache__/vg_parent_image.cpython-310.pyc +0 -0
  48. vllm/lib/python3.10/site-packages/OpenGL/EGL/KHR/__pycache__/wait_sync.cpython-310.pyc +0 -0
  49. vllm/lib/python3.10/site-packages/OpenGL/EGL/KHR/config_attribs.py +23 -0
  50. vllm/lib/python3.10/site-packages/OpenGL/EGL/KHR/create_context.py +23 -0
.gitattributes CHANGED
@@ -970,3 +970,4 @@ vllm/lib/python3.10/site-packages/pandas/tests/io/__pycache__/test_sql.cpython-3
970
  vllm/lib/python3.10/site-packages/pandas/tests/indexing/__pycache__/test_loc.cpython-310.pyc filter=lfs diff=lfs merge=lfs -text
971
  vllm/lib/python3.10/site-packages/pandas/tests/tools/__pycache__/test_to_datetime.cpython-310.pyc filter=lfs diff=lfs merge=lfs -text
972
  videollama2/lib/python3.10/site-packages/fontTools/feaLib/lexer.cpython-310-x86_64-linux-gnu.so filter=lfs diff=lfs merge=lfs -text
 
 
970
  vllm/lib/python3.10/site-packages/pandas/tests/indexing/__pycache__/test_loc.cpython-310.pyc filter=lfs diff=lfs merge=lfs -text
971
  vllm/lib/python3.10/site-packages/pandas/tests/tools/__pycache__/test_to_datetime.cpython-310.pyc filter=lfs diff=lfs merge=lfs -text
972
  videollama2/lib/python3.10/site-packages/fontTools/feaLib/lexer.cpython-310-x86_64-linux-gnu.so filter=lfs diff=lfs merge=lfs -text
973
+ videollama2/lib/python3.10/site-packages/pydantic_core/_pydantic_core.cpython-310-x86_64-linux-gnu.so filter=lfs diff=lfs merge=lfs -text
videollama2/lib/python3.10/site-packages/altair/__pycache__/__init__.cpython-310.pyc ADDED
Binary file (12.5 kB). View file
 
videollama2/lib/python3.10/site-packages/altair/__pycache__/_magics.cpython-310.pyc ADDED
Binary file (2.78 kB). View file
 
videollama2/lib/python3.10/site-packages/altair/__pycache__/typing.cpython-310.pyc ADDED
Binary file (1.68 kB). View file
 
videollama2/lib/python3.10/site-packages/altair/expr/__init__.py ADDED
@@ -0,0 +1,1432 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """Tools for creating transform & filter expressions with a python syntax."""
2
+
3
+ from __future__ import annotations
4
+
5
+ import sys
6
+
7
+ from altair.expr.core import ConstExpression, FunctionExpression
8
+ from altair.vegalite.v5.schema.core import ExprRef as _ExprRef
9
+
10
+ if sys.version_info >= (3, 12):
11
+ from typing import override
12
+ else:
13
+ from typing_extensions import override
14
+
15
+
16
+ class _ConstExpressionType(type):
17
+ """Metaclass providing read-only class properties for :class:`expr`."""
18
+
19
+ @property
20
+ def NaN(cls) -> ConstExpression:
21
+ """Not a number (same as JavaScript literal NaN)."""
22
+ return ConstExpression("NaN")
23
+
24
+ @property
25
+ def LN10(cls) -> ConstExpression:
26
+ """The natural log of 10 (alias to Math.LN10)."""
27
+ return ConstExpression("LN10")
28
+
29
+ @property
30
+ def E(cls) -> ConstExpression:
31
+ """The transcendental number e (alias to Math.E)."""
32
+ return ConstExpression("E")
33
+
34
+ @property
35
+ def LOG10E(cls) -> ConstExpression:
36
+ """The base 10 logarithm e (alias to Math.LOG10E)."""
37
+ return ConstExpression("LOG10E")
38
+
39
+ @property
40
+ def LOG2E(cls) -> ConstExpression:
41
+ """The base 2 logarithm of e (alias to Math.LOG2E)."""
42
+ return ConstExpression("LOG2E")
43
+
44
+ @property
45
+ def SQRT1_2(cls) -> ConstExpression:
46
+ """The square root of 0.5 (alias to Math.SQRT1_2)."""
47
+ return ConstExpression("SQRT1_2")
48
+
49
+ @property
50
+ def LN2(cls) -> ConstExpression:
51
+ """The natural log of 2 (alias to Math.LN2)."""
52
+ return ConstExpression("LN2")
53
+
54
+ @property
55
+ def SQRT2(cls) -> ConstExpression:
56
+ """The square root of 2 (alias to Math.SQRT1_2)."""
57
+ return ConstExpression("SQRT2")
58
+
59
+ @property
60
+ def PI(cls) -> ConstExpression:
61
+ """The transcendental number pi (alias to Math.PI)."""
62
+ return ConstExpression("PI")
63
+
64
+
65
+ class expr(_ExprRef, metaclass=_ConstExpressionType):
66
+ r"""
67
+ Utility providing *constants* and *classmethods* to construct expressions.
68
+
69
+ `Expressions`_ can be used to write basic formulas that enable custom interactions.
70
+
71
+ Alternatively, an `inline expression`_ may be defined via :class:`expr()`.
72
+
73
+ Parameters
74
+ ----------
75
+ expr: str
76
+ A `vega expression`_ string.
77
+
78
+ Returns
79
+ -------
80
+ ``ExprRef``
81
+
82
+ .. _Expressions:
83
+ https://altair-viz.github.io/user_guide/interactions.html#expressions
84
+ .. _inline expression:
85
+ https://altair-viz.github.io/user_guide/interactions.html#inline-expressions
86
+ .. _vega expression:
87
+ https://vega.github.io/vega/docs/expressions/
88
+
89
+ Examples
90
+ --------
91
+ >>> import altair as alt
92
+
93
+ >>> bind_range = alt.binding_range(min=100, max=300, name="Slider value: ")
94
+ >>> param_width = alt.param(bind=bind_range, name="param_width")
95
+ >>> param_color = alt.param(
96
+ ... expr=alt.expr.if_(param_width < 200, "red", "black"),
97
+ ... name="param_color",
98
+ ... )
99
+ >>> y = alt.Y("yval").axis(titleColor=param_color)
100
+
101
+ >>> y
102
+ Y({
103
+ axis: {'titleColor': Parameter('param_color', VariableParameter({
104
+ expr: if((param_width < 200),'red','black'),
105
+ name: 'param_color'
106
+ }))},
107
+ shorthand: 'yval'
108
+ })
109
+ """
110
+
111
+ @override
112
+ def __new__(cls: type[_ExprRef], expr: str) -> _ExprRef: # type: ignore[misc]
113
+ # NOTE: `mypy<=1.10.1` is not consistent with typing spec
114
+ # https://github.com/python/mypy/issues/1020
115
+ # https://docs.python.org/3/reference/datamodel.html#object.__new__
116
+ # https://typing.readthedocs.io/en/latest/spec/constructors.html#new-method
117
+ return _ExprRef(expr=expr)
118
+
119
+ @classmethod
120
+ def if_(cls, *args) -> FunctionExpression:
121
+ """
122
+ If *test* is truthy, returns *thenValue*. Otherwise, returns *elseValue*.
123
+
124
+ The *if* function is equivalent to the ternary operator `a ? b : c`.
125
+ """
126
+ return FunctionExpression("if", args)
127
+
128
+ @classmethod
129
+ def isArray(cls, *args) -> FunctionExpression:
130
+ """Returns true if *value* is an array, false otherwise."""
131
+ return FunctionExpression("isArray", args)
132
+
133
+ @classmethod
134
+ def isBoolean(cls, *args) -> FunctionExpression:
135
+ """Returns true if *value* is a boolean (`true` or `false`), false otherwise."""
136
+ return FunctionExpression("isBoolean", args)
137
+
138
+ @classmethod
139
+ def isDate(cls, *args) -> FunctionExpression:
140
+ """
141
+ Returns true if *value* is a Date object, false otherwise.
142
+
143
+ This method will return false for timestamp numbers or date-formatted strings; it recognizes Date objects only.
144
+ """
145
+ return FunctionExpression("isDate", args)
146
+
147
+ @classmethod
148
+ def isDefined(cls, *args) -> FunctionExpression:
149
+ """
150
+ Returns true if *value* is a defined value, false if *value* equals `undefined`.
151
+
152
+ This method will return true for `null` and `NaN` values.
153
+ """
154
+ return FunctionExpression("isDefined", args)
155
+
156
+ @classmethod
157
+ def isNumber(cls, *args) -> FunctionExpression:
158
+ """
159
+ Returns true if *value* is a number, false otherwise.
160
+
161
+ `NaN` and `Infinity` are considered numbers.
162
+ """
163
+ return FunctionExpression("isNumber", args)
164
+
165
+ @classmethod
166
+ def isObject(cls, *args) -> FunctionExpression:
167
+ """Returns true if *value* is an object (including arrays and Dates), false otherwise."""
168
+ return FunctionExpression("isObject", args)
169
+
170
+ @classmethod
171
+ def isRegExp(cls, *args) -> FunctionExpression:
172
+ """Returns true if *value* is a RegExp (regular expression) object, false otherwise."""
173
+ return FunctionExpression("isRegExp", args)
174
+
175
+ @classmethod
176
+ def isString(cls, *args) -> FunctionExpression:
177
+ """Returns true if *value* is a string, false otherwise."""
178
+ return FunctionExpression("isString", args)
179
+
180
+ @classmethod
181
+ def isValid(cls, *args) -> FunctionExpression:
182
+ """Returns true if *value* is not `null`, `undefined`, or `NaN`, false otherwise."""
183
+ return FunctionExpression("isValid", args)
184
+
185
+ @classmethod
186
+ def toBoolean(cls, *args) -> FunctionExpression:
187
+ """
188
+ Coerces the input *value* to a string.
189
+
190
+ Null values and empty strings are mapped to `null`.
191
+ """
192
+ return FunctionExpression("toBoolean", args)
193
+
194
+ @classmethod
195
+ def toDate(cls, *args) -> FunctionExpression:
196
+ """
197
+ Coerces the input *value* to a Date instance.
198
+
199
+ Null values and empty strings are mapped to `null`.
200
+ If an optional *parser* function is provided, it is used to perform date parsing, otherwise `Date.parse` is used.
201
+ Be aware that `Date.parse` has different implementations across browsers!
202
+ """
203
+ return FunctionExpression("toDate", args)
204
+
205
+ @classmethod
206
+ def toNumber(cls, *args) -> FunctionExpression:
207
+ """
208
+ Coerces the input *value* to a number.
209
+
210
+ Null values and empty strings are mapped to `null`.
211
+ """
212
+ return FunctionExpression("toNumber", args)
213
+
214
+ @classmethod
215
+ def toString(cls, *args) -> FunctionExpression:
216
+ """
217
+ Coerces the input *value* to a string.
218
+
219
+ Null values and empty strings are mapped to `null`.
220
+ """
221
+ return FunctionExpression("toString", args)
222
+
223
+ @classmethod
224
+ def isNaN(cls, *args) -> FunctionExpression:
225
+ """
226
+ Returns true if *value* is not a number.
227
+
228
+ Same as JavaScript's `isNaN`.
229
+ """
230
+ return FunctionExpression("isNaN", args)
231
+
232
+ @classmethod
233
+ def isFinite(cls, *args) -> FunctionExpression:
234
+ """
235
+ Returns true if *value* is a finite number.
236
+
237
+ Same as JavaScript's `isFinite`.
238
+ """
239
+ return FunctionExpression("isFinite", args)
240
+
241
+ @classmethod
242
+ def abs(cls, *args) -> FunctionExpression:
243
+ """
244
+ Returns the absolute value of *value*.
245
+
246
+ Same as JavaScript's `Math.abs`.
247
+ """
248
+ return FunctionExpression("abs", args)
249
+
250
+ @classmethod
251
+ def acos(cls, *args) -> FunctionExpression:
252
+ """
253
+ Trigonometric arccosine.
254
+
255
+ Same as JavaScript's `Math.acos`.
256
+ """
257
+ return FunctionExpression("acos", args)
258
+
259
+ @classmethod
260
+ def asin(cls, *args) -> FunctionExpression:
261
+ """
262
+ Trigonometric arcsine.
263
+
264
+ Same as JavaScript's `Math.asin`.
265
+ """
266
+ return FunctionExpression("asin", args)
267
+
268
+ @classmethod
269
+ def atan(cls, *args) -> FunctionExpression:
270
+ """
271
+ Trigonometric arctangent.
272
+
273
+ Same as JavaScript's `Math.atan`.
274
+ """
275
+ return FunctionExpression("atan", args)
276
+
277
+ @classmethod
278
+ def atan2(cls, *args) -> FunctionExpression:
279
+ """
280
+ Returns the arctangent of *dy / dx*.
281
+
282
+ Same as JavaScript's `Math.atan2`.
283
+ """
284
+ return FunctionExpression("atan2", args)
285
+
286
+ @classmethod
287
+ def ceil(cls, *args) -> FunctionExpression:
288
+ """
289
+ Rounds *value* to the nearest integer of equal or greater value.
290
+
291
+ Same as JavaScript's `Math.ceil`.
292
+ """
293
+ return FunctionExpression("ceil", args)
294
+
295
+ @classmethod
296
+ def clamp(cls, *args) -> FunctionExpression:
297
+ """Restricts *value* to be between the specified *min* and *max*."""
298
+ return FunctionExpression("clamp", args)
299
+
300
+ @classmethod
301
+ def cos(cls, *args) -> FunctionExpression:
302
+ """
303
+ Trigonometric cosine.
304
+
305
+ Same as JavaScript's `Math.cos`.
306
+ """
307
+ return FunctionExpression("cos", args)
308
+
309
+ @classmethod
310
+ def exp(cls, *args) -> FunctionExpression:
311
+ """
312
+ Returns the value of *e* raised to the provided *exponent*.
313
+
314
+ Same as JavaScript's `Math.exp`.
315
+ """
316
+ return FunctionExpression("exp", args)
317
+
318
+ @classmethod
319
+ def floor(cls, *args) -> FunctionExpression:
320
+ """
321
+ Rounds *value* to the nearest integer of equal or lower value.
322
+
323
+ Same as JavaScript's `Math.floor`.
324
+ """
325
+ return FunctionExpression("floor", args)
326
+
327
+ @classmethod
328
+ def hypot(cls, *args) -> FunctionExpression:
329
+ """
330
+ Returns the square root of the sum of squares of its arguments.
331
+
332
+ Same as JavaScript's `Math.hypot`.
333
+ """
334
+ return FunctionExpression("hypot", args)
335
+
336
+ @classmethod
337
+ def log(cls, *args) -> FunctionExpression:
338
+ """
339
+ Returns the natural logarithm of *value*.
340
+
341
+ Same as JavaScript's `Math.log`.
342
+ """
343
+ return FunctionExpression("log", args)
344
+
345
+ @classmethod
346
+ def max(cls, *args) -> FunctionExpression:
347
+ """
348
+ Returns the maximum argument value.
349
+
350
+ Same as JavaScript's `Math.max`.
351
+ """
352
+ return FunctionExpression("max", args)
353
+
354
+ @classmethod
355
+ def min(cls, *args) -> FunctionExpression:
356
+ """
357
+ Returns the minimum argument value.
358
+
359
+ Same as JavaScript's `Math.min`.
360
+ """
361
+ return FunctionExpression("min", args)
362
+
363
+ @classmethod
364
+ def pow(cls, *args) -> FunctionExpression:
365
+ """
366
+ Returns *value* raised to the given *exponent*.
367
+
368
+ Same as JavaScript's `Math.pow`.
369
+ """
370
+ return FunctionExpression("pow", args)
371
+
372
+ @classmethod
373
+ def random(cls, *args) -> FunctionExpression:
374
+ """
375
+ Returns a pseudo-random number in the range `[0, 1]`.
376
+
377
+ Same as JavaScript's `Math.random`.
378
+ """
379
+ return FunctionExpression("random", args)
380
+
381
+ @classmethod
382
+ def round(cls, *args) -> FunctionExpression:
383
+ """
384
+ Rounds *value* to the nearest integer.
385
+
386
+ Same as JavaScript's `Math.round`.
387
+ """
388
+ return FunctionExpression("round", args)
389
+
390
+ @classmethod
391
+ def sin(cls, *args) -> FunctionExpression:
392
+ """
393
+ Trigonometric sine.
394
+
395
+ Same as JavaScript's `Math.sin`.
396
+ """
397
+ return FunctionExpression("sin", args)
398
+
399
+ @classmethod
400
+ def sqrt(cls, *args) -> FunctionExpression:
401
+ """
402
+ Square root function.
403
+
404
+ Same as JavaScript's `Math.sqrt`.
405
+ """
406
+ return FunctionExpression("sqrt", args)
407
+
408
+ @classmethod
409
+ def tan(cls, *args) -> FunctionExpression:
410
+ """
411
+ Trigonometric tangent.
412
+
413
+ Same as JavaScript's `Math.tan`.
414
+ """
415
+ return FunctionExpression("tan", args)
416
+
417
+ @classmethod
418
+ def sampleNormal(cls, *args) -> FunctionExpression:
419
+ """
420
+ Returns a sample from a univariate `normal (Gaussian) probability distribution <https://en.wikipedia.org/wiki/Normal_distribution>`__ with specified *mean* and standard deviation *stdev*.
421
+
422
+ If unspecified, the mean defaults to `0` and the standard deviation defaults to `1`.
423
+ """
424
+ return FunctionExpression("sampleNormal", args)
425
+
426
+ @classmethod
427
+ def cumulativeNormal(cls, *args) -> FunctionExpression:
428
+ """
429
+ Returns the value of the `cumulative distribution function <https://en.wikipedia.org/wiki/Cumulative_distribution_function>`__ at the given input domain *value* for a normal distribution with specified *mean* and standard deviation *stdev*.
430
+
431
+ If unspecified, the mean defaults to `0` and the standard deviation defaults to `1`.
432
+ """
433
+ return FunctionExpression("cumulativeNormal", args)
434
+
435
+ @classmethod
436
+ def densityNormal(cls, *args) -> FunctionExpression:
437
+ """
438
+ Returns the value of the `probability density function <https://en.wikipedia.org/wiki/Probability_density_function>`__ at the given input domain *value*, for a normal distribution with specified *mean* and standard deviation *stdev*.
439
+
440
+ If unspecified, the mean defaults to `0` and the standard deviation defaults to `1`.
441
+ """
442
+ return FunctionExpression("densityNormal", args)
443
+
444
+ @classmethod
445
+ def quantileNormal(cls, *args) -> FunctionExpression:
446
+ """
447
+ Returns the quantile value (the inverse of the `cumulative distribution function <https://en.wikipedia.org/wiki/Cumulative_distribution_function)>`__ for the given input *probability*, for a normal distribution with specified *mean* and standard deviation *stdev*.
448
+
449
+ If unspecified, the mean defaults to `0` and the standard deviation defaults to `1`.
450
+ """
451
+ return FunctionExpression("quantileNormal", args)
452
+
453
+ @classmethod
454
+ def sampleLogNormal(cls, *args) -> FunctionExpression:
455
+ """
456
+ Returns a sample from a univariate `log-normal probability distribution <https://en.wikipedia.org/wiki/Log-normal_distribution>`__ with specified log *mean* and log standard deviation *stdev*.
457
+
458
+ If unspecified, the log mean defaults to `0` and the log standard deviation defaults to `1`.
459
+ """
460
+ return FunctionExpression("sampleLogNormal", args)
461
+
462
+ @classmethod
463
+ def cumulativeLogNormal(cls, *args) -> FunctionExpression:
464
+ """
465
+ Returns the value of the `cumulative distribution function <https://en.wikipedia.org/wiki/Cumulative_distribution_function>`__ at the given input domain *value* for a log-normal distribution with specified log *mean* and log standard deviation *stdev*.
466
+
467
+ If unspecified, the log mean defaults to `0` and the log standard deviation defaults to `1`.
468
+ """
469
+ return FunctionExpression("cumulativeLogNormal", args)
470
+
471
+ @classmethod
472
+ def densityLogNormal(cls, *args) -> FunctionExpression:
473
+ """
474
+ Returns the value of the `probability density function <https://en.wikipedia.org/wiki/Probability_density_function>`__ at the given input domain *value*, for a log-normal distribution with specified log *mean* and log standard deviation *stdev*.
475
+
476
+ If unspecified, the log mean defaults to `0` and the log standard deviation defaults to `1`.
477
+ """
478
+ return FunctionExpression("densityLogNormal", args)
479
+
480
+ @classmethod
481
+ def quantileLogNormal(cls, *args) -> FunctionExpression:
482
+ """
483
+ Returns the quantile value (the inverse of the `cumulative distribution function <https://en.wikipedia.org/wiki/Cumulative_distribution_function)>`__ for the given input *probability*, for a log-normal distribution with specified log *mean* and log standard deviation *stdev*.
484
+
485
+ If unspecified, the log mean defaults to `0` and the log standard deviation defaults to `1`.
486
+ """
487
+ return FunctionExpression("quantileLogNormal", args)
488
+
489
+ @classmethod
490
+ def sampleUniform(cls, *args) -> FunctionExpression:
491
+ """
492
+ Returns a sample from a univariate `continuous uniform probability distribution <https://en.wikipedia.org/wiki/Uniform_distribution_(continuous)>`__ over the interval `[min, max]`.
493
+
494
+ If unspecified, *min* defaults to `0` and *max* defaults to `1`.
495
+ If only one argument is provided, it is interpreted as the *max* value.
496
+ """
497
+ return FunctionExpression("sampleUniform", args)
498
+
499
+ @classmethod
500
+ def cumulativeUniform(cls, *args) -> FunctionExpression:
501
+ """
502
+ Returns the value of the `cumulative distribution function <https://en.wikipedia.org/wiki/Cumulative_distribution_function>`__ at the given input domain *value* for a uniform distribution over the interval `[min, max]`.
503
+
504
+ If unspecified, *min* defaults to `0` and *max* defaults to `1`.
505
+ If only one argument is provided, it is interpreted as the *max* value.
506
+ """
507
+ return FunctionExpression("cumulativeUniform", args)
508
+
509
+ @classmethod
510
+ def densityUniform(cls, *args) -> FunctionExpression:
511
+ """
512
+ Returns the value of the `probability density function <https://en.wikipedia.org/wiki/Probability_density_function>`__ at the given input domain *value*, for a uniform distribution over the interval `[min, max]`.
513
+
514
+ If unspecified, *min* defaults to `0` and *max* defaults to `1`.
515
+ If only one argument is provided, it is interpreted as the *max* value.
516
+ """
517
+ return FunctionExpression("densityUniform", args)
518
+
519
+ @classmethod
520
+ def quantileUniform(cls, *args) -> FunctionExpression:
521
+ """
522
+ Returns the quantile value (the inverse of the `cumulative distribution function <https://en.wikipedia.org/wiki/Cumulative_distribution_function)>`__ for the given input *probability*, for a uniform distribution over the interval `[min, max]`.
523
+
524
+ If unspecified, *min* defaults to `0` and *max* defaults to `1`.
525
+ If only one argument is provided, it is interpreted as the *max* value.
526
+ """
527
+ return FunctionExpression("quantileUniform", args)
528
+
529
+ @classmethod
530
+ def now(cls, *args) -> FunctionExpression:
531
+ """Returns the timestamp for the current time."""
532
+ return FunctionExpression("now", args)
533
+
534
+ @classmethod
535
+ def datetime(cls, *args) -> FunctionExpression:
536
+ """
537
+ Returns a new `Date` instance.
538
+
539
+ The *month* is 0-based, such that `1` represents February.
540
+ """
541
+ return FunctionExpression("datetime", args)
542
+
543
+ @classmethod
544
+ def date(cls, *args) -> FunctionExpression:
545
+ """Returns the day of the month for the given *datetime* value, in local time."""
546
+ return FunctionExpression("date", args)
547
+
548
+ @classmethod
549
+ def day(cls, *args) -> FunctionExpression:
550
+ """Returns the day of the week for the given *datetime* value, in local time."""
551
+ return FunctionExpression("day", args)
552
+
553
+ @classmethod
554
+ def dayofyear(cls, *args) -> FunctionExpression:
555
+ """Returns the one-based day of the year for the given *datetime* value, in local time."""
556
+ return FunctionExpression("dayofyear", args)
557
+
558
+ @classmethod
559
+ def year(cls, *args) -> FunctionExpression:
560
+ """Returns the year for the given *datetime* value, in local time."""
561
+ return FunctionExpression("year", args)
562
+
563
+ @classmethod
564
+ def quarter(cls, *args) -> FunctionExpression:
565
+ """Returns the quarter of the year (0-3) for the given *datetime* value, in local time."""
566
+ return FunctionExpression("quarter", args)
567
+
568
+ @classmethod
569
+ def month(cls, *args) -> FunctionExpression:
570
+ """Returns the (zero-based) month for the given *datetime* value, in local time."""
571
+ return FunctionExpression("month", args)
572
+
573
+ @classmethod
574
+ def week(cls, *args) -> FunctionExpression:
575
+ """
576
+ Returns the week number of the year for the given *datetime*, in local time.
577
+
578
+ This function assumes Sunday-based weeks.
579
+ Days before the first Sunday of the year are considered to be in week 0,
580
+ the first Sunday of the year is the start of week 1,
581
+ the second Sunday week 2, etc.
582
+ """
583
+ return FunctionExpression("week", args)
584
+
585
+ @classmethod
586
+ def hours(cls, *args) -> FunctionExpression:
587
+ """Returns the hours component for the given *datetime* value, in local time."""
588
+ return FunctionExpression("hours", args)
589
+
590
+ @classmethod
591
+ def minutes(cls, *args) -> FunctionExpression:
592
+ """Returns the minutes component for the given *datetime* value, in local time."""
593
+ return FunctionExpression("minutes", args)
594
+
595
+ @classmethod
596
+ def seconds(cls, *args) -> FunctionExpression:
597
+ """Returns the seconds component for the given *datetime* value, in local time."""
598
+ return FunctionExpression("seconds", args)
599
+
600
+ @classmethod
601
+ def milliseconds(cls, *args) -> FunctionExpression:
602
+ """Returns the milliseconds component for the given *datetime* value, in local time."""
603
+ return FunctionExpression("milliseconds", args)
604
+
605
+ @classmethod
606
+ def time(cls, *args) -> FunctionExpression:
607
+ """Returns the epoch-based timestamp for the given *datetime* value."""
608
+ return FunctionExpression("time", args)
609
+
610
+ @classmethod
611
+ def timezoneoffset(cls, *args) -> FunctionExpression:
612
+ """Returns the timezone offset from the local timezone to UTC for the given *datetime* value."""
613
+ return FunctionExpression("timezoneoffset", args)
614
+
615
+ @classmethod
616
+ def timeOffset(cls, *args) -> FunctionExpression:
617
+ """
618
+ Returns a new `Date` instance that offsets the given *date* by the specified time `unit <https://vega.github.io/vega/docs/api/time/#time-units>`__ in the local timezone.
619
+
620
+ The optional *step* argument indicates the number of time unit steps to offset by (default 1).
621
+ """
622
+ return FunctionExpression("timeOffset", args)
623
+
624
+ @classmethod
625
+ def timeSequence(cls, *args) -> FunctionExpression:
626
+ """
627
+ Returns an array of `Date` instances from *start* (inclusive) to *stop* (exclusive), with each entry separated by the given time `unit <https://vega.github.io/vega/docs/api/time/#time-units>`__ in the local timezone.
628
+
629
+ The optional *step* argument indicates the number of time unit steps to take between each sequence entry (default 1).
630
+ """
631
+ return FunctionExpression("timeSequence", args)
632
+
633
+ @classmethod
634
+ def utc(cls, *args) -> FunctionExpression:
635
+ """Returns a timestamp for the given UTC date. The *month* is 0-based, such that `1` represents February."""
636
+ return FunctionExpression("utc", args)
637
+
638
+ @classmethod
639
+ def utcdate(cls, *args) -> FunctionExpression:
640
+ """Returns the day of the month for the given *datetime* value, in UTC time."""
641
+ return FunctionExpression("utcdate", args)
642
+
643
+ @classmethod
644
+ def utcday(cls, *args) -> FunctionExpression:
645
+ """Returns the day of the week for the given *datetime* value, in UTC time."""
646
+ return FunctionExpression("utcday", args)
647
+
648
+ @classmethod
649
+ def utcdayofyear(cls, *args) -> FunctionExpression:
650
+ """Returns the one-based day of the year for the given *datetime* value, in UTC time."""
651
+ return FunctionExpression("utcdayofyear", args)
652
+
653
+ @classmethod
654
+ def utcyear(cls, *args) -> FunctionExpression:
655
+ """Returns the year for the given *datetime* value, in UTC time."""
656
+ return FunctionExpression("utcyear", args)
657
+
658
+ @classmethod
659
+ def utcquarter(cls, *args) -> FunctionExpression:
660
+ """Returns the quarter of the year (0-3) for the given *datetime* value, in UTC time."""
661
+ return FunctionExpression("utcquarter", args)
662
+
663
+ @classmethod
664
+ def utcmonth(cls, *args) -> FunctionExpression:
665
+ """Returns the (zero-based) month for the given *datetime* value, in UTC time."""
666
+ return FunctionExpression("utcmonth", args)
667
+
668
+ @classmethod
669
+ def utcweek(cls, *args) -> FunctionExpression:
670
+ """
671
+ Returns the week number of the year for the given *datetime*, in UTC time.
672
+
673
+ This function assumes Sunday-based weeks.
674
+ Days before the first Sunday of the year are considered to be in week 0,
675
+ the first Sunday of the year is the start of week 1,
676
+ the second Sunday week 2, etc.
677
+ """
678
+ return FunctionExpression("utcweek", args)
679
+
680
+ @classmethod
681
+ def utchours(cls, *args) -> FunctionExpression:
682
+ """Returns the hours component for the given *datetime* value, in UTC time."""
683
+ return FunctionExpression("utchours", args)
684
+
685
+ @classmethod
686
+ def utcminutes(cls, *args) -> FunctionExpression:
687
+ """Returns the minutes component for the given *datetime* value, in UTC time."""
688
+ return FunctionExpression("utcminutes", args)
689
+
690
+ @classmethod
691
+ def utcseconds(cls, *args) -> FunctionExpression:
692
+ """Returns the seconds component for the given *datetime* value, in UTC time."""
693
+ return FunctionExpression("utcseconds", args)
694
+
695
+ @classmethod
696
+ def utcmilliseconds(cls, *args) -> FunctionExpression:
697
+ """Returns the milliseconds component for the given *datetime* value, in UTC time."""
698
+ return FunctionExpression("utcmilliseconds", args)
699
+
700
+ @classmethod
701
+ def utcOffset(cls, *args) -> FunctionExpression:
702
+ """
703
+ Returns a new `Date` instance that offsets the given *date* by the specified time `unit <https://vega.github.io/vega/docs/api/time/#time-units>`__ in UTC time.
704
+
705
+ The optional *step* argument indicates the number of time unit steps to offset by (default 1).
706
+ """
707
+ return FunctionExpression("utcOffset", args)
708
+
709
+ @classmethod
710
+ def utcSequence(cls, *args) -> FunctionExpression:
711
+ """
712
+ Returns an array of `Date` instances from *start* (inclusive) to *stop* (exclusive), with each entry separated by the given time `unit <https://vega.github.io/vega/docs/api/time/#time-units>`__ in UTC time.
713
+
714
+ The optional *step* argument indicates the number of time unit steps to take between each sequence entry (default 1).
715
+ """
716
+ return FunctionExpression("utcSequence", args)
717
+
718
+ @classmethod
719
+ def extent(cls, *args) -> FunctionExpression:
720
+ """Returns a new `[min, max]` array with the minimum and maximum values of the input array, ignoring `null`, `undefined`, and `NaN` values."""
721
+ return FunctionExpression("extent", args)
722
+
723
+ @classmethod
724
+ def clampRange(cls, *args) -> FunctionExpression:
725
+ """
726
+ Clamps a two-element *range* array in a span-preserving manner.
727
+
728
+ If the span of the input *range* is less than `(max - min)` and an endpoint exceeds either the *min* or *max* value,
729
+ the range is translated such that the span is preserved and one endpoint touches the boundary of the `[min, max]` range.
730
+ If the span exceeds `(max - min)`, the range `[min, max]` is returned.
731
+ """
732
+ return FunctionExpression("clampRange", args)
733
+
734
+ @classmethod
735
+ def indexof(cls, *args) -> FunctionExpression:
736
+ """Returns the first index of *value* in the input *array*, or the first index of *substring* in the input *string*."""
737
+ return FunctionExpression("indexof", args)
738
+
739
+ @classmethod
740
+ def inrange(cls, *args) -> FunctionExpression:
741
+ """Tests whether *value* lies within (or is equal to either) the first and last values of the *range* array."""
742
+ return FunctionExpression("inrange", args)
743
+
744
+ @classmethod
745
+ def join(cls, *args) -> FunctionExpression:
746
+ """Returns a new string by concatenating all of the elements of the input *array*, separated by commas or a specified *separator* string."""
747
+ return FunctionExpression("join", args)
748
+
749
+ @classmethod
750
+ def lastindexof(cls, *args) -> FunctionExpression:
751
+ """Returns the last index of *value* in the input *array*, or the last index of *substring* in the input *string*."""
752
+ return FunctionExpression("lastindexof", args)
753
+
754
+ @classmethod
755
+ def length(cls, *args) -> FunctionExpression:
756
+ """Returns the length of the input *array*, or the length of the input *string*."""
757
+ return FunctionExpression("length", args)
758
+
759
+ @classmethod
760
+ def lerp(cls, *args) -> FunctionExpression:
761
+ """
762
+ Returns the linearly interpolated value between the first and last entries in the *array* for the provided interpolation *fraction* (typically between 0 and 1).
763
+
764
+ For example, `lerp([0, 50], 0.5)` returns 25.
765
+ """
766
+ return FunctionExpression("lerp", args)
767
+
768
+ @classmethod
769
+ def peek(cls, *args) -> FunctionExpression:
770
+ """
771
+ Returns the last element in the input *array*.
772
+
773
+ Similar to the built-in `Array.pop` method, except that it does not remove the last element.
774
+ This method is a convenient shorthand for `array[array.length - 1]`.
775
+ """
776
+ return FunctionExpression("peek", args)
777
+
778
+ @classmethod
779
+ def pluck(cls, *args) -> FunctionExpression:
780
+ """
781
+ Retrieves the value for the specified *field* from a given *array* of objects.
782
+
783
+ The input *field* string may include nested properties (e.g., `foo.bar.bz`).
784
+ """
785
+ return FunctionExpression("pluck", args)
786
+
787
+ @classmethod
788
+ def reverse(cls, *args) -> FunctionExpression:
789
+ """
790
+ Returns a new array with elements in a reverse order of the input *array*.
791
+
792
+ The first array element becomes the last, and the last array element becomes the first.
793
+ """
794
+ return FunctionExpression("reverse", args)
795
+
796
+ @classmethod
797
+ def sequence(cls, *args) -> FunctionExpression:
798
+ r"""
799
+ Returns an array containing an arithmetic sequence of numbers.
800
+
801
+ If *step* is omitted, it defaults to 1.
802
+ If *start* is omitted, it defaults to 0.
803
+
804
+ The *stop* value is exclusive; it is not included in the result.
805
+ If *step* is positive, the last element is the largest `start + i * step` less than *stop*;
806
+ if *step* is negative, the last element is the smallest `start + i * step` greater than *stop*.
807
+
808
+ If the returned array would contain an infinite number of values, an empty range is returned.
809
+ The arguments are not required to be integers.
810
+ """
811
+ return FunctionExpression("sequence", args)
812
+
813
+ @classmethod
814
+ def slice(cls, *args) -> FunctionExpression:
815
+ """
816
+ Returns a section of *array* between the *start* and *end* indices.
817
+
818
+ If the *end* argument is negative, it is treated as an offset from the end of the array `length(array) + end`.
819
+ """
820
+ return FunctionExpression("slice", args)
821
+
822
+ @classmethod
823
+ def span(cls, *args) -> FunctionExpression:
824
+ """
825
+ Returns the span of *array*: the difference between the last and first elements, or `array[array.length-1] - array[0]`.
826
+
827
+ Or if input is a string: a section of *string* between the *start* and *end* indices.
828
+ If the *end* argument is negative, it is treated as an offset from the end of the string `length(string) + end`.
829
+ """
830
+ return FunctionExpression("span", args)
831
+
832
+ @classmethod
833
+ def lower(cls, *args) -> FunctionExpression:
834
+ """Transforms *string* to lower-case letters."""
835
+ return FunctionExpression("lower", args)
836
+
837
+ @classmethod
838
+ def pad(cls, *args) -> FunctionExpression:
839
+ """
840
+ Pads a *string* value with repeated instances of a *character* up to a specified *length*.
841
+
842
+ If *character* is not specified, a space (' ') is used.
843
+ By default, padding is added to the end of a string.
844
+ An optional *align* parameter specifies if padding should be added to the `'left'` (beginning), `'center'`, or `'right'` (end) of the input string.
845
+ """
846
+ return FunctionExpression("pad", args)
847
+
848
+ @classmethod
849
+ def parseFloat(cls, *args) -> FunctionExpression:
850
+ """
851
+ Parses the input *string* to a floating-point value.
852
+
853
+ Same as JavaScript's `parseFloat`.
854
+ """
855
+ return FunctionExpression("parseFloat", args)
856
+
857
+ @classmethod
858
+ def parseInt(cls, *args) -> FunctionExpression:
859
+ """
860
+ Parses the input *string* to an integer value.
861
+
862
+ Same as JavaScript's `parseInt`.
863
+ """
864
+ return FunctionExpression("parseInt", args)
865
+
866
+ @classmethod
867
+ def replace(cls, *args) -> FunctionExpression:
868
+ """
869
+ Returns a new string with some or all matches of *pattern* replaced by a *replacement* string.
870
+
871
+ The *pattern* can be a string or a regular expression.
872
+ If *pattern* is a string, only the first instance will be replaced.
873
+ Same as `JavaScript's String.replace <https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/replace>`__.
874
+ """
875
+ return FunctionExpression("replace", args)
876
+
877
+ @classmethod
878
+ def split(cls, *args) -> FunctionExpression:
879
+ """
880
+ Returns an array of tokens created by splitting the input *string* according to a provided *separator* pattern.
881
+
882
+ The result can optionally be constrained to return at most *limit* tokens.
883
+ """
884
+ return FunctionExpression("split", args)
885
+
886
+ @classmethod
887
+ def substring(cls, *args) -> FunctionExpression:
888
+ """Returns a section of *string* between the *start* and *end* indices."""
889
+ return FunctionExpression("substring", args)
890
+
891
+ @classmethod
892
+ def trim(cls, *args) -> FunctionExpression:
893
+ """Returns a trimmed string with preceding and trailing whitespace removed."""
894
+ return FunctionExpression("trim", args)
895
+
896
+ @classmethod
897
+ def truncate(cls, *args) -> FunctionExpression:
898
+ r"""
899
+ Truncates an input *string* to a target *length*.
900
+
901
+ The optional *align* argument indicates what part of the string should be truncated: `'left'` (the beginning), `'center'`, or `'right'` (the end).
902
+ By default, the `'right'` end of the string is truncated.
903
+ The optional *ellipsis* argument indicates the string to use to indicate truncated content;
904
+ by default the ellipsis character `...` (`\\u2026`) is used.
905
+ """
906
+ return FunctionExpression("truncate", args)
907
+
908
+ @classmethod
909
+ def upper(cls, *args) -> FunctionExpression:
910
+ """Transforms *string* to upper-case letters."""
911
+ return FunctionExpression("upper", args)
912
+
913
+ @classmethod
914
+ def merge(cls, *args) -> FunctionExpression:
915
+ """
916
+ Merges the input objects *object1*, *object2*, etc into a new output object.
917
+
918
+ Inputs are visited in sequential order, such that key values from later arguments can overwrite those from earlier arguments.
919
+
920
+ Example: `merge({a:1, b:2}, {a:3}) -> {a:3, b:2}`.
921
+ """
922
+ return FunctionExpression("merge", args)
923
+
924
+ @classmethod
925
+ def dayFormat(cls, *args) -> FunctionExpression:
926
+ """
927
+ Formats a (0-6) *weekday* number as a full week day name, according to the current locale.
928
+
929
+ For example: `dayFormat(0) -> "Sunday"`.
930
+ """
931
+ return FunctionExpression("dayFormat", args)
932
+
933
+ @classmethod
934
+ def dayAbbrevFormat(cls, *args) -> FunctionExpression:
935
+ """
936
+ Formats a (0-6) *weekday* number as an abbreviated week day name, according to the current locale.
937
+
938
+ For example: `dayAbbrevFormat(0) -> "Sun"`.
939
+ """
940
+ return FunctionExpression("dayAbbrevFormat", args)
941
+
942
+ @classmethod
943
+ def format(cls, *args) -> FunctionExpression:
944
+ """
945
+ Formats a numeric *value* as a string.
946
+
947
+ The *specifier* must be a valid `d3-format specifier <https://d3js.org/d3-format/>`__ (e.g., `format(value, ',.2f')`.
948
+ """
949
+ return FunctionExpression("format", args)
950
+
951
+ @classmethod
952
+ def monthFormat(cls, *args) -> FunctionExpression:
953
+ """
954
+ Formats a (zero-based) *month* number as a full month name, according to the current locale.
955
+
956
+ For example: `monthFormat(0) -> "January"`.
957
+ """
958
+ return FunctionExpression("monthFormat", args)
959
+
960
+ @classmethod
961
+ def monthAbbrevFormat(cls, *args) -> FunctionExpression:
962
+ """
963
+ Formats a (zero-based) *month* number as an abbreviated month name, according to the current locale.
964
+
965
+ For example: `monthAbbrevFormat(0) -> "Jan"`.
966
+ """
967
+ return FunctionExpression("monthAbbrevFormat", args)
968
+
969
+ @classmethod
970
+ def timeUnitSpecifier(cls, *args) -> FunctionExpression:
971
+ """
972
+ Returns a time format specifier string for the given time `unit <https://vega.github.io/vega/docs/api/time/#time-units>`__.
973
+
974
+ The optional *specifiers* object provides a set of specifier sub-strings for customizing the format;
975
+ for more, see the `timeUnitSpecifier API documentation <https://vega.github.io/vega/docs/api/time/#timeUnitSpecifier>`__.
976
+
977
+ The resulting specifier string can then be used as input to the `timeFormat <https://vega.github.io/vega/docs/expressions/#timeFormat>`__ or
978
+ `utcFormat <https://vega.github.io/vega/docs/expressions/#utcFormat>`__ functions, or as the *format* parameter of an axis or legend.
979
+
980
+ For example: `timeFormat(date, timeUnitSpecifier('year'))` or `timeFormat(date, timeUnitSpecifier(['hours', 'minutes']))`.
981
+ """
982
+ return FunctionExpression("timeUnitSpecifier", args)
983
+
984
+ @classmethod
985
+ def timeFormat(cls, *args) -> FunctionExpression:
986
+ """
987
+ Formats a datetime *value* (either a `Date` object or timestamp) as a string, according to the local time.
988
+
989
+ The *specifier* must be a valid `d3-time-format specifier <https://d3js.org/d3-time-format/>`__.
990
+ For example: `timeFormat(timestamp, '%A')`.
991
+ """
992
+ return FunctionExpression("timeFormat", args)
993
+
994
+ @classmethod
995
+ def timeParse(cls, *args) -> FunctionExpression:
996
+ """
997
+ Parses a *string* value to a Date object, according to the local time.
998
+
999
+ The *specifier* must be a valid `d3-time-format specifier <https://d3js.org/d3-time-format/>`__.
1000
+ For example: `timeParse('June 30, 2015', '%B %d, %Y')`.
1001
+ """
1002
+ return FunctionExpression("timeParse", args)
1003
+
1004
+ @classmethod
1005
+ def utcFormat(cls, *args) -> FunctionExpression:
1006
+ """
1007
+ Formats a datetime *value* (either a `Date` object or timestamp) as a string, according to `UTC <https://en.wikipedia.org/wiki/Coordinated_Universal_Time>`__ time.
1008
+
1009
+ The *specifier* must be a valid `d3-time-format specifier <https://d3js.org/d3-time-format/>`__.
1010
+ For example: `utcFormat(timestamp, '%A')`.
1011
+ """
1012
+ return FunctionExpression("utcFormat", args)
1013
+
1014
+ @classmethod
1015
+ def utcParse(cls, *args) -> FunctionExpression:
1016
+ """
1017
+ Parses a *string* value to a Date object, according to `UTC <https://en.wikipedia.org/wiki/Coordinated_Universal_Time>`__ time.
1018
+
1019
+ The *specifier* must be a valid `d3-time-format specifier <https://d3js.org/d3-time-format/>`__.
1020
+ For example: `utcParse('June 30, 2015', '%B %d, %Y')`.
1021
+ """
1022
+ return FunctionExpression("utcParse", args)
1023
+
1024
+ @classmethod
1025
+ def regexp(cls, *args) -> FunctionExpression:
1026
+ """
1027
+ Creates a regular expression instance from an input *pattern* string and optional *flags*.
1028
+
1029
+ Same as `JavaScript's `RegExp` <https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp>`__.
1030
+ """
1031
+ return FunctionExpression("regexp", args)
1032
+
1033
+ @classmethod
1034
+ def test(cls, *args) -> FunctionExpression:
1035
+ r"""
1036
+ Evaluates a regular expression *regexp* against the input *string*, returning `true` if the string matches the pattern, `false` otherwise.
1037
+
1038
+ For example: `test(\d{3}, "32-21-9483") -> true`.
1039
+ """
1040
+ return FunctionExpression("test", args)
1041
+
1042
+ @classmethod
1043
+ def rgb(cls, *args) -> FunctionExpression:
1044
+ """
1045
+ Constructs a new `RGB <https://en.wikipedia.org/wiki/RGB_color_model>`__ color.
1046
+
1047
+ If *r*, *g* and *b* are specified, these represent the channel values of the returned color; an *opacity* may also be specified.
1048
+ If a CSS Color Module Level 3 *specifier* string is specified, it is parsed and then converted to the RGB color space. Uses `d3-color's rgb function <https://d3js.org/d3-color#color_rgb>`__.
1049
+ """
1050
+ return FunctionExpression("rgb", args)
1051
+
1052
+ @classmethod
1053
+ def hsl(cls, *args) -> FunctionExpression:
1054
+ """
1055
+ Constructs a new `HSL <https://en.wikipedia.org/wiki/HSL_and_HSV>`__ color.
1056
+
1057
+ If *h*, *s* and *l* are specified, these represent the channel values of the returned color; an *opacity* may also be specified.
1058
+ If a CSS Color Module Level 3 *specifier* string is specified, it is parsed and then converted to the HSL color space.
1059
+ Uses `d3-color's hsl function <https://d3js.org/d3-color#hsl>`__.
1060
+ """
1061
+ return FunctionExpression("hsl", args)
1062
+
1063
+ @classmethod
1064
+ def lab(cls, *args) -> FunctionExpression:
1065
+ """
1066
+ Constructs a new `CIE LAB <https://en.wikipedia.org/wiki/Lab_color_space#CIELAB>`__ color.
1067
+
1068
+ If *l*, *a* and *b* are specified, these represent the channel values of the returned color; an *opacity* may also be specified.
1069
+ If a CSS Color Module Level 3 *specifier* string is specified, it is parsed and then converted to the LAB color space.
1070
+ Uses `d3-color's lab function <https://d3js.org/d3-color#lab>`__.
1071
+ """
1072
+ return FunctionExpression("lab", args)
1073
+
1074
+ @classmethod
1075
+ def hcl(cls, *args) -> FunctionExpression:
1076
+ """
1077
+ Constructs a new `HCL <https://en.wikipedia.org/wiki/Lab_color_space#CIELAB>`__ (hue, chroma, luminance) color.
1078
+
1079
+ If *h*, *c* and *l* are specified, these represent the channel values of the returned color; an *opacity* may also be specified.
1080
+ If a CSS Color Module Level 3 *specifier* string is specified, it is parsed and then converted to the HCL color space.
1081
+ Uses `d3-color's hcl function <https://d3js.org/d3-color#hcl>`__.
1082
+ """
1083
+ return FunctionExpression("hcl", args)
1084
+
1085
+ @classmethod
1086
+ def luminance(cls, *args) -> FunctionExpression:
1087
+ """
1088
+ Returns the luminance for the given color *specifier* (compatible with `d3-color's rgb function <https://d3js.org/d3-color#rgb)>`__.
1089
+
1090
+ The luminance is calculated according to the `W3C Web Content Accessibility Guidelines <https://www.w3.org/TR/2008/REC-WCAG20-20081211/#relativeluminancedef>`__.
1091
+ """
1092
+ return FunctionExpression("luminance", args)
1093
+
1094
+ @classmethod
1095
+ def contrast(cls, *args) -> FunctionExpression:
1096
+ """
1097
+ Returns the contrast ratio between the input color specifiers as a float between 1 and 21.
1098
+
1099
+ The contrast is calculated according to the `W3C Web Content Accessibility Guidelines <https://www.w3.org/TR/2008/REC-WCAG20-20081211/#contrast-ratiodef>`__.
1100
+ """
1101
+ return FunctionExpression("contrast", args)
1102
+
1103
+ @classmethod
1104
+ def item(cls, *args) -> FunctionExpression:
1105
+ """Returns the current scenegraph item that is the target of the event."""
1106
+ return FunctionExpression("item", args)
1107
+
1108
+ @classmethod
1109
+ def group(cls, *args) -> FunctionExpression:
1110
+ """
1111
+ Returns the scenegraph group mark item in which the current event has occurred.
1112
+
1113
+ If no arguments are provided, the immediate parent group is returned.
1114
+ If a group name is provided, the matching ancestor group item is returned.
1115
+ """
1116
+ return FunctionExpression("group", args)
1117
+
1118
+ @classmethod
1119
+ def xy(cls, *args) -> FunctionExpression:
1120
+ """
1121
+ Returns the x- and y-coordinates for the current event as a two-element array.
1122
+
1123
+ If no arguments are provided, the top-level coordinate space of the view is used.
1124
+ If a scenegraph *item* (or string group name) is provided, the coordinate space of the group item is used.
1125
+ """
1126
+ return FunctionExpression("xy", args)
1127
+
1128
+ @classmethod
1129
+ def x(cls, *args) -> FunctionExpression:
1130
+ """
1131
+ Returns the x coordinate for the current event.
1132
+
1133
+ If no arguments are provided, the top-level coordinate space of the view is used.
1134
+ If a scenegraph *item* (or string group name) is provided, the coordinate space of the group item is used.
1135
+ """
1136
+ return FunctionExpression("x", args)
1137
+
1138
+ @classmethod
1139
+ def y(cls, *args) -> FunctionExpression:
1140
+ """
1141
+ Returns the y coordinate for the current event.
1142
+
1143
+ If no arguments are provided, the top-level coordinate space of the view is used.
1144
+ If a scenegraph *item* (or string group name) is provided, the coordinate space of the group item is used.
1145
+ """
1146
+ return FunctionExpression("y", args)
1147
+
1148
+ @classmethod
1149
+ def pinchDistance(cls, *args) -> FunctionExpression:
1150
+ """Returns the pixel distance between the first two touch points of a multi-touch event."""
1151
+ return FunctionExpression("pinchDistance", args)
1152
+
1153
+ @classmethod
1154
+ def pinchAngle(cls, *args) -> FunctionExpression:
1155
+ """Returns the angle of the line connecting the first two touch points of a multi-touch event."""
1156
+ return FunctionExpression("pinchAngle", args)
1157
+
1158
+ @classmethod
1159
+ def inScope(cls, *args) -> FunctionExpression:
1160
+ """Returns true if the given scenegraph *item* is a descendant of the group mark in which the event handler was defined, false otherwise."""
1161
+ return FunctionExpression("inScope", args)
1162
+
1163
+ @classmethod
1164
+ def data(cls, *args) -> FunctionExpression:
1165
+ """
1166
+ Returns the array of data objects for the Vega data set with the given *name*.
1167
+
1168
+ If the data set is not found, returns an empty array.
1169
+ """
1170
+ return FunctionExpression("data", args)
1171
+
1172
+ @classmethod
1173
+ def indata(cls, *args) -> FunctionExpression:
1174
+ """
1175
+ Tests if the data set with a given *name* contains a datum with a *field* value that matches the input *value*.
1176
+
1177
+ For example: `indata('table', 'category', value)`.
1178
+ """
1179
+ return FunctionExpression("indata", args)
1180
+
1181
+ @classmethod
1182
+ def scale(cls, *args) -> FunctionExpression:
1183
+ """
1184
+ Applies the named scale transform (or projection) to the specified *value*.
1185
+
1186
+ The optional *group* argument takes a scenegraph group mark item to indicate the specific scope in which to look up the scale or projection.
1187
+ """
1188
+ return FunctionExpression("scale", args)
1189
+
1190
+ @classmethod
1191
+ def invert(cls, *args) -> FunctionExpression:
1192
+ """
1193
+ Inverts the named scale transform (or projection) for the specified *value*.
1194
+
1195
+ The optional *group* argument takes a scenegraph group mark item to indicate the specific scope in which to look up the scale or projection.
1196
+ """
1197
+ return FunctionExpression("invert", args)
1198
+
1199
+ @classmethod
1200
+ def copy(cls, *args) -> FunctionExpression: # type: ignore[override]
1201
+ """
1202
+ Returns a copy (a new cloned instance) of the named scale transform of projection, or `undefined` if no scale or projection is found.
1203
+
1204
+ The optional *group* argument takes a scenegraph group mark item to indicate the specific scope in which to look up the scale or projection.
1205
+ """
1206
+ # error: Signature of "copy" incompatible with supertype "SchemaBase" [override]
1207
+ # note: def copy(self, deep: bool | Iterable[Any] = ..., ignore: list[str] | None = ...) -> expr
1208
+ # NOTE: Not relevant as `expr() -> ExprRef`
1209
+ # this method is only accesible via `expr.copy()`
1210
+ return FunctionExpression("copy", args)
1211
+
1212
+ @classmethod
1213
+ def domain(cls, *args) -> FunctionExpression:
1214
+ """
1215
+ Returns the scale domain array for the named scale transform, or an empty array if the scale is not found.
1216
+
1217
+ The optional *group* argument takes a scenegraph group mark item to indicate the specific scope in which to look up the scale.
1218
+ """
1219
+ return FunctionExpression("domain", args)
1220
+
1221
+ @classmethod
1222
+ def range(cls, *args) -> FunctionExpression:
1223
+ """
1224
+ Returns the scale range array for the named scale transform, or an empty array if the scale is not found.
1225
+
1226
+ The optional *group* argument takes a scenegraph group mark item to indicate the specific scope in which to look up the scale.
1227
+ """
1228
+ return FunctionExpression("range", args)
1229
+
1230
+ @classmethod
1231
+ def bandwidth(cls, *args) -> FunctionExpression:
1232
+ """
1233
+ Returns the current band width for the named band scale transform, or zero if the scale is not found or is not a band scale.
1234
+
1235
+ The optional *group* argument takes a scenegraph group mark item to indicate the specific scope in which to look up the scale.
1236
+ """
1237
+ return FunctionExpression("bandwidth", args)
1238
+
1239
+ @classmethod
1240
+ def bandspace(cls, *args) -> FunctionExpression:
1241
+ """
1242
+ Returns the number of steps needed within a band scale, based on the *count* of domain elements and the inner and outer padding values.
1243
+
1244
+ While normally calculated within the scale itself, this function can be helpful for determining the size of a chart's layout.
1245
+ """
1246
+ return FunctionExpression("bandspace", args)
1247
+
1248
+ @classmethod
1249
+ def gradient(cls, *args) -> FunctionExpression:
1250
+ """
1251
+ Returns a linear color gradient for the *scale* (whose range must be a `continuous color scheme <https://vega.github.io/vega/docs/schemes>`__ and starting and ending points *p0* and *p1*, each an `[x, y]` array.
1252
+
1253
+ The points *p0* and *p1* should be expressed in normalized coordinates in the domain `[0, 1]`, relative to the bounds of the item being colored.
1254
+
1255
+ If unspecified, *p0* defaults to `[0, 0]` and *p1* defaults to `[1, 0]`, for a horizontal gradient that spans the full bounds of an item.
1256
+ The optional *count* argument indicates a desired target number of sample points to take from the color scale.
1257
+ """
1258
+ return FunctionExpression("gradient", args)
1259
+
1260
+ @classmethod
1261
+ def panLinear(cls, *args) -> FunctionExpression:
1262
+ """
1263
+ Given a linear scale *domain* array with numeric or datetime values, returns a new two-element domain array that is the result of panning the domain by a fractional *delta*.
1264
+
1265
+ The *delta* value represents fractional units of the scale range; for example, `0.5` indicates panning the scale domain to the right by half the scale range.
1266
+ """
1267
+ return FunctionExpression("panLinear", args)
1268
+
1269
+ @classmethod
1270
+ def panLog(cls, *args) -> FunctionExpression:
1271
+ """
1272
+ Given a log scale *domain* array with numeric or datetime values, returns a new two-element domain array that is the result of panning the domain by a fractional *delta*.
1273
+
1274
+ The *delta* value represents fractional units of the scale range; for example, `0.5` indicates panning the scale domain to the right by half the scale range.
1275
+ """
1276
+ return FunctionExpression("panLog", args)
1277
+
1278
+ @classmethod
1279
+ def panPow(cls, *args) -> FunctionExpression:
1280
+ """
1281
+ Given a power scale *domain* array with numeric or datetime values and the given *exponent*, returns a new two-element domain array that is the result of panning the domain by a fractional *delta*.
1282
+
1283
+ The *delta* value represents fractional units of the scale range; for example, `0.5` indicates panning the scale domain to the right by half the scale range.
1284
+ """
1285
+ return FunctionExpression("panPow", args)
1286
+
1287
+ @classmethod
1288
+ def panSymlog(cls, *args) -> FunctionExpression:
1289
+ """
1290
+ Given a symmetric log scale *domain* array with numeric or datetime values parameterized by the given *constant*, returns a new two-element domain array that is the result of panning the domain by a fractional *delta*.
1291
+
1292
+ The *delta* value represents fractional units of the scale range; for example, `0.5` indicates panning the scale domain to the right by half the scale range.
1293
+ """
1294
+ return FunctionExpression("panSymlog", args)
1295
+
1296
+ @classmethod
1297
+ def zoomLinear(cls, *args) -> FunctionExpression:
1298
+ """
1299
+ Given a linear scale *domain* array with numeric or datetime values, returns a new two-element domain array that is the result of zooming the domain by a *scaleFactor*, centered at the provided fractional *anchor*.
1300
+
1301
+ The *anchor* value represents the zoom position in terms of fractional units of the scale range; for example, `0.5` indicates a zoom centered on the mid-point of the scale range.
1302
+ """
1303
+ return FunctionExpression("zoomLinear", args)
1304
+
1305
+ @classmethod
1306
+ def zoomLog(cls, *args) -> FunctionExpression:
1307
+ """
1308
+ Given a log scale *domain* array with numeric or datetime values, returns a new two-element domain array that is the result of zooming the domain by a *scaleFactor*, centered at the provided fractional *anchor*.
1309
+
1310
+ The *anchor* value represents the zoom position in terms of fractional units of the scale range; for example, `0.5` indicates a zoom centered on the mid-point of the scale range.
1311
+ """
1312
+ return FunctionExpression("zoomLog", args)
1313
+
1314
+ @classmethod
1315
+ def zoomPow(cls, *args) -> FunctionExpression:
1316
+ """
1317
+ Given a power scale *domain* array with numeric or datetime values and the given *exponent*, returns a new two-element domain array that is the result of zooming the domain by a *scaleFactor*, centered at the provided fractional *anchor*.
1318
+
1319
+ The *anchor* value represents the zoom position in terms of fractional units of the scale range; for example, `0.5` indicates a zoom centered on the mid-point of the scale range.
1320
+ """
1321
+ return FunctionExpression("zoomPow", args)
1322
+
1323
+ @classmethod
1324
+ def zoomSymlog(cls, *args) -> FunctionExpression:
1325
+ """
1326
+ Given a symmetric log scale *domain* array with numeric or datetime values parameterized by the given *constant*, returns a new two-element domain array that is the result of zooming the domain by a *scaleFactor*, centered at the provided fractional *anchor*.
1327
+
1328
+ The *anchor* value represents the zoom position in terms of fractional units of the scale range; for example, `0.5` indicates a zoom centered on the mid-point of the scale range.
1329
+ """
1330
+ return FunctionExpression("zoomSymlog", args)
1331
+
1332
+ @classmethod
1333
+ def geoArea(cls, *args) -> FunctionExpression:
1334
+ """
1335
+ Returns the projected planar area (typically in square pixels) of a GeoJSON *feature* according to the named *projection*.
1336
+
1337
+ If the *projection* argument is `null`, computes the spherical area in steradians using unprojected longitude, latitude coordinates.
1338
+ The optional *group* argument takes a scenegraph group mark item to indicate the specific scope in which to look up the projection.
1339
+ Uses d3-geo's `geoArea <https://d3js.org/d3-geo#geoArea>`__ and `path.area <https://d3js.org/d3-geo#path_area>`__ methods.
1340
+ """
1341
+ return FunctionExpression("geoArea", args)
1342
+
1343
+ @classmethod
1344
+ def geoBounds(cls, *args) -> FunctionExpression:
1345
+ """
1346
+ Returns the projected planar bounding box (typically in pixels) for the specified GeoJSON *feature*, according to the named *projection*.
1347
+
1348
+ The bounding box is represented by a two-dimensional array: `[[x0, y0], [x1, y1]]`,
1349
+ where *x0* is the minimum x-coordinate, *y0* is the minimum y-coordinate,
1350
+ *x1* is the maximum x-coordinate, and *y1* is the maximum y-coordinate.
1351
+
1352
+ If the *projection* argument is `null`, computes the spherical bounding box using unprojected longitude, latitude coordinates.
1353
+ The optional *group* argument takes a scenegraph group mark item to indicate the specific scope in which to look up the projection.
1354
+ Uses d3-geo's `geoBounds <https://d3js.org/d3-geo#geoBounds>`__ and `path.bounds <https://d3js.org/d3-geo#path_bounds>`__ methods.
1355
+ """
1356
+ return FunctionExpression("geoBounds", args)
1357
+
1358
+ @classmethod
1359
+ def geoCentroid(cls, *args) -> FunctionExpression:
1360
+ """
1361
+ Returns the projected planar centroid (typically in pixels) for the specified GeoJSON *feature*, according to the named *projection*.
1362
+
1363
+ If the *projection* argument is `null`, computes the spherical centroid using unprojected longitude, latitude coordinates.
1364
+ The optional *group* argument takes a scenegraph group mark item to indicate the specific scope in which to look up the projection.
1365
+ Uses d3-geo's `geoCentroid <https://d3js.org/d3-geo#geoCentroid>`__ and `path.centroid <https://d3js.org/d3-geo#path_centroid>`__ methods.
1366
+ """
1367
+ return FunctionExpression("geoCentroid", args)
1368
+
1369
+ @classmethod
1370
+ def treePath(cls, *args) -> FunctionExpression:
1371
+ """
1372
+ For the hierarchy data set with the given *name*, returns the shortest path through from the *source* node id to the *target* node id.
1373
+
1374
+ The path starts at the *source* node, ascends to the least common ancestor of the *source* node and the *target* node, and then descends to the *target* node.
1375
+ """
1376
+ return FunctionExpression("treePath", args)
1377
+
1378
+ @classmethod
1379
+ def treeAncestors(cls, *args) -> FunctionExpression:
1380
+ """For the hierarchy data set with the given *name*, returns the array of ancestors nodes, starting with the input *node*, then followed by each parent up to the root."""
1381
+ return FunctionExpression("treeAncestors", args)
1382
+
1383
+ @classmethod
1384
+ def containerSize(cls, *args) -> FunctionExpression:
1385
+ """
1386
+ Returns the current CSS box size (`[el.clientWidth, el.clientHeight]`) of the parent DOM element that contains the Vega view.
1387
+
1388
+ If there is no container element, returns `[undefined, undefined]`.
1389
+ """
1390
+ return FunctionExpression("containerSize", args)
1391
+
1392
+ @classmethod
1393
+ def screen(cls, *args) -> FunctionExpression:
1394
+ """Returns the `window.screen <https://developer.mozilla.org/en-US/docs/Web/API/Window/screen>`__ object, or `{}` if Vega is not running in a browser environment."""
1395
+ return FunctionExpression("screen", args)
1396
+
1397
+ @classmethod
1398
+ def windowSize(cls, *args) -> FunctionExpression:
1399
+ """Returns the current window size (`[window.innerWidth, window.innerHeight]`) or `[undefined, undefined]` if Vega is not running in a browser environment."""
1400
+ return FunctionExpression("windowSize", args)
1401
+
1402
+ @classmethod
1403
+ def warn(cls, *args) -> FunctionExpression:
1404
+ """
1405
+ Logs a warning message and returns the last argument.
1406
+
1407
+ For the message to appear in the console, the visualization view must have the appropriate logging level set.
1408
+ """
1409
+ return FunctionExpression("warn", args)
1410
+
1411
+ @classmethod
1412
+ def info(cls, *args) -> FunctionExpression:
1413
+ """
1414
+ Logs an informative message and returns the last argument.
1415
+
1416
+ For the message to appear in the console, the visualization view must have the appropriate logging level set.
1417
+ """
1418
+ return FunctionExpression("info", args)
1419
+
1420
+ @classmethod
1421
+ def debug(cls, *args) -> FunctionExpression:
1422
+ """
1423
+ Logs a debugging message and returns the last argument.
1424
+
1425
+ For the message to appear in the console, the visualization view must have the appropriate logging level set.
1426
+ """
1427
+ return FunctionExpression("debug", args)
1428
+
1429
+
1430
+ _ExprType = expr
1431
+ # NOTE: Compatibility alias for previous type of `alt.expr`.
1432
+ # `_ExprType` was not referenced in any internal imports/tests.
videollama2/lib/python3.10/site-packages/altair/expr/consts.py ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from __future__ import annotations
2
+
3
+ CONST_LISTING = {
4
+ "NaN": "not a number (same as JavaScript literal NaN)",
5
+ "LN10": "the natural log of 10 (alias to Math.LN10)",
6
+ "E": "the transcendental number e (alias to Math.E)",
7
+ "LOG10E": "the base 10 logarithm e (alias to Math.LOG10E)",
8
+ "LOG2E": "the base 2 logarithm of e (alias to Math.LOG2E)",
9
+ "SQRT1_2": "the square root of 0.5 (alias to Math.SQRT1_2)",
10
+ "LN2": "the natural log of 2 (alias to Math.LN2)",
11
+ "SQRT2": "the square root of 2 (alias to Math.SQRT1_2)",
12
+ "PI": "the transcendental number pi (alias to Math.PI)",
13
+ }
videollama2/lib/python3.10/site-packages/altair/vegalite/__pycache__/__init__.cpython-310.pyc ADDED
Binary file (191 Bytes). View file
 
videollama2/lib/python3.10/site-packages/altair/vegalite/__pycache__/api.cpython-310.pyc ADDED
Binary file (190 Bytes). View file
 
videollama2/lib/python3.10/site-packages/altair/vegalite/__pycache__/data.cpython-310.pyc ADDED
Binary file (2.16 kB). View file
 
videollama2/lib/python3.10/site-packages/altair/vegalite/__pycache__/display.cpython-310.pyc ADDED
Binary file (389 Bytes). View file
 
videollama2/lib/python3.10/site-packages/altair/vegalite/__pycache__/schema.cpython-310.pyc ADDED
Binary file (236 Bytes). View file
 
videollama2/lib/python3.10/site-packages/altair/vegalite/v5/schema/__pycache__/__init__.cpython-310.pyc ADDED
Binary file (326 Bytes). View file
 
videollama2/lib/python3.10/site-packages/altair/vegalite/v5/schema/__pycache__/mixins.cpython-310.pyc ADDED
Binary file (36 kB). View file
 
videollama2/lib/python3.10/site-packages/pydantic_core/_pydantic_core.cpython-310-x86_64-linux-gnu.so ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8170018013b7b1271d2d1007d585c7faaabc8c7e4e3ae3c42a8e4032f1cd5d94
3
+ size 5026648
vllm/lib/python3.10/site-packages/OpenGL/EGL/KHR/__init__.py ADDED
@@ -0,0 +1 @@
 
 
1
+ """OpenGL Extensions"""
vllm/lib/python3.10/site-packages/OpenGL/EGL/KHR/__pycache__/__init__.cpython-310.pyc ADDED
Binary file (193 Bytes). View file
 
vllm/lib/python3.10/site-packages/OpenGL/EGL/KHR/__pycache__/cl_event.cpython-310.pyc ADDED
Binary file (965 Bytes). View file
 
vllm/lib/python3.10/site-packages/OpenGL/EGL/KHR/__pycache__/cl_event2.cpython-310.pyc ADDED
Binary file (971 Bytes). View file
 
vllm/lib/python3.10/site-packages/OpenGL/EGL/KHR/__pycache__/client_get_all_proc_addresses.cpython-310.pyc ADDED
Binary file (1.09 kB). View file
 
vllm/lib/python3.10/site-packages/OpenGL/EGL/KHR/__pycache__/config_attribs.cpython-310.pyc ADDED
Binary file (1 kB). View file
 
vllm/lib/python3.10/site-packages/OpenGL/EGL/KHR/__pycache__/create_context.cpython-310.pyc ADDED
Binary file (1 kB). View file
 
vllm/lib/python3.10/site-packages/OpenGL/EGL/KHR/__pycache__/fence_sync.cpython-310.pyc ADDED
Binary file (977 Bytes). View file
 
vllm/lib/python3.10/site-packages/OpenGL/EGL/KHR/__pycache__/get_all_proc_addresses.cpython-310.pyc ADDED
Binary file (1.05 kB). View file
 
vllm/lib/python3.10/site-packages/OpenGL/EGL/KHR/__pycache__/gl_colorspace.cpython-310.pyc ADDED
Binary file (995 Bytes). View file
 
vllm/lib/python3.10/site-packages/OpenGL/EGL/KHR/__pycache__/gl_renderbuffer_image.cpython-310.pyc ADDED
Binary file (1.04 kB). View file
 
vllm/lib/python3.10/site-packages/OpenGL/EGL/KHR/__pycache__/gl_texture_2D_image.cpython-310.pyc ADDED
Binary file (1.03 kB). View file
 
vllm/lib/python3.10/site-packages/OpenGL/EGL/KHR/__pycache__/gl_texture_3D_image.cpython-310.pyc ADDED
Binary file (1.03 kB). View file
 
vllm/lib/python3.10/site-packages/OpenGL/EGL/KHR/__pycache__/gl_texture_cubemap_image.cpython-310.pyc ADDED
Binary file (1.06 kB). View file
 
vllm/lib/python3.10/site-packages/OpenGL/EGL/KHR/__pycache__/image.cpython-310.pyc ADDED
Binary file (945 Bytes). View file
 
vllm/lib/python3.10/site-packages/OpenGL/EGL/KHR/__pycache__/image_base.cpython-310.pyc ADDED
Binary file (977 Bytes). View file
 
vllm/lib/python3.10/site-packages/OpenGL/EGL/KHR/__pycache__/image_pixmap.cpython-310.pyc ADDED
Binary file (989 Bytes). View file
 
vllm/lib/python3.10/site-packages/OpenGL/EGL/KHR/__pycache__/lock_surface.cpython-310.pyc ADDED
Binary file (989 Bytes). View file
 
vllm/lib/python3.10/site-packages/OpenGL/EGL/KHR/__pycache__/lock_surface2.cpython-310.pyc ADDED
Binary file (995 Bytes). View file
 
vllm/lib/python3.10/site-packages/OpenGL/EGL/KHR/__pycache__/lock_surface3.cpython-310.pyc ADDED
Binary file (995 Bytes). View file
 
vllm/lib/python3.10/site-packages/OpenGL/EGL/KHR/__pycache__/platform_android.cpython-310.pyc ADDED
Binary file (1.01 kB). View file
 
vllm/lib/python3.10/site-packages/OpenGL/EGL/KHR/__pycache__/platform_gbm.cpython-310.pyc ADDED
Binary file (989 Bytes). View file
 
vllm/lib/python3.10/site-packages/OpenGL/EGL/KHR/__pycache__/platform_wayland.cpython-310.pyc ADDED
Binary file (1.01 kB). View file
 
vllm/lib/python3.10/site-packages/OpenGL/EGL/KHR/__pycache__/platform_x11.cpython-310.pyc ADDED
Binary file (989 Bytes). View file
 
vllm/lib/python3.10/site-packages/OpenGL/EGL/KHR/__pycache__/reusable_sync.cpython-310.pyc ADDED
Binary file (995 Bytes). View file
 
vllm/lib/python3.10/site-packages/OpenGL/EGL/KHR/__pycache__/stream.cpython-310.pyc ADDED
Binary file (951 Bytes). View file
 
vllm/lib/python3.10/site-packages/OpenGL/EGL/KHR/__pycache__/stream_consumer_gltexture.cpython-310.pyc ADDED
Binary file (1.07 kB). View file
 
vllm/lib/python3.10/site-packages/OpenGL/EGL/KHR/__pycache__/stream_cross_process_fd.cpython-310.pyc ADDED
Binary file (1.05 kB). View file
 
vllm/lib/python3.10/site-packages/OpenGL/EGL/KHR/__pycache__/stream_fifo.cpython-310.pyc ADDED
Binary file (983 Bytes). View file
 
vllm/lib/python3.10/site-packages/OpenGL/EGL/KHR/__pycache__/stream_producer_aldatalocator.cpython-310.pyc ADDED
Binary file (1.09 kB). View file
 
vllm/lib/python3.10/site-packages/OpenGL/EGL/KHR/__pycache__/stream_producer_eglsurface.cpython-310.pyc ADDED
Binary file (1.07 kB). View file
 
vllm/lib/python3.10/site-packages/OpenGL/EGL/KHR/__pycache__/surfaceless_context.cpython-310.pyc ADDED
Binary file (1.03 kB). View file
 
vllm/lib/python3.10/site-packages/OpenGL/EGL/KHR/__pycache__/vg_parent_image.cpython-310.pyc ADDED
Binary file (1.01 kB). View file
 
vllm/lib/python3.10/site-packages/OpenGL/EGL/KHR/__pycache__/wait_sync.cpython-310.pyc ADDED
Binary file (971 Bytes). View file
 
vllm/lib/python3.10/site-packages/OpenGL/EGL/KHR/config_attribs.py ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ '''OpenGL extension KHR.config_attribs
2
+
3
+ This module customises the behaviour of the
4
+ OpenGL.raw.EGL.KHR.config_attribs to provide a more
5
+ Python-friendly API
6
+
7
+ The official definition of this extension is available here:
8
+ http://www.opengl.org/registry/specs/KHR/config_attribs.txt
9
+ '''
10
+ from OpenGL import platform, constant, arrays
11
+ from OpenGL import extensions, wrapper
12
+ import ctypes
13
+ from OpenGL.raw.EGL import _types, _glgets
14
+ from OpenGL.raw.EGL.KHR.config_attribs import *
15
+ from OpenGL.raw.EGL.KHR.config_attribs import _EXTENSION_NAME
16
+
17
+ def glInitConfigAttribsKHR():
18
+ '''Return boolean indicating whether this extension is available'''
19
+ from OpenGL import extensions
20
+ return extensions.hasGLExtension( _EXTENSION_NAME )
21
+
22
+
23
+ ### END AUTOGENERATED SECTION
vllm/lib/python3.10/site-packages/OpenGL/EGL/KHR/create_context.py ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ '''OpenGL extension KHR.create_context
2
+
3
+ This module customises the behaviour of the
4
+ OpenGL.raw.EGL.KHR.create_context to provide a more
5
+ Python-friendly API
6
+
7
+ The official definition of this extension is available here:
8
+ http://www.opengl.org/registry/specs/KHR/create_context.txt
9
+ '''
10
+ from OpenGL import platform, constant, arrays
11
+ from OpenGL import extensions, wrapper
12
+ import ctypes
13
+ from OpenGL.raw.EGL import _types, _glgets
14
+ from OpenGL.raw.EGL.KHR.create_context import *
15
+ from OpenGL.raw.EGL.KHR.create_context import _EXTENSION_NAME
16
+
17
+ def glInitCreateContextKHR():
18
+ '''Return boolean indicating whether this extension is available'''
19
+ from OpenGL import extensions
20
+ return extensions.hasGLExtension( _EXTENSION_NAME )
21
+
22
+
23
+ ### END AUTOGENERATED SECTION