@milaboratories/graph-maker 1.1.35 → 1.1.37

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.
@@ -1,7 +1,8 @@
1
1
  import { FormKey } from '../../forms';
2
+ import { ChartType } from '@milaboratories/pf-plots';
2
3
 
3
4
  declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
4
- chartType: string;
5
+ chartType: ChartType;
5
6
  chartEmpty: boolean;
6
7
  allowDeleting?: boolean;
7
8
  modelValue: FormKey | null;
@@ -10,7 +11,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
10
11
  export: (...args: any[]) => void;
11
12
  "update:modelValue": (...args: any[]) => void;
12
13
  }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
13
- chartType: string;
14
+ chartType: ChartType;
14
15
  chartEmpty: boolean;
15
16
  allowDeleting?: boolean;
16
17
  modelValue: FormKey | null;
@@ -19,7 +19,7 @@ export declare const DISCRETE_TEMPLATES_MAP: Record<DiscreteLayersTemplate, Disc
19
19
  export declare const SCATTERPLOT_TEMPLATES_MAP: Record<ScatterplotLayersTemplate, ScatterplotLayer[]>;
20
20
  export declare const HEATMAP_TEMPLATES_MAP: Record<HeatmapLayerTemplate, HeatmapLayer[]>;
21
21
  export declare const LAYER_TITLES: Record<Layer, string>;
22
- export type StatisticsState = {
22
+ export type DiscreteStatisticsState = {
23
23
  overall: {
24
24
  data: {
25
25
  testMethod: null | string;
@@ -53,7 +53,15 @@ export type StatisticsState = {
53
53
  };
54
54
  };
55
55
  };
56
- export declare function getInitialStatisticsState(initialData?: DeepPartial<StatisticsState>): StatisticsState;
56
+ export type ScatterplotStatisticsState = {
57
+ trend: {
58
+ on: boolean;
59
+ trim: boolean;
60
+ showLegend: boolean;
61
+ };
62
+ };
63
+ export type StatisticsState = DiscreteStatisticsState | ScatterplotStatisticsState;
64
+ export declare function getInitialStatisticsState(chartType: ChartType, initialData?: DeepPartial<StatisticsState>): StatisticsState;
57
65
  export type NumberRange = {
58
66
  min: number;
59
67
  max: number;
@@ -0,0 +1,2 @@
1
+ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
2
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
2
+ export default _default;
@@ -280,6 +280,12 @@ export declare function createReactiveState(initialData: GraphMakerState, chartT
280
280
  testMethod: boolean;
281
281
  };
282
282
  };
283
+ } | {
284
+ trend: {
285
+ on: boolean;
286
+ trim: boolean;
287
+ showLegend: boolean;
288
+ };
283
289
  };
284
290
  dataBindAes: Record<string, import('./dataBindAes').AestheticMappingCategorical>;
285
291
  chartScale: number;
@@ -568,6 +574,12 @@ export declare function factoryStore(reactiveState: Reactive<ReactiveState>, dat
568
574
  testMethod: boolean;
569
575
  };
570
576
  };
577
+ } | {
578
+ trend: {
579
+ on: boolean;
580
+ trim: boolean;
581
+ showLegend: boolean;
582
+ };
571
583
  };
572
584
  dataBindAes: Record<string, import('./dataBindAes').AestheticMappingCategorical>;
573
585
  chartScale: number;
@@ -884,6 +896,12 @@ export declare function provideStore(initialState: GraphMakerState, dataStoreRef
884
896
  testMethod: boolean;
885
897
  };
886
898
  };
899
+ } | {
900
+ trend: {
901
+ on: boolean;
902
+ trim: boolean;
903
+ showLegend: boolean;
904
+ };
887
905
  };
888
906
  dataBindAes: Record<string, import('./dataBindAes').AestheticMappingCategorical>;
889
907
  chartScale: number;
@@ -1,10 +1,10 @@
1
- import { getDefaultLayersSettings, NumberRange, LayersSettings, MappingLink, StatisticsState, ColumnNameSchema } from '../constant.ts';
1
+ import { getDefaultLayersSettings, NumberRange, LayersSettings, MappingLink, DiscreteStatisticsState, ColumnNameSchema, StatisticsState } from '../constant.ts';
2
2
  import { Layer, LayersTemplate } from '../types.ts';
3
3
  import { ChartType, InputState, PlotDataAndSettings } from '@milaboratories/pf-plots';
4
4
  import { DotShape, LineType } from '../components/AesSettings/types.ts';
5
5
  import { ScatterplotSettings } from '@milaboratories/miplots4';
6
6
 
7
- export declare function getStatLayers(statisticsSettings: StatisticsState): ChartLayerSettings[];
7
+ export declare function getStatLayers(statisticsSettings: DiscreteStatisticsState): ChartLayerSettings[];
8
8
  export declare function getScatterplotLayersSettings(layers: Layer[], layerSettings: ReturnType<typeof getDefaultLayersSettings>, dataByColumns: PlotDataAndSettings['dataByColumns'], grouping: ColumnNameSchema[]): ScatterplotSettings['layers'];
9
9
  export type ChartLayerSettings = {
10
10
  [key: string]: string | boolean | null | Record<string, string | DotShape | NumberRange | {