@milaboratories/miplots4 1.0.66 → 1.0.67

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 (3) hide show
  1. package/dist/index.d.ts +143 -105
  2. package/dist/index.js +43 -41
  3. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -18,12 +18,15 @@ declare const BubblesSettingsSchema: z.ZodObject<{
18
18
  size: z.ZodOptional<z.ZodObject<{
19
19
  width: z.ZodOptional<z.ZodNumber>;
20
20
  height: z.ZodOptional<z.ZodNumber>;
21
+ cellSize: z.ZodOptional<z.ZodNumber>;
21
22
  }, "strip", z.ZodTypeAny, {
22
23
  width?: number | undefined;
23
24
  height?: number | undefined;
25
+ cellSize?: number | undefined;
24
26
  }, {
25
27
  width?: number | undefined;
26
28
  height?: number | undefined;
29
+ cellSize?: number | undefined;
27
30
  }>>;
28
31
  legend: z.ZodOptional<z.ZodObject<{
29
32
  show: z.ZodOptional<z.ZodBoolean>;
@@ -43,22 +46,16 @@ declare const BubblesSettingsSchema: z.ZodObject<{
43
46
  type?: "left" | "bottom" | "left-bottom" | "full" | "empty" | undefined;
44
47
  }>>;
45
48
  facetSettings: z.ZodOptional<z.ZodObject<{
46
- sharedX: z.ZodOptional<z.ZodBoolean>;
47
- sharedY: z.ZodOptional<z.ZodBoolean>;
48
49
  nRows: z.ZodOptional<z.ZodNumber>;
49
50
  nCols: z.ZodOptional<z.ZodNumber>;
50
51
  }, "strip", z.ZodTypeAny, {
51
- sharedX?: boolean | undefined;
52
- sharedY?: boolean | undefined;
53
52
  nRows?: number | undefined;
54
53
  nCols?: number | undefined;
55
54
  }, {
56
- sharedX?: boolean | undefined;
57
- sharedY?: boolean | undefined;
58
55
  nRows?: number | undefined;
59
56
  nCols?: number | undefined;
60
57
  }>>;
61
- sizeColumn: z.ZodObject<{
58
+ valueSize: z.ZodObject<{
62
59
  type: z.ZodLiteral<"column">;
63
60
  value: z.ZodString;
64
61
  label: z.ZodOptional<z.ZodString>;
@@ -74,7 +71,7 @@ declare const BubblesSettingsSchema: z.ZodObject<{
74
71
  label?: string | undefined;
75
72
  valueLabels?: string | undefined;
76
73
  }>;
77
- colorColumn: z.ZodObject<{
74
+ valueColor: z.ZodObject<{
78
75
  type: z.ZodLiteral<"column">;
79
76
  value: z.ZodString;
80
77
  label: z.ZodOptional<z.ZodString>;
@@ -122,6 +119,22 @@ declare const BubblesSettingsSchema: z.ZodObject<{
122
119
  label?: string | undefined;
123
120
  valueLabels?: string | undefined;
124
121
  }>;
122
+ normalization: z.ZodOptional<z.ZodObject<{
123
+ direction: z.ZodEnum<["row", "column"]>;
124
+ method: z.ZodEnum<["standardScaling", "meanNormalization"]>;
125
+ colorRange: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
126
+ sizeRange: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
127
+ }, "strip", z.ZodTypeAny, {
128
+ direction: "column" | "row";
129
+ method: "standardScaling" | "meanNormalization";
130
+ colorRange?: number[] | undefined;
131
+ sizeRange?: number[] | undefined;
132
+ }, {
133
+ direction: "column" | "row";
134
+ method: "standardScaling" | "meanNormalization";
135
+ colorRange?: number[] | undefined;
136
+ sizeRange?: number[] | undefined;
137
+ }>>;
125
138
  xAxis: z.ZodOptional<z.ZodObject<{
126
139
  position: z.ZodOptional<z.ZodEnum<["top", "bottom"]>>;
127
140
  title: z.ZodOptional<z.ZodString>;
@@ -166,7 +179,7 @@ declare const BubblesSettingsSchema: z.ZodObject<{
166
179
  showAxisLabels?: boolean | undefined;
167
180
  axisLabelsAngle?: 0 | 45 | 90 | undefined;
168
181
  }>>;
169
- grouping: z.ZodOptional<z.ZodArray<z.ZodObject<{
182
+ facetBy: z.ZodOptional<z.ZodArray<z.ZodObject<{
170
183
  type: z.ZodLiteral<"column">;
171
184
  value: z.ZodString;
172
185
  label: z.ZodOptional<z.ZodString>;
@@ -182,47 +195,60 @@ declare const BubblesSettingsSchema: z.ZodObject<{
182
195
  label?: string | undefined;
183
196
  valueLabels?: string | undefined;
184
197
  }>, "many">>;
185
- facetBy: z.ZodOptional<z.ZodArray<z.ZodObject<{
186
- type: z.ZodLiteral<"column">;
187
- value: z.ZodString;
188
- label: z.ZodOptional<z.ZodString>;
189
- valueLabels: z.ZodOptional<z.ZodString>;
198
+ aes: z.ZodOptional<z.ZodObject<{
199
+ colorsList: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
200
+ minRadius: z.ZodOptional<z.ZodNumber>;
201
+ maxRadius: z.ZodOptional<z.ZodNumber>;
202
+ cellStrokeColor: z.ZodOptional<z.ZodString>;
203
+ emptyCellColor: z.ZodOptional<z.ZodString>;
190
204
  }, "strip", z.ZodTypeAny, {
191
- type: "column";
192
- value: string;
193
- label?: string | undefined;
194
- valueLabels?: string | undefined;
205
+ colorsList?: string[] | undefined;
206
+ minRadius?: number | undefined;
207
+ maxRadius?: number | undefined;
208
+ cellStrokeColor?: string | undefined;
209
+ emptyCellColor?: string | undefined;
195
210
  }, {
196
- type: "column";
197
- value: string;
198
- label?: string | undefined;
199
- valueLabels?: string | undefined;
200
- }>, "many">>;
201
- inheritedAes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodObject<{
202
- fillColor: z.ZodOptional<z.ZodString>;
203
- lineColor: z.ZodOptional<z.ZodString>;
204
- lineWidth: z.ZodOptional<z.ZodNumber>;
205
- lineShape: z.ZodOptional<z.ZodEnum<["solid", "dashed", "dotted", "dotdash", "longdash", "twodash"]>>;
206
- dotShape: z.ZodOptional<z.ZodEnum<["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18", "20", "21", "22", "23", "24", "25"]>>;
207
- dotSize: z.ZodOptional<z.ZodNumber>;
208
- dotFill: z.ZodOptional<z.ZodString>;
211
+ colorsList?: string[] | undefined;
212
+ minRadius?: number | undefined;
213
+ maxRadius?: number | undefined;
214
+ cellStrokeColor?: string | undefined;
215
+ emptyCellColor?: string | undefined;
216
+ }>>;
217
+ tooltips: z.ZodOptional<z.ZodObject<{
218
+ show: z.ZodOptional<z.ZodBoolean>;
219
+ content: z.ZodOptional<z.ZodArray<z.ZodObject<{
220
+ type: z.ZodLiteral<"column">;
221
+ value: z.ZodString;
222
+ label: z.ZodOptional<z.ZodString>;
223
+ valueLabels: z.ZodOptional<z.ZodString>;
224
+ }, "strip", z.ZodTypeAny, {
225
+ type: "column";
226
+ value: string;
227
+ label?: string | undefined;
228
+ valueLabels?: string | undefined;
229
+ }, {
230
+ type: "column";
231
+ value: string;
232
+ label?: string | undefined;
233
+ valueLabels?: string | undefined;
234
+ }>, "many">>;
209
235
  }, "strip", z.ZodTypeAny, {
210
- dotFill?: string | undefined;
211
- dotShape?: "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "13" | "14" | "15" | "16" | "17" | "18" | "20" | "21" | "22" | "23" | "24" | "25" | undefined;
212
- dotSize?: number | undefined;
213
- lineWidth?: number | undefined;
214
- lineShape?: "solid" | "dashed" | "dotted" | "dotdash" | "longdash" | "twodash" | undefined;
215
- lineColor?: string | undefined;
216
- fillColor?: string | undefined;
236
+ show?: boolean | undefined;
237
+ content?: {
238
+ type: "column";
239
+ value: string;
240
+ label?: string | undefined;
241
+ valueLabels?: string | undefined;
242
+ }[] | undefined;
217
243
  }, {
218
- dotFill?: string | undefined;
219
- dotShape?: "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "13" | "14" | "15" | "16" | "17" | "18" | "20" | "21" | "22" | "23" | "24" | "25" | undefined;
220
- dotSize?: number | undefined;
221
- lineWidth?: number | undefined;
222
- lineShape?: "solid" | "dashed" | "dotted" | "dotdash" | "longdash" | "twodash" | undefined;
223
- lineColor?: string | undefined;
224
- fillColor?: string | undefined;
225
- }>>>>;
244
+ show?: boolean | undefined;
245
+ content?: {
246
+ type: "column";
247
+ value: string;
248
+ label?: string | undefined;
249
+ valueLabels?: string | undefined;
250
+ }[] | undefined;
251
+ }>>;
226
252
  }, "strip", z.ZodTypeAny, {
227
253
  type: "bubble";
228
254
  title: {
@@ -230,13 +256,13 @@ declare const BubblesSettingsSchema: z.ZodObject<{
230
256
  show?: boolean | undefined;
231
257
  position?: "left" | "center" | "right" | undefined;
232
258
  };
233
- sizeColumn: {
259
+ valueSize: {
234
260
  type: "column";
235
261
  value: string;
236
262
  label?: string | undefined;
237
263
  valueLabels?: string | undefined;
238
264
  };
239
- colorColumn: {
265
+ valueColor: {
240
266
  type: "column";
241
267
  value: string;
242
268
  label?: string | undefined;
@@ -254,26 +280,35 @@ declare const BubblesSettingsSchema: z.ZodObject<{
254
280
  label?: string | undefined;
255
281
  valueLabels?: string | undefined;
256
282
  };
257
- grouping?: {
258
- type: "column";
259
- value: string;
260
- label?: string | undefined;
261
- valueLabels?: string | undefined;
262
- }[] | undefined;
283
+ aes?: {
284
+ colorsList?: string[] | undefined;
285
+ minRadius?: number | undefined;
286
+ maxRadius?: number | undefined;
287
+ cellStrokeColor?: string | undefined;
288
+ emptyCellColor?: string | undefined;
289
+ } | undefined;
263
290
  size?: {
264
291
  width?: number | undefined;
265
292
  height?: number | undefined;
293
+ cellSize?: number | undefined;
266
294
  } | undefined;
267
295
  legend?: {
268
296
  show?: boolean | undefined;
269
297
  position?: "right" | "inside" | "top" | "bottom" | undefined;
270
298
  } | undefined;
299
+ tooltips?: {
300
+ show?: boolean | undefined;
301
+ content?: {
302
+ type: "column";
303
+ value: string;
304
+ label?: string | undefined;
305
+ valueLabels?: string | undefined;
306
+ }[] | undefined;
307
+ } | undefined;
271
308
  frame?: {
272
309
  type?: "left" | "bottom" | "left-bottom" | "full" | "empty" | undefined;
273
310
  } | undefined;
274
311
  facetSettings?: {
275
- sharedX?: boolean | undefined;
276
- sharedY?: boolean | undefined;
277
312
  nRows?: number | undefined;
278
313
  nCols?: number | undefined;
279
314
  } | undefined;
@@ -299,15 +334,12 @@ declare const BubblesSettingsSchema: z.ZodObject<{
299
334
  label?: string | undefined;
300
335
  valueLabels?: string | undefined;
301
336
  }[] | undefined;
302
- inheritedAes?: Record<string, Record<string, {
303
- dotFill?: string | undefined;
304
- dotShape?: "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "13" | "14" | "15" | "16" | "17" | "18" | "20" | "21" | "22" | "23" | "24" | "25" | undefined;
305
- dotSize?: number | undefined;
306
- lineWidth?: number | undefined;
307
- lineShape?: "solid" | "dashed" | "dotted" | "dotdash" | "longdash" | "twodash" | undefined;
308
- lineColor?: string | undefined;
309
- fillColor?: string | undefined;
310
- }>> | undefined;
337
+ normalization?: {
338
+ direction: "column" | "row";
339
+ method: "standardScaling" | "meanNormalization";
340
+ colorRange?: number[] | undefined;
341
+ sizeRange?: number[] | undefined;
342
+ } | undefined;
311
343
  }, {
312
344
  type: "bubble";
313
345
  title: {
@@ -315,13 +347,13 @@ declare const BubblesSettingsSchema: z.ZodObject<{
315
347
  show?: boolean | undefined;
316
348
  position?: "left" | "center" | "right" | undefined;
317
349
  };
318
- sizeColumn: {
350
+ valueSize: {
319
351
  type: "column";
320
352
  value: string;
321
353
  label?: string | undefined;
322
354
  valueLabels?: string | undefined;
323
355
  };
324
- colorColumn: {
356
+ valueColor: {
325
357
  type: "column";
326
358
  value: string;
327
359
  label?: string | undefined;
@@ -339,26 +371,35 @@ declare const BubblesSettingsSchema: z.ZodObject<{
339
371
  label?: string | undefined;
340
372
  valueLabels?: string | undefined;
341
373
  };
342
- grouping?: {
343
- type: "column";
344
- value: string;
345
- label?: string | undefined;
346
- valueLabels?: string | undefined;
347
- }[] | undefined;
374
+ aes?: {
375
+ colorsList?: string[] | undefined;
376
+ minRadius?: number | undefined;
377
+ maxRadius?: number | undefined;
378
+ cellStrokeColor?: string | undefined;
379
+ emptyCellColor?: string | undefined;
380
+ } | undefined;
348
381
  size?: {
349
382
  width?: number | undefined;
350
383
  height?: number | undefined;
384
+ cellSize?: number | undefined;
351
385
  } | undefined;
352
386
  legend?: {
353
387
  show?: boolean | undefined;
354
388
  position?: "right" | "inside" | "top" | "bottom" | undefined;
355
389
  } | undefined;
390
+ tooltips?: {
391
+ show?: boolean | undefined;
392
+ content?: {
393
+ type: "column";
394
+ value: string;
395
+ label?: string | undefined;
396
+ valueLabels?: string | undefined;
397
+ }[] | undefined;
398
+ } | undefined;
356
399
  frame?: {
357
400
  type?: "left" | "bottom" | "left-bottom" | "full" | "empty" | undefined;
358
401
  } | undefined;
359
402
  facetSettings?: {
360
- sharedX?: boolean | undefined;
361
- sharedY?: boolean | undefined;
362
403
  nRows?: number | undefined;
363
404
  nCols?: number | undefined;
364
405
  } | undefined;
@@ -384,15 +425,12 @@ declare const BubblesSettingsSchema: z.ZodObject<{
384
425
  label?: string | undefined;
385
426
  valueLabels?: string | undefined;
386
427
  }[] | undefined;
387
- inheritedAes?: Record<string, Record<string, {
388
- dotFill?: string | undefined;
389
- dotShape?: "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "13" | "14" | "15" | "16" | "17" | "18" | "20" | "21" | "22" | "23" | "24" | "25" | undefined;
390
- dotSize?: number | undefined;
391
- lineWidth?: number | undefined;
392
- lineShape?: "solid" | "dashed" | "dotted" | "dotdash" | "longdash" | "twodash" | undefined;
393
- lineColor?: string | undefined;
394
- fillColor?: string | undefined;
395
- }>> | undefined;
428
+ normalization?: {
429
+ direction: "column" | "row";
430
+ method: "standardScaling" | "meanNormalization";
431
+ colorRange?: number[] | undefined;
432
+ sizeRange?: number[] | undefined;
433
+ } | undefined;
396
434
  }>;
397
435
  type BubbleSettings = z.infer<typeof BubblesSettingsSchema>;
398
436
 
@@ -5083,12 +5121,12 @@ declare const HeatmapSettingsSchema: z.ZodObject<{
5083
5121
  method: z.ZodEnum<["standardScaling", "meanNormalization"]>;
5084
5122
  colorRange: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
5085
5123
  }, "strip", z.ZodTypeAny, {
5086
- method: "standardScaling" | "meanNormalization";
5087
5124
  direction: "column" | "row";
5125
+ method: "standardScaling" | "meanNormalization";
5088
5126
  colorRange?: number[] | undefined;
5089
5127
  }, {
5090
- method: "standardScaling" | "meanNormalization";
5091
5128
  direction: "column" | "row";
5129
+ method: "standardScaling" | "meanNormalization";
5092
5130
  colorRange?: number[] | undefined;
5093
5131
  }>>;
5094
5132
  annotations: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
@@ -5782,20 +5820,20 @@ declare const HeatmapSettingsSchema: z.ZodObject<{
5782
5820
  cellGap: z.ZodOptional<z.ZodNumber>;
5783
5821
  }, "strip", z.ZodTypeAny, {
5784
5822
  colorsList?: string[] | undefined;
5823
+ cellStrokeColor?: string | undefined;
5824
+ emptyCellColor?: string | undefined;
5785
5825
  colorsMap?: Record<string, string> | undefined;
5786
5826
  valueColors?: string[] | undefined;
5787
5827
  valuesByColors?: number[] | undefined;
5788
- cellStrokeColor?: string | undefined;
5789
- emptyCellColor?: string | undefined;
5790
5828
  groupGap?: number | undefined;
5791
5829
  cellGap?: number | undefined;
5792
5830
  }, {
5793
5831
  colorsList?: string[] | undefined;
5832
+ cellStrokeColor?: string | undefined;
5833
+ emptyCellColor?: string | undefined;
5794
5834
  colorsMap?: Record<string, string> | undefined;
5795
5835
  valueColors?: string[] | undefined;
5796
5836
  valuesByColors?: number[] | undefined;
5797
- cellStrokeColor?: string | undefined;
5798
- emptyCellColor?: string | undefined;
5799
5837
  groupGap?: number | undefined;
5800
5838
  cellGap?: number | undefined;
5801
5839
  }>>;
@@ -5826,11 +5864,11 @@ declare const HeatmapSettingsSchema: z.ZodObject<{
5826
5864
  };
5827
5865
  aes?: {
5828
5866
  colorsList?: string[] | undefined;
5867
+ cellStrokeColor?: string | undefined;
5868
+ emptyCellColor?: string | undefined;
5829
5869
  colorsMap?: Record<string, string> | undefined;
5830
5870
  valueColors?: string[] | undefined;
5831
5871
  valuesByColors?: number[] | undefined;
5832
- cellStrokeColor?: string | undefined;
5833
- emptyCellColor?: string | undefined;
5834
5872
  groupGap?: number | undefined;
5835
5873
  cellGap?: number | undefined;
5836
5874
  } | undefined;
@@ -5888,6 +5926,11 @@ declare const HeatmapSettingsSchema: z.ZodObject<{
5888
5926
  label?: string | undefined;
5889
5927
  valueLabels?: string | undefined;
5890
5928
  }[] | undefined;
5929
+ normalization?: {
5930
+ direction: "column" | "row";
5931
+ method: "standardScaling" | "meanNormalization";
5932
+ colorRange?: number[] | undefined;
5933
+ } | undefined;
5891
5934
  valueType?: "discrete" | "continuous" | undefined;
5892
5935
  xGroupBy?: {
5893
5936
  type: "column";
@@ -5901,11 +5944,6 @@ declare const HeatmapSettingsSchema: z.ZodObject<{
5901
5944
  label?: string | undefined;
5902
5945
  valueLabels?: string | undefined;
5903
5946
  }[] | undefined;
5904
- normalization?: {
5905
- method: "standardScaling" | "meanNormalization";
5906
- direction: "column" | "row";
5907
- colorRange?: number[] | undefined;
5908
- } | undefined;
5909
5947
  annotations?: ({
5910
5948
  type: "discrete" | "continuous";
5911
5949
  valueColumn: {
@@ -6065,11 +6103,11 @@ declare const HeatmapSettingsSchema: z.ZodObject<{
6065
6103
  };
6066
6104
  aes?: {
6067
6105
  colorsList?: string[] | undefined;
6106
+ cellStrokeColor?: string | undefined;
6107
+ emptyCellColor?: string | undefined;
6068
6108
  colorsMap?: Record<string, string> | undefined;
6069
6109
  valueColors?: string[] | undefined;
6070
6110
  valuesByColors?: number[] | undefined;
6071
- cellStrokeColor?: string | undefined;
6072
- emptyCellColor?: string | undefined;
6073
6111
  groupGap?: number | undefined;
6074
6112
  cellGap?: number | undefined;
6075
6113
  } | undefined;
@@ -6127,6 +6165,11 @@ declare const HeatmapSettingsSchema: z.ZodObject<{
6127
6165
  label?: string | undefined;
6128
6166
  valueLabels?: string | undefined;
6129
6167
  }[] | undefined;
6168
+ normalization?: {
6169
+ direction: "column" | "row";
6170
+ method: "standardScaling" | "meanNormalization";
6171
+ colorRange?: number[] | undefined;
6172
+ } | undefined;
6130
6173
  valueType?: "discrete" | "continuous" | undefined;
6131
6174
  xGroupBy?: {
6132
6175
  type: "column";
@@ -6140,11 +6183,6 @@ declare const HeatmapSettingsSchema: z.ZodObject<{
6140
6183
  label?: string | undefined;
6141
6184
  valueLabels?: string | undefined;
6142
6185
  }[] | undefined;
6143
- normalization?: {
6144
- method: "standardScaling" | "meanNormalization";
6145
- direction: "column" | "row";
6146
- colorRange?: number[] | undefined;
6147
- } | undefined;
6148
6186
  annotations?: ({
6149
6187
  type: "discrete" | "continuous";
6150
6188
  valueColumn: {
@@ -7260,4 +7298,4 @@ declare class MiPlots implements ChartInterface {
7260
7298
  export(): string;
7261
7299
  }
7262
7300
 
7263
- export { type ChartInterface, type DendroSettings, type DiscreteSettings, type HeatmapSettings, type HistogramSettings, MiPlots, type ScatterplotSettings, type Settings };
7301
+ export { type BubbleSettings, type ChartInterface, type DendroSettings, type DiscreteSettings, type HeatmapSettings, type HistogramSettings, MiPlots, type ScatterplotSettings, type Settings };