@milaboratories/graph-maker 1.1.105 → 1.1.106

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.
@@ -260,6 +260,8 @@ export type AxesState = {
260
260
  facetSharedBy: 'x' | 'y' | 'xy' | 'none';
261
261
  facetColumns: number;
262
262
  binsCount: number;
263
+ groupingDirection: 'straight' | 'reverse';
264
+ groupingStack: 'vertical' | 'horizontal';
263
265
  };
264
266
  };
265
267
  export declare function getInitialAxesSettings(chartType: ChartType, initialAxesSettings?: DeepPartial<AxesState>): AxesState;
@@ -56,6 +56,13 @@ export declare function getChartSettingsInheritedAes(uniqueValuesData: Record<st
56
56
  order: (string | number)[];
57
57
  inheritedAes: Record<string, any>;
58
58
  };
59
- export declare function getScatterplotAes(selectedStr: string, uniqueValuesData: Record<string, UniqueValuesData>, dataBindAes: AestheticMappingState): Record<string, any>;
59
+ export declare function getScatterplotAes(selectedSource: string, uniqueValuesData: Record<string, UniqueValuesData>, dataBindAes: AestheticMappingState): Record<string, any>;
60
+ export declare function getHistogramAes(selectedSource: string, uniqueValuesData: Record<string, UniqueValuesData>, dataBindAes: AestheticMappingState): {
61
+ order?: undefined;
62
+ inheritedAes?: undefined;
63
+ } | {
64
+ order: (string | number)[];
65
+ inheritedAes: Record<string, any>;
66
+ };
60
67
  export declare function getDendroAes(selectedStr: string, uniqueValuesData: Record<string, UniqueValuesData>, dataBindAes: AestheticMappingState, field: keyof AestheticValues): Record<string, AestheticValues[keyof AestheticValues]>;
61
68
  export {};
@@ -251,7 +251,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
251
251
  type: import('vue').PropType<(spec: import('@milaboratories/pf-plots').PColumnSpec) => boolean>;
252
252
  };
253
253
  readonlyInputs: {
254
- type: import('vue').PropType<("value" | "filters" | "tabBy" | "facetBy")[]>;
254
+ type: import('vue').PropType<("value" | "grouping" | "filters" | "tabBy" | "facetBy")[]>;
255
255
  };
256
256
  } | {
257
257
  modelValue: {
@@ -552,7 +552,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
552
552
  type: import('vue').PropType<(spec: import('@milaboratories/pf-plots').PColumnSpec) => boolean>;
553
553
  };
554
554
  readonlyInputs: {
555
- type: import('vue').PropType<("value" | "filters" | "tabBy" | "facetBy")[]>;
555
+ type: import('vue').PropType<("value" | "grouping" | "filters" | "tabBy" | "facetBy")[]>;
556
556
  };
557
557
  } | {
558
558
  modelValue: {
@@ -279,6 +279,8 @@ export declare function createReactiveState(initialData: GraphMakerState, chartT
279
279
  facetSharedBy: "x" | "y" | "xy" | "none";
280
280
  facetColumns: number;
281
281
  binsCount: number;
282
+ groupingDirection: "straight" | "reverse";
283
+ groupingStack: "vertical" | "horizontal";
282
284
  };
283
285
  };
284
286
  statisticsSettings: {
@@ -609,6 +611,8 @@ export declare function factoryStore(reactiveState: Reactive<ReactiveState>, dat
609
611
  facetSharedBy: "x" | "y" | "xy" | "none";
610
612
  facetColumns: number;
611
613
  binsCount: number;
614
+ groupingDirection: "straight" | "reverse";
615
+ groupingStack: "vertical" | "horizontal";
612
616
  };
613
617
  };
614
618
  statisticsSettings: {
@@ -969,6 +973,8 @@ export declare function provideStore(initialState: GraphMakerState, dataStoreRef
969
973
  facetSharedBy: "x" | "y" | "xy" | "none";
970
974
  facetColumns: number;
971
975
  binsCount: number;
976
+ groupingDirection: "straight" | "reverse";
977
+ groupingStack: "vertical" | "horizontal";
972
978
  };
973
979
  };
974
980
  statisticsSettings: {
@@ -373,5 +373,5 @@ export declare function composeDiscreteSettings(settings: DiscreteSettings, reac
373
373
  }> | undefined;
374
374
  order?: (string | number | null)[] | undefined;
375
375
  } | undefined;
376
- orientation?: "horizontal" | "vertical" | undefined;
376
+ orientation?: "vertical" | "horizontal" | undefined;
377
377
  };
@@ -1,7 +1,7 @@
1
- import { ReactiveState } from '../../types.ts';
1
+ import { ReactiveState, UniqueValuesData } from '../../types.ts';
2
2
  import { HistogramSettings } from '@milaboratories/miplots4';
3
3
 
4
- export declare function composeHistogramSettings(settings: HistogramSettings, reactiveState: ReactiveState): {
4
+ export declare function composeHistogramSettings(settings: HistogramSettings, reactiveState: ReactiveState, uniqueValuesData: Record<string, UniqueValuesData>): {
5
5
  type: "histogram";
6
6
  title: {
7
7
  name: string;
@@ -37,7 +37,7 @@ export declare function composeHistogramSettings(settings: HistogramSettings, re
37
37
  value: string;
38
38
  label?: string | undefined;
39
39
  valueLabels?: string | undefined;
40
- }[] | undefined;
40
+ } | undefined;
41
41
  size?: {
42
42
  width?: number | undefined;
43
43
  height?: number | undefined;
@@ -91,4 +91,7 @@ export declare function composeHistogramSettings(settings: HistogramSettings, re
91
91
  fillColor?: string | undefined;
92
92
  }>> | undefined;
93
93
  binsCount?: number | undefined;
94
+ groupingStack?: "vertical" | "horizontal" | undefined;
95
+ groupingDirection?: "reverse" | "straight" | undefined;
96
+ groupingOrder?: string[] | undefined;
94
97
  };
@@ -15,6 +15,8 @@ type AxesSettings = {
15
15
  sharedX?: boolean;
16
16
  sharedY?: boolean;
17
17
  };
18
+ groupingDirection?: AxesState['other']['groupingDirection'];
19
+ groupingStack?: AxesState['other']['groupingStack'];
18
20
  };
19
21
  export declare function getDiscreteLabelsRotation(value: LabelsRotation | null, discreteGroups?: UniqueValuesData['options']): LabelsRotation;
20
22
  export declare function getAxesDataFromForms(axesFormsData: AxesState, chartType: ChartType, discreteGroups?: UniqueValuesData['options']): AxesSettings;