@milaboratories/miplots4 1.2.1 → 1.2.3

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 (92) hide show
  1. package/dist/DataFrame.d.ts.map +1 -1
  2. package/dist/DataFrame.js +2 -1
  3. package/dist/DataFrame.js.map +1 -1
  4. package/dist/common/ContinuousGrid.d.ts.map +1 -1
  5. package/dist/common/ContinuousGrid.js +90 -56
  6. package/dist/common/ContinuousGrid.js.map +1 -1
  7. package/dist/histogram/ChartRenderer.d.ts.map +1 -1
  8. package/dist/histogram/ChartRenderer.js +6 -0
  9. package/dist/histogram/ChartRenderer.js.map +1 -1
  10. package/dist/histogram/HistogramSettingsImpl.d.ts +5 -1
  11. package/dist/histogram/HistogramSettingsImpl.d.ts.map +1 -1
  12. package/dist/histogram/HistogramSettingsImpl.js.map +1 -1
  13. package/dist/scatterplot/components/Grid.d.ts.map +1 -1
  14. package/dist/scatterplot/components/Grid.js +109 -71
  15. package/dist/scatterplot/components/Grid.js.map +1 -1
  16. package/dist/selection/ChartRenderer.d.ts.map +1 -1
  17. package/dist/selection/ChartRenderer.js +9 -11
  18. package/dist/selection/ChartRenderer.js.map +1 -1
  19. package/dist/selection/SelectionSettingsImpl.d.ts +0 -1
  20. package/dist/selection/SelectionSettingsImpl.d.ts.map +1 -1
  21. package/dist/selection/SelectionSettingsImpl.js +0 -1
  22. package/dist/selection/SelectionSettingsImpl.js.map +1 -1
  23. package/dist/selection/components/Chart/Bars/GroupSelectedBars.js +1 -1
  24. package/dist/selection/components/Chart/Bars/GroupSelectedBars.js.map +1 -1
  25. package/dist/selection/components/Chart/Bars/StackedBars.d.ts.map +1 -1
  26. package/dist/selection/components/Chart/Bars/StackedBars.js +11 -11
  27. package/dist/selection/components/Chart/Bars/StackedBars.js.map +1 -1
  28. package/dist/selection/components/Chart/ChartAxes.d.ts.map +1 -1
  29. package/dist/selection/components/Chart/ChartAxes.js +7 -8
  30. package/dist/selection/components/Chart/ChartAxes.js.map +1 -1
  31. package/dist/selection/components/Chart/ChartFrame.d.ts +1 -2
  32. package/dist/selection/components/Chart/ChartFrame.d.ts.map +1 -1
  33. package/dist/selection/components/Chart/ChartFrame.js +8 -8
  34. package/dist/selection/components/Chart/ChartFrame.js.map +1 -1
  35. package/dist/selection/components/Chart/Gridlines.d.ts +2 -6
  36. package/dist/selection/components/Chart/Gridlines.d.ts.map +1 -1
  37. package/dist/selection/components/Chart/Gridlines.js +14 -26
  38. package/dist/selection/components/Chart/Gridlines.js.map +1 -1
  39. package/dist/selection/components/Chart/Ribbons/GroupFlowRibbon.js +1 -1
  40. package/dist/selection/components/Chart/Ribbons/GroupFlowRibbon.js.map +1 -1
  41. package/dist/selection/components/Chart/Ribbons/StackedGroupFlowRibbon.d.ts.map +1 -1
  42. package/dist/selection/components/Chart/Ribbons/StackedGroupFlowRibbon.js +27 -27
  43. package/dist/selection/components/Chart/Ribbons/StackedGroupFlowRibbon.js.map +1 -1
  44. package/dist/selection/components/Chart/SelectionXAxis.d.ts +18 -0
  45. package/dist/selection/components/Chart/SelectionXAxis.d.ts.map +1 -0
  46. package/dist/selection/components/Chart/SelectionXAxis.js +47 -0
  47. package/dist/selection/components/Chart/SelectionXAxis.js.map +1 -0
  48. package/dist/selection/components/Chart/types.d.ts +0 -1
  49. package/dist/selection/components/Chart/types.d.ts.map +1 -1
  50. package/dist/selection/components/Chart.d.ts.map +1 -1
  51. package/dist/selection/components/Chart.js +7 -12
  52. package/dist/selection/components/Chart.js.map +1 -1
  53. package/dist/selection/components/ChartsGroup.d.ts.map +1 -1
  54. package/dist/selection/components/ChartsGroup.js +73 -72
  55. package/dist/selection/components/ChartsGroup.js.map +1 -1
  56. package/dist/selection/components/types.d.ts +0 -1
  57. package/dist/selection/components/types.d.ts.map +1 -1
  58. package/dist/selection/constants.d.ts +1 -2
  59. package/dist/selection/constants.d.ts.map +1 -1
  60. package/dist/selection/constants.js +2 -2
  61. package/dist/selection/constants.js.map +1 -1
  62. package/dist/selection/createSelectionData.d.ts +2 -6
  63. package/dist/selection/createSelectionData.d.ts.map +1 -1
  64. package/dist/selection/createSelectionData.js +45 -59
  65. package/dist/selection/createSelectionData.js.map +1 -1
  66. package/dist/types/bubble.d.ts +8 -8
  67. package/dist/types/common.d.ts +62 -6
  68. package/dist/types/common.d.ts.map +1 -1
  69. package/dist/types/common.js +15 -6
  70. package/dist/types/common.js.map +1 -1
  71. package/dist/types/dendro.d.ts +6 -6
  72. package/dist/types/discrete.d.ts +41 -13
  73. package/dist/types/discrete.d.ts.map +1 -1
  74. package/dist/types/heatmap.d.ts +4 -4
  75. package/dist/types/histogram.d.ts +59 -10
  76. package/dist/types/histogram.d.ts.map +1 -1
  77. package/dist/types/histogram.js +60 -66
  78. package/dist/types/histogram.js.map +1 -1
  79. package/dist/types/scatterplot-umap.d.ts +74 -18
  80. package/dist/types/scatterplot-umap.d.ts.map +1 -1
  81. package/dist/types/scatterplot.d.ts +74 -18
  82. package/dist/types/scatterplot.d.ts.map +1 -1
  83. package/dist/types/selection.d.ts +8 -13
  84. package/dist/types/selection.d.ts.map +1 -1
  85. package/dist/types/selection.js +0 -1
  86. package/dist/types/selection.js.map +1 -1
  87. package/dist/utils/getChartEdgeSides.d.ts +1 -1
  88. package/dist/utils/significantLinesStyle.d.ts +8 -0
  89. package/dist/utils/significantLinesStyle.d.ts.map +1 -0
  90. package/dist/utils/significantLinesStyle.js +12 -0
  91. package/dist/utils/significantLinesStyle.js.map +1 -0
  92. package/package.json +1 -1
