@uwdata/mosaic-spec 0.17.0 → 0.18.0

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.
Files changed (182) hide show
  1. package/LICENSE +47 -0
  2. package/README.md +1 -1
  3. package/dist/mosaic-schema.json +201085 -0
  4. package/dist/src/ast/ASTNode.d.ts +27 -0
  5. package/dist/src/ast/ASTNode.d.ts.map +1 -0
  6. package/dist/src/ast/ColumnParamRefNode.d.ts +9 -0
  7. package/dist/src/ast/ColumnParamRefNode.d.ts.map +1 -0
  8. package/dist/src/ast/DataNode.d.ts +61 -0
  9. package/dist/src/ast/DataNode.d.ts.map +1 -0
  10. package/dist/src/ast/ExpressionNode.d.ts +14 -0
  11. package/dist/src/ast/ExpressionNode.d.ts.map +1 -0
  12. package/dist/src/ast/HConcatNode.d.ts +11 -0
  13. package/dist/src/ast/HConcatNode.d.ts.map +1 -0
  14. package/dist/src/ast/HSpaceNode.d.ts +12 -0
  15. package/dist/src/ast/HSpaceNode.d.ts.map +1 -0
  16. package/dist/src/ast/InputNode.d.ts +9 -0
  17. package/dist/src/ast/InputNode.d.ts.map +1 -0
  18. package/dist/src/ast/LiteralNode.d.ts +8 -0
  19. package/dist/src/ast/LiteralNode.d.ts.map +1 -0
  20. package/dist/src/ast/OptionsNode.d.ts +11 -0
  21. package/dist/src/ast/OptionsNode.d.ts.map +1 -0
  22. package/dist/src/ast/ParamNode.d.ts +9 -0
  23. package/dist/src/ast/ParamNode.d.ts.map +1 -0
  24. package/dist/src/ast/ParamRefNode.d.ts +9 -0
  25. package/dist/src/ast/ParamRefNode.d.ts.map +1 -0
  26. package/dist/src/ast/PlotAttributeNode.d.ts +19 -0
  27. package/dist/src/ast/PlotAttributeNode.d.ts.map +1 -0
  28. package/dist/src/ast/PlotFromNode.d.ts +10 -0
  29. package/dist/src/ast/PlotFromNode.d.ts.map +1 -0
  30. package/dist/src/ast/PlotInteractorNode.d.ts +9 -0
  31. package/dist/src/ast/PlotInteractorNode.d.ts.map +1 -0
  32. package/dist/src/ast/PlotLegendNode.d.ts +11 -0
  33. package/dist/src/ast/PlotLegendNode.d.ts.map +1 -0
  34. package/dist/src/ast/PlotMarkNode.d.ts +11 -0
  35. package/dist/src/ast/PlotMarkNode.d.ts.map +1 -0
  36. package/dist/src/ast/PlotNode.d.ts +12 -0
  37. package/dist/src/ast/PlotNode.d.ts.map +1 -0
  38. package/dist/src/ast/SelectionNode.d.ts +25 -0
  39. package/dist/src/ast/SelectionNode.d.ts.map +1 -0
  40. package/dist/src/ast/SpecNode.d.ts +11 -0
  41. package/dist/src/ast/SpecNode.d.ts.map +1 -0
  42. package/dist/src/ast/TransformNode.d.ts +22 -0
  43. package/dist/src/ast/TransformNode.d.ts.map +1 -0
  44. package/dist/src/ast/VConcatNode.d.ts +11 -0
  45. package/dist/src/ast/VConcatNode.d.ts.map +1 -0
  46. package/dist/src/ast/VSpaceNode.d.ts +12 -0
  47. package/dist/src/ast/VSpaceNode.d.ts.map +1 -0
  48. package/dist/src/ast/WindowFrameNode.d.ts +16 -0
  49. package/dist/src/ast/WindowFrameNode.d.ts.map +1 -0
  50. package/dist/src/ast-to-dom.d.ts +41 -0
  51. package/dist/src/ast-to-dom.d.ts.map +1 -0
  52. package/dist/src/ast-to-esm.d.ts +65 -0
  53. package/dist/src/ast-to-esm.d.ts.map +1 -0
  54. package/dist/src/config/components.d.ts +5 -0
  55. package/dist/src/config/components.d.ts.map +1 -0
  56. package/dist/src/config/extensions.d.ts +10 -0
  57. package/dist/src/config/extensions.d.ts.map +1 -0
  58. package/dist/src/config/inputs.d.ts +6 -0
  59. package/dist/src/config/inputs.d.ts.map +1 -0
  60. package/dist/src/config/plots.d.ts +35 -0
  61. package/dist/src/config/plots.d.ts.map +1 -0
  62. package/dist/src/config/transforms.d.ts +5 -0
  63. package/dist/src/config/transforms.d.ts.map +1 -0
  64. package/dist/src/constants.d.ts +33 -0
  65. package/dist/src/constants.d.ts.map +1 -0
  66. package/dist/src/index.d.ts +30 -0
  67. package/dist/src/index.d.ts.map +1 -0
  68. package/dist/src/parse-spec.d.ts +112 -0
  69. package/dist/src/parse-spec.d.ts.map +1 -0
  70. package/dist/src/spec/CSSStyles.d.ts +4 -0
  71. package/dist/src/spec/CSSStyles.d.ts.map +1 -0
  72. package/dist/src/spec/Data.d.ts +166 -0
  73. package/dist/src/spec/Data.d.ts.map +1 -0
  74. package/dist/src/spec/Expression.d.ts +28 -0
  75. package/dist/src/spec/Expression.d.ts.map +1 -0
  76. package/dist/src/spec/HConcat.d.ts +9 -0
  77. package/dist/src/spec/HConcat.d.ts.map +1 -0
  78. package/dist/src/spec/HSpace.d.ts +10 -0
  79. package/dist/src/spec/HSpace.d.ts.map +1 -0
  80. package/dist/src/spec/Input.d.ts +213 -0
  81. package/dist/src/spec/Input.d.ts.map +1 -0
  82. package/dist/src/spec/Interval.d.ts +59 -0
  83. package/dist/src/spec/Interval.d.ts.map +1 -0
  84. package/dist/src/spec/Param.d.ts +64 -0
  85. package/dist/src/spec/Param.d.ts.map +1 -0
  86. package/dist/src/spec/Plot.d.ts +15 -0
  87. package/dist/src/spec/Plot.d.ts.map +1 -0
  88. package/dist/src/spec/PlotAttribute.d.ts +1535 -0
  89. package/dist/src/spec/PlotAttribute.d.ts.map +1 -0
  90. package/dist/src/spec/PlotFrom.d.ts +21 -0
  91. package/dist/src/spec/PlotFrom.d.ts.map +1 -0
  92. package/dist/src/spec/PlotInteractor.d.ts +10 -0
  93. package/dist/src/spec/PlotInteractor.d.ts.map +1 -0
  94. package/dist/src/spec/PlotLegend.d.ts +69 -0
  95. package/dist/src/spec/PlotLegend.d.ts.map +1 -0
  96. package/dist/src/spec/PlotMark.d.ts +29 -0
  97. package/dist/src/spec/PlotMark.d.ts.map +1 -0
  98. package/dist/src/spec/PlotTypes.d.ts +294 -0
  99. package/dist/src/spec/PlotTypes.d.ts.map +1 -0
  100. package/dist/src/spec/Spec.d.ts +53 -0
  101. package/dist/src/spec/Spec.d.ts.map +1 -0
  102. package/dist/src/spec/Transform.d.ts +393 -0
  103. package/dist/src/spec/Transform.d.ts.map +1 -0
  104. package/dist/src/spec/VConcat.d.ts +9 -0
  105. package/dist/src/spec/VConcat.d.ts.map +1 -0
  106. package/dist/src/spec/VSpace.d.ts +10 -0
  107. package/dist/src/spec/VSpace.d.ts.map +1 -0
  108. package/dist/src/spec/interactors/BrushStyles.d.ts +28 -0
  109. package/dist/src/spec/interactors/BrushStyles.d.ts.map +1 -0
  110. package/dist/src/spec/interactors/Highlight.d.ts +38 -0
  111. package/dist/src/spec/interactors/Highlight.d.ts.map +1 -0
  112. package/dist/src/spec/interactors/Interval1D.d.ts +43 -0
  113. package/dist/src/spec/interactors/Interval1D.d.ts.map +1 -0
  114. package/dist/src/spec/interactors/Interval2D.d.ts +48 -0
  115. package/dist/src/spec/interactors/Interval2D.d.ts.map +1 -0
  116. package/dist/src/spec/interactors/Nearest.d.ts +45 -0
  117. package/dist/src/spec/interactors/Nearest.d.ts.map +1 -0
  118. package/dist/src/spec/interactors/PanZoom.d.ts +59 -0
  119. package/dist/src/spec/interactors/PanZoom.d.ts.map +1 -0
  120. package/dist/src/spec/interactors/Region.d.ts +33 -0
  121. package/dist/src/spec/interactors/Region.d.ts.map +1 -0
  122. package/dist/src/spec/interactors/Toggle.d.ts +60 -0
  123. package/dist/src/spec/interactors/Toggle.d.ts.map +1 -0
  124. package/dist/src/spec/marks/Area.d.ts +140 -0
  125. package/dist/src/spec/marks/Area.d.ts.map +1 -0
  126. package/dist/src/spec/marks/Arrow.d.ts +95 -0
  127. package/dist/src/spec/marks/Arrow.d.ts.map +1 -0
  128. package/dist/src/spec/marks/Axis.d.ts +282 -0
  129. package/dist/src/spec/marks/Axis.d.ts.map +1 -0
  130. package/dist/src/spec/marks/Bar.d.ts +151 -0
  131. package/dist/src/spec/marks/Bar.d.ts.map +1 -0
  132. package/dist/src/spec/marks/Cell.d.ts +58 -0
  133. package/dist/src/spec/marks/Cell.d.ts.map +1 -0
  134. package/dist/src/spec/marks/Contour.d.ts +24 -0
  135. package/dist/src/spec/marks/Contour.d.ts.map +1 -0
  136. package/dist/src/spec/marks/Delaunay.d.ts +87 -0
  137. package/dist/src/spec/marks/Delaunay.d.ts.map +1 -0
  138. package/dist/src/spec/marks/DenseLine.d.ts +28 -0
  139. package/dist/src/spec/marks/DenseLine.d.ts.map +1 -0
  140. package/dist/src/spec/marks/Density.d.ts +137 -0
  141. package/dist/src/spec/marks/Density.d.ts.map +1 -0
  142. package/dist/src/spec/marks/Dot.d.ts +134 -0
  143. package/dist/src/spec/marks/Dot.d.ts.map +1 -0
  144. package/dist/src/spec/marks/ErrorBar.d.ts +83 -0
  145. package/dist/src/spec/marks/ErrorBar.d.ts.map +1 -0
  146. package/dist/src/spec/marks/Frame.d.ts +22 -0
  147. package/dist/src/spec/marks/Frame.d.ts.map +1 -0
  148. package/dist/src/spec/marks/Geo.d.ts +54 -0
  149. package/dist/src/spec/marks/Geo.d.ts.map +1 -0
  150. package/dist/src/spec/marks/Hexbin.d.ts +31 -0
  151. package/dist/src/spec/marks/Hexbin.d.ts.map +1 -0
  152. package/dist/src/spec/marks/Hexgrid.d.ts +26 -0
  153. package/dist/src/spec/marks/Hexgrid.d.ts.map +1 -0
  154. package/dist/src/spec/marks/Image.d.ts +90 -0
  155. package/dist/src/spec/marks/Image.d.ts.map +1 -0
  156. package/dist/src/spec/marks/Line.d.ts +83 -0
  157. package/dist/src/spec/marks/Line.d.ts.map +1 -0
  158. package/dist/src/spec/marks/Link.d.ts +61 -0
  159. package/dist/src/spec/marks/Link.d.ts.map +1 -0
  160. package/dist/src/spec/marks/Marks.d.ts +911 -0
  161. package/dist/src/spec/marks/Marks.d.ts.map +1 -0
  162. package/dist/src/spec/marks/Raster.d.ts +125 -0
  163. package/dist/src/spec/marks/Raster.d.ts.map +1 -0
  164. package/dist/src/spec/marks/Rect.d.ts +167 -0
  165. package/dist/src/spec/marks/Rect.d.ts.map +1 -0
  166. package/dist/src/spec/marks/Regression.d.ts +59 -0
  167. package/dist/src/spec/marks/Regression.d.ts.map +1 -0
  168. package/dist/src/spec/marks/Rule.d.ts +101 -0
  169. package/dist/src/spec/marks/Rule.d.ts.map +1 -0
  170. package/dist/src/spec/marks/Text.d.ts +111 -0
  171. package/dist/src/spec/marks/Text.d.ts.map +1 -0
  172. package/dist/src/spec/marks/Tick.d.ts +62 -0
  173. package/dist/src/spec/marks/Tick.d.ts.map +1 -0
  174. package/dist/src/spec/marks/Vector.d.ts +100 -0
  175. package/dist/src/spec/marks/Vector.d.ts.map +1 -0
  176. package/dist/src/spec/marks/Waffle.d.ts +59 -0
  177. package/dist/src/spec/marks/Waffle.d.ts.map +1 -0
  178. package/dist/src/util.d.ts +13 -0
  179. package/dist/src/util.d.ts.map +1 -0
  180. package/package.json +18 -10
  181. package/tsconfig.json +0 -13
  182. package/vitest.config.ts +0 -3
