@milaboratories/graph-maker 1.1.25 → 1.1.26
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/GraphMaker/constant.d.ts +12 -11
- package/dist/GraphMaker/types.d.ts +6 -3
- package/dist/graph-maker.js +11450 -11446
- package/dist/graph-maker.umd.cjs +916 -916
- package/package.json +2 -2
|
@@ -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, 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,6 +10,7 @@ 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[]>;
|
|
@@ -28,7 +29,7 @@ export type StatisticsState = {
|
|
|
28
29
|
testMethod: null | string;
|
|
29
30
|
referenceGroup: null | string;
|
|
30
31
|
correctionMethod: string;
|
|
31
|
-
format:
|
|
32
|
+
format: 'significance' | 'pValue';
|
|
32
33
|
ns: boolean;
|
|
33
34
|
};
|
|
34
35
|
validity: {
|
|
@@ -40,7 +41,7 @@ export type StatisticsState = {
|
|
|
40
41
|
data: {
|
|
41
42
|
testMethod: null | string;
|
|
42
43
|
correctionMethod: string;
|
|
43
|
-
format:
|
|
44
|
+
format: 'significance' | 'pValue';
|
|
44
45
|
ns: boolean;
|
|
45
46
|
};
|
|
46
47
|
validity: {
|
|
@@ -48,7 +49,7 @@ export type StatisticsState = {
|
|
|
48
49
|
};
|
|
49
50
|
};
|
|
50
51
|
};
|
|
51
|
-
export declare function getInitialStatisticsState(initialData?:
|
|
52
|
+
export declare function getInitialStatisticsState(initialData?: DeepPartial<StatisticsState>): StatisticsState;
|
|
52
53
|
export type Range = {
|
|
53
54
|
min: number;
|
|
54
55
|
max: number;
|
|
@@ -138,7 +139,7 @@ export type LayersSettings = {
|
|
|
138
139
|
fillColor: ColorAes | null;
|
|
139
140
|
lineColor: ColorAes;
|
|
140
141
|
opacity: number;
|
|
141
|
-
height:
|
|
142
|
+
height: 'max' | 'mean' | 'median';
|
|
142
143
|
};
|
|
143
144
|
stackedBar: {
|
|
144
145
|
fillColor: ColorAes | null;
|
|
@@ -146,7 +147,7 @@ export type LayersSettings = {
|
|
|
146
147
|
opacity: number;
|
|
147
148
|
};
|
|
148
149
|
line: {
|
|
149
|
-
pointsValues:
|
|
150
|
+
pointsValues: 'mean' | 'median';
|
|
150
151
|
lineColor: ColorAes | null;
|
|
151
152
|
dotShape: DotShapeAes;
|
|
152
153
|
lineType: LineTypeAes;
|
|
@@ -154,8 +155,8 @@ export type LayersSettings = {
|
|
|
154
155
|
opacity: number;
|
|
155
156
|
};
|
|
156
157
|
errorbar: {
|
|
157
|
-
pointsValues:
|
|
158
|
-
interval:
|
|
158
|
+
pointsValues: 'mean' | 'median';
|
|
159
|
+
interval: 'sd' | 'se' | '';
|
|
159
160
|
lineColor: ColorAes | null;
|
|
160
161
|
dotShape: DotShapeAes;
|
|
161
162
|
dotFill: ColorAes;
|
|
@@ -170,7 +171,7 @@ export type LayersSettings = {
|
|
|
170
171
|
};
|
|
171
172
|
export declare const DEFAULT_LAYERS_SETTINGS: () => LayersSettings;
|
|
172
173
|
export declare function getDefaultLayersSettings(): LayersSettings;
|
|
173
|
-
export declare function getInitialLayersSettings(initialSettings?:
|
|
174
|
+
export declare function getInitialLayersSettings(initialSettings?: DeepPartial<LayersSettings>): LayersSettings;
|
|
174
175
|
export type AxesState = {
|
|
175
176
|
title: {
|
|
176
177
|
value: string;
|
|
@@ -207,7 +208,7 @@ export type AxesState = {
|
|
|
207
208
|
facetColumns: number;
|
|
208
209
|
};
|
|
209
210
|
};
|
|
210
|
-
export declare function getInitialAxesSettings(chartType: ChartType, initialAxesSettings?:
|
|
211
|
+
export declare function getInitialAxesSettings(chartType: ChartType, initialAxesSettings?: DeepPartial<AxesState>): AxesState;
|
|
211
212
|
export declare const LAYER_ICONS: Record<LayersTemplate, Component>;
|
|
212
213
|
type Option = {
|
|
213
214
|
value: string;
|
|
@@ -216,5 +217,5 @@ type Option = {
|
|
|
216
217
|
export declare const STAT_TEST_METHOD: Option[];
|
|
217
218
|
export declare const STAT_CORRECTION_METHOD: Option[];
|
|
218
219
|
export declare const FORMAT_P_VALUE_OPTIONS: Option[];
|
|
219
|
-
export type AesType =
|
|
220
|
+
export type AesType = 'fill' | 'stroke' | 'dotShape' | 'lineType' | 'size';
|
|
220
221
|
export {};
|
|
@@ -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?:
|
|
13
|
-
axesSettings?:
|
|
14
|
-
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> = {
|