@milaboratories/graph-maker 1.1.25 → 1.1.27

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,4 +1,4 @@
1
- import { AxisTitleMode, DiscreteLayer, DiscreteLayersTemplate, Frame, HeatmapFrame, LabelsPosition, LabelsRotation, Layer, LayersTemplate, Scale, ScatterplotLayer, ScatterplotLayersTemplate, TitlePosition } from './types.ts';
1
+ import { AxisTitleMode, DeepPartial, DiscreteLayer, DiscreteLayersTemplate, Frame, HeatmapFrame, HeatmapLayer, HeatmapLayerTemplate, LabelsPosition, LabelsRotation, Layer, LayersTemplate, Scale, ScatterplotLayer, ScatterplotLayersTemplate, TitlePosition } from './types.ts';
2
2
  import { ChartType } from '@milaboratories/pf-plots';
3
3
  import { Component } from 'vue';
4
4
  import { DotShape, LineType } from './components/AesSettings/types.ts';
@@ -10,9 +10,11 @@ export declare const LOWER_LIMIT_KEY = "pl7.app/graph/axis/lowerLimit";
10
10
  export declare const UPPER_LIMIT_KEY = "pl7.app/graph/axis/upperLimit";
11
11
  export declare const SYMMETRIC_RANGE_KEY = "pl7.app/graph/axis/symmetricRange";
12
12
  export declare const PALETTE_KEY = "pl7.app/graph/palette";
13
+ export declare const AXIS_NATURE_KEY = "pl7.app/axisNature";
13
14
  export declare function getInitialTemplate(restoredTemplate: LayersTemplate | null, chartType: ChartType): LayersTemplate;
14
15
  export declare const DISCRETE_TEMPLATES_MAP: Record<DiscreteLayersTemplate, DiscreteLayer[]>;
15
16
  export declare const SCATTERPLOT_TEMPLATES_MAP: Record<ScatterplotLayersTemplate, ScatterplotLayer[]>;
17
+ export declare const HEATMAP_TEMPLATES_MAP: Record<HeatmapLayerTemplate, HeatmapLayer[]>;
16
18
  export declare const LAYER_TITLES: Record<Layer, string>;