@@ -0,0 +1,213 @@
1
+ import { ParamRef } from './Param.js';
2
+ /** A menu input component. */
3
+ export interface Menu {
4
+ /**
5
+ * A menu input widget.
6
+ */
7
+ input: 'menu';
8
+ /**
9
+ * The output selection. A selection clause is added for the
10
+ * currently selected menu option.
11
+ */
12
+ as?: ParamRef;
13
+ /**
14
+ * The database column name to use within generated selection clause
15
+ * predicates. Defaults to the `column` property.
16
+ */
17
+ field?: string;
18
+ /**
19
+ * The name of a database table to use as a data source for this widget.
20
+ * Used in conjunction with the `column` property.
21
+ */
22
+ from?: string;
23
+ /**
24
+ * The name of a database column from which to pull menu options.
25
+ * The unique column values are used as menu options.
26
+ * Used in conjunction with the `from` property.
27
+ */
28
+ column?: string;
29
+ /**
30
+ * A selection to filter the database table indicated by the `from` property.
31
+ */
32
+ filterBy?: ParamRef;
33
+ /**
34
+ * A text label for this input.
35
+ */
36
+ label?: string;
37
+ /**
38
+ * An array of menu options, as literal values or option objects.
39
+ * Option objects have a `value` property and an optional `label` property.
40
+ * If no label is provided, the string-coerced value is used.
41
+ */
42
+ options?: Array<any | {
43
+ value: any;
44
+ label?: string;
45
+ }>;
46
+ /**
47
+ * The initial selected menu value.
48
+ */
49
+ value?: any;
50
+ }
51
+ /** A search input component. */
52
+ export interface Search {
53
+ /**
54
+ * A text search input widget.
55
+ */
56
+ input: 'search';
57
+ /**
58
+ * The output selection. A selection clause is added for the
59
+ * current text search query.
60
+ */
61
+ as?: ParamRef;
62
+ /**
63
+ * The database column name to use within generated selection clause
64
+ * predicates. Defaults to the `column` property.
65
+ */
66
+ field?: string;
67
+ /**
68
+ * The type of text search query to perform. One of:
69
+ * - `"contains"` (default): the query string may appear anywhere in the text
70
+ * - `"prefix"`: the query string must appear at the start of the text
71
+ * - `"suffix"`: the query string must appear at the end of the text
72
+ * - `"regexp"`: the query string is a regular expression the text must match
73
+ */
74
+ type?: 'contains' | 'prefix' | 'suffix' | 'regexp';
75
+ /**
76
+ * The name of a database table to use as an autocomplete data source
77
+ * for this widget. Used in conjunction with the `column` property.
78
+ */
79
+ from?: string;
80
+ /**
81
+ * The name of a database column from which to pull valid search results.
82
+ * The unique column values are used as search autocomplete values.
83
+ * Used in conjunction with the `from` property.
84
+ */
85
+ column?: string;
86
+ /**
87
+ * A selection to filter the database table indicated by the `from` property.
88
+ */
89
+ filterBy?: ParamRef;
90
+ /**
91
+ * A text label for this input.
92
+ */
93
+ label?: string;
94
+ }
95
+ /** A slider input component. */
96
+ export interface Slider {
97
+ /**
98
+ * A slider input widget.
99
+ */
100
+ input: 'slider';
101
+ /**
102
+ * The output selection. A selection clause is added for the
103
+ * currently selected slider option.
104
+ */
105
+ as?: ParamRef;
106
+ /**
107
+ * The database column name to use within generated selection clause
108
+ * predicates. Defaults to the `column` property.
109
+ */
110
+ field?: string;
111
+ /**
112
+ * The type of selection clause predicate to generate if the **as** option
113
+ * is a Selection. If `'point'` (the default), the selection predicate is an
114
+ * equality check for the slider value. If `'interval'`, the predicate checks
115
+ * an interval from the minimum to the current slider value.
116
+ */
117
+ select?: 'point' | 'interval';
118
+ /**
119
+ * The name of a database table to use as a data source for this widget.
120
+ * Used in conjunction with the `column` property.
121
+ * The minimum and maximum values of the column determine the slider range.
122
+ */
123
+ from?: string;
124
+ /**
125
+ * The name of a database column whose values determine the slider range.
126
+ * Used in conjunction with the `from` property.
127
+ * The minimum and maximum values of the column determine the slider range.
128
+ */
129
+ column?: string;
130
+ /**
131
+ * A selection to filter the database table indicated by the `from` property.
132
+ */
133
+ filterBy?: ParamRef;
134
+ /**
135
+ * The minumum slider value.
136
+ */
137
+ min?: number;
138
+ /**
139
+ * The maximum slider value.
140
+ */
141
+ max?: number;
142
+ /**
143
+ * The slider step, the amount to increment between consecutive values.
144
+ */
145
+ step?: number;
146
+ /**
147
+ * A text label for this input.
148
+ */
149
+ label?: string;
150
+ /**
151
+ * The initial slider value.
152
+ */
153
+ value?: number;
154
+ /**
155
+ * The width of the slider in screen pixels.
156
+ */
157
+ width?: number;
158
+ }
159
+ /** A table grid view component. */
160
+ export interface Table {
161
+ /**
162
+ * A table grid widget.
163
+ */
164
+ input: 'table';
165
+ /**
166
+ * The output selection. A selection clause is added for each
167
+ * currently selected table row.
168
+ */
169
+ as?: ParamRef;
170
+ /**
171
+ * The name of a database table to use as a data source for this widget.
172
+ */
173
+ from: string | ParamRef;
174
+ /**
175
+ * A list of column names to include in the table grid.
176
+ * If unspecified, all table columns are included.
177
+ */
178
+ columns?: string[];
179
+ /**
180
+ * A selection to filter the database table indicated by the `from` property.
181
+ */
182
+ filterBy?: ParamRef;
183
+ /**
184
+ * An object of per-column alignment values.
185
+ * Column names should be object keys, which map to alignment values.
186
+ * Valid alignment values are: `"left"`, `"right"`, `"center"`, and `"justify"`.
187
+ * By default, numbers are right-aligned and other values are left-aligned.
188
+ */
189
+ align?: {
190
+ [column: string]: 'left' | 'right' | 'center' | 'justify';
191
+ };
192
+ /**
193
+ * If a number, sets the total width of the table widget, in pixels.
194
+ * If an object, provides per-column pixel width values.
195
+ * Column names should be object keys, mapped to numeric width values.
196
+ */
197
+ width?: number | {
198
+ [column: string]: number;
199
+ };
200
+ /**
201
+ * The maximum width of the table widget, in pixels.
202
+ */
203
+ maxWidth?: number;
204
+ /**
205
+ * The height of the table widget, in pixels.
206
+ */
207
+ height?: number;
208
+ /**
209
+ * The number of rows load in a new batch upon table scroll.
210
+ */
211
+ rowBatch?: number;
212
+ }
213
+ //# sourceMappingURL=Input.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Input.d.ts","sourceRoot":"","sources":["../../../src/spec/Input.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,59 @@
1
+ /** Date/time interval. */
2
+ export type IntervalTransform = Years | Months | Days | Hours | Minutes | Seconds | Milliseconds | Microseconds;
3
+ /** A date/time interval in units of years. */
4
+ export interface Years {
5
+ /**
6
+ * A date/time interval in units of years.
7
+ */
8
+ years: number;
9
+ }
10
+ /** A date/time interval in units of months. */
11
+ export interface Months {
12
+ /**
13
+ * A date/time interval in units of months.
14
+ */
15
+ months: number;
16
+ }
17
+ /** A date/time interval in units of days. */
18
+ export interface Days {
19
+ /**
20
+ * A date/time interval in units of days.
21
+ */
22
+ days: number;
23
+ }
24
+ /** A date/time interval in units of hours. */
25
+ export interface Hours {
26
+ /**
27
+ * A date/time interval in units of hours.
28
+ */
29
+ hours: number;
30
+ }
31
+ /** A date/time interval in units of minutes. */
32
+ export interface Minutes {
33
+ /**
34
+ * A date/time interval in units of minutes.
35
+ */
36
+ minutes: number;
37
+ }
38
+ /** A date/time interval in units of seconds. */
39
+ export interface Seconds {
40
+ /**
41
+ * A date/time interval in units of seconds.
42
+ */
43
+ seconds: number;
44
+ }
45
+ /** A date/time interval in units of milliseconds. */
46
+ export interface Milliseconds {
47
+ /**
48
+ * A date/time interval in units of milliseconds.
49
+ */
50
+ milliseconds: number;
51
+ }
52
+ /** A date/time interval in units of microseconds. */
53
+ export interface Microseconds {
54
+ /**
55
+ * A date/time interval in units of microseconds.
56
+ */
57
+ microseconds: number;
58
+ }
59
+ //# sourceMappingURL=Interval.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Interval.d.ts","sourceRoot":"","sources":["../../../src/spec/Interval.ts"],"names":[],"mappings":"AAAA,0BAA0B;AAC1B,MAAM,MAAM,iBAAiB,GACzB,KAAK,GACL,MAAM,GACN,IAAI,GACJ,KAAK,GACL,OAAO,GACP,OAAO,GACP,YAAY,GACZ,YAAY,CACb;AAEH,8CAA8C;AAC9C,MAAM,WAAW,KAAK;IACpB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;CACf;AAED,+CAA+C;AAC/C,MAAM,WAAW,MAAM;IACrB;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,6CAA6C;AAC7C,MAAM,WAAW,IAAI;IACnB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;CACd;AAED,8CAA8C;AAC9C,MAAM,WAAW,KAAK;IACpB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;CACf;AAED,gDAAgD;AAChD,MAAM,WAAW,OAAO;IACtB;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,gDAAgD;AAChD,MAAM,WAAW,OAAO;IACtB;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,qDAAqD;AACrD,MAAM,WAAW,YAAY;IAC3B;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;CACtB;AAED,qDAAqD;AACrD,MAAM,WAAW,YAAY;IAC3B;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;CACtB"}
@@ -0,0 +1,64 @@
1
+ export type ParamRef = `$${string}`;
2
+ /** Base properties shared by Param definitions. */
3
+ export interface ParamBase {
4
+ /**
5
+ * The type of reactive parameter. One of:
6
+ * - `"value"` (default) for a standard `Param`
7
+ * - `"intersect"` for a `Selection` that intersects clauses (logical "and")
8
+ * - `"union"` for a `Selection` that unions clauses (logical "or")
9
+ * - `"single"` for a `Selection` that retains a single clause only
10
+ * - `"crossfilter"` for a cross-filtered intersection `Selection`
11
+ */
12
+ select?: 'value';
13
+ }
14
+ /** A Param definition. */
15
+ export interface Param extends ParamBase {
16
+ /**
17
+ * The initial parameter value.
18
+ */
19
+ value: ParamValue;
20
+ }
21
+ /** A Date-valued Param definition. */
22
+ export interface ParamDate extends ParamBase {
23
+ /**
24
+ * The initial parameter value as an ISO date/time
25
+ * string to be parsed to a Date object.
26
+ */
27
+ date: string;
28
+ }
29
+ /** Literal Param values. */
30
+ export type ParamLiteral = null | string | number | boolean;
31
+ /** Valid Param values. */
32
+ export type ParamValue = ParamLiteral | Array<ParamLiteral | ParamRef>;
33
+ /** A Selection definition. */
34
+ export interface Selection {
35
+ /**
36
+ * The type of reactive parameter. One of:
37
+ * - `"value"` (default) for a standard `Param`
38
+ * - `"intersect"` for a `Selection` that intersects clauses (logical "and")
39
+ * - `"union"` for a `Selection` that unions clauses (logical "or")
40
+ * - `"single"` for a `Selection` that retains a single clause only
41
+ * - `"crossfilter"` for a cross-filtered intersection `Selection`
42
+ */
43
+ select: 'crossfilter' | 'intersect' | 'single' | 'union';
44
+ /**
45
+ * A flag for cross-filtering, where selections made in a plot filter others
46
+ * but not oneself (default `false`, except for `crossfilter` selections).
47
+ */
48
+ cross?: boolean;
49
+ /**
50
+ * A flag for setting an initial empty selection state. If true, a selection
51
+ * with no clauses corresponds to an empty selection with no records. If
52
+ * false, a selection with no clauses selects all values.
53
+ */
54
+ empty?: boolean;
55
+ /**
56
+ * Upstream selections whose clauses should be included as part of this
57
+ * selection. Any clauses or activations published to the upstream
58
+ * selections will be relayed to this selection.
59
+ */
60
+ include?: ParamRef | ParamRef[];
61
+ }
62
+ /** A Param or Selection definition. */
63
+ export type ParamDefinition = ParamValue | Param | ParamDate | Selection;
64
+ //# sourceMappingURL=Param.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Param.d.ts","sourceRoot":"","sources":["../../../src/spec/Param.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,QAAQ,GAAG,IAAI,MAAM,EAAE,CAAC;AAEpC,mDAAmD;AACnD,MAAM,WAAW,SAAS;IACxB;;;;;;;OAOG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAED,0BAA0B;AAC1B,MAAM,WAAW,KAAM,SAAQ,SAAS;IACtC;;OAEG;IACH,KAAK,EAAE,UAAU,CAAC;CACnB;AAED,sCAAsC;AACtC,MAAM,WAAW,SAAU,SAAQ,SAAS;IAC1C;;;OAGG;IACH,IAAI,EAAE,MAAM,CAAC;CACd;AAED,4BAA4B;AAC5B,MAAM,MAAM,YAAY,GACpB,IAAI,GACJ,MAAM,GACN,MAAM,GACN,OAAO,CAAC;AAEZ,0BAA0B;AAC1B,MAAM,MAAM,UAAU,GAClB,YAAY,GACZ,KAAK,CAAC,YAAY,GAAG,QAAQ,CAAC,CAAC;AAEnC,8BAA8B;AAC9B,MAAM,WAAW,SAAS;IACxB;;;;;;;OAOG;IACH,MAAM,EAAE,aAAa,GAAG,WAAW,GAAG,QAAQ,GAAG,OAAO,CAAC;IAEzD;;;OAGG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;IAEhB;;;;OAIG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;IAEhB;;;;OAIG;IACH,OAAO,CAAC,EAAE,QAAQ,GAAG,QAAQ,EAAE,CAAC;CACjC;AAED,uCAAuC;AACvC,MAAM,MAAM,eAAe,GACvB,UAAU,GACV,KAAK,GACL,SAAS,GACT,SAAS,CAAC"}
@@ -0,0 +1,15 @@
1
+ import { PlotAttributes } from './PlotAttribute.js';
2
+ import { PlotInteractor } from './PlotInteractor.js';
3
+ import { PlotLegend } from './PlotLegend.js';
4
+ import { PlotMark } from './PlotMark.js';
5
+ /** A plot component. */
6
+ export interface Plot extends PlotAttributes {
7
+ /**
8
+ * An array of plot marks, interactors, or legends.
9
+ * Marks are graphical elements that make up plot layers.
10
+ * Unless otherwise configured, interactors will use the nearest
11
+ * previous mark as a basis for which data fields to select.
12
+ */
13
+ plot: (PlotMark | PlotInteractor | PlotLegend)[];
14
+ }
15
+ //# sourceMappingURL=Plot.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Plot.d.ts","sourceRoot":"","sources":["../../../src/spec/Plot.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAEzC,wBAAwB;AACxB,MAAM,WAAW,IAAK,SAAQ,cAAc;IAC1C;;;;;OAKG;IACH,IAAI,EAAE,CAAC,QAAQ,GAAG,cAAc,GAAG,UAAU,CAAC,EAAE,CAAC;CAClD"}