@milaboratories/graph-maker 1.1.26 → 1.1.28
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/components/DragAndDrop/DnDRangeChip.vue.d.ts +3 -8
- package/dist/GraphMaker/components/DragAndDrop/types.d.ts +3 -5
- package/dist/GraphMaker/constant.d.ts +10 -6
- package/dist/GraphMaker/dataBindAes.d.ts +2 -2
- package/dist/GraphMaker/forms/LayersForm/Layer/heatmap/HeatmapClustered.vue.d.ts +2 -0
- package/dist/GraphMaker/store.d.ts +6 -3
- package/dist/GraphMaker/types.d.ts +1 -1
- package/dist/GraphMaker/utils/getLayersDataFromForms.d.ts +3 -3
- package/dist/graph-maker.js +16607 -16572
- package/dist/graph-maker.umd.cjs +962 -962
- package/package.json +2 -2
- /package/dist/GraphMaker/forms/LayersForm/Layer/{Heatmap.vue.d.ts → heatmap/Heatmap.vue.d.ts} +0 -0
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
import { ChipInfo } from './types.ts';
|
|
2
2
|
import { ValueType } from '@platforma-sdk/model';
|
|
3
|
+
import { NumberRange } from '../../constant.ts';
|
|
3
4
|
|
|
4
5
|
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
5
6
|
id: ChipInfo["id"];
|
|
6
7
|
title: string;
|
|
7
8
|
type: ValueType;
|
|
8
|
-
range:
|
|
9
|
-
min: number;
|
|
10
|
-
max: number;
|
|
11
|
-
};
|
|
9
|
+
range: NumberRange;
|
|
12
10
|
modelValue: unknown;
|
|
13
11
|
error: boolean;
|
|
14
12
|
}>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
@@ -18,10 +16,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
18
16
|
id: ChipInfo["id"];
|
|
19
17
|
title: string;
|
|
20
18
|
type: ValueType;
|
|
21
|
-
range:
|
|
22
|
-
min: number;
|
|
23
|
-
max: number;
|
|
24
|
-
};
|
|
19
|
+
range: NumberRange;
|
|
25
20
|
modelValue: unknown;
|
|
26
21
|
error: boolean;
|
|
27
22
|
}>>> & Readonly<{
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Ref } from 'vue';
|
|
2
2
|
import { ValueType } from '@platforma-sdk/model';
|
|
3
|
+
import { NumberRange } from '../../constant.ts';
|
|
3
4
|
|
|
4
5
|
export type ChipInfo = {
|
|
5
6
|
id: string;
|
|
@@ -9,11 +10,8 @@ export type ChipInfo = {
|
|
|
9
10
|
isSubsetFilter: boolean;
|
|
10
11
|
availableBasketIds: Set<string>;
|
|
11
12
|
uniqueValues: string[];
|
|
12
|
-
range:
|
|
13
|
-
|
|
14
|
-
max: number;
|
|
15
|
-
};
|
|
16
|
-
valueLabels: Record<string, string>;
|
|
13
|
+
range: NumberRange | null;
|
|
14
|
+
valueLabels: Record<string, string> | null;
|
|
17
15
|
};
|
|
18
16
|
export type DndBasketProps<T = any> = {
|
|
19
17
|
id: T;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AxisTitleMode, DeepPartial, 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';
|
|
@@ -11,9 +11,12 @@ 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
13
|
export declare const AXIS_NATURE_KEY = "pl7.app/axisNature";
|
|
14
|
+
export declare const COLUMN_MIN_KEY = "pl7.app/min";
|
|
15
|
+
export declare const COLUMN_MAX_KEY = "pl7.app/max";
|
|
14
16
|
export declare function getInitialTemplate(restoredTemplate: LayersTemplate | null, chartType: ChartType): LayersTemplate;
|
|
15
17
|
export declare const DISCRETE_TEMPLATES_MAP: Record<DiscreteLayersTemplate, DiscreteLayer[]>;
|
|
16
18
|
export declare const SCATTERPLOT_TEMPLATES_MAP: Record<ScatterplotLayersTemplate, ScatterplotLayer[]>;
|
|
19
|
+
export declare const HEATMAP_TEMPLATES_MAP: Record<HeatmapLayerTemplate, HeatmapLayer[]>;
|
|
17
20
|
export declare const LAYER_TITLES: Record<Layer, string>;
|
|
18
21
|
export type StatisticsState = {
|
|
19
22
|
overall: {
|
|
@@ -50,7 +53,7 @@ export type StatisticsState = {
|
|
|
50
53
|
};
|
|
51
54
|
};
|
|
52
55
|
export declare function getInitialStatisticsState(initialData?: DeepPartial<StatisticsState>): StatisticsState;
|
|
53
|
-
export type
|
|
56
|
+
export type NumberRange = {
|
|
54
57
|
min: number;
|
|
55
58
|
max: number;
|
|
56
59
|
};
|
|
@@ -60,12 +63,12 @@ export type MappingLink = {
|
|
|
60
63
|
};
|
|
61
64
|
export type ColorAes = string | MappingLink;
|
|
62
65
|
export type DotShapeAes = DotShape | MappingLink;
|
|
63
|
-
export type DotSizeAes = number |
|
|
66
|
+
export type DotSizeAes = number | NumberRange;
|
|
64
67
|
export type LineTypeAes = LineType | MappingLink;
|
|
65
68
|
export type FixedOrMappedAes = ColorAes | DotShapeAes | LineTypeAes;
|
|
66
69
|
export type ContinuousDataMapping = {
|
|
67
70
|
column: string;
|
|
68
|
-
range:
|
|
71
|
+
range: NumberRange;
|
|
69
72
|
};
|
|
70
73
|
export type ColumnNameSchema = {
|
|
71
74
|
type: 'column';
|
|
@@ -73,7 +76,7 @@ export type ColumnNameSchema = {
|
|
|
73
76
|
label?: string;
|
|
74
77
|
valueLabels?: string;
|
|
75
78
|
};
|
|
76
|
-
export declare function
|
|
79
|
+
export declare function isNumberRange(v: number | NumberRange | null | undefined): v is NumberRange;
|
|
77
80
|
export declare function isMappedAes(item: FixedOrMappedAes | null | string | number | boolean | unknown): item is MappingLink;
|
|
78
81
|
export declare function isContinuousDataMapping(v: ContinuousDataMapping | number | null | undefined): v is ContinuousDataMapping;
|
|
79
82
|
export type LayersSettings = {
|
|
@@ -87,7 +90,8 @@ export type LayersSettings = {
|
|
|
87
90
|
showTable: boolean;
|
|
88
91
|
showLegend: boolean;
|
|
89
92
|
};
|
|
90
|
-
heatmap: {
|
|
93
|
+
heatmap: {};
|
|
94
|
+
heatmapClustered: {
|
|
91
95
|
dendrogramX: boolean;
|
|
92
96
|
dendrogramY: boolean;
|
|
93
97
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ContinuousPalette, DotShape, LineType, Palette } from './components/AesSettings/types.ts';
|
|
2
2
|
import { InputGuide, InputState } from '@milaboratories/pf-plots';
|
|
3
|
-
import { AesType, ContinuousDataMapping,
|
|
3
|
+
import { AesType, ContinuousDataMapping, NumberRange } from './constant.ts';
|
|
4
4
|
|
|
5
5
|
export type AestheticMapping = AestheticMappingContinuous | AestheticMappingCategorical;
|
|
6
6
|
interface MappingRange {
|
|
@@ -38,7 +38,7 @@ export declare const DEFAULT_LINE_SHAPE = "solid";
|
|
|
38
38
|
export declare const DEFAULT_LINE_WIDTH = 1;
|
|
39
39
|
export declare const DEFAULT_DOT_SHAPE = "21";
|
|
40
40
|
export declare const DEFAULT_DOT_SIZE = 3;
|
|
41
|
-
export declare const DEFAULT_DOT_RANGE:
|
|
41
|
+
export declare const DEFAULT_DOT_RANGE: NumberRange;
|
|
42
42
|
export declare function updateAestheticMapping(values: (string | number)[], currentMapping?: AestheticMappingCategorical): AestheticMappingCategorical;
|
|
43
43
|
export declare function createMappingFromPalette(palette: Palette, values: (string | number)[]): AestheticMappingCategorical;
|
|
44
44
|
export declare function createDefaultMapping(values: (string | number)[]): AestheticMappingCategorical;
|
|
@@ -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
|
};
|
|
@@ -54,7 +54,7 @@ export type DiscreteLayer = 'box' | 'binnedDots' | 'jitteredDots' | 'violin' | '
|
|
|
54
54
|
export type DiscreteLayersTemplate = DiscreteLayer | 'box_binnedDots' | 'box_jitteredDots' | 'violin_binnedDots' | 'violin_jitteredDots' | 'line_jitteredDots' | 'line_binnedDots' | 'line_errorbar' | 'bar_line' | 'bar_errorbar';
|
|
55
55
|
export type ScatterplotLayer = 'dots' | 'curve';
|
|
56
56
|
export type ScatterplotLayersTemplate = ScatterplotLayer | 'curve_dots';
|
|
57
|
-
export type HeatmapLayer = 'heatmap';
|
|
57
|
+
export type HeatmapLayer = 'heatmap' | 'heatmapClustered';
|
|
58
58
|
export type HeatmapLayerTemplate = HeatmapLayer;
|
|
59
59
|
export type DendroLayer = 'dendro';
|
|
60
60
|
export type DendroLayerTemplate = DendroLayer;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { getDefaultLayersSettings,
|
|
1
|
+
import { getDefaultLayersSettings, NumberRange, LayersSettings, MappingLink, StatisticsState, ColumnNameSchema } 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';
|
|
@@ -7,12 +7,12 @@ import { ScatterplotSettings } from '@milaboratories/miplots4';
|
|
|
7
7
|
export declare function getStatLayers(statisticsSettings: StatisticsState): 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
|
-
[key: string]: string | boolean | null | Record<string, string | DotShape |
|
|
10
|
+
[key: string]: string | boolean | null | Record<string, string | DotShape | NumberRange | {
|
|
11
11
|
domain: number[];
|
|
12
12
|
range: number[];
|
|
13
13
|
} | LineType | boolean | number | MappingLink> | undefined;
|
|
14
14
|
type: string;
|
|
15
|
-
aes?: Record<string, string | DotShape |
|
|
15
|
+
aes?: Record<string, string | DotShape | NumberRange | {
|
|
16
16
|
domain: number[];
|
|
17
17
|
range: number[];
|
|
18
18
|
} | LineType | boolean | number | MappingLink>;
|