17
19
  export type StatisticsState = {
18
20
  overall: {
@@ -28,7 +30,7 @@ export type StatisticsState = {
28
30
  testMethod: null | string;
29
31
  referenceGroup: null | string;
30
32
  correctionMethod: string;
31
- format: "significance" | "pValue";
33
+ format: 'significance' | 'pValue';
32
34
  ns: boolean;
33
35
  };
34
36
  validity: {
@@ -40,7 +42,7 @@ export type StatisticsState = {
40
42
  data: {
41
43
  testMethod: null | string;
42
44
  correctionMethod: string;
43
- format: "significance" | "pValue";
45
+ format: 'significance' | 'pValue';
44
46
  ns: boolean;
45
47
  };
46
48
  validity: {
@@ -48,7 +50,7 @@ export type StatisticsState = {
48
50
  };
49
51
  };
50
52
  };
51
- export declare function getInitialStatisticsState(initialData?: Partial<StatisticsState>): StatisticsState;
53
+ export declare function getInitialStatisticsState(initialData?: DeepPartial<StatisticsState>): StatisticsState;
52
54
  export type Range = {
53
55
  min: number;
54
56
  max: number;
@@ -86,7 +88,8 @@ export type LayersSettings = {
86
88
  showTable: boolean;
87
89
  showLegend: boolean;
88
90
  };
89
- heatmap: {
91
+ heatmap: {};
92
+ heatmapClustered: {
90
93
  dendrogramX: boolean;
91
94
  dendrogramY: boolean;
92
95
  };
@@ -138,7 +141,7 @@ export type LayersSettings = {
138
141
  fillColor: ColorAes | null;
139
142
  lineColor: ColorAes;
140
143
  opacity: number;
141
- height: "max" | "mean" | 'median';
144
+ height: 'max' | 'mean' | 'median';
142
145
  };
143
146
  stackedBar: {
144
147
  fillColor: ColorAes | null;
@@ -146,7 +149,7 @@ export type LayersSettings = {
146
149
  opacity: number;
147
150
  };
148
151
  line: {
149
- pointsValues: "mean" | 'median';
152
+ pointsValues: 'mean' | 'median';
150
153
  lineColor: ColorAes | null;
151
154
  dotShape: DotShapeAes;
152
155
  lineType: LineTypeAes;
@@ -154,8 +157,8 @@ export type LayersSettings = {
154
157
  opacity: number;
155
158
  };
156
159
  errorbar: {
157
- pointsValues: "mean" | "median";
158
- interval: "sd" | 'se' | '';
160
+ pointsValues: 'mean' | 'median';
161
+ interval: 'sd' | 'se' | '';
159
162
  lineColor: ColorAes | null;
160
163
  dotShape: DotShapeAes;
161
164
  dotFill: ColorAes;
@@ -170,7 +173,7 @@ export type LayersSettings = {
170
173
  };
171
174
  export declare const DEFAULT_LAYERS_SETTINGS: () => LayersSettings;
172
175
  export declare function getDefaultLayersSettings(): LayersSettings;
173
- export declare function getInitialLayersSettings(initialSettings?: Partial<LayersSettings>): LayersSettings;
176
+ export declare function getInitialLayersSettings(initialSettings?: DeepPartial<LayersSettings>): LayersSettings;
174
177
  export type AxesState = {
175
178
  title: {
176
179
  value: string;
@@ -207,7 +210,7 @@ export type AxesState = {
207
210
  facetColumns: number;
208
211
  };
209
212
  };
210
- export declare function getInitialAxesSettings(chartType: ChartType, initialAxesSettings?: Partial<AxesState>): AxesState;
213
+ export declare function getInitialAxesSettings(chartType: ChartType, initialAxesSettings?: DeepPartial<AxesState>): AxesState;
211
214
  export declare const LAYER_ICONS: Record<LayersTemplate, Component>;
212
215
  type Option = {
213
216
  value: string;
@@ -216,5 +219,5 @@ type Option = {
216
219
  export declare const STAT_TEST_METHOD: Option[];
217
220
  export declare const STAT_CORRECTION_METHOD: Option[];
218
221
  export declare const FORMAT_P_VALUE_OPTIONS: Option[];
219
- export type AesType = "fill" | "stroke" | "dotShape" | "lineType" | "size";
222
+ export type AesType = 'fill' | 'stroke' | 'dotShape' | 'lineType' | 'size';
220
223
  export {};
@@ -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;
@@ -36,7 +36,8 @@ export declare function createReactiveState(initialData: GraphMakerState, chartT
36
36
  showTable: boolean;
37
37
  showLegend: boolean;
38
38
  };
39
- heatmap: {
39
+ heatmap: {};
40
+ heatmapClustered: {
40
41
  dendrogramX: boolean;
41
42
  dendrogramY: boolean;
42
43
  };
@@ -321,7 +322,8 @@ export declare function factoryStore(reactiveState: Reactive<ReactiveState>, dat
321
322
  showTable: boolean;
322
323
  showLegend: boolean;
323
324
  };
324
- heatmap: {
325
+ heatmap: {};
326
+ heatmapClustered: {
325
327
  dendrogramX: boolean;
326
328
  dendrogramY: boolean;
327
329
  };
@@ -633,7 +635,8 @@ export declare function provideStore(initialState: GraphMakerState, dataStoreRef
633
635
  showTable: boolean;
634
636
  showLegend: boolean;
635
637
  };
636
- heatmap: {
638
+ heatmap: {};
639
+ heatmapClustered: {
637
640
  dendrogramX: boolean;
638
641
  dendrogramY: boolean;
639
642
  };
@@ -4,14 +4,17 @@ import { AestheticMappingCategorical } from './dataBindAes.ts';
4
4
  import { AxisSpec, PColumnSpec, PFrameDriver, PFrameHandle } from '@platforma-sdk/model';
5
5
  import { FormKey } from './forms';
6
6
 
7
+ export type DeepPartial<T> = {
8
+ [P in keyof T]?: Partial<T[P]>;
9
+ };
7
10
  export type GraphMakerState = {
8
11
  title: string;
9
12
  template: LayersTemplate;
10
13
  currentTab?: FormKey | null;
11
14
  optionsState?: InputState;
12
- statisticsSettings?: Partial<StatisticsState>;
13
- axesSettings?: Partial<AxesState>;
14
- layersSettings?: Partial<LayersSettings>;
15
+ statisticsSettings?: DeepPartial<StatisticsState>;
16
+ axesSettings?: DeepPartial<AxesState>;
17
+ layersSettings?: DeepPartial<LayersSettings>;
15
18
  dataBindAes?: Record<string, AestheticMappingCategorical>;
16
19
  };
17
20
  export type PredefinedGraphOption<T extends ChartType> = {
@@ -51,7 +54,7 @@ export type DiscreteLayer = 'box' | 'binnedDots' | 'jitteredDots' | 'violin' | '
51
54
  export type DiscreteLayersTemplate = DiscreteLayer | 'box_binnedDots' | 'box_jitteredDots' | 'violin_binnedDots' | 'violin_jitteredDots' | 'line_jitteredDots' | 'line_binnedDots' | 'line_errorbar' | 'bar_line' | 'bar_errorbar';
52
55
  export type ScatterplotLayer = 'dots' | 'curve';
53
56
  export type ScatterplotLayersTemplate = ScatterplotLayer | 'curve_dots';
54
- export type HeatmapLayer = 'heatmap';
57
+ export type HeatmapLayer = 'heatmap' | 'heatmapClustered';
55
58
  export type HeatmapLayerTemplate = HeatmapLayer;
56
59
  export type DendroLayer = 'dendro';
57
60
  export type DendroLayerTemplate = DendroLayer;