@milaboratories/graph-maker 1.1.39 → 1.1.41

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,8 +1,10 @@
1
+ import { GraphStatus } from '../types.ts';
2
+
1
3
  declare function __VLS_template(): {
2
4
  default?(_: {}): any;
3
5
  };
4
6
  declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
5
- empty: boolean;
7
+ graphStatus: GraphStatus;
6
8
  graphTitle: string;
7
9
  dendroTooltipButton?: string;
8
10
  chartData: Record<string, unknown> | null;
@@ -11,7 +13,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
11
13
  "dendro-node-select": (...args: any[]) => void;
12
14
  "dendro-tooltip-btn-click": (...args: any[]) => void;
13
15
  }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
14
- empty: boolean;
16
+ graphStatus: GraphStatus;
15
17
  graphTitle: string;
16
18
  dendroTooltipButton?: string;
17
19
  chartData: Record<string, unknown> | null;
@@ -1,9 +1,10 @@
1
1
  import { FormKey } from '../../forms';
2
2
  import { ChartType } from '@milaboratories/pf-plots';
3
+ import { GraphStatus } from '../../types.ts';
3
4
 
4
5
  declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
5
6
  chartType: ChartType;
6
- chartEmpty: boolean;
7
+ graphStatus: GraphStatus;
7
8
  allowDeleting?: boolean;
8
9
  modelValue: FormKey | null;
9
10
  }>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
@@ -12,7 +13,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
12
13
  "update:modelValue": (...args: any[]) => void;
13
14
  }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
14
15
  chartType: ChartType;
15
- chartEmpty: boolean;
16
+ graphStatus: GraphStatus;
16
17
  allowDeleting?: boolean;
17
18
  modelValue: FormKey | null;
18
19
  }>>> & Readonly<{
@@ -196,7 +196,7 @@ export type AxesState = {
196
196
  };
197
197
  axisX: {
198
198
  labelsPosition: LabelsPosition;
199
- labelsRotation: LabelsRotation;
199
+ labelsRotation: LabelsRotation | null;
200
200
  axisLabelsAngle: 0 | 45 | 90;
201
201
  titleMode: AxisTitleMode;
202
202
  customTitle: string;
@@ -220,7 +220,7 @@ export declare function createReactiveState(initialData: GraphMakerState, chartT
220
220
  };
221
221
  axisX: {
222
222
  labelsPosition: import('./types.ts').LabelsPosition;
223
- labelsRotation: import('./types.ts').LabelsRotation;
223
+ labelsRotation: import('./types.ts').LabelsRotation | null;
224
224
  axisLabelsAngle: 0 | 45 | 90;
225
225
  titleMode: import('./types.ts').AxisTitleMode;
226
226
  customTitle: string;
@@ -514,7 +514,7 @@ export declare function factoryStore(reactiveState: Reactive<ReactiveState>, dat
514
514
  };
515
515
  axisX: {
516
516
  labelsPosition: import('./types.ts').LabelsPosition;
517
- labelsRotation: import('./types.ts').LabelsRotation;
517
+ labelsRotation: import('./types.ts').LabelsRotation | null;
518
518
  axisLabelsAngle: 0 | 45 | 90;
519
519
  titleMode: import('./types.ts').AxisTitleMode;
520
520
  customTitle: string;
@@ -836,7 +836,7 @@ export declare function provideStore(initialState: GraphMakerState, dataStoreRef
836
836
  };
837
837
  axisX: {
838
838
  labelsPosition: import('./types.ts').LabelsPosition;
839
- labelsRotation: import('./types.ts').LabelsRotation;
839
+ labelsRotation: import('./types.ts').LabelsRotation | null;
840
840
  axisLabelsAngle: 0 | 45 | 90;
841
841
  titleMode: import('./types.ts').AxisTitleMode;
842
842
  customTitle: string;
@@ -77,3 +77,4 @@ export type UniqueValuesData = {
77
77
  }[];
78
78
  labels: Record<string, string>;
79
79
  };
80
+ export type GraphStatus = 'notReady' | 'empty' | 'inconsistent' | 'ready';
@@ -1,5 +1,5 @@
1
1
  import { DemoDataStore, InputGuide, InputState } from '@milaboratories/pf-plots';
2
- import { GraphMakerProps, ReactiveState, UniqueValuesData } from '../types.ts';
2
+ import { GraphMakerProps, ReactiveState, UniqueValuesData } from '../../types.ts';
3
3
 
4
4
  export declare function composeChartSettings(inputGuide: InputGuide<InputState>, labelsInfo: Record<string, UniqueValuesData>, reactiveState: ReactiveState, dataStore: DemoDataStore | null, fixedOptions?: GraphMakerProps['fixedOptions']): Promise<{
5
5
  settings: Record<string, unknown>;
@@ -1,5 +1,6 @@
1
- import { AxesState } from '../constant.ts';
1
+ import { AxesState } from '../../constant.ts';
2
2
  import { ChartType } from '@milaboratories/pf-plots';
3
+ import { LabelsRotation, UniqueValuesData } from '../../types.ts';
3
4
 
4
5
  type AxesSettings = {
5
6
  xAxis: Record<string, string | boolean | number | undefined>;
@@ -15,5 +16,6 @@ type AxesSettings = {
15
16
  sharedY?: boolean;
16
17
  };
17
18
  };
18
- export declare function getAxesDataFromForms(axesFormsData: AxesState, chartType: ChartType): AxesSettings;
19
+ export declare function getDiscreteLabelsRotation(value: LabelsRotation | null, discreteGroups?: UniqueValuesData['options']): LabelsRotation;
20
+ export declare function getAxesDataFromForms(axesFormsData: AxesState, chartType: ChartType, discreteGroups?: UniqueValuesData['options']): AxesSettings;
19
21
  export {};
@@ -1,11 +1,11 @@
1
- import { getDefaultLayersSettings, NumberRange, LayersSettings, MappingLink, DiscreteStatisticsState, ColumnNameSchema, StatisticsState } from '../constant.ts';
2
- import { Layer, LayersTemplate } from '../types.ts';
3
- import { ChartType, InputState, PlotDataAndSettings } from '@milaboratories/pf-plots';
4
- import { DotShape, LineType } from '../components/AesSettings/types.ts';
1
+ import { getDefaultLayersSettings, NumberRange, LayersSettings, MappingLink, DiscreteStatisticsState, ColumnNameSchema, StatisticsState } from '../../constant.ts';
2
+ import { Layer, LayersTemplate } from '../../types.ts';
3
+ import { ChartType, InputState, PlotDataAndSettings, ScatterplotUIState } from '@milaboratories/pf-plots';
4
+ import { DotShape, LineType } from '../../components/AesSettings/types.ts';
5
5
  import { ScatterplotSettings } from '@milaboratories/miplots4';
6
6
 
7
7
  export declare function getStatLayers(statisticsSettings: DiscreteStatisticsState): ChartLayerSettings[];
8
- export declare function getScatterplotLayersSettings(layers: Layer[], layerSettings: ReturnType<typeof getDefaultLayersSettings>, dataByColumns: PlotDataAndSettings['dataByColumns'], grouping: ColumnNameSchema[]): ScatterplotSettings['layers'];
8
+ export declare function getScatterplotLayersSettings(layers: Layer[], layerSettings: ReturnType<typeof getDefaultLayersSettings>, dataByColumns: PlotDataAndSettings['dataByColumns'], optionsState: ScatterplotUIState, groupingSchema?: ColumnNameSchema[]): ScatterplotSettings['layers'];
9
9
  export type ChartLayerSettings = {
10
10
  [key: string]: string | boolean | null | Record<string, string | DotShape | NumberRange | {
11
11
  domain: number[];
@@ -1,4 +1,6 @@
1
- export * from './getLayersDataFromForms.ts';
1
+ export * from './createChartSettingsForRender/getLayersDataFromForms.ts';
2
+ export * from './createChartSettingsForRender/getAxesDataFromForms.ts';
3
+ export * from './createChartSettingsForRender/composeChartSettings.ts';
2
4
  export * from './calculateDiscreteGroups.ts';
3
5
  export * from './getStatisticsOptions.ts';
4
6
  export * from './saveToFile.ts';