@milaboratories/miplots4 1.1.0 → 1.2.1
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.
- package/dist/MiPlots.d.ts.map +1 -1
- package/dist/MiPlots.js +16 -14
- package/dist/MiPlots.js.map +1 -1
- package/dist/bubble/BubbleSettingsImpl.d.ts +3 -0
- package/dist/bubble/BubbleSettingsImpl.d.ts.map +1 -1
- package/dist/bubble/BubbleSettingsImpl.js +4 -1
- package/dist/bubble/BubbleSettingsImpl.js.map +1 -1
- package/dist/bubble/ChartRenderer.d.ts +2 -12
- package/dist/bubble/ChartRenderer.d.ts.map +1 -1
- package/dist/bubble/ChartRenderer.js +13 -13
- package/dist/bubble/ChartRenderer.js.map +1 -1
- package/dist/bubble/getGroupedCellsData.d.ts +1 -1
- package/dist/bubble/getGroupedCellsData.d.ts.map +1 -1
- package/dist/bubble/getGroupedCellsData.js +20 -14
- package/dist/bubble/getGroupedCellsData.js.map +1 -1
- package/dist/bubble/index.d.ts.map +1 -1
- package/dist/bubble/index.js +6 -10
- package/dist/bubble/index.js.map +1 -1
- package/dist/common/ContinuousAxis.d.ts +3 -1
- package/dist/common/ContinuousAxis.d.ts.map +1 -1
- package/dist/common/ContinuousAxis.js +8 -8
- package/dist/common/ContinuousAxis.js.map +1 -1
- package/dist/common/Legend.d.ts +12 -1
- package/dist/common/Legend.d.ts.map +1 -1
- package/dist/common/Legend.js +14 -6
- package/dist/common/Legend.js.map +1 -1
- package/dist/heatmap/ChartRenderer.d.ts +2 -12
- package/dist/heatmap/ChartRenderer.d.ts.map +1 -1
- package/dist/heatmap/ChartRenderer.js +26 -26
- package/dist/heatmap/ChartRenderer.js.map +1 -1
- package/dist/heatmap/HeatmapSettingsImpl.d.ts +3 -0
- package/dist/heatmap/HeatmapSettingsImpl.d.ts.map +1 -1
- package/dist/heatmap/HeatmapSettingsImpl.js +5 -2
- package/dist/heatmap/HeatmapSettingsImpl.js.map +1 -1
- package/dist/heatmap/fillCellsData.d.ts +6 -1
- package/dist/heatmap/fillCellsData.d.ts.map +1 -1
- package/dist/heatmap/fillCellsData.js +135 -96
- package/dist/heatmap/fillCellsData.js.map +1 -1
- package/dist/heatmap/getCells.d.ts +4 -1
- package/dist/heatmap/getCells.d.ts.map +1 -1
- package/dist/heatmap/getCells.js +19 -16
- package/dist/heatmap/getCells.js.map +1 -1
- package/dist/heatmap/index.d.ts.map +1 -1
- package/dist/heatmap/index.js +32 -34
- package/dist/heatmap/index.js.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/selection/ChartRenderer.d.ts +90 -0
- package/dist/selection/ChartRenderer.d.ts.map +1 -0
- package/dist/selection/ChartRenderer.js +254 -0
- package/dist/selection/ChartRenderer.js.map +1 -0
- package/dist/selection/SelectionSettingsImpl.d.ts +53 -0
- package/dist/selection/SelectionSettingsImpl.d.ts.map +1 -0
- package/dist/selection/SelectionSettingsImpl.js +47 -0
- package/dist/selection/SelectionSettingsImpl.js.map +1 -0
- package/dist/selection/components/Chart/Bars/GroupSelectedBars.d.ts +8 -0
- package/dist/selection/components/Chart/Bars/GroupSelectedBars.d.ts.map +1 -0
- package/dist/selection/components/Chart/Bars/GroupSelectedBars.js +57 -0
- package/dist/selection/components/Chart/Bars/GroupSelectedBars.js.map +1 -0
- package/dist/selection/components/Chart/Bars/StackedBars.d.ts +12 -0
- package/dist/selection/components/Chart/Bars/StackedBars.d.ts.map +1 -0
- package/dist/selection/components/Chart/Bars/StackedBars.js +58 -0
- package/dist/selection/components/Chart/Bars/StackedBars.js.map +1 -0
- package/dist/selection/components/Chart/Bars/UngroupedBars.d.ts +6 -0
- package/dist/selection/components/Chart/Bars/UngroupedBars.d.ts.map +1 -0
- package/dist/selection/components/Chart/Bars/UngroupedBars.js +38 -0
- package/dist/selection/components/Chart/Bars/UngroupedBars.js.map +1 -0
- package/dist/selection/components/Chart/Bars.d.ts +10 -0
- package/dist/selection/components/Chart/Bars.d.ts.map +1 -0
- package/dist/selection/components/Chart/Bars.js +48 -0
- package/dist/selection/components/Chart/Bars.js.map +1 -0
- package/dist/selection/components/Chart/ChartAxes.d.ts +7 -0
- package/dist/selection/components/Chart/ChartAxes.d.ts.map +1 -0
- package/dist/selection/components/Chart/ChartAxes.js +51 -0
- package/dist/selection/components/Chart/ChartAxes.js.map +1 -0
- package/dist/selection/components/Chart/ChartFrame.d.ts +9 -0
- package/dist/selection/components/Chart/ChartFrame.d.ts.map +1 -0
- package/dist/selection/components/Chart/ChartFrame.js +41 -0
- package/dist/selection/components/Chart/ChartFrame.js.map +1 -0
- package/dist/selection/components/Chart/Dividers.d.ts +8 -0
- package/dist/selection/components/Chart/Dividers.d.ts.map +1 -0
- package/dist/selection/components/Chart/Dividers.js +27 -0
- package/dist/selection/components/Chart/Dividers.js.map +1 -0
- package/dist/selection/components/Chart/Gridlines.d.ts +10 -0
- package/dist/selection/components/Chart/Gridlines.d.ts.map +1 -0
- package/dist/selection/components/Chart/Gridlines.js +32 -0
- package/dist/selection/components/Chart/Gridlines.js.map +1 -0
- package/dist/selection/components/Chart/Ribbons/GroupFlowRibbon.d.ts +9 -0
- package/dist/selection/components/Chart/Ribbons/GroupFlowRibbon.d.ts.map +1 -0
- package/dist/selection/components/Chart/Ribbons/GroupFlowRibbon.js +36 -0
- package/dist/selection/components/Chart/Ribbons/GroupFlowRibbon.js.map +1 -0
- package/dist/selection/components/Chart/Ribbons/MultiGroupRibbon.d.ts +6 -0
- package/dist/selection/components/Chart/Ribbons/MultiGroupRibbon.d.ts.map +1 -0
- package/dist/selection/components/Chart/Ribbons/MultiGroupRibbon.js +22 -0
- package/dist/selection/components/Chart/Ribbons/MultiGroupRibbon.js.map +1 -0
- package/dist/selection/components/Chart/Ribbons/SimpleRibbon.d.ts +10 -0
- package/dist/selection/components/Chart/Ribbons/SimpleRibbon.d.ts.map +1 -0
- package/dist/selection/components/Chart/Ribbons/SimpleRibbon.js +33 -0
- package/dist/selection/components/Chart/Ribbons/SimpleRibbon.js.map +1 -0
- package/dist/selection/components/Chart/Ribbons/StackedGroupFlowRibbon.d.ts +10 -0
- package/dist/selection/components/Chart/Ribbons/StackedGroupFlowRibbon.d.ts.map +1 -0
- package/dist/selection/components/Chart/Ribbons/StackedGroupFlowRibbon.js +65 -0
- package/dist/selection/components/Chart/Ribbons/StackedGroupFlowRibbon.js.map +1 -0
- package/dist/selection/components/Chart/Ribbons/ribbonPath.d.ts +10 -0
- package/dist/selection/components/Chart/Ribbons/ribbonPath.d.ts.map +1 -0
- package/dist/selection/components/Chart/Ribbons/ribbonPath.js +13 -0
- package/dist/selection/components/Chart/Ribbons/ribbonPath.js.map +1 -0
- package/dist/selection/components/Chart/Ribbons.d.ts +9 -0
- package/dist/selection/components/Chart/Ribbons.d.ts.map +1 -0
- package/dist/selection/components/Chart/Ribbons.js +58 -0
- package/dist/selection/components/Chart/Ribbons.js.map +1 -0
- package/dist/selection/components/Chart/StageCounts.d.ts +7 -0
- package/dist/selection/components/Chart/StageCounts.d.ts.map +1 -0
- package/dist/selection/components/Chart/StageCounts.js +20 -0
- package/dist/selection/components/Chart/StageCounts.js.map +1 -0
- package/dist/selection/components/Chart/types.d.ts +132 -0
- package/dist/selection/components/Chart/types.d.ts.map +1 -0
- package/dist/selection/components/Chart.d.ts +22 -0
- package/dist/selection/components/Chart.d.ts.map +1 -0
- package/dist/selection/components/Chart.js +97 -0
- package/dist/selection/components/Chart.js.map +1 -0
- package/dist/selection/components/ChartsGroup.d.ts +18 -0
- package/dist/selection/components/ChartsGroup.d.ts.map +1 -0
- package/dist/selection/components/ChartsGroup.js +181 -0
- package/dist/selection/components/ChartsGroup.js.map +1 -0
- package/dist/selection/components/FacetCell.d.ts +22 -0
- package/dist/selection/components/FacetCell.d.ts.map +1 -0
- package/dist/selection/components/FacetCell.js +18 -0
- package/dist/selection/components/FacetCell.js.map +1 -0
- package/dist/selection/components/types.d.ts +58 -0
- package/dist/selection/components/types.d.ts.map +1 -0
- package/dist/selection/constants.d.ts +25 -0
- package/dist/selection/constants.d.ts.map +1 -0
- package/dist/selection/constants.js +4 -0
- package/dist/selection/constants.js.map +1 -0
- package/dist/selection/createSelectionData.d.ts +50 -0
- package/dist/selection/createSelectionData.d.ts.map +1 -0
- package/dist/selection/createSelectionData.js +92 -0
- package/dist/selection/createSelectionData.js.map +1 -0
- package/dist/selection/index.d.ts +26 -0
- package/dist/selection/index.d.ts.map +1 -0
- package/dist/selection/index.js +96 -0
- package/dist/selection/index.js.map +1 -0
- package/dist/selection/utils.d.ts +4 -0
- package/dist/selection/utils.d.ts.map +1 -0
- package/dist/selection/utils.js +13 -0
- package/dist/selection/utils.js.map +1 -0
- package/dist/types/bubble.d.ts +131 -0
- package/dist/types/bubble.d.ts.map +1 -1
- package/dist/types/bubble.js +3 -0
- package/dist/types/bubble.js.map +1 -1
- package/dist/types/common.d.ts +38 -0
- package/dist/types/common.d.ts.map +1 -1
- package/dist/types/common.js +1 -0
- package/dist/types/common.js.map +1 -1
- package/dist/types/dendro.d.ts +103 -0
- package/dist/types/dendro.d.ts.map +1 -1
- package/dist/types/discrete.d.ts +167 -0
- package/dist/types/discrete.d.ts.map +1 -1
- package/dist/types/heatmap.d.ts +248 -0
- package/dist/types/heatmap.d.ts.map +1 -1
- package/dist/types/heatmap.js +3 -0
- package/dist/types/heatmap.js.map +1 -1
- package/dist/types/histogram.d.ts +22 -0
- package/dist/types/histogram.d.ts.map +1 -1
- package/dist/types/index.d.ts +3 -1
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js +1 -0
- package/dist/types/scatterplot-umap.d.ts +188 -0
- package/dist/types/scatterplot-umap.d.ts.map +1 -1
- package/dist/types/scatterplot.d.ts +270 -0
- package/dist/types/scatterplot.d.ts.map +1 -1
- package/dist/types/selection.d.ts +452 -0
- package/dist/types/selection.d.ts.map +1 -0
- package/dist/types/selection.js +53 -0
- package/dist/types/selection.js.map +1 -0
- package/dist/utils/intersect.d.ts +2 -0
- package/dist/utils/intersect.d.ts.map +1 -0
- package/dist/utils/intersect.js +8 -0
- package/dist/utils/intersect.js.map +1 -0
- package/package.json +2 -2
package/dist/types/common.d.ts
CHANGED
|
@@ -26,6 +26,7 @@ export declare const ColumnNameSchema: z.ZodObject<{
|
|
|
26
26
|
format: z.ZodOptional<z.ZodString>;
|
|
27
27
|
label: z.ZodOptional<z.ZodString>;
|
|
28
28
|
valueLabels: z.ZodOptional<z.ZodString>;
|
|
29
|
+
valueLabelsMap: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
29
30
|
nullValueLabel: z.ZodOptional<z.ZodString>;
|
|
30
31
|
}, "strip", z.ZodTypeAny, {
|
|
31
32
|
type: "column";
|
|
@@ -33,6 +34,7 @@ export declare const ColumnNameSchema: z.ZodObject<{
|
|
|
33
34
|
format?: string | undefined;
|
|
34
35
|
label?: string | undefined;
|
|
35
36
|
valueLabels?: string | undefined;
|
|
37
|
+
valueLabelsMap?: Record<string, string> | undefined;
|
|
36
38
|
nullValueLabel?: string | undefined;
|
|
37
39
|
}, {
|
|
38
40
|
type: "column";
|
|
@@ -40,6 +42,7 @@ export declare const ColumnNameSchema: z.ZodObject<{
|
|
|
40
42
|
format?: string | undefined;
|
|
41
43
|
label?: string | undefined;
|
|
42
44
|
valueLabels?: string | undefined;
|
|
45
|
+
valueLabelsMap?: Record<string, string> | undefined;
|
|
43
46
|
nullValueLabel?: string | undefined;
|
|
44
47
|
}>;
|
|
45
48
|
export type ColumnName = z.infer<typeof ColumnNameSchema>;
|
|
@@ -110,6 +113,7 @@ export declare function categoricalAesMappingFromValueSchema<ValueType extends z
|
|
|
110
113
|
format: z.ZodOptional<z.ZodString>;
|
|
111
114
|
label: z.ZodOptional<z.ZodString>;
|
|
112
115
|
valueLabels: z.ZodOptional<z.ZodString>;
|
|
116
|
+
valueLabelsMap: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
113
117
|
nullValueLabel: z.ZodOptional<z.ZodString>;
|
|
114
118
|
}, "strip", z.ZodTypeAny, {
|
|
115
119
|
type: "column";
|
|
@@ -117,6 +121,7 @@ export declare function categoricalAesMappingFromValueSchema<ValueType extends z
|
|
|
117
121
|
format?: string | undefined;
|
|
118
122
|
label?: string | undefined;
|
|
119
123
|
valueLabels?: string | undefined;
|
|
124
|
+
valueLabelsMap?: Record<string, string> | undefined;
|
|
120
125
|
nullValueLabel?: string | undefined;
|
|
121
126
|
}, {
|
|
122
127
|
type: "column";
|
|
@@ -124,6 +129,7 @@ export declare function categoricalAesMappingFromValueSchema<ValueType extends z
|
|
|
124
129
|
format?: string | undefined;
|
|
125
130
|
label?: string | undefined;
|
|
126
131
|
valueLabels?: string | undefined;
|
|
132
|
+
valueLabelsMap?: Record<string, string> | undefined;
|
|
127
133
|
nullValueLabel?: string | undefined;
|
|
128
134
|
}>;
|
|
129
135
|
valuesMap: z.ZodRecord<z.ZodString, ValueType>;
|
|
@@ -134,6 +140,7 @@ export declare function categoricalAesMappingFromValueSchema<ValueType extends z
|
|
|
134
140
|
format?: string | undefined;
|
|
135
141
|
label?: string | undefined;
|
|
136
142
|
valueLabels?: string | undefined;
|
|
143
|
+
valueLabelsMap?: Record<string, string> | undefined;
|
|
137
144
|
nullValueLabel?: string | undefined;
|
|
138
145
|
};
|
|
139
146
|
valuesMap: Record<string, ValueType["_output"]>;
|
|
@@ -144,6 +151,7 @@ export declare function categoricalAesMappingFromValueSchema<ValueType extends z
|
|
|
144
151
|
format?: string | undefined;
|
|
145
152
|
label?: string | undefined;
|
|
146
153
|
valueLabels?: string | undefined;
|
|
154
|
+
valueLabelsMap?: Record<string, string> | undefined;
|
|
147
155
|
nullValueLabel?: string | undefined;
|
|
148
156
|
};
|
|
149
157
|
valuesMap: Record<string, ValueType["_input"]>;
|
|
@@ -155,6 +163,7 @@ export declare function continuousAesMappingFromValueSchema<ValueType extends z.
|
|
|
155
163
|
format: z.ZodOptional<z.ZodString>;
|
|
156
164
|
label: z.ZodOptional<z.ZodString>;
|
|
157
165
|
valueLabels: z.ZodOptional<z.ZodString>;
|
|
166
|
+
valueLabelsMap: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
158
167
|
nullValueLabel: z.ZodOptional<z.ZodString>;
|
|
159
168
|
}, "strip", z.ZodTypeAny, {
|
|
160
169
|
type: "column";
|
|
@@ -162,6 +171,7 @@ export declare function continuousAesMappingFromValueSchema<ValueType extends z.
|
|
|
162
171
|
format?: string | undefined;
|
|
163
172
|
label?: string | undefined;
|
|
164
173
|
valueLabels?: string | undefined;
|
|
174
|
+
valueLabelsMap?: Record<string, string> | undefined;
|
|
165
175
|
nullValueLabel?: string | undefined;
|
|
166
176
|
}, {
|
|
167
177
|
type: "column";
|
|
@@ -169,6 +179,7 @@ export declare function continuousAesMappingFromValueSchema<ValueType extends z.
|
|
|
169
179
|
format?: string | undefined;
|
|
170
180
|
label?: string | undefined;
|
|
171
181
|
valueLabels?: string | undefined;
|
|
182
|
+
valueLabelsMap?: Record<string, string> | undefined;
|
|
172
183
|
nullValueLabel?: string | undefined;
|
|
173
184
|
}>;
|
|
174
185
|
domain: z.ZodArray<z.ZodNumber, "many">;
|
|
@@ -181,6 +192,7 @@ export declare function continuousAesMappingFromValueSchema<ValueType extends z.
|
|
|
181
192
|
format?: string | undefined;
|
|
182
193
|
label?: string | undefined;
|
|
183
194
|
valueLabels?: string | undefined;
|
|
195
|
+
valueLabelsMap?: Record<string, string> | undefined;
|
|
184
196
|
nullValueLabel?: string | undefined;
|
|
185
197
|
};
|
|
186
198
|
domain: number[];
|
|
@@ -193,6 +205,7 @@ export declare function continuousAesMappingFromValueSchema<ValueType extends z.
|
|
|
193
205
|
format?: string | undefined;
|
|
194
206
|
label?: string | undefined;
|
|
195
207
|
valueLabels?: string | undefined;
|
|
208
|
+
valueLabelsMap?: Record<string, string> | undefined;
|
|
196
209
|
nullValueLabel?: string | undefined;
|
|
197
210
|
};
|
|
198
211
|
domain: number[];
|
|
@@ -209,6 +222,7 @@ export declare const AxisSettingsDiscreteSchema: z.ZodObject<{
|
|
|
209
222
|
format: z.ZodOptional<z.ZodString>;
|
|
210
223
|
label: z.ZodOptional<z.ZodString>;
|
|
211
224
|
valueLabels: z.ZodOptional<z.ZodString>;
|
|
225
|
+
valueLabelsMap: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
212
226
|
nullValueLabel: z.ZodOptional<z.ZodString>;
|
|
213
227
|
}, "strip", z.ZodTypeAny, {
|
|
214
228
|
type: "column";
|
|
@@ -216,6 +230,7 @@ export declare const AxisSettingsDiscreteSchema: z.ZodObject<{
|
|
|
216
230
|
format?: string | undefined;
|
|
217
231
|
label?: string | undefined;
|
|
218
232
|
valueLabels?: string | undefined;
|
|
233
|
+
valueLabelsMap?: Record<string, string> | undefined;
|
|
219
234
|
nullValueLabel?: string | undefined;
|
|
220
235
|
}, {
|
|
221
236
|
type: "column";
|
|
@@ -223,6 +238,7 @@ export declare const AxisSettingsDiscreteSchema: z.ZodObject<{
|
|
|
223
238
|
format?: string | undefined;
|
|
224
239
|
label?: string | undefined;
|
|
225
240
|
valueLabels?: string | undefined;
|
|
241
|
+
valueLabelsMap?: Record<string, string> | undefined;
|
|
226
242
|
nullValueLabel?: string | undefined;
|
|
227
243
|
}>]>>;
|
|
228
244
|
scale: z.ZodOptional<z.ZodLiteral<"discrete">>;
|
|
@@ -241,6 +257,7 @@ export declare const AxisSettingsDiscreteSchema: z.ZodObject<{
|
|
|
241
257
|
format?: string | undefined;
|
|
242
258
|
label?: string | undefined;
|
|
243
259
|
valueLabels?: string | undefined;
|
|
260
|
+
valueLabelsMap?: Record<string, string> | undefined;
|
|
244
261
|
nullValueLabel?: string | undefined;
|
|
245
262
|
} | undefined;
|
|
246
263
|
scale?: "discrete" | undefined;
|
|
@@ -258,6 +275,7 @@ export declare const AxisSettingsDiscreteSchema: z.ZodObject<{
|
|
|
258
275
|
format?: string | undefined;
|
|
259
276
|
label?: string | undefined;
|
|
260
277
|
valueLabels?: string | undefined;
|
|
278
|
+
valueLabelsMap?: Record<string, string> | undefined;
|
|
261
279
|
nullValueLabel?: string | undefined;
|
|
262
280
|
} | undefined;
|
|
263
281
|
scale?: "discrete" | undefined;
|
|
@@ -275,6 +293,7 @@ export declare const AxisSettingsContinuousSchema: z.ZodObject<{
|
|
|
275
293
|
format: z.ZodOptional<z.ZodString>;
|
|
276
294
|
label: z.ZodOptional<z.ZodString>;
|
|
277
295
|
valueLabels: z.ZodOptional<z.ZodString>;
|
|
296
|
+
valueLabelsMap: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
278
297
|
nullValueLabel: z.ZodOptional<z.ZodString>;
|
|
279
298
|
}, "strip", z.ZodTypeAny, {
|
|
280
299
|
type: "column";
|
|
@@ -282,6 +301,7 @@ export declare const AxisSettingsContinuousSchema: z.ZodObject<{
|
|
|
282
301
|
format?: string | undefined;
|
|
283
302
|
label?: string | undefined;
|
|
284
303
|
valueLabels?: string | undefined;
|
|
304
|
+
valueLabelsMap?: Record<string, string> | undefined;
|
|
285
305
|
nullValueLabel?: string | undefined;
|
|
286
306
|
}, {
|
|
287
307
|
type: "column";
|
|
@@ -289,6 +309,7 @@ export declare const AxisSettingsContinuousSchema: z.ZodObject<{
|
|
|
289
309
|
format?: string | undefined;
|
|
290
310
|
label?: string | undefined;
|
|
291
311
|
valueLabels?: string | undefined;
|
|
312
|
+
valueLabelsMap?: Record<string, string> | undefined;
|
|
292
313
|
nullValueLabel?: string | undefined;
|
|
293
314
|
}>]>>;
|
|
294
315
|
scale: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"linear">, z.ZodLiteral<"log">]>>;
|
|
@@ -307,6 +328,7 @@ export declare const AxisSettingsContinuousSchema: z.ZodObject<{
|
|
|
307
328
|
format?: string | undefined;
|
|
308
329
|
label?: string | undefined;
|
|
309
330
|
valueLabels?: string | undefined;
|
|
331
|
+
valueLabelsMap?: Record<string, string> | undefined;
|
|
310
332
|
nullValueLabel?: string | undefined;
|
|
311
333
|
} | undefined;
|
|
312
334
|
scale?: "linear" | "log" | undefined;
|
|
@@ -325,6 +347,7 @@ export declare const AxisSettingsContinuousSchema: z.ZodObject<{
|
|
|
325
347
|
format?: string | undefined;
|
|
326
348
|
label?: string | undefined;
|
|
327
349
|
valueLabels?: string | undefined;
|
|
350
|
+
valueLabelsMap?: Record<string, string> | undefined;
|
|
328
351
|
nullValueLabel?: string | undefined;
|
|
329
352
|
} | undefined;
|
|
330
353
|
scale?: "linear" | "log" | undefined;
|
|
@@ -344,6 +367,7 @@ export declare const AxisSettingsSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
344
367
|
format: z.ZodOptional<z.ZodString>;
|
|
345
368
|
label: z.ZodOptional<z.ZodString>;
|
|
346
369
|
valueLabels: z.ZodOptional<z.ZodString>;
|
|
370
|
+
valueLabelsMap: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
347
371
|
nullValueLabel: z.ZodOptional<z.ZodString>;
|
|
348
372
|
}, "strip", z.ZodTypeAny, {
|
|
349
373
|
type: "column";
|
|
@@ -351,6 +375,7 @@ export declare const AxisSettingsSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
351
375
|
format?: string | undefined;
|
|
352
376
|
label?: string | undefined;
|
|
353
377
|
valueLabels?: string | undefined;
|
|
378
|
+
valueLabelsMap?: Record<string, string> | undefined;
|
|
354
379
|
nullValueLabel?: string | undefined;
|
|
355
380
|
}, {
|
|
356
381
|
type: "column";
|
|
@@ -358,6 +383,7 @@ export declare const AxisSettingsSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
358
383
|
format?: string | undefined;
|
|
359
384
|
label?: string | undefined;
|
|
360
385
|
valueLabels?: string | undefined;
|
|
386
|
+
valueLabelsMap?: Record<string, string> | undefined;
|
|
361
387
|
nullValueLabel?: string | undefined;
|
|
362
388
|
}>]>>;
|
|
363
389
|
scale: z.ZodOptional<z.ZodLiteral<"discrete">>;
|
|
@@ -376,6 +402,7 @@ export declare const AxisSettingsSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
376
402
|
format?: string | undefined;
|
|
377
403
|
label?: string | undefined;
|
|
378
404
|
valueLabels?: string | undefined;
|
|
405
|
+
valueLabelsMap?: Record<string, string> | undefined;
|
|
379
406
|
nullValueLabel?: string | undefined;
|
|
380
407
|
} | undefined;
|
|
381
408
|
scale?: "discrete" | undefined;
|
|
@@ -393,6 +420,7 @@ export declare const AxisSettingsSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
393
420
|
format?: string | undefined;
|
|
394
421
|
label?: string | undefined;
|
|
395
422
|
valueLabels?: string | undefined;
|
|
423
|
+
valueLabelsMap?: Record<string, string> | undefined;
|
|
396
424
|
nullValueLabel?: string | undefined;
|
|
397
425
|
} | undefined;
|
|
398
426
|
scale?: "discrete" | undefined;
|
|
@@ -409,6 +437,7 @@ export declare const AxisSettingsSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
409
437
|
format: z.ZodOptional<z.ZodString>;
|
|
410
438
|
label: z.ZodOptional<z.ZodString>;
|
|
411
439
|
valueLabels: z.ZodOptional<z.ZodString>;
|
|
440
|
+
valueLabelsMap: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
412
441
|
nullValueLabel: z.ZodOptional<z.ZodString>;
|
|
413
442
|
}, "strip", z.ZodTypeAny, {
|
|
414
443
|
type: "column";
|
|
@@ -416,6 +445,7 @@ export declare const AxisSettingsSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
416
445
|
format?: string | undefined;
|
|
417
446
|
label?: string | undefined;
|
|
418
447
|
valueLabels?: string | undefined;
|
|
448
|
+
valueLabelsMap?: Record<string, string> | undefined;
|
|
419
449
|
nullValueLabel?: string | undefined;
|
|
420
450
|
}, {
|
|
421
451
|
type: "column";
|
|
@@ -423,6 +453,7 @@ export declare const AxisSettingsSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
423
453
|
format?: string | undefined;
|
|
424
454
|
label?: string | undefined;
|
|
425
455
|
valueLabels?: string | undefined;
|
|
456
|
+
valueLabelsMap?: Record<string, string> | undefined;
|
|
426
457
|
nullValueLabel?: string | undefined;
|
|
427
458
|
}>]>>;
|
|
428
459
|
scale: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"linear">, z.ZodLiteral<"log">]>>;
|
|
@@ -441,6 +472,7 @@ export declare const AxisSettingsSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
441
472
|
format?: string | undefined;
|
|
442
473
|
label?: string | undefined;
|
|
443
474
|
valueLabels?: string | undefined;
|
|
475
|
+
valueLabelsMap?: Record<string, string> | undefined;
|
|
444
476
|
nullValueLabel?: string | undefined;
|
|
445
477
|
} | undefined;
|
|
446
478
|
scale?: "linear" | "log" | undefined;
|
|
@@ -459,6 +491,7 @@ export declare const AxisSettingsSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
459
491
|
format?: string | undefined;
|
|
460
492
|
label?: string | undefined;
|
|
461
493
|
valueLabels?: string | undefined;
|
|
494
|
+
valueLabelsMap?: Record<string, string> | undefined;
|
|
462
495
|
nullValueLabel?: string | undefined;
|
|
463
496
|
} | undefined;
|
|
464
497
|
scale?: "linear" | "log" | undefined;
|
|
@@ -483,6 +516,7 @@ export declare const TooltipSettingsSchema: z.ZodObject<{
|
|
|
483
516
|
format: z.ZodOptional<z.ZodString>;
|
|
484
517
|
label: z.ZodOptional<z.ZodString>;
|
|
485
518
|
valueLabels: z.ZodOptional<z.ZodString>;
|
|
519
|
+
valueLabelsMap: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
486
520
|
nullValueLabel: z.ZodOptional<z.ZodString>;
|
|
487
521
|
}, "strip", z.ZodTypeAny, {
|
|
488
522
|
type: "column";
|
|
@@ -490,6 +524,7 @@ export declare const TooltipSettingsSchema: z.ZodObject<{
|
|
|
490
524
|
format?: string | undefined;
|
|
491
525
|
label?: string | undefined;
|
|
492
526
|
valueLabels?: string | undefined;
|
|
527
|
+
valueLabelsMap?: Record<string, string> | undefined;
|
|
493
528
|
nullValueLabel?: string | undefined;
|
|
494
529
|
}, {
|
|
495
530
|
type: "column";
|
|
@@ -497,6 +532,7 @@ export declare const TooltipSettingsSchema: z.ZodObject<{
|
|
|
497
532
|
format?: string | undefined;
|
|
498
533
|
label?: string | undefined;
|
|
499
534
|
valueLabels?: string | undefined;
|
|
535
|
+
valueLabelsMap?: Record<string, string> | undefined;
|
|
500
536
|
nullValueLabel?: string | undefined;
|
|
501
537
|
}>, "many">>;
|
|
502
538
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -507,6 +543,7 @@ export declare const TooltipSettingsSchema: z.ZodObject<{
|
|
|
507
543
|
format?: string | undefined;
|
|
508
544
|
label?: string | undefined;
|
|
509
545
|
valueLabels?: string | undefined;
|
|
546
|
+
valueLabelsMap?: Record<string, string> | undefined;
|
|
510
547
|
nullValueLabel?: string | undefined;
|
|
511
548
|
}[] | undefined;
|
|
512
549
|
}, {
|
|
@@ -517,6 +554,7 @@ export declare const TooltipSettingsSchema: z.ZodObject<{
|
|
|
517
554
|
format?: string | undefined;
|
|
518
555
|
label?: string | undefined;
|
|
519
556
|
valueLabels?: string | undefined;
|
|
557
|
+
valueLabelsMap?: Record<string, string> | undefined;
|
|
520
558
|
nullValueLabel?: string | undefined;
|
|
521
559
|
}[] | undefined;
|
|
522
560
|
}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../src/types/common.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EAAE,kBAAkB,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAC;AAC7E,OAAO,KAAK,EAAE,wBAAwB,EAAE,uBAAuB,EAAE,MAAM,eAAe,CAAC;AAEvF,MAAM,MAAM,SAAS,GAAG,MAAM,GAAG,MAAM,GAAG,IAAI,CAAC;AAC/C,MAAM,MAAM,QAAQ,GAAG,MAAM,CAAC;AAC9B,eAAO,MAAM,eAAe,mDAA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MAAM,CAAC;QAChB,KAAK,EAAE,MAAM,GAAG,SAAS,CAAC;KAC7B,CAAC;CACL;AACD,MAAM,MAAM,SAAS,GAAG,eAAe,GAAG,sBAAsB,GAAG,wBAAwB,GAAG,2BAA2B,GAAG,2BAA2B,GAAG,wBAAwB,GAAG,gBAAgB,CAAC;AACtM,wBAAgB,WAAW,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,SAAS,CAE9D;AACD,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,KAAK,GAAG,gBAAgB,CAQlE"}
|
package/dist/types/common.js
CHANGED
|
@@ -63,6 +63,7 @@ const t = e.union([
|
|
|
63
63
|
format: e.optional(e.string()),
|
|
64
64
|
label: e.optional(e.string()),
|
|
65
65
|
valueLabels: e.optional(e.string()),
|
|
66
|
+
valueLabelsMap: e.optional(e.record(e.string())),
|
|
66
67
|
nullValueLabel: e.optional(e.string())
|
|
67
68
|
}), d = e.object({
|
|
68
69
|
fillColor: e.optional(e.string()),
|
package/dist/types/common.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"common.js","names":[],"sources":["../../src/types/common.ts"],"sourcesContent":["import { z } from 'zod';\nimport type { LassoControlsState, Polygon } from '../scatterplot-umap/types';\nimport type { CategoricalAesFromColumn, ContinuousAesFromColumn } from './scatterplot';\n\nexport type DataValue = string | number | null;\nexport type Category = string;\nexport const DataValueSchema = z.union([z.string(), z.number(), z.null()]);\n\nexport type Row = Record<string, DataValue>\n\nexport type Color = string;\n\nexport const AggregationMethodSchema = z.enum(['sum', 'mean', 'median', 'min', 'max']);\nexport type AggregationMethod = z.infer<typeof AggregationMethodSchema>;\n\n// numbered according ggplot2 symbols, 19 (third size of black circle) is missed\nexport const POINT_SHAPE = [\n '0',\n '1',\n '2',\n '3',\n '4',\n '5',\n '6',\n '7',\n '8',\n '9',\n '10',\n '11',\n '12',\n '13',\n '14',\n '15',\n '16',\n '17',\n '18',\n '20',\n '21',\n '22',\n '23',\n '24',\n '25',\n] as const;\nexport const PointShapeSchema = z.enum(POINT_SHAPE);\nexport type PointShape = z.infer<typeof PointShapeSchema>;\n\nconst LINE_SHAPE = ['solid', 'dashed', 'dotted', 'dotdash', 'longdash', 'twodash'] as const;\nexport const LineShapeSchema = z.enum(LINE_SHAPE);\nexport type LineShape = z.infer<typeof LineShapeSchema>;\n\nconst FRAME_TYPE = ['left', 'bottom', 'left-bottom', 'full', 'empty'] as const;\nexport const FrameTypeSchema = z.enum(FRAME_TYPE);\nexport type FrameType = z.infer<typeof FrameTypeSchema>;\n\nconst LEGEND_POSITION = ['inside', 'right', 'top', 'bottom'] as const;\nexport const LegendPositionSchema = z.enum(LEGEND_POSITION);\nexport type LegendPosition = z.infer<typeof LegendPositionSchema>;\n\nexport const TITLE_POSITION = ['left', 'center', 'right'] as const;\nexport const TitlePositionSchema = z.enum(TITLE_POSITION);\nexport type TitlePosition = z.infer<typeof TitlePositionSchema>;\n\nexport const ColumnNameSchema = z.object({\n type: z.literal('column'),\n value: z.string(),\n format: z.optional(z.string()), // d3 format\n label: z.optional(z.string()),\n valueLabels: z.optional(z.string()),\n nullValueLabel: z.optional(z.string())\n});\nexport type ColumnName = z.infer<typeof ColumnNameSchema>\n\nexport type AesItem = {\n fillColor?: Color;\n lineColor?: Color;\n lineWidth?: number;\n lineShape?: LineShape;\n dotShape?: PointShape;\n dotSize?: number;\n dotFill?: Color;\n};\nexport const AesItemSchema = z.object({\n fillColor: z.optional(z.string()),\n lineColor: z.optional(z.string()),\n lineWidth: z.optional(z.number()),\n lineShape: z.optional(LineShapeSchema),\n dotShape: z.optional(PointShapeSchema),\n dotSize: z.optional(z.number()),\n dotFill: z.optional(z.string()),\n});\n\nexport const AesRecordSchema = z.record(AesItemSchema);\nexport type AesRecord = z.infer<typeof AesRecordSchema>;\n\nexport function categoricalAesMappingFromValueSchema<ValueType extends z.ZodTypeAny>(\n valueSchema: ValueType,\n) {\n return z.object({\n columnName: ColumnNameSchema,\n valuesMap: z.record(valueSchema),\n });\n}\nexport function continuousAesMappingFromValueSchema<ValueType extends z.ZodTypeAny>(\n valueSchema: ValueType,\n) {\n return z.object({\n columnName: ColumnNameSchema,\n domain: z.array(z.number()),\n range: z.array(valueSchema),\n type: z.optional(z.union([z.literal('linear'), z.literal('log')]))\n });\n}\n\nexport function isCategoricalAes<InputType extends string | number | PointShape | LineShape>(\n item: InputType | CategoricalAesFromColumn<InputType> | ContinuousAesFromColumn<InputType> | unknown\n): item is CategoricalAesFromColumn<InputType> {\n if (typeof item !== 'object') {\n return false;\n }\n return item !== null && 'valuesMap' in item;\n}\n\nexport function isContinuousAes<InputType extends string | number | PointShape | LineShape>(\n item: InputType | CategoricalAesFromColumn<InputType> | ContinuousAesFromColumn<InputType> | unknown\n): item is ContinuousAesFromColumn<InputType> {\n if (typeof item !== 'object') {\n return false;\n }\n return item !== null && 'domain' in item && 'range' in item;\n}\n\nexport const DiscreteLabelsPositionSchema = z.union([z.literal('center'), z.literal('45deg'), z.literal('90deg')]);\n\nexport const AxisSettingsDiscreteSchema = z.object({\n title: z.optional(z.union([z.string(), ColumnNameSchema])),\n scale: z.optional(z.literal('discrete')),\n keys: z.optional(z.array(z.union([z.string(), z.number()]))),\n labels: z.optional(z.record(z.string())),\n showGrid: z.optional(z.boolean()),\n linesBetweenCategories: z.optional(z.boolean()),\n showTicks: z.optional(z.boolean()),\n labelsPosition: z.optional(DiscreteLabelsPositionSchema),\n hiddenLabels: z.optional(z.boolean())\n});\nexport const AxisSettingsContinuousSchema = z.object({\n title: z.optional(z.union([z.string(), ColumnNameSchema])),\n scale: z.optional(z.union([z.literal('linear'), z.literal('log')])),\n showGrid: z.optional(z.boolean()),\n showTicks: z.optional(z.boolean()),\n significantLines: z.optional(z.array(z.number())),\n significantLinesStyle: z.optional(LineShapeSchema),\n symmetricRange: z.optional(z.number()),\n upperValue: z.optional(z.number()),\n lowerValue: z.optional(z.number()),\n hiddenLabels: z.optional(z.boolean()),\n});\n\nexport const AxisSettingsSchema = z.union([AxisSettingsDiscreteSchema, AxisSettingsContinuousSchema]);\n\nexport type AxisSettings = z.infer<typeof AxisSettingsSchema>\nexport type AxisSettingsDiscrete = z.infer<typeof AxisSettingsDiscreteSchema>;\nexport type AxisSettingsContinuous = z.infer<typeof AxisSettingsContinuousSchema>;\n\nexport type DiscreteLabelsPosition = z.infer<typeof DiscreteLabelsPositionSchema>;\n\nexport const TooltipSettingsSchema = z.object({\n show: z.optional(z.boolean()),\n content: z.optional(z.array(ColumnNameSchema)),\n});\n\nexport type TooltipSettings = z.infer<typeof TooltipSettingsSchema>;\n\nexport interface SettingsInterface {\n type: string;\n}\n\nexport type ClickEventData = {\n x: number;\n y: number;\n info: unknown;\n}\n\nexport type PolygonData = [number, number][];\n\nexport type ChartEventHandlers<T> = T;\nexport type DendroEventHandlers = ChartEventHandlers<[(d: ClickEventData) => void]>\nexport type ScatterplotEventHandlers = ChartEventHandlers<{\n onPolygonUpdate: (d: number[], p: Polygon[]) => void;\n onTooltipHintSwitch: (d: boolean) => void;\n onLassoStateChange: () => void;\n onLassoControlsStateUpdate: (v: LassoControlsState) => void;\n onZoomChange: (isZoomChanged: boolean) => void;\n}>\nexport type HeatmapEventHandlers = ChartEventHandlers<{\n onTooltipHintSwitch: (d: boolean) => void;\n onLoadingChange: (d: boolean) => void;\n}>\n\nexport type BubbleEventHandlers = ChartEventHandlers<[(d: boolean) => void]>\nexport type DiscreteEventHandlers = ChartEventHandlers<[(d: boolean) => void]>\nexport type HistogramEventHandlers = ChartEventHandlers<[(d: boolean) => void]>\n\nexport type ErrorTypes = 'tooManyFacets' \n| 'tooManyPrimaryGroups' | 'tooManySecondaryGroups'\n| 'tooManyScatterplotGroupsX' | 'tooManyScatterplotGroupsY'\n| 'tooManyHistogramGroups'\n| 'unknownError';\ntype ErrorInfoBase = { type: ErrorTypes, info: unknown };\nexport interface ErrorInfoFacets extends ErrorInfoBase {\n type: 'tooManyFacets';\n info: {\n count: number;\n maxCount: number;\n };\n}\nexport interface ErrorInfoPrimaryGroups extends ErrorInfoBase {\n type: 'tooManyPrimaryGroups';\n info: {\n count: number;\n maxCount: number;\n };\n}\nexport interface ErrorInfoSecondaryGroups extends ErrorInfoBase {\n type: 'tooManySecondaryGroups';\n info: {\n count: number;\n maxCount: number;\n };\n}\n\nexport interface ErrorInfoScatterplotGroupsX extends ErrorInfoBase {\n type: 'tooManyScatterplotGroupsX';\n info: {\n count: number;\n maxCount: number;\n };\n}\nexport interface ErrorInfoScatterplotGroupsY extends ErrorInfoBase {\n type: 'tooManyScatterplotGroupsY';\n info: {\n count: number;\n maxCount: number;\n };\n}\nexport interface ErrorInfoHistogramGroups extends ErrorInfoBase {\n type: 'tooManyHistogramGroups';\n info: {\n count: number;\n maxCount: number;\n };\n}\nexport interface ErrorInfoUnknown extends ErrorInfoBase {\n type: 'unknownError';\n info: {\n message: string;\n stack: string | undefined;\n };\n}\nexport type ErrorInfo = ErrorInfoFacets | ErrorInfoPrimaryGroups | ErrorInfoSecondaryGroups | ErrorInfoScatterplotGroupsX | ErrorInfoScatterplotGroupsY | ErrorInfoHistogramGroups | ErrorInfoUnknown;\nexport function isErrorInfo(value: unknown): value is ErrorInfo {\n return typeof value === 'object' && value !== null && 'type' in value && 'info' in value;\n}\nexport function getUnknownErrorInfo(error: Error): ErrorInfoUnknown {\n return {\n type: 'unknownError',\n info: {\n message: error.message,\n stack: error.stack,\n },\n };\n}"],"mappings":";AAMA,MAAa,IAAkB,EAAE,MAAM;CAAC,EAAE,QAAQ;CAAE,EAAE,QAAQ;CAAE,EAAE,MAAM;CAAC,CAAC,EAM7D,IAA0B,EAAE,KAAK;CAAC;CAAO;CAAQ;CAAU;CAAO;CAAM,CAAC,EAIzE,IAAc;CACvB;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACH,EACY,IAAmB,EAAE,KAAK,EAAY,EAItC,IAAkB,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uBAAuB,EAAE,SAAS,EAAgB;CAClD,gBAAgB,EAAE,SAAS,EAAE,QAAQ,CAAC;CACtC,YAAY,EAAE,SAAS,EAAE,QAAQ,CAAC;CAClC,YAAY,EAAE,SAAS,EAAE,QAAQ,CAAC;CAClC,cAAc,EAAE,SAAS,EAAE,SAAS,CAAC;CACxC,CAAC,EAEW,IAAqB,EAAE,MAAM,CAAC,GAA4B,EAA6B,CAAC,EAQxF,IAAwB,EAAE,OAAO;CAC1C,MAAM,EAAE,SAAS,EAAE,SAAS,CAAC;CAC7B,SAAS,EAAE,SAAS,EAAE,MAAM,EAAiB,CAAC;CACjD,CAAC;AA2FF,SAAgB,EAAY,GAAoC;AAC5D,QAAO,OAAO,KAAU,cAAY,KAAkB,UAAU,KAAS,UAAU;;AAEvF,SAAgB,EAAoB,GAAgC;AAChE,QAAO;EACH,MAAM;EACN,MAAM;GACF,SAAS,EAAM;GACf,OAAO,EAAM;GAChB;EACJ"}
|
|
1
|
+
{"version":3,"file":"common.js","names":[],"sources":["../../src/types/common.ts"],"sourcesContent":["import { z } from 'zod';\nimport type { LassoControlsState, Polygon } from '../scatterplot-umap/types';\nimport type { CategoricalAesFromColumn, ContinuousAesFromColumn } from './scatterplot';\n\nexport type DataValue = string | number | null;\nexport type Category = string;\nexport const DataValueSchema = z.union([z.string(), z.number(), z.null()]);\n\nexport type Row = Record<string, DataValue>\n\nexport type Color = string;\n\nexport const AggregationMethodSchema = z.enum(['sum', 'mean', 'median', 'min', 'max']);\nexport type AggregationMethod = z.infer<typeof AggregationMethodSchema>;\n\n// numbered according ggplot2 symbols, 19 (third size of black circle) is missed\nexport const POINT_SHAPE = [\n '0',\n '1',\n '2',\n '3',\n '4',\n '5',\n '6',\n '7',\n '8',\n '9',\n '10',\n '11',\n '12',\n '13',\n '14',\n '15',\n '16',\n '17',\n '18',\n '20',\n '21',\n '22',\n '23',\n '24',\n '25',\n] as const;\nexport const PointShapeSchema = z.enum(POINT_SHAPE);\nexport type PointShape = z.infer<typeof PointShapeSchema>;\n\nconst LINE_SHAPE = ['solid', 'dashed', 'dotted', 'dotdash', 'longdash', 'twodash'] as const;\nexport const LineShapeSchema = z.enum(LINE_SHAPE);\nexport type LineShape = z.infer<typeof LineShapeSchema>;\n\nconst FRAME_TYPE = ['left', 'bottom', 'left-bottom', 'full', 'empty'] as const;\nexport const FrameTypeSchema = z.enum(FRAME_TYPE);\nexport type FrameType = z.infer<typeof FrameTypeSchema>;\n\nconst LEGEND_POSITION = ['inside', 'right', 'top', 'bottom'] as const;\nexport const LegendPositionSchema = z.enum(LEGEND_POSITION);\nexport type LegendPosition = z.infer<typeof LegendPositionSchema>;\n\nexport const TITLE_POSITION = ['left', 'center', 'right'] as const;\nexport const TitlePositionSchema = z.enum(TITLE_POSITION);\nexport type TitlePosition = z.infer<typeof TitlePositionSchema>;\n\nexport const ColumnNameSchema = z.object({\n type: z.literal('column'),\n value: z.string(),\n format: z.optional(z.string()), // d3 format\n label: z.optional(z.string()),\n // Column id of a sibling labels column in the same DataFrame. Per-row\n // lookup via `data.getColumnValue(valueLabels, rowIdx)`.\n valueLabels: z.optional(z.string()),\n // Authoritative value -> display label map sourced from the column spec's\n // `pl7.app/valueLabels` annotation. Use when the value space is finite and\n // labels must exist independent of the data rows (e.g. selection stages\n // that may have eliminated zero rows).\n valueLabelsMap: z.optional(z.record(z.string())),\n nullValueLabel: z.optional(z.string())\n});\nexport type ColumnName = z.infer<typeof ColumnNameSchema>\n\nexport type AesItem = {\n fillColor?: Color;\n lineColor?: Color;\n lineWidth?: number;\n lineShape?: LineShape;\n dotShape?: PointShape;\n dotSize?: number;\n dotFill?: Color;\n};\nexport const AesItemSchema = z.object({\n fillColor: z.optional(z.string()),\n lineColor: z.optional(z.string()),\n lineWidth: z.optional(z.number()),\n lineShape: z.optional(LineShapeSchema),\n dotShape: z.optional(PointShapeSchema),\n dotSize: z.optional(z.number()),\n dotFill: z.optional(z.string()),\n});\n\nexport const AesRecordSchema = z.record(AesItemSchema);\nexport type AesRecord = z.infer<typeof AesRecordSchema>;\n\nexport function categoricalAesMappingFromValueSchema<ValueType extends z.ZodTypeAny>(\n valueSchema: ValueType,\n) {\n return z.object({\n columnName: ColumnNameSchema,\n valuesMap: z.record(valueSchema),\n });\n}\nexport function continuousAesMappingFromValueSchema<ValueType extends z.ZodTypeAny>(\n valueSchema: ValueType,\n) {\n return z.object({\n columnName: ColumnNameSchema,\n domain: z.array(z.number()),\n range: z.array(valueSchema),\n type: z.optional(z.union([z.literal('linear'), z.literal('log')]))\n });\n}\n\nexport function isCategoricalAes<InputType extends string | number | PointShape | LineShape>(\n item: InputType | CategoricalAesFromColumn<InputType> | ContinuousAesFromColumn<InputType> | unknown\n): item is CategoricalAesFromColumn<InputType> {\n if (typeof item !== 'object') {\n return false;\n }\n return item !== null && 'valuesMap' in item;\n}\n\nexport function isContinuousAes<InputType extends string | number | PointShape | LineShape>(\n item: InputType | CategoricalAesFromColumn<InputType> | ContinuousAesFromColumn<InputType> | unknown\n): item is ContinuousAesFromColumn<InputType> {\n if (typeof item !== 'object') {\n return false;\n }\n return item !== null && 'domain' in item && 'range' in item;\n}\n\nexport const DiscreteLabelsPositionSchema = z.union([z.literal('center'), z.literal('45deg'), z.literal('90deg')]);\n\nexport const AxisSettingsDiscreteSchema = z.object({\n title: z.optional(z.union([z.string(), ColumnNameSchema])),\n scale: z.optional(z.literal('discrete')),\n keys: z.optional(z.array(z.union([z.string(), z.number()]))),\n labels: z.optional(z.record(z.string())),\n showGrid: z.optional(z.boolean()),\n linesBetweenCategories: z.optional(z.boolean()),\n showTicks: z.optional(z.boolean()),\n labelsPosition: z.optional(DiscreteLabelsPositionSchema),\n hiddenLabels: z.optional(z.boolean())\n});\nexport const AxisSettingsContinuousSchema = z.object({\n title: z.optional(z.union([z.string(), ColumnNameSchema])),\n scale: z.optional(z.union([z.literal('linear'), z.literal('log')])),\n showGrid: z.optional(z.boolean()),\n showTicks: z.optional(z.boolean()),\n significantLines: z.optional(z.array(z.number())),\n significantLinesStyle: z.optional(LineShapeSchema),\n symmetricRange: z.optional(z.number()),\n upperValue: z.optional(z.number()),\n lowerValue: z.optional(z.number()),\n hiddenLabels: z.optional(z.boolean()),\n});\n\nexport const AxisSettingsSchema = z.union([AxisSettingsDiscreteSchema, AxisSettingsContinuousSchema]);\n\nexport type AxisSettings = z.infer<typeof AxisSettingsSchema>\nexport type AxisSettingsDiscrete = z.infer<typeof AxisSettingsDiscreteSchema>;\nexport type AxisSettingsContinuous = z.infer<typeof AxisSettingsContinuousSchema>;\n\nexport type DiscreteLabelsPosition = z.infer<typeof DiscreteLabelsPositionSchema>;\n\nexport const TooltipSettingsSchema = z.object({\n show: z.optional(z.boolean()),\n content: z.optional(z.array(ColumnNameSchema)),\n});\n\nexport type TooltipSettings = z.infer<typeof TooltipSettingsSchema>;\n\nexport interface SettingsInterface {\n type: string;\n}\n\nexport type ClickEventData = {\n x: number;\n y: number;\n info: unknown;\n}\n\nexport type PolygonData = [number, number][];\n\nexport type ChartEventHandlers<T> = T;\nexport type DendroEventHandlers = ChartEventHandlers<[(d: ClickEventData) => void]>\nexport type ScatterplotEventHandlers = ChartEventHandlers<{\n onPolygonUpdate: (d: number[], p: Polygon[]) => void;\n onTooltipHintSwitch: (d: boolean) => void;\n onLassoStateChange: () => void;\n onLassoControlsStateUpdate: (v: LassoControlsState) => void;\n onZoomChange: (isZoomChanged: boolean) => void;\n}>\nexport type HeatmapEventHandlers = ChartEventHandlers<{\n onTooltipHintSwitch: (d: boolean) => void;\n onLoadingChange: (d: boolean) => void;\n}>\n\nexport type BubbleEventHandlers = ChartEventHandlers<[(d: boolean) => void]>\nexport type DiscreteEventHandlers = ChartEventHandlers<[(d: boolean) => void]>\nexport type HistogramEventHandlers = ChartEventHandlers<[(d: boolean) => void]>\n\nexport type ErrorTypes = 'tooManyFacets' \n| 'tooManyPrimaryGroups' | 'tooManySecondaryGroups'\n| 'tooManyScatterplotGroupsX' | 'tooManyScatterplotGroupsY'\n| 'tooManyHistogramGroups'\n| 'unknownError';\ntype ErrorInfoBase = { type: ErrorTypes, info: unknown };\nexport interface ErrorInfoFacets extends ErrorInfoBase {\n type: 'tooManyFacets';\n info: {\n count: number;\n maxCount: number;\n };\n}\nexport interface ErrorInfoPrimaryGroups extends ErrorInfoBase {\n type: 'tooManyPrimaryGroups';\n info: {\n count: number;\n maxCount: number;\n };\n}\nexport interface ErrorInfoSecondaryGroups extends ErrorInfoBase {\n type: 'tooManySecondaryGroups';\n info: {\n count: number;\n maxCount: number;\n };\n}\n\nexport interface ErrorInfoScatterplotGroupsX extends ErrorInfoBase {\n type: 'tooManyScatterplotGroupsX';\n info: {\n count: number;\n maxCount: number;\n };\n}\nexport interface ErrorInfoScatterplotGroupsY extends ErrorInfoBase {\n type: 'tooManyScatterplotGroupsY';\n info: {\n count: number;\n maxCount: number;\n };\n}\nexport interface ErrorInfoHistogramGroups extends ErrorInfoBase {\n type: 'tooManyHistogramGroups';\n info: {\n count: number;\n maxCount: number;\n };\n}\nexport interface ErrorInfoUnknown extends ErrorInfoBase {\n type: 'unknownError';\n info: {\n message: string;\n stack: string | undefined;\n };\n}\nexport type ErrorInfo = ErrorInfoFacets | ErrorInfoPrimaryGroups | ErrorInfoSecondaryGroups | ErrorInfoScatterplotGroupsX | ErrorInfoScatterplotGroupsY | ErrorInfoHistogramGroups | ErrorInfoUnknown;\nexport function isErrorInfo(value: unknown): value is ErrorInfo {\n return typeof value === 'object' && value !== null && 'type' in value && 'info' in value;\n}\nexport function getUnknownErrorInfo(error: Error): ErrorInfoUnknown {\n return {\n type: 'unknownError',\n info: {\n message: error.message,\n stack: error.stack,\n },\n };\n}"],"mappings":";AAMA,MAAa,IAAkB,EAAE,MAAM;CAAC,EAAE,QAAQ;CAAE,EAAE,QAAQ;CAAE,EAAE,MAAM;CAAC,CAAC,EAM7D,IAA0B,EAAE,KAAK;CAAC;CAAO;CAAQ;CAAU;CAAO;CAAM,CAAC,EAIzE,IAAc;CACvB;CACA;CACA;CACA;CACA;CAC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