@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/bubble.d.ts
CHANGED
|
@@ -63,6 +63,7 @@ export declare const BubblesSettingsSchema: z.ZodObject<{
|
|
|
63
63
|
format: z.ZodOptional<z.ZodString>;
|
|
64
64
|
label: z.ZodOptional<z.ZodString>;
|
|
65
65
|
valueLabels: z.ZodOptional<z.ZodString>;
|
|
66
|
+
valueLabelsMap: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
66
67
|
nullValueLabel: z.ZodOptional<z.ZodString>;
|
|
67
68
|
}, "strip", z.ZodTypeAny, {
|
|
68
69
|
type: "column";
|
|
@@ -70,6 +71,7 @@ export declare const BubblesSettingsSchema: z.ZodObject<{
|
|
|
70
71
|
format?: string | undefined;
|
|
71
72
|
label?: string | undefined;
|
|
72
73
|
valueLabels?: string | undefined;
|
|
74
|
+
valueLabelsMap?: Record<string, string> | undefined;
|
|
73
75
|
nullValueLabel?: string | undefined;
|
|
74
76
|
}, {
|
|
75
77
|
type: "column";
|
|
@@ -77,6 +79,7 @@ export declare const BubblesSettingsSchema: z.ZodObject<{
|
|
|
77
79
|
format?: string | undefined;
|
|
78
80
|
label?: string | undefined;
|
|
79
81
|
valueLabels?: string | undefined;
|
|
82
|
+
valueLabelsMap?: Record<string, string> | undefined;
|
|
80
83
|
nullValueLabel?: string | undefined;
|
|
81
84
|
}>;
|
|
82
85
|
valueColor: z.ZodObject<{
|
|
@@ -85,6 +88,7 @@ export declare const BubblesSettingsSchema: z.ZodObject<{
|
|
|
85
88
|
format: z.ZodOptional<z.ZodString>;
|
|
86
89
|
label: z.ZodOptional<z.ZodString>;
|
|
87
90
|
valueLabels: z.ZodOptional<z.ZodString>;
|
|
91
|
+
valueLabelsMap: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
88
92
|
nullValueLabel: z.ZodOptional<z.ZodString>;
|
|
89
93
|
}, "strip", z.ZodTypeAny, {
|
|
90
94
|
type: "column";
|
|
@@ -92,6 +96,7 @@ export declare const BubblesSettingsSchema: z.ZodObject<{
|
|
|
92
96
|
format?: string | undefined;
|
|
93
97
|
label?: string | undefined;
|
|
94
98
|
valueLabels?: string | undefined;
|
|
99
|
+
valueLabelsMap?: Record<string, string> | undefined;
|
|
95
100
|
nullValueLabel?: string | undefined;
|
|
96
101
|
}, {
|
|
97
102
|
type: "column";
|
|
@@ -99,6 +104,7 @@ export declare const BubblesSettingsSchema: z.ZodObject<{
|
|
|
99
104
|
format?: string | undefined;
|
|
100
105
|
label?: string | undefined;
|
|
101
106
|
valueLabels?: string | undefined;
|
|
107
|
+
valueLabelsMap?: Record<string, string> | undefined;
|
|
102
108
|
nullValueLabel?: string | undefined;
|
|
103
109
|
}>;
|
|
104
110
|
xColumn: z.ZodObject<{
|
|
@@ -107,6 +113,7 @@ export declare const BubblesSettingsSchema: z.ZodObject<{
|
|
|
107
113
|
format: z.ZodOptional<z.ZodString>;
|
|
108
114
|
label: z.ZodOptional<z.ZodString>;
|
|
109
115
|
valueLabels: z.ZodOptional<z.ZodString>;
|
|
116
|
+
valueLabelsMap: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
110
117
|
nullValueLabel: z.ZodOptional<z.ZodString>;
|
|
111
118
|
}, "strip", z.ZodTypeAny, {
|
|
112
119
|
type: "column";
|
|
@@ -114,6 +121,7 @@ export declare const BubblesSettingsSchema: z.ZodObject<{
|
|
|
114
121
|
format?: string | undefined;
|
|
115
122
|
label?: string | undefined;
|
|
116
123
|
valueLabels?: string | undefined;
|
|
124
|
+
valueLabelsMap?: Record<string, string> | undefined;
|
|
117
125
|
nullValueLabel?: string | undefined;
|
|
118
126
|
}, {
|
|
119
127
|
type: "column";
|
|
@@ -121,6 +129,7 @@ export declare const BubblesSettingsSchema: z.ZodObject<{
|
|
|
121
129
|
format?: string | undefined;
|
|
122
130
|
label?: string | undefined;
|
|
123
131
|
valueLabels?: string | undefined;
|
|
132
|
+
valueLabelsMap?: Record<string, string> | undefined;
|
|
124
133
|
nullValueLabel?: string | undefined;
|
|
125
134
|
}>;
|
|
126
135
|
yColumn: z.ZodObject<{
|
|
@@ -129,6 +138,7 @@ export declare const BubblesSettingsSchema: z.ZodObject<{
|
|
|
129
138
|
format: z.ZodOptional<z.ZodString>;
|
|
130
139
|
label: z.ZodOptional<z.ZodString>;
|
|
131
140
|
valueLabels: z.ZodOptional<z.ZodString>;
|
|
141
|
+
valueLabelsMap: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
132
142
|
nullValueLabel: z.ZodOptional<z.ZodString>;
|
|
133
143
|
}, "strip", z.ZodTypeAny, {
|
|
134
144
|
type: "column";
|
|
@@ -136,6 +146,7 @@ export declare const BubblesSettingsSchema: z.ZodObject<{
|
|
|
136
146
|
format?: string | undefined;
|
|
137
147
|
label?: string | undefined;
|
|
138
148
|
valueLabels?: string | undefined;
|
|
149
|
+
valueLabelsMap?: Record<string, string> | undefined;
|
|
139
150
|
nullValueLabel?: string | undefined;
|
|
140
151
|
}, {
|
|
141
152
|
type: "column";
|
|
@@ -143,6 +154,7 @@ export declare const BubblesSettingsSchema: z.ZodObject<{
|
|
|
143
154
|
format?: string | undefined;
|
|
144
155
|
label?: string | undefined;
|
|
145
156
|
valueLabels?: string | undefined;
|
|
157
|
+
valueLabelsMap?: Record<string, string> | undefined;
|
|
146
158
|
nullValueLabel?: string | undefined;
|
|
147
159
|
}>;
|
|
148
160
|
xGroupBy: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -151,6 +163,7 @@ export declare const BubblesSettingsSchema: z.ZodObject<{
|
|
|
151
163
|
format: z.ZodOptional<z.ZodString>;
|
|
152
164
|
label: z.ZodOptional<z.ZodString>;
|
|
153
165
|
valueLabels: z.ZodOptional<z.ZodString>;
|
|
166
|
+
valueLabelsMap: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
154
167
|
nullValueLabel: z.ZodOptional<z.ZodString>;
|
|
155
168
|
}, "strip", z.ZodTypeAny, {
|
|
156
169
|
type: "column";
|
|
@@ -158,6 +171,7 @@ export declare const BubblesSettingsSchema: z.ZodObject<{
|
|
|
158
171
|
format?: string | undefined;
|
|
159
172
|
label?: string | undefined;
|
|
160
173
|
valueLabels?: string | undefined;
|
|
174
|
+
valueLabelsMap?: Record<string, string> | undefined;
|
|
161
175
|
nullValueLabel?: string | undefined;
|
|
162
176
|
}, {
|
|
163
177
|
type: "column";
|
|
@@ -165,6 +179,7 @@ export declare const BubblesSettingsSchema: z.ZodObject<{
|
|
|
165
179
|
format?: string | undefined;
|
|
166
180
|
label?: string | undefined;
|
|
167
181
|
valueLabels?: string | undefined;
|
|
182
|
+
valueLabelsMap?: Record<string, string> | undefined;
|
|
168
183
|
nullValueLabel?: string | undefined;
|
|
169
184
|
}>, "many">>;
|
|
170
185
|
yGroupBy: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -173,6 +188,7 @@ export declare const BubblesSettingsSchema: z.ZodObject<{
|
|
|
173
188
|
format: z.ZodOptional<z.ZodString>;
|
|
174
189
|
label: z.ZodOptional<z.ZodString>;
|
|
175
190
|
valueLabels: z.ZodOptional<z.ZodString>;
|
|
191
|
+
valueLabelsMap: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
176
192
|
nullValueLabel: z.ZodOptional<z.ZodString>;
|
|
177
193
|
}, "strip", z.ZodTypeAny, {
|
|
178
194
|
type: "column";
|
|
@@ -180,6 +196,7 @@ export declare const BubblesSettingsSchema: z.ZodObject<{
|
|
|
180
196
|
format?: string | undefined;
|
|
181
197
|
label?: string | undefined;
|
|
182
198
|
valueLabels?: string | undefined;
|
|
199
|
+
valueLabelsMap?: Record<string, string> | undefined;
|
|
183
200
|
nullValueLabel?: string | undefined;
|
|
184
201
|
}, {
|
|
185
202
|
type: "column";
|
|
@@ -187,8 +204,60 @@ export declare const BubblesSettingsSchema: z.ZodObject<{
|
|
|
187
204
|
format?: string | undefined;
|
|
188
205
|
label?: string | undefined;
|
|
189
206
|
valueLabels?: string | undefined;
|
|
207
|
+
valueLabelsMap?: Record<string, string> | undefined;
|
|
190
208
|
nullValueLabel?: string | undefined;
|
|
191
209
|
}>, "many">>;
|
|
210
|
+
xSortBy: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
211
|
+
type: z.ZodLiteral<"column">;
|
|
212
|
+
value: z.ZodString;
|
|
213
|
+
format: z.ZodOptional<z.ZodString>;
|
|
214
|
+
label: z.ZodOptional<z.ZodString>;
|
|
215
|
+
valueLabels: z.ZodOptional<z.ZodString>;
|
|
216
|
+
valueLabelsMap: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
217
|
+
nullValueLabel: z.ZodOptional<z.ZodString>;
|
|
218
|
+
}, "strip", z.ZodTypeAny, {
|
|
219
|
+
type: "column";
|
|
220
|
+
value: string;
|
|
221
|
+
format?: string | undefined;
|
|
222
|
+
label?: string | undefined;
|
|
223
|
+
valueLabels?: string | undefined;
|
|
224
|
+
valueLabelsMap?: Record<string, string> | undefined;
|
|
225
|
+
nullValueLabel?: string | undefined;
|
|
226
|
+
}, {
|
|
227
|
+
type: "column";
|
|
228
|
+
value: string;
|
|
229
|
+
format?: string | undefined;
|
|
230
|
+
label?: string | undefined;
|
|
231
|
+
valueLabels?: string | undefined;
|
|
232
|
+
valueLabelsMap?: Record<string, string> | undefined;
|
|
233
|
+
nullValueLabel?: string | undefined;
|
|
234
|
+
}>, "many">>;
|
|
235
|
+
ySortBy: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
236
|
+
type: z.ZodLiteral<"column">;
|
|
237
|
+
value: z.ZodString;
|
|
238
|
+
format: z.ZodOptional<z.ZodString>;
|
|
239
|
+
label: z.ZodOptional<z.ZodString>;
|
|
240
|
+
valueLabels: z.ZodOptional<z.ZodString>;
|
|
241
|
+
valueLabelsMap: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
242
|
+
nullValueLabel: z.ZodOptional<z.ZodString>;
|
|
243
|
+
}, "strip", z.ZodTypeAny, {
|
|
244
|
+
type: "column";
|
|
245
|
+
value: string;
|
|
246
|
+
format?: string | undefined;
|
|
247
|
+
label?: string | undefined;
|
|
248
|
+
valueLabels?: string | undefined;
|
|
249
|
+
valueLabelsMap?: Record<string, string> | undefined;
|
|
250
|
+
nullValueLabel?: string | undefined;
|
|
251
|
+
}, {
|
|
252
|
+
type: "column";
|
|
253
|
+
value: string;
|
|
254
|
+
format?: string | undefined;
|
|
255
|
+
label?: string | undefined;
|
|
256
|
+
valueLabels?: string | undefined;
|
|
257
|
+
valueLabelsMap?: Record<string, string> | undefined;
|
|
258
|
+
nullValueLabel?: string | undefined;
|
|
259
|
+
}>, "many">>;
|
|
260
|
+
transform: z.ZodOptional<z.ZodEnum<["log"]>>;
|
|
192
261
|
keysOrder: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>>;
|
|
193
262
|
normalization: z.ZodOptional<z.ZodObject<{
|
|
194
263
|
direction: z.ZodEnum<["row", "column"]>;
|
|
@@ -275,6 +344,7 @@ export declare const BubblesSettingsSchema: z.ZodObject<{
|
|
|
275
344
|
format: z.ZodOptional<z.ZodString>;
|
|
276
345
|
label: z.ZodOptional<z.ZodString>;
|
|
277
346
|
valueLabels: z.ZodOptional<z.ZodString>;
|
|
347
|
+
valueLabelsMap: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
278
348
|
nullValueLabel: z.ZodOptional<z.ZodString>;
|
|
279
349
|
}, "strip", z.ZodTypeAny, {
|
|
280
350
|
type: "column";
|
|
@@ -282,6 +352,7 @@ export declare const BubblesSettingsSchema: z.ZodObject<{
|
|
|
282
352
|
format?: string | undefined;
|
|
283
353
|
label?: string | undefined;
|
|
284
354
|
valueLabels?: string | undefined;
|
|
355
|
+
valueLabelsMap?: Record<string, string> | undefined;
|
|
285
356
|
nullValueLabel?: string | undefined;
|
|
286
357
|
}, {
|
|
287
358
|
type: "column";
|
|
@@ -289,6 +360,7 @@ export declare const BubblesSettingsSchema: z.ZodObject<{
|
|
|
289
360
|
format?: string | undefined;
|
|
290
361
|
label?: string | undefined;
|
|
291
362
|
valueLabels?: string | undefined;
|
|
363
|
+
valueLabelsMap?: Record<string, string> | undefined;
|
|
292
364
|
nullValueLabel?: string | undefined;
|
|
293
365
|
}>, "many">>;
|
|
294
366
|
aes: z.ZodOptional<z.ZodObject<{
|
|
@@ -318,6 +390,7 @@ export declare const BubblesSettingsSchema: z.ZodObject<{
|
|
|
318
390
|
format: z.ZodOptional<z.ZodString>;
|
|
319
391
|
label: z.ZodOptional<z.ZodString>;
|
|
320
392
|
valueLabels: z.ZodOptional<z.ZodString>;
|
|
393
|
+
valueLabelsMap: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
321
394
|
nullValueLabel: z.ZodOptional<z.ZodString>;
|
|
322
395
|
}, "strip", z.ZodTypeAny, {
|
|
323
396
|
type: "column";
|
|
@@ -325,6 +398,7 @@ export declare const BubblesSettingsSchema: z.ZodObject<{
|
|
|
325
398
|
format?: string | undefined;
|
|
326
399
|
label?: string | undefined;
|
|
327
400
|
valueLabels?: string | undefined;
|
|
401
|
+
valueLabelsMap?: Record<string, string> | undefined;
|
|
328
402
|
nullValueLabel?: string | undefined;
|
|
329
403
|
}, {
|
|
330
404
|
type: "column";
|
|
@@ -332,6 +406,7 @@ export declare const BubblesSettingsSchema: z.ZodObject<{
|
|
|
332
406
|
format?: string | undefined;
|
|
333
407
|
label?: string | undefined;
|
|
334
408
|
valueLabels?: string | undefined;
|
|
409
|
+
valueLabelsMap?: Record<string, string> | undefined;
|
|
335
410
|
nullValueLabel?: string | undefined;
|
|
336
411
|
}>, "many">>;
|
|
337
412
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -342,6 +417,7 @@ export declare const BubblesSettingsSchema: z.ZodObject<{
|
|
|
342
417
|
format?: string | undefined;
|
|
343
418
|
label?: string | undefined;
|
|
344
419
|
valueLabels?: string | undefined;
|
|
420
|
+
valueLabelsMap?: Record<string, string> | undefined;
|
|
345
421
|
nullValueLabel?: string | undefined;
|
|
346
422
|
}[] | undefined;
|
|
347
423
|
}, {
|
|
@@ -352,6 +428,7 @@ export declare const BubblesSettingsSchema: z.ZodObject<{
|
|
|
352
428
|
format?: string | undefined;
|
|
353
429
|
label?: string | undefined;
|
|
354
430
|
valueLabels?: string | undefined;
|
|
431
|
+
valueLabelsMap?: Record<string, string> | undefined;
|
|
355
432
|
nullValueLabel?: string | undefined;
|
|
356
433
|
}[] | undefined;
|
|
357
434
|
}>>;
|
|
@@ -371,6 +448,7 @@ export declare const BubblesSettingsSchema: z.ZodObject<{
|
|
|
371
448
|
format?: string | undefined;
|
|
372
449
|
label?: string | undefined;
|
|
373
450
|
valueLabels?: string | undefined;
|
|
451
|
+
valueLabelsMap?: Record<string, string> | undefined;
|
|
374
452
|
nullValueLabel?: string | undefined;
|
|
375
453
|
};
|
|
376
454
|
valueColor: {
|
|
@@ -379,6 +457,7 @@ export declare const BubblesSettingsSchema: z.ZodObject<{
|
|
|
379
457
|
format?: string | undefined;
|
|
380
458
|
label?: string | undefined;
|
|
381
459
|
valueLabels?: string | undefined;
|
|
460
|
+
valueLabelsMap?: Record<string, string> | undefined;
|
|
382
461
|
nullValueLabel?: string | undefined;
|
|
383
462
|
};
|
|
384
463
|
xColumn: {
|
|
@@ -387,6 +466,7 @@ export declare const BubblesSettingsSchema: z.ZodObject<{
|
|
|
387
466
|
format?: string | undefined;
|
|
388
467
|
label?: string | undefined;
|
|
389
468
|
valueLabels?: string | undefined;
|
|
469
|
+
valueLabelsMap?: Record<string, string> | undefined;
|
|
390
470
|
nullValueLabel?: string | undefined;
|
|
391
471
|
};
|
|
392
472
|
yColumn: {
|
|
@@ -395,6 +475,7 @@ export declare const BubblesSettingsSchema: z.ZodObject<{
|
|
|
395
475
|
format?: string | undefined;
|
|
396
476
|
label?: string | undefined;
|
|
397
477
|
valueLabels?: string | undefined;
|
|
478
|
+
valueLabelsMap?: Record<string, string> | undefined;
|
|
398
479
|
nullValueLabel?: string | undefined;
|
|
399
480
|
};
|
|
400
481
|
size?: {
|
|
@@ -421,6 +502,7 @@ export declare const BubblesSettingsSchema: z.ZodObject<{
|
|
|
421
502
|
format?: string | undefined;
|
|
422
503
|
label?: string | undefined;
|
|
423
504
|
valueLabels?: string | undefined;
|
|
505
|
+
valueLabelsMap?: Record<string, string> | undefined;
|
|
424
506
|
nullValueLabel?: string | undefined;
|
|
425
507
|
}[] | undefined;
|
|
426
508
|
} | undefined;
|
|
@@ -456,6 +538,7 @@ export declare const BubblesSettingsSchema: z.ZodObject<{
|
|
|
456
538
|
format?: string | undefined;
|
|
457
539
|
label?: string | undefined;
|
|
458
540
|
valueLabels?: string | undefined;
|
|
541
|
+
valueLabelsMap?: Record<string, string> | undefined;
|
|
459
542
|
nullValueLabel?: string | undefined;
|
|
460
543
|
}[] | undefined;
|
|
461
544
|
xGroupBy?: {
|
|
@@ -464,6 +547,7 @@ export declare const BubblesSettingsSchema: z.ZodObject<{
|
|
|
464
547
|
format?: string | undefined;
|
|
465
548
|
label?: string | undefined;
|
|
466
549
|
valueLabels?: string | undefined;
|
|
550
|
+
valueLabelsMap?: Record<string, string> | undefined;
|
|
467
551
|
nullValueLabel?: string | undefined;
|
|
468
552
|
}[] | undefined;
|
|
469
553
|
yGroupBy?: {
|
|
@@ -472,8 +556,28 @@ export declare const BubblesSettingsSchema: z.ZodObject<{
|
|
|
472
556
|
format?: string | undefined;
|
|
473
557
|
label?: string | undefined;
|
|
474
558
|
valueLabels?: string | undefined;
|
|
559
|
+
valueLabelsMap?: Record<string, string> | undefined;
|
|
560
|
+
nullValueLabel?: string | undefined;
|
|
561
|
+
}[] | undefined;
|
|
562
|
+
xSortBy?: {
|
|
563
|
+
type: "column";
|
|
564
|
+
value: string;
|
|
565
|
+
format?: string | undefined;
|
|
566
|
+
label?: string | undefined;
|
|
567
|
+
valueLabels?: string | undefined;
|
|
568
|
+
valueLabelsMap?: Record<string, string> | undefined;
|
|
475
569
|
nullValueLabel?: string | undefined;
|
|
476
570
|
}[] | undefined;
|
|
571
|
+
ySortBy?: {
|
|
572
|
+
type: "column";
|
|
573
|
+
value: string;
|
|
574
|
+
format?: string | undefined;
|
|
575
|
+
label?: string | undefined;
|
|
576
|
+
valueLabels?: string | undefined;
|
|
577
|
+
valueLabelsMap?: Record<string, string> | undefined;
|
|
578
|
+
nullValueLabel?: string | undefined;
|
|
579
|
+
}[] | undefined;
|
|
580
|
+
transform?: "log" | undefined;
|
|
477
581
|
keysOrder?: Record<string, string[]> | undefined;
|
|
478
582
|
normalization?: {
|
|
479
583
|
direction: "column" | "row";
|
|
@@ -502,6 +606,7 @@ export declare const BubblesSettingsSchema: z.ZodObject<{
|
|
|
502
606
|
format?: string | undefined;
|
|
503
607
|
label?: string | undefined;
|
|
504
608
|
valueLabels?: string | undefined;
|
|
609
|
+
valueLabelsMap?: Record<string, string> | undefined;
|
|
505
610
|
nullValueLabel?: string | undefined;
|
|
506
611
|
};
|
|
507
612
|
valueColor: {
|
|
@@ -510,6 +615,7 @@ export declare const BubblesSettingsSchema: z.ZodObject<{
|
|
|
510
615
|
format?: string | undefined;
|
|
511
616
|
label?: string | undefined;
|
|
512
617
|
valueLabels?: string | undefined;
|
|
618
|
+
valueLabelsMap?: Record<string, string> | undefined;
|
|
513
619
|
nullValueLabel?: string | undefined;
|
|
514
620
|
};
|
|
515
621
|
xColumn: {
|
|
@@ -518,6 +624,7 @@ export declare const BubblesSettingsSchema: z.ZodObject<{
|
|
|
518
624
|
format?: string | undefined;
|
|
519
625
|
label?: string | undefined;
|
|
520
626
|
valueLabels?: string | undefined;
|
|
627
|
+
valueLabelsMap?: Record<string, string> | undefined;
|
|
521
628
|
nullValueLabel?: string | undefined;
|
|
522
629
|
};
|
|
523
630
|
yColumn: {
|
|
@@ -526,6 +633,7 @@ export declare const BubblesSettingsSchema: z.ZodObject<{
|
|
|
526
633
|
format?: string | undefined;
|
|
527
634
|
label?: string | undefined;
|
|
528
635
|
valueLabels?: string | undefined;
|
|
636
|
+
valueLabelsMap?: Record<string, string> | undefined;
|
|
529
637
|
nullValueLabel?: string | undefined;
|
|
530
638
|
};
|
|
531
639
|
size?: {
|
|
@@ -552,6 +660,7 @@ export declare const BubblesSettingsSchema: z.ZodObject<{
|
|
|
552
660
|
format?: string | undefined;
|
|
553
661
|
label?: string | undefined;
|
|
554
662
|
valueLabels?: string | undefined;
|
|
663
|
+
valueLabelsMap?: Record<string, string> | undefined;
|
|
555
664
|
nullValueLabel?: string | undefined;
|
|
556
665
|
}[] | undefined;
|
|
557
666
|
} | undefined;
|
|
@@ -587,6 +696,7 @@ export declare const BubblesSettingsSchema: z.ZodObject<{
|
|
|
587
696
|
format?: string | undefined;
|
|
588
697
|
label?: string | undefined;
|
|
589
698
|
valueLabels?: string | undefined;
|
|
699
|
+
valueLabelsMap?: Record<string, string> | undefined;
|
|
590
700
|
nullValueLabel?: string | undefined;
|
|
591
701
|
}[] | undefined;
|
|
592
702
|
xGroupBy?: {
|
|
@@ -595,6 +705,7 @@ export declare const BubblesSettingsSchema: z.ZodObject<{
|
|
|
595
705
|
format?: string | undefined;
|
|
596
706
|
label?: string | undefined;
|
|
597
707
|
valueLabels?: string | undefined;
|
|
708
|
+
valueLabelsMap?: Record<string, string> | undefined;
|
|
598
709
|
nullValueLabel?: string | undefined;
|
|
599
710
|
}[] | undefined;
|
|
600
711
|
yGroupBy?: {
|
|
@@ -603,8 +714,28 @@ export declare const BubblesSettingsSchema: z.ZodObject<{
|
|
|
603
714
|
format?: string | undefined;
|
|
604
715
|
label?: string | undefined;
|
|
605
716
|
valueLabels?: string | undefined;
|
|
717
|
+
valueLabelsMap?: Record<string, string> | undefined;
|
|
718
|
+
nullValueLabel?: string | undefined;
|
|
719
|
+
}[] | undefined;
|
|
720
|
+
xSortBy?: {
|
|
721
|
+
type: "column";
|
|
722
|
+
value: string;
|
|
723
|
+
format?: string | undefined;
|
|
724
|
+
label?: string | undefined;
|
|
725
|
+
valueLabels?: string | undefined;
|
|
726
|
+
valueLabelsMap?: Record<string, string> | undefined;
|
|
727
|
+
nullValueLabel?: string | undefined;
|
|
728
|
+
}[] | undefined;
|
|
729
|
+
ySortBy?: {
|
|
730
|
+
type: "column";
|
|
731
|
+
value: string;
|
|
732
|
+
format?: string | undefined;
|
|
733
|
+
label?: string | undefined;
|
|
734
|
+
valueLabels?: string | undefined;
|
|
735
|
+
valueLabelsMap?: Record<string, string> | undefined;
|
|
606
736
|
nullValueLabel?: string | undefined;
|
|
607
737
|
}[] | undefined;
|
|
738
|
+
transform?: "log" | undefined;
|
|
608
739
|
keysOrder?: Record<string, string[]> | undefined;
|
|
609
740
|
normalization?: {
|
|
610
741
|
direction: "column" | "row";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bubble.d.ts","sourceRoot":"","sources":["../../src/types/bubble.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAYxB,eAAO,MAAM,qBAAqB
|
|
1
|
+
{"version":3,"file":"bubble.d.ts","sourceRoot":"","sources":["../../src/types/bubble.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAYxB,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAyEhC,CAAC;AAEH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC"}
|
package/dist/types/bubble.js
CHANGED
|
@@ -39,6 +39,9 @@ const c = o.object({
|
|
|
39
39
|
yColumn: t,
|
|
40
40
|
xGroupBy: o.optional(o.array(t)),
|
|
41
41
|
yGroupBy: o.optional(o.array(t)),
|
|
42
|
+
xSortBy: o.optional(o.array(t)),
|
|
43
|
+
ySortBy: o.optional(o.array(t)),
|
|
44
|
+
transform: o.optional(o.enum(["log"])),
|
|
42
45
|
keysOrder: o.optional(o.record(o.string(), o.array(o.string()))),
|
|
43
46
|
normalization: o.optional(o.object({
|
|
44
47
|
direction: o.enum(["row", "column"]),
|
package/dist/types/bubble.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bubble.js","names":[],"sources":["../../src/types/bubble.ts"],"sourcesContent":["import {\n AggregationMethodSchema,\n ColumnNameSchema,\n FrameTypeSchema,\n LegendPositionSchema,\n TitlePositionSchema,\n TooltipSettingsSchema,\n} from './common';\nimport { z } from 'zod';\n\nconst axisCommonSchema = {\n title: z.optional(z.string()),\n showTicks: z.optional(z.boolean()),\n showTitle: z.optional(z.boolean()),\n showAxisLabels: z.optional(z.boolean()),\n axisLabelsAngle: z.optional(z.union([z.literal(0), z.literal(45), z.literal(90)])),\n};\n\n//const InheritAesSchema = z.object({type: z.literal('grouping'), value: z.string()}); // link to aes mapped to column\n\nexport const BubblesSettingsSchema = z.object({\n type: z.literal('bubble'),\n title: z.object({\n name: z.string(),\n show: z.optional(z.boolean()),\n position: z.optional(TitlePositionSchema),\n }),\n size: z.optional(\n z.object({\n width: z.optional(z.number()),\n height: z.optional(z.number()),\n cellSize: z.optional(z.number())\n })\n ),\n legend: z.optional(\n z.object({\n show: z.optional(z.boolean()),\n position: z.optional(LegendPositionSchema),\n })\n ),\n frame: z.optional(z.object({ type: z.optional(FrameTypeSchema) })),\n facetSettings: z.optional(\n z.object({\n nRows: z.optional(z.number()),\n nCols: z.optional(z.number()),\n order: z.optional(z.array(z.string())),\n })\n ),\n valueSize: ColumnNameSchema,\n valueColor: ColumnNameSchema,\n xColumn: ColumnNameSchema,\n yColumn: ColumnNameSchema,\n xGroupBy: z.optional(z.array(ColumnNameSchema)),\n yGroupBy: z.optional(z.array(ColumnNameSchema)),\n keysOrder: z.optional( // x, y, grouping, facet keys in user's order\n z.record(z.string(), z.array(z.string()))\n ),\n normalization: z.optional(z.object({\n direction: z.enum(['row', 'column']),\n method: z.enum(['standardScaling', 'meanNormalization']),\n colorRange: z.optional(z.array(z.number())),\n sizeRange: z.optional(z.array(z.number())),\n })),\n aggregation: z.optional(z.object({\n x: z.optional(z.boolean()),\n y: z.optional(z.boolean()),\n method: z.optional(AggregationMethodSchema),\n })),\n xAxis: z.optional(z.object({\n ...axisCommonSchema,\n sorting: z.optional(z.enum(['asc', 'desc'])),\n position: z.optional(z.enum(['top', 'bottom'])),\n })),\n yAxis: z.optional(z.object({\n ...axisCommonSchema,\n sorting: z.optional(z.enum(['asc', 'desc'])),\n position: z.optional(z.enum(['left', 'right'])),\n })),\n facetBy: z.optional(z.array(ColumnNameSchema)),\n aes: z.optional(z.object({\n colorsList: z.optional(z.array(z.string())),\n minRadius: z.optional(z.number()),\n maxRadius: z.optional(z.number()),\n cellStrokeColor: z.optional(z.string()),\n emptyCellColor: z.optional(z.string()),\n })),\n tooltips: z.optional(TooltipSettingsSchema),\n NAValueAs: z.optional(z.union([z.number(), z.null()])),\n showEmptyRows: z.optional(z.boolean()),\n showEmptyColumns: z.optional(z.boolean()),\n});\n\nexport type BubbleSettings = z.infer<typeof BubblesSettingsSchema>;\n"],"mappings":";;AAUA,IAAM,IAAmB;CACrB,OAAO,EAAE,SAAS,EAAE,QAAQ,CAAC;CAC7B,WAAW,EAAE,SAAS,EAAE,SAAS,CAAC;CAClC,WAAW,EAAE,SAAS,EAAE,SAAS,CAAC;CAClC,gBAAgB,EAAE,SAAS,EAAE,SAAS,CAAC;CACvC,iBAAiB,EAAE,SAAS,EAAE,MAAM;EAAC,EAAE,QAAQ,EAAE;EAAE,EAAE,QAAQ,GAAG;EAAE,EAAE,QAAQ,GAAG;EAAC,CAAC,CAAC;CACrF;AAID,MAAa,IAAwB,EAAE,OAAO;CAC1C,MAAM,EAAE,QAAQ,SAAS;CACzB,OAAO,EAAE,OAAO;EACZ,MAAM,EAAE,QAAQ;EAChB,MAAM,EAAE,SAAS,EAAE,SAAS,CAAC;EAC7B,UAAU,EAAE,SAAS,EAAoB;EAC5C,CAAC;CACF,MAAM,EAAE,SACJ,EAAE,OAAO;EACL,OAAO,EAAE,SAAS,EAAE,QAAQ,CAAC;EAC7B,QAAQ,EAAE,SAAS,EAAE,QAAQ,CAAC;EAC9B,UAAU,EAAE,SAAS,EAAE,QAAQ,CAAC;EACnC,CAAC,CACL;CACD,QAAQ,EAAE,SACN,EAAE,OAAO;EACL,MAAM,EAAE,SAAS,EAAE,SAAS,CAAC;EAC7B,UAAU,EAAE,SAAS,EAAqB;EAC7C,CAAC,CACL;CACD,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,EAAE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AC,CAAC;EAC5C,UAAU,EAAE,SAAS,EAAE,KAAK,CAAC,QAAQ,QAAQ,CAAC,CAAC;EAClD,CAAC,CAAC;CACH,SAAS,EAAE,SAAS,EAAE,MAAM,EAAiB,CAAC;CAC9C,KAAK,EAAE,SAAS,EAAE,OAAO;EACrB,YAAY,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAC;EAC3C,WAAW,EAAE,SAAS,EAAE,QAAQ,CAAC;EACjC,WAAW,EAAE,SAAS,EAAE,QAAQ,CAAC;EACjC,iBAAiB,EAAE,SAAS,EAAE,QAAQ,CAAC;EACvC,gBAAgB,EAAE,SAAS,EAAE,QAAQ,CAAC;EACzC,CAAC,CAAC;CACH,UAAU,EAAE,SAAS,EAAsB;CAC3C,WAAW,EAAE,SAAS,EAAE,MAAM,CAAC,EAAE,QAAQ,EAAE,EAAE,MAAM,CAAC,CAAC,CAAC;CACtD,eAAe,EAAE,SAAS,EAAE,SAAS,CAAC;CACtC,kBAAkB,EAAE,SAAS,EAAE,SAAS,CAAC;CAC5C,CAAC"}
|
|
1
|
+
{"version":3,"file":"bubble.js","names":[],"sources":["../../src/types/bubble.ts"],"sourcesContent":["import {\n AggregationMethodSchema,\n ColumnNameSchema,\n FrameTypeSchema,\n LegendPositionSchema,\n TitlePositionSchema,\n TooltipSettingsSchema,\n} from './common';\nimport { z } from 'zod';\n\nconst axisCommonSchema = {\n title: z.optional(z.string()),\n showTicks: z.optional(z.boolean()),\n showTitle: z.optional(z.boolean()),\n showAxisLabels: z.optional(z.boolean()),\n axisLabelsAngle: z.optional(z.union([z.literal(0), z.literal(45), z.literal(90)])),\n};\n\n//const InheritAesSchema = z.object({type: z.literal('grouping'), value: z.string()}); // link to aes mapped to column\n\nexport const BubblesSettingsSchema = z.object({\n type: z.literal('bubble'),\n title: z.object({\n name: z.string(),\n show: z.optional(z.boolean()),\n position: z.optional(TitlePositionSchema),\n }),\n size: z.optional(\n z.object({\n width: z.optional(z.number()),\n height: z.optional(z.number()),\n cellSize: z.optional(z.number())\n })\n ),\n legend: z.optional(\n z.object({\n show: z.optional(z.boolean()),\n position: z.optional(LegendPositionSchema),\n })\n ),\n frame: z.optional(z.object({ type: z.optional(FrameTypeSchema) })),\n facetSettings: z.optional(\n z.object({\n nRows: z.optional(z.number()),\n nCols: z.optional(z.number()),\n order: z.optional(z.array(z.string())),\n })\n ),\n valueSize: ColumnNameSchema,\n valueColor: ColumnNameSchema,\n xColumn: ColumnNameSchema,\n yColumn: ColumnNameSchema,\n xGroupBy: z.optional(z.array(ColumnNameSchema)),\n yGroupBy: z.optional(z.array(ColumnNameSchema)),\n xSortBy: z.optional(z.array(ColumnNameSchema)),\n ySortBy: z.optional(z.array(ColumnNameSchema)),\n transform: z.optional(z.enum(['log'])),\n keysOrder: z.optional( // x, y, grouping, facet keys in user's order\n z.record(z.string(), z.array(z.string()))\n ),\n normalization: z.optional(z.object({\n direction: z.enum(['row', 'column']),\n method: z.enum(['standardScaling', 'meanNormalization']),\n colorRange: z.optional(z.array(z.number())),\n sizeRange: z.optional(z.array(z.number())),\n })),\n aggregation: z.optional(z.object({\n x: z.optional(z.boolean()),\n y: z.optional(z.boolean()),\n method: z.optional(AggregationMethodSchema),\n })),\n xAxis: z.optional(z.object({\n ...axisCommonSchema,\n sorting: z.optional(z.enum(['asc', 'desc'])),\n position: z.optional(z.enum(['top', 'bottom'])),\n })),\n yAxis: z.optional(z.object({\n ...axisCommonSchema,\n sorting: z.optional(z.enum(['asc', 'desc'])),\n position: z.optional(z.enum(['left', 'right'])),\n })),\n facetBy: z.optional(z.array(ColumnNameSchema)),\n aes: z.optional(z.object({\n colorsList: z.optional(z.array(z.string())),\n minRadius: z.optional(z.number()),\n maxRadius: z.optional(z.number()),\n cellStrokeColor: z.optional(z.string()),\n emptyCellColor: z.optional(z.string()),\n })),\n tooltips: z.optional(TooltipSettingsSchema),\n NAValueAs: z.optional(z.union([z.number(), z.null()])),\n showEmptyRows: z.optional(z.boolean()),\n showEmpty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