@milaboratories/miplots4 1.0.113 → 1.0.115

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/index.d.ts CHANGED
@@ -3734,6 +3734,7 @@ declare const DiscreteSettingsSchema: z.ZodObject<{
3734
3734
  lineColor?: string | undefined;
3735
3735
  fillColor?: string | undefined;
3736
3736
  }>>>;
3737
+ allowNullGroup: z.ZodOptional<z.ZodBoolean>;
3737
3738
  }, "strip", z.ZodTypeAny, {
3738
3739
  columnName: {
3739
3740
  type: "column";
@@ -3751,6 +3752,7 @@ declare const DiscreteSettingsSchema: z.ZodObject<{
3751
3752
  fillColor?: string | undefined;
3752
3753
  }> | undefined;
3753
3754
  order?: (string | number | null)[] | undefined;
3755
+ allowNullGroup?: boolean | undefined;
3754
3756
  }, {
3755
3757
  columnName: {
3756
3758
  type: "column";
@@ -3768,6 +3770,7 @@ declare const DiscreteSettingsSchema: z.ZodObject<{
3768
3770
  fillColor?: string | undefined;
3769
3771
  }> | undefined;
3770
3772
  order?: (string | number | null)[] | undefined;
3773
+ allowNullGroup?: boolean | undefined;
3771
3774
  }>>;
3772
3775
  secondaryGrouping: z.ZodOptional<z.ZodObject<{
3773
3776
  columnName: z.ZodObject<{
@@ -3812,6 +3815,7 @@ declare const DiscreteSettingsSchema: z.ZodObject<{
3812
3815
  lineColor?: string | undefined;
3813
3816
  fillColor?: string | undefined;
3814
3817
  }>>>;
3818
+ allowNullGroup: z.ZodOptional<z.ZodBoolean>;
3815
3819
  }, "strip", z.ZodTypeAny, {
3816
3820
  columnName: {
3817
3821
  type: "column";
@@ -3829,6 +3833,7 @@ declare const DiscreteSettingsSchema: z.ZodObject<{
3829
3833
  fillColor?: string | undefined;
3830
3834
  }> | undefined;
3831
3835
  order?: (string | number | null)[] | undefined;
3836
+ allowNullGroup?: boolean | undefined;
3832
3837
  }, {
3833
3838
  columnName: {
3834
3839
  type: "column";
@@ -3846,6 +3851,7 @@ declare const DiscreteSettingsSchema: z.ZodObject<{
3846
3851
  fillColor?: string | undefined;
3847
3852
  }> | undefined;
3848
3853
  order?: (string | number | null)[] | undefined;
3854
+ allowNullGroup?: boolean | undefined;
3849
3855
  }>>;
3850
3856
  facetBy: z.ZodOptional<z.ZodArray<z.ZodObject<{
3851
3857
  type: z.ZodLiteral<"column">;
@@ -5456,6 +5462,7 @@ declare const DiscreteSettingsSchema: z.ZodObject<{
5456
5462
  fillColor?: string | undefined;
5457
5463
  }> | undefined;
5458
5464
  order?: (string | number | null)[] | undefined;
5465
+ allowNullGroup?: boolean | undefined;
5459
5466
  } | undefined;
5460
5467
  secondaryGrouping?: {
5461
5468
  columnName: {
@@ -5474,6 +5481,7 @@ declare const DiscreteSettingsSchema: z.ZodObject<{
5474
5481
  fillColor?: string | undefined;
5475
5482
  }> | undefined;
5476
5483
  order?: (string | number | null)[] | undefined;
5484
+ allowNullGroup?: boolean | undefined;
5477
5485
  } | undefined;
5478
5486
  orientation?: "vertical" | "horizontal" | undefined;
5479
5487
  }, {
@@ -5828,6 +5836,7 @@ declare const DiscreteSettingsSchema: z.ZodObject<{
5828
5836
  fillColor?: string | undefined;
5829
5837
  }> | undefined;
5830
5838
  order?: (string | number | null)[] | undefined;
5839
+ allowNullGroup?: boolean | undefined;
5831
5840
  } | undefined;
5832
5841
  secondaryGrouping?: {
5833
5842
  columnName: {
@@ -5846,6 +5855,7 @@ declare const DiscreteSettingsSchema: z.ZodObject<{
5846
5855
  fillColor?: string | undefined;
5847
5856
  }> | undefined;
5848
5857
  order?: (string | number | null)[] | undefined;
5858
+ allowNullGroup?: boolean | undefined;
5849
5859
  } | undefined;
5850
5860
  orientation?: "vertical" | "horizontal" | undefined;
5851
5861
  }>;
@@ -8264,8 +8274,10 @@ type DataByColumns = {
8264
8274
  id: string;
8265
8275
  };
8266
8276
  type DataSet = DataFrame | DataByColumns;
8277
+ declare const NO_GROUPED: unique symbol;
8278
+ type GroupKey = string | typeof NO_GROUPED;
8267
8279
  type Row = Record<string, DataValue>;
8268
- type RowsGroup = Record<string, {
8280
+ type RowsGroup = Record<GroupKey, {
8269
8281
  rows: Row[];
8270
8282
  grouped: RowsGroup;
8271
8283
  }>;
@@ -8274,15 +8286,15 @@ declare class DataFrame {
8274
8286
  data: Record<string, DataValue[]>;
8275
8287
  rowsCount: number;
8276
8288
  columnNames: string[];
8289
+ rows: Row[];
8277
8290
  rowsGrouped?: RowsGroup;
8278
8291
  static from(data: DataSet): DataFrame;
8279
8292
  constructor(id: string, data: Record<string, DataValue[]>);
8280
- get rows(): Row[];
8281
8293
  getColumn(key: string): DataValue[];
8282
- getColumnCategories(key: string): string[];
8283
- setGrouping(groupingColumns: (string | null)[]): void;
8284
- getColumnByGrouping(groupingKeys: (string | null)[], keyYColumn: string): number[];
8285
- getRowsByGrouping(groupingKeys: (string | null)[]): Row[];
8294
+ getColumnCategories(key: string, ignoreNull?: boolean): string[];
8295
+ setGrouping(groupingColumnIds: (string | null)[]): void;
8296
+ getColumnByGrouping(groupingKeys: GroupKey[], keyYColumn: string): number[];
8297
+ getRowsByGrouping(groupingKeys: GroupKey[]): Row[];
8286
8298
  }
8287
8299
 
8288
8300
  interface ChartInterface {