@@ -1865,10 +1865,10 @@ export declare const ScatterplotSettingsSchema: z.ZodObject<{
1865
1865
  position: z.ZodOptional<z.ZodEnum<["inside", "right", "top", "bottom"]>>;
1866
1866
  }, "strip", z.ZodTypeAny, {
1867
1867
  show?: boolean | undefined;
1868
- position?: "right" | "inside" | "top" | "bottom" | undefined;
1868
+ position?: "top" | "bottom" | "right" | "inside" | undefined;
1869
1869
  }, {
1870
1870
  show?: boolean | undefined;
1871
- position?: "right" | "inside" | "top" | "bottom" | undefined;
1871
+ position?: "top" | "bottom" | "right" | "inside" | undefined;
1872
1872
  }>>;
1873
1873
  tooltips: z.ZodOptional<z.ZodObject<{
1874
1874
  show: z.ZodOptional<z.ZodBoolean>;
@@ -1923,9 +1923,9 @@ export declare const ScatterplotSettingsSchema: z.ZodObject<{
1923
1923
  frame: z.ZodOptional<z.ZodObject<{
1924
1924
  type: z.ZodOptional<z.ZodEnum<["left", "bottom", "left-bottom", "full", "empty"]>>;
1925
1925
  }, "strip", z.ZodTypeAny, {
1926
- type?: "left" | "bottom" | "left-bottom" | "full" | "empty" | undefined;
1926
+ type?: "bottom" | "left" | "left-bottom" | "full" | "empty" | undefined;
1927
1927
  }, {
1928
- type?: "left" | "bottom" | "left-bottom" | "full" | "empty" | undefined;
1928
+ type?: "bottom" | "left" | "left-bottom" | "full" | "empty" | undefined;
1929
1929
  }>>;
1930
1930
  facetSettings: z.ZodOptional<z.ZodObject<{
1931
1931
  sharedX: z.ZodOptional<z.ZodBoolean>;
@@ -2122,7 +2122,19 @@ export declare const ScatterplotSettingsSchema: z.ZodObject<{
2122
2122
  showGrid: z.ZodOptional<z.ZodBoolean>;
2123
2123
  showTicks: z.ZodOptional<z.ZodBoolean>;
2124
2124
  significantLines: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
2125
- significantLinesStyle: z.ZodOptional<z.ZodEnum<["solid", "dashed", "dotted", "dotdash", "longdash", "twodash"]>>;
2125
+ significantLinesStyle: z.ZodOptional<z.ZodObject<{
2126
+ shape: z.ZodOptional<z.ZodEnum<["solid", "dashed", "dotted", "dotdash", "longdash", "twodash"]>>;
2127
+ showLabel: z.ZodOptional<z.ZodBoolean>;
2128
+ labelPosition: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"top">, z.ZodLiteral<"bottom">, z.ZodLiteral<"left">, z.ZodLiteral<"right">]>>;
2129
+ }, "strip", z.ZodTypeAny, {
2130
+ shape?: "solid" | "dashed" | "dotted" | "dotdash" | "longdash" | "twodash" | undefined;
2131
+ showLabel?: boolean | undefined;
2132
+ labelPosition?: "top" | "bottom" | "left" | "right" | undefined;
2133
+ }, {
2134
+ shape?: "solid" | "dashed" | "dotted" | "dotdash" | "longdash" | "twodash" | undefined;
2135
+ showLabel?: boolean | undefined;
2136
+ labelPosition?: "top" | "bottom" | "left" | "right" | undefined;
2137
+ }>>;
2126
2138
  symmetricRange: z.ZodOptional<z.ZodNumber>;
2127
2139
  upperValue: z.ZodOptional<z.ZodNumber>;
2128
2140
  lowerValue: z.ZodOptional<z.ZodNumber>;
@@ -2142,7 +2154,11 @@ export declare const ScatterplotSettingsSchema: z.ZodObject<{
2142
2154
  showTicks?: boolean | undefined;
2143
2155
  hiddenLabels?: boolean | undefined;
2144
2156
  significantLines?: number[] | undefined;
2145
- significantLinesStyle?: "solid" | "dashed" | "dotted" | "dotdash" | "longdash" | "twodash" | undefined;
2157
+ significantLinesStyle?: {
2158
+ shape?: "solid" | "dashed" | "dotted" | "dotdash" | "longdash" | "twodash" | undefined;
2159
+ showLabel?: boolean | undefined;
2160
+ labelPosition?: "top" | "bottom" | "left" | "right" | undefined;
2161
+ } | undefined;
2146
2162
  symmetricRange?: number | undefined;
2147
2163
  upperValue?: number | undefined;
2148
2164
  lowerValue?: number | undefined;
@@ -2161,7 +2177,11 @@ export declare const ScatterplotSettingsSchema: z.ZodObject<{
2161
2177
  showTicks?: boolean | undefined;
2162
2178
  hiddenLabels?: boolean | undefined;
2163
2179
  significantLines?: number[] | undefined;
2164
- significantLinesStyle?: "solid" | "dashed" | "dotted" | "dotdash" | "longdash" | "twodash" | undefined;
2180
+ significantLinesStyle?: {
2181
+ shape?: "solid" | "dashed" | "dotted" | "dotdash" | "longdash" | "twodash" | undefined;
2182
+ showLabel?: boolean | undefined;
2183
+ labelPosition?: "top" | "bottom" | "left" | "right" | undefined;
2184
+ } | undefined;
2165
2185
  symmetricRange?: number | undefined;
2166
2186
  upperValue?: number | undefined;
2167
2187
  lowerValue?: number | undefined;
@@ -2266,7 +2286,19 @@ export declare const ScatterplotSettingsSchema: z.ZodObject<{
2266
2286
  showGrid: z.ZodOptional<z.ZodBoolean>;
2267
2287
  showTicks: z.ZodOptional<z.ZodBoolean>;
2268
2288
  significantLines: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
2269
- significantLinesStyle: z.ZodOptional<z.ZodEnum<["solid", "dashed", "dotted", "dotdash", "longdash", "twodash"]>>;
2289
+ significantLinesStyle: z.ZodOptional<z.ZodObject<{
2290
+ shape: z.ZodOptional<z.ZodEnum<["solid", "dashed", "dotted", "dotdash", "longdash", "twodash"]>>;
2291
+ showLabel: z.ZodOptional<z.ZodBoolean>;
2292
+ labelPosition: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"top">, z.ZodLiteral<"bottom">, z.ZodLiteral<"left">, z.ZodLiteral<"right">]>>;
2293
+ }, "strip", z.ZodTypeAny, {
2294
+ shape?: "solid" | "dashed" | "dotted" | "dotdash" | "longdash" | "twodash" | undefined;
2295
+ showLabel?: boolean | undefined;
2296
+ labelPosition?: "top" | "bottom" | "left" | "right" | undefined;
2297
+ }, {
2298
+ shape?: "solid" | "dashed" | "dotted" | "dotdash" | "longdash" | "twodash" | undefined;
2299
+ showLabel?: boolean | undefined;
2300
+ labelPosition?: "top" | "bottom" | "left" | "right" | undefined;
2301
+ }>>;
2270
2302
  symmetricRange: z.ZodOptional<z.ZodNumber>;
2271
2303
  upperValue: z.ZodOptional<z.ZodNumber>;
2272
2304
  lowerValue: z.ZodOptional<z.ZodNumber>;
@@ -2286,7 +2318,11 @@ export declare const ScatterplotSettingsSchema: z.ZodObject<{
2286
2318
  showTicks?: boolean | undefined;
2287
2319
  hiddenLabels?: boolean | undefined;
2288
2320
  significantLines?: number[] | undefined;
2289
- significantLinesStyle?: "solid" | "dashed" | "dotted" | "dotdash" | "longdash" | "twodash" | undefined;
2321
+ significantLinesStyle?: {
2322
+ shape?: "solid" | "dashed" | "dotted" | "dotdash" | "longdash" | "twodash" | undefined;
2323
+ showLabel?: boolean | undefined;
2324
+ labelPosition?: "top" | "bottom" | "left" | "right" | undefined;
2325
+ } | undefined;
2290
2326
  symmetricRange?: number | undefined;
2291
2327
  upperValue?: number | undefined;
2292
2328
  lowerValue?: number | undefined;
@@ -2305,7 +2341,11 @@ export declare const ScatterplotSettingsSchema: z.ZodObject<{
2305
2341
  showTicks?: boolean | undefined;
2306
2342
  hiddenLabels?: boolean | undefined;
2307
2343
  significantLines?: number[] | undefined;
2308
- significantLinesStyle?: "solid" | "dashed" | "dotted" | "dotdash" | "longdash" | "twodash" | undefined;
2344
+ significantLinesStyle?: {
2345
+ shape?: "solid" | "dashed" | "dotted" | "dotdash" | "longdash" | "twodash" | undefined;
2346
+ showLabel?: boolean | undefined;
2347
+ labelPosition?: "top" | "bottom" | "left" | "right" | undefined;
2348
+ } | undefined;
2309
2349
  symmetricRange?: number | undefined;
2310
2350
  upperValue?: number | undefined;
2311
2351
  lowerValue?: number | undefined;
@@ -3811,7 +3851,7 @@ export declare const ScatterplotSettingsSchema: z.ZodObject<{
3811
3851
  }[] | undefined;
3812
3852
  legend?: {
3813
3853
  show?: boolean | undefined;
3814
- position?: "right" | "inside" | "top" | "bottom" | undefined;
3854
+ position?: "top" | "bottom" | "right" | "inside" | undefined;
3815
3855
  } | undefined;
3816
3856
  tooltips?: {
3817
3857
  show?: boolean | undefined;
@@ -3826,7 +3866,7 @@ export declare const ScatterplotSettingsSchema: z.ZodObject<{
3826
3866
  }[] | undefined;
3827
3867
  } | undefined;
3828
3868
  frame?: {
3829
- type?: "left" | "bottom" | "left-bottom" | "full" | "empty" | undefined;
3869
+ type?: "bottom" | "left" | "left-bottom" | "full" | "empty" | undefined;
3830
3870
  } | undefined;
3831
3871
  facetSettings?: {
3832
3872
  sharedX?: boolean | undefined;
@@ -3868,7 +3908,11 @@ export declare const ScatterplotSettingsSchema: z.ZodObject<{
3868
3908
  showTicks?: boolean | undefined;
3869
3909
  hiddenLabels?: boolean | undefined;
3870
3910
  significantLines?: number[] | undefined;
3871
- significantLinesStyle?: "solid" | "dashed" | "dotted" | "dotdash" | "longdash" | "twodash" | undefined;
3911
+ significantLinesStyle?: {
3912
+ shape?: "solid" | "dashed" | "dotted" | "dotdash" | "longdash" | "twodash" | undefined;
3913
+ showLabel?: boolean | undefined;
3914
+ labelPosition?: "top" | "bottom" | "left" | "right" | undefined;
3915
+ } | undefined;
3872
3916
  symmetricRange?: number | undefined;
3873
3917
  upperValue?: number | undefined;
3874
3918
  lowerValue?: number | undefined;
@@ -3906,7 +3950,11 @@ export declare const ScatterplotSettingsSchema: z.ZodObject<{
3906
3950
  showTicks?: boolean | undefined;
3907
3951
  hiddenLabels?: boolean | undefined;
3908
3952
  significantLines?: number[] | undefined;
3909
- significantLinesStyle?: "solid" | "dashed" | "dotted" | "dotdash" | "longdash" | "twodash" | undefined;
3953
+ significantLinesStyle?: {
3954
+ shape?: "solid" | "dashed" | "dotted" | "dotdash" | "longdash" | "twodash" | undefined;
3955
+ showLabel?: boolean | undefined;
3956
+ labelPosition?: "top" | "bottom" | "left" | "right" | undefined;
3957
+ } | undefined;
3910
3958
  symmetricRange?: number | undefined;
3911
3959
  upperValue?: number | undefined;
3912
3960
  lowerValue?: number | undefined;
@@ -4179,7 +4227,7 @@ export declare const ScatterplotSettingsSchema: z.ZodObject<{
4179
4227
  }[] | undefined;
4180
4228
  legend?: {
4181
4229
  show?: boolean | undefined;
4182
- position?: "right" | "inside" | "top" | "bottom" | undefined;
4230
+ position?: "top" | "bottom" | "right" | "inside" | undefined;
4183
4231
  } | undefined;
4184
4232
  tooltips?: {
4185
4233
  show?: boolean | undefined;
@@ -4194,7 +4242,7 @@ export declare const ScatterplotSettingsSchema: z.ZodObject<{
4194
4242
  }[] | undefined;
4195
4243
  } | undefined;
4196
4244
  frame?: {
4197
- type?: "left" | "bottom" | "left-bottom" | "full" | "empty" | undefined;
4245
+ type?: "bottom" | "left" | "left-bottom" | "full" | "empty" | undefined;
4198
4246
  } | undefined;
4199
4247
  facetSettings?: {
4200
4248
  sharedX?: boolean | undefined;
@@ -4236,7 +4284,11 @@ export declare const ScatterplotSettingsSchema: z.ZodObject<{
4236
4284
  showTicks?: boolean | undefined;
4237
4285
  hiddenLabels?: boolean | undefined;
4238
4286
  significantLines?: number[] | undefined;
4239
- significantLinesStyle?: "solid" | "dashed" | "dotted" | "dotdash" | "longdash" | "twodash" | undefined;
4287
+ significantLinesStyle?: {
4288
+ shape?: "solid" | "dashed" | "dotted" | "dotdash" | "longdash" | "twodash" | undefined;
4289
+ showLabel?: boolean | undefined;
4290
+ labelPosition?: "top" | "bottom" | "left" | "right" | undefined;
4291
+ } | undefined;
4240
4292
  symmetricRange?: number | undefined;
4241
4293
  upperValue?: number | undefined;
4242
4294
  lowerValue?: number | undefined;
@@ -4274,7 +4326,11 @@ export declare const ScatterplotSettingsSchema: z.ZodObject<{
4274
4326
  showTicks?: boolean | undefined;
4275
4327
  hiddenLabels?: boolean | undefined;
4276
4328
  significantLines?: number[] | undefined;
4277
- significantLinesStyle?: "solid" | "dashed" | "dotted" | "dotdash" | "longdash" | "twodash" | undefined;
4329
+ significantLinesStyle?: {
4330
+ shape?: "solid" | "dashed" | "dotted" | "dotdash" | "longdash" | "twodash" | undefined;
4331
+ showLabel?: boolean | undefined;
4332
+ labelPosition?: "top" | "bottom" | "left" | "right" | undefined;
4333
+ } | undefined;
4278
4334
  symmetricRange?: number | undefined;
4279
4335
  upperValue?: number | undefined;
4280
4336
  lowerValue?: number | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"scatterplot.d.ts","sourceRoot":"","sources":["../../src/types/scatterplot.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EAAE,OAAO,EAAE,oCAAoC,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AACnG,OAAO,EAGH,mCAAmC,EAOtC,MAAM,UAAU,CAAC;AAElB,KAAK,gBAAgB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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA0CvF,CAAC;AAEH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAE5E,MAAM,MAAM,qBAAqB,GAAG,MAAM,CACtC,MAAM,EACN;IACI,MAAM,EAAE,QAAQ,EAAE,CAAC;IACnB,OAAO,EAAE,CAAC,MAAM,OAAO,CAAC,EAAE,CAAC;IAC3B,MAAM,EAAE,CAAC,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,OAAO,KAAK,SAAS,GAAG,SAAS,CAAC;IACzE,MAAM,EAAE,MAAM,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC;CACpC,CACJ,CAAC"}
@@ -188,10 +188,10 @@ export declare const SelectionSettingsSchema: z.ZodObject<{
188
188
  position: z.ZodOptional<z.ZodEnum<["inside", "right", "top", "bottom"]>>;
189
189
  }, "strip", z.ZodTypeAny, {
190
190
  show?: boolean | undefined;
191
- position?: "right" | "inside" | "top" | "bottom" | undefined;
191
+ position?: "top" | "bottom" | "right" | "inside" | undefined;
192
192
  }, {
193
193
  show?: boolean | undefined;
194
- position?: "right" | "inside" | "top" | "bottom" | undefined;
194
+ position?: "top" | "bottom" | "right" | "inside" | undefined;
195
195
  }>>;
196
196
  title: z.ZodObject<{
197
197
  name: z.ZodString;
@@ -208,19 +208,16 @@ export declare const SelectionSettingsSchema: z.ZodObject<{
208
208
  }>;
209
209
  xAxis: z.ZodOptional<z.ZodObject<{
210
210
  title: z.ZodOptional<z.ZodString>;
211
- showGrid: z.ZodOptional<z.ZodBoolean>;
212
211
  showTicks: z.ZodOptional<z.ZodBoolean>;
213
212
  hiddenLabels: z.ZodOptional<z.ZodBoolean>;
214
213
  labelsPosition: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"center">, z.ZodLiteral<"45deg">, z.ZodLiteral<"90deg">]>>;
215
214
  }, "strip", z.ZodTypeAny, {
216
215
  title?: string | undefined;
217
- showGrid?: boolean | undefined;
218
216
  showTicks?: boolean | undefined;
219
217
  labelsPosition?: "center" | "45deg" | "90deg" | undefined;
220
218
  hiddenLabels?: boolean | undefined;
221
219
  }, {
222
220
  title?: string | undefined;
223
- showGrid?: boolean | undefined;
224
221
  showTicks?: boolean | undefined;
225
222
  labelsPosition?: "center" | "45deg" | "90deg" | undefined;
226
223
  hiddenLabels?: boolean | undefined;
@@ -244,9 +241,9 @@ export declare const SelectionSettingsSchema: z.ZodObject<{
244
241
  frame: z.ZodOptional<z.ZodObject<{
245
242
  type: z.ZodOptional<z.ZodEnum<["left", "bottom", "left-bottom", "full", "empty"]>>;
246
243
  }, "strip", z.ZodTypeAny, {
247
- type?: "left" | "bottom" | "left-bottom" | "full" | "empty" | undefined;
244
+ type?: "bottom" | "left" | "left-bottom" | "full" | "empty" | undefined;
248
245
  }, {
249
- type?: "left" | "bottom" | "left-bottom" | "full" | "empty" | undefined;
246
+ type?: "bottom" | "left" | "left-bottom" | "full" | "empty" | undefined;
250
247
  }>>;
251
248
  fillColor: z.ZodUnion<[z.ZodString, z.ZodObject<{
252
249
  type: z.ZodString;
@@ -317,10 +314,10 @@ export declare const SelectionSettingsSchema: z.ZodObject<{
317
314
  opacity?: number | undefined;
318
315
  legend?: {
319
316
  show?: boolean | undefined;
320
- position?: "right" | "inside" | "top" | "bottom" | undefined;
317
+ position?: "top" | "bottom" | "right" | "inside" | undefined;
321
318
  } | undefined;
322
319
  frame?: {
323
- type?: "left" | "bottom" | "left-bottom" | "full" | "empty" | undefined;
320
+ type?: "bottom" | "left" | "left-bottom" | "full" | "empty" | undefined;
324
321
  } | undefined;
325
322
  facetSettings?: {
326
323
  order?: string[] | undefined;
@@ -329,7 +326,6 @@ export declare const SelectionSettingsSchema: z.ZodObject<{
329
326
  } | undefined;
330
327
  xAxis?: {
331
328
  title?: string | undefined;
332
- showGrid?: boolean | undefined;
333
329
  showTicks?: boolean | undefined;
334
330
  labelsPosition?: "center" | "45deg" | "90deg" | undefined;
335
331
  hiddenLabels?: boolean | undefined;
@@ -406,10 +402,10 @@ export declare const SelectionSettingsSchema: z.ZodObject<{
406
402
  opacity?: number | undefined;
407
403
  legend?: {
408
404
  show?: boolean | undefined;
409
- position?: "right" | "inside" | "top" | "bottom" | undefined;
405
+ position?: "top" | "bottom" | "right" | "inside" | undefined;
410
406
  } | undefined;
411
407
  frame?: {
412
- type?: "left" | "bottom" | "left-bottom" | "full" | "empty" | undefined;
408
+ type?: "bottom" | "left" | "left-bottom" | "full" | "empty" | undefined;
413
409
  } | undefined;
414
410
  facetSettings?: {
415
411
  order?: string[] | undefined;
@@ -418,7 +414,6 @@ export declare const SelectionSettingsSchema: z.ZodObject<{
418
414
  } | undefined;
419
415
  xAxis?: {
420
416
  title?: string | undefined;
421
- showGrid?: boolean | undefined;
422
417
  showTicks?: boolean | undefined;
423
418
  labelsPosition?: "center" | "45deg" | "90deg" | undefined;
424
419
  hiddenLabels?: boolean | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"selection.d.ts","sourceRoot":"","sources":["../../src/types/selection.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAiDrG,CAAC;AAEH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC"}
@@ -26,7 +26,6 @@ const c = s.object({
26
26
  }),
27
27
  xAxis: s.optional(s.object({
28
28
  title: s.optional(s.string()),
29
- showGrid: s.optional(s.boolean()),
30
29
  showTicks: s.optional(s.boolean()),
31
30
  hiddenLabels: s.optional(s.boolean()),
32
31
  labelsPosition: s.optional(r)
@@ -1 +1 @@
1
- {"version":3,"file":"selection.js","names":[],"sources":["../../src/types/selection.ts"],"sourcesContent":["import { z } from 'zod';\nimport { AesRecordSchema, ColumnNameSchema, DataValueSchema, DiscreteLabelsPositionSchema, FrameTypeSchema, LegendPositionSchema, TitlePositionSchema } from './common';\n\nexport const SelectionSettingsSchema = z.object({\n type: z.literal('selection'),\n\n selectionStage: ColumnNameSchema,\n weight: z.optional(ColumnNameSchema),\n grouping: z.optional(\n z.object({\n columnName: ColumnNameSchema,\n order: z.optional(z.array(DataValueSchema)),\n inheritedAes: z.optional(AesRecordSchema),\n }),\n ),\n\n facetBy: z.optional(z.array(ColumnNameSchema)),\n facetSettings: z.optional(\n z.object({\n /** Ordered list of facet keys (e.g. \"val1_val2\"); only these facets are shown, in this order. */\n order: z.optional(z.array(z.string())),\n nRows: z.optional(z.number()),\n nCols: z.optional(z.number()),\n }),\n ),\n\n legend: z.optional(\n z.object({\n show: z.optional(z.boolean()),\n position: z.optional(LegendPositionSchema),\n }),\n ),\n\n title: z.object({\n name: z.string(),\n show: z.optional(z.boolean()),\n position: z.optional(TitlePositionSchema),\n }),\n\n xAxis: z.optional(\n z.object({\n title: z.optional(z.string()),\n showGrid: z.optional(z.boolean()),\n showTicks: z.optional(z.boolean()),\n hiddenLabels: z.optional(z.boolean()),\n labelsPosition: z.optional(DiscreteLabelsPositionSchema),\n }),\n ),\n yAxis: z.optional(\n z.object({\n title: z.optional(z.string()),\n showGrid: z.optional(z.boolean()),\n showTicks: z.optional(z.boolean()),\n hiddenLabels: z.optional(z.boolean()),\n }),\n ),\n frame: z.optional(z.object({ type: z.optional(FrameTypeSchema) })),\n\n fillColor: z.union([\n z.string(),\n z.object({ type: z.string(), value: z.optional(z.string()) }),\n ]),\n\n opacity: z.optional(z.number()),\n\n size: z.optional(z.object({\n width: z.optional(z.number()),\n height: z.optional(z.number()),\n })),\n});\n\nexport type SelectionSettings = z.infer<typeof SelectionSettingsSchema>;\n"],"mappings":";;AAGA,MAAa,IAA0B,EAAE,OAAO;CAC9C,MAAM,EAAE,QAAQ,YAAY;CAE5B,gBAAgB;CAChB,QAAQ,EAAE,SAAS,EAAiB;CACpC,UAAU,EAAE,SACV,EAAE,OAAO;EACP,YAAY;EACZ,OAAO,EAAE,SAAS,EAAE,MAAM,EAAgB,CAAC;EAC3C,cAAc,EAAE,SAAS,EAAgB;EAC1C,CAAC,CACH;CAED,SAAS,EAAE,SAAS,EAAE,MAAM,EAAiB,CAAC;CAC9C,eAAe,EAAE,SACf,EAAE,OAAO;EAEP,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAC;EACtC,OAAO,EAAE,SAAS,EAAE,QAAQ,CAAC;EAC7B,OAAO,EAAE,SAAS,EAAE,QAAQ,CAAC;EAC9B,CAAC,CACH;CAED,QAAQ,EAAE,SACR,EAAE,OAAO;EACP,MAAM,EAAE,SAAS,EAAE,SAAS,CAAC;EAC7B,UAAU,EAAE,SAAS,EAAqB;EAC3C,CAAC,CACH;CAED,OAAO,EAAE,OAAO;EACd,MAAM,EAAE,QAAQ;EAChB,MAAM,EAAE,SAAS,EAAE,SAAS,CAAC;EAC7B,UAAU,EAAE,SAAS,EAAoB;EAC1C,CAAC;CAEF,OAAO,EAAE,SACP,EAAE,OAAO;EACP,OAAO,EAAE,SAAS,EAAE,QAAQ,CAAC;EAC7B,UAAU,EAAE,SAAS,EAAE,SAAS,CAAC;EACjC,WAAW,EAAE,SAAS,EAAE,SAAS,CAAC;EAClC,cAAc,EAAE,SAAS,EAAE,SAAS,CAAC;EACrC,gBAAgB,EAAE,SAAS,EAA6B;EACzD,CAAC,CACH;CACD,OAAO,EAAE,SACP,EAAE,OAAO;EACP,OAAO,EAAE,SAAS,EAAE,QAAQ,CAAC;EAC7B,UAAU,EAAE,SAAS,EAAE,SAAS,CAAC;EACjC,WAAW,EAAE,SAAS,EAAE,SAAS,CAAC;EAClC,cAAc,EAAE,SAAS,EAAE,SAAS,CAAC;EACtC,CAAC,CACH;CACD,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,EAAE,SAAS,EAAgB,EAAE,CAAC,CAAC;CAElE,WAAW,EAAE,MAAM,CACjB,EAAE,QAAQ,EACV,EAAE,OAAO;EAAE,MAAM,EAAE,QAAQ;EAAE,OAAO,EAAE,SAAS,EAAE,QAAQ,CAAC;EAAE,CAAC,CAC9D,CAAC;CAEF,SAAS,EAAE,SAAS,EAAE,QAAQ,CAAC;CAE/B,MAAM,EAAE,SAAS,EAAE,OAAO;EACxB,OAAO,EAAE,SAAS,EAAE,QAAQ,CAAC;EAC7B,QAAQ,EAAE,SAAS,EAAE,QAAQ,CAAC;EAC/B,CAAC,CAAC;CACJ,CAAC"}
1
+ {"version":3,"file":"selection.js","names":[],"sources":["../../src/types/selection.ts"],"sourcesContent":["import { z } from 'zod';\nimport { AesRecordSchema, ColumnNameSchema, DataValueSchema, DiscreteLabelsPositionSchema, FrameTypeSchema, LegendPositionSchema, TitlePositionSchema } from './common';\n\nexport const SelectionSettingsSchema = z.object({\n type: z.literal('selection'),\n\n selectionStage: ColumnNameSchema,\n weight: z.optional(ColumnNameSchema),\n grouping: z.optional(\n z.object({\n columnName: ColumnNameSchema,\n order: z.optional(z.array(DataValueSchema)),\n inheritedAes: z.optional(AesRecordSchema),\n }),\n ),\n\n facetBy: z.optional(z.array(ColumnNameSchema)),\n facetSettings: z.optional(\n z.object({\n /** Ordered list of facet keys (e.g. \"val1_val2\"); only these facets are shown, in this order. */\n order: z.optional(z.array(z.string())),\n nRows: z.optional(z.number()),\n nCols: z.optional(z.number()),\n }),\n ),\n\n legend: z.optional(\n z.object({\n show: z.optional(z.boolean()),\n position: z.optional(LegendPositionSchema),\n }),\n ),\n\n title: z.object({\n name: z.string(),\n show: z.optional(z.boolean()),\n position: z.optional(TitlePositionSchema),\n }),\n\n xAxis: z.optional(\n z.object({\n title: z.optional(z.string()),\n showTicks: z.optional(z.boolean()),\n hiddenLabels: z.optional(z.boolean()),\n labelsPosition: z.optional(DiscreteLabelsPositionSchema),\n }),\n ),\n yAxis: z.optional(\n z.object({\n title: z.optional(z.string()),\n showGrid: z.optional(z.boolean()),\n showTicks: z.optional(z.boolean()),\n hiddenLabels: z.optional(z.boolean()),\n }),\n ),\n frame: z.optional(z.object({ type: z.optional(FrameTypeSchema) })),\n\n fillColor: z.union([\n z.string(),\n z.object({ type: z.string(), value: z.optional(z.string()) }),\n ]),\n\n opacity: z.optional(z.number()),\n\n size: z.optional(z.object({\n width: z.optional(z.number()),\n height: z.optional(z.number()),\n })),\n});\n\nexport type SelectionSettings = z.infer<typeof SelectionSettingsSchema>;\n"],"mappings":";;AAGA,MAAa,IAA0B,EAAE,OAAO;CAC9C,MAAM,EAAE,QAAQ,YAAY;CAE5B,gBAAgB;CAChB,QAAQ,EAAE,SAAS,EAAiB;CACpC,UAAU,EAAE,SACV,EAAE,OAAO;EACP,YAAY;EACZ,OAAO,EAAE,SAAS,EAAE,MAAM,EAAgB,CAAC;EAC3C,cAAc,EAAE,SAAS,EAAgB;EAC1C,CAAC,CACH;CAED,SAAS,EAAE,SAAS,EAAE,MAAM,EAAiB,CAAC;CAC9C,eAAe,EAAE,SACf,EAAE,OAAO;EAEP,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAC;EACtC,OAAO,EAAE,SAAS,EAAE,QAAQ,CAAC;EAC7B,OA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, facetsCount: number, columnsCount: number, rowsCount: number): ("left" | "right" | "top" | "bottom")[];
1
+ export declare function getChartEdgeSides(index: number, facetsCount: number, columnsCount: number, rowsCount: number): ("top" | "bottom" | "left" | "right")[];
2
2
  //# sourceMappingURL=getChartEdgeSides.d.ts.map
@@ -0,0 +1,8 @@
1
+ import { LineShape, SignificantLineLabelPosition, SignificantLinesStyle } from '../types';
2
+ export type ResolvedSignificantLinesStyle = {
3
+ shape: LineShape;
4
+ showLabel: boolean;
5
+ labelPosition: SignificantLineLabelPosition;
6
+ };
7
+ export declare function resolveSignificantLinesStyle(value: SignificantLinesStyle | undefined, axis: 'x' | 'y'): ResolvedSignificantLinesStyle;
8
+ //# sourceMappingURL=significantLinesStyle.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"significantLinesStyle.d.ts","sourceRoot":"","sources":["../../src/utils/significantLinesStyle.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACR,SAAS,EACT,4BAA4B,EAC5B,qBAAqB,EACxB,MAAM,UAAU,CAAC;AAElB,MAAM,MAAM,6BAA6B,GAAG;IACxC,KAAK,EAAE,SAAS,CAAC;IACjB,SAAS,EAAE,OAAO,CAAC;IACnB,aAAa,EAAE,4BAA4B,CAAC;CAC/C,CAAC;AAOF,wBAAgB,4BAA4B,CACxC,KAAK,EAAE,qBAAqB,GAAG,SAAS,EACxC,IAAI,EAAE,GAAG,GAAG,GAAG,GAChB,6BAA6B,CAkB/B"}
@@ -0,0 +1,12 @@
1
+ var e = "top", t = "left";
2
+ function n(n, r) {
3
+ let i = r === "x" ? e : t, a = r === "x" ? ["top", "bottom"] : ["left", "right"], o = "solid", s = !1, c = i;
4
+ return n && (n.shape && (o = n.shape), n.showLabel !== void 0 && (s = n.showLabel), n.labelPosition && a.includes(n.labelPosition) && (c = n.labelPosition)), {
5
+ shape: o,
6
+ showLabel: s,
7
+ labelPosition: c
8
+ };
9
+ }
10
+ export { n as resolveSignificantLinesStyle };
11
+
12
+ //# sourceMappingURL=significantLinesStyle.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"significantLinesStyle.js","names":[],"sources":["../../src/utils/significantLinesStyle.ts"],"sourcesContent":["import type {\n LineShape,\n SignificantLineLabelPosition,\n SignificantLinesStyle,\n} from '../types';\n\nexport type ResolvedSignificantLinesStyle = {\n shape: LineShape;\n showLabel: boolean;\n labelPosition: SignificantLineLabelPosition;\n};\n\nconst X_FALLBACK: SignificantLineLabelPosition = 'top';\nconst Y_FALLBACK: SignificantLineLabelPosition = 'left';\n\n// Fill in defaults for the optional fields and reject mismatched\n// labelPosition values (e.g. `top` on a Y axis).\nexport function resolveSignificantLinesStyle(\n value: SignificantLinesStyle | undefined,\n axis: 'x' | 'y',\n): ResolvedSignificantLinesStyle {\n const fallback = axis === 'x' ? X_FALLBACK : Y_FALLBACK;\n const valid: SignificantLineLabelPosition[] = axis === 'x'\n ? ['top', 'bottom']\n : ['left', 'right'];\n\n let shape: LineShape = 'solid';\n let showLabel = false;\n let labelPosition: SignificantLineLabelPosition = fallback;\n\n if (value) {\n if (value.shape) shape = value.shape;\n if (value.showLabel !== undefined) showLabel = value.showLabel;\n if (value.labelPosition && valid.includes(value.labelPosition)) {\n labelPosition = value.labelPosition;\n }\n }\n return { shape, showLabel, labelPosition };\n}\n"],"mappings":"AAYA,IAAM,IAA2C,OAC3C,IAA2C;AAIjD,SAAgB,EACZ,GACA,GAC6B;CAC7B,IAAM,IAAW,MAAS,MAAM,IAAa,GACvC,IAAwC,MAAS,MACjD,CAAC,OAAO,SAAS,GACjB,CAAC,QAAQ,QAAQ,EAEnB,IAAmB,SACnB,IAAY,IACZ,IAA8C;AASlD,QAPI,MACI,EAAM,UAAO,IAAQ,EAAM,QAC3B,EAAM,cAAc,KAAA,MAAW,IAAY,EAAM,YACjD,EAAM,iBAAiB,EAAM,SAAS,EAAM,cAAc,KAC1D,IAAgB,EAAM,iBAGvB;EAAE;EAAO;EAAW;EAAe"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@milaboratories/miplots4",
3
- "version": "1.2.1",
3
+ "version": "1.2.3",
4
4
  "description": "Data visualization library",
5
5
  "author": "erohinaelena",
6
6
  "license": "ISC",