@milaboratories/graph-maker 1.1.128 → 1.1.129
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/DnDBasketChip.vue.d.ts +8 -0
- package/dist/GraphMaker/components/DragAndDrop/DnDRangeChip.vue.d.ts +8 -0
- package/dist/GraphMaker/components/DragAndDrop/DndDoubleChip.vue.d.ts +8 -0
- package/dist/GraphMaker/components/DragAndDrop/types.d.ts +10 -2
- package/dist/GraphMaker/constantsCommon.d.ts +1 -0
- package/dist/GraphMaker/dataBindAes.d.ts +5 -5
- package/dist/GraphMaker/forms/DataMappingForm/utils.d.ts +2 -2
- package/dist/GraphMaker/store.d.ts +7 -4
- package/dist/GraphMaker/types.d.ts +1 -0
- package/dist/GraphMaker/utils/calculateDiscreteGroups.d.ts +2 -2
- package/dist/GraphMaker/utils/createChartSettingsForRender/composeChartSettings.d.ts +3 -2
- package/dist/GraphMaker/utils/createChartSettingsForRender/composeDendroSettings.d.ts +2 -2
- package/dist/GraphMaker/utils/createChartSettingsForRender/composeDiscreteSettings.d.ts +2 -2
- package/dist/GraphMaker/utils/createChartSettingsForRender/composeHistogramSettings.d.ts +3 -2
- package/dist/GraphMaker/utils/createChartSettingsForRender/composeScatterplotSettings.d.ts +11 -43
- package/dist/GraphMaker/utils/createChartSettingsForRender/composeScatterplotUmapSettings.d.ts +5 -2
- package/dist/GraphMaker/utils/loadUniqueValuesToSave.d.ts +6 -0
- package/dist/graph-maker.js +27844 -27464
- package/dist/graph-maker.umd.cjs +995 -995
- package/dist/style.css +1 -1
- package/package.json +3 -3
|
@@ -14,6 +14,10 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
14
14
|
sortable: {
|
|
15
15
|
type: import('vue').PropType<boolean>;
|
|
16
16
|
};
|
|
17
|
+
searchModel: {
|
|
18
|
+
type: import('vue').PropType<(axisId: string, selectedValue: string) => Promise<ListOption<string>>>;
|
|
19
|
+
required: true;
|
|
20
|
+
};
|
|
17
21
|
searchOptions: {
|
|
18
22
|
type: import('vue').PropType<(axisId: string, searchStr: string) => Promise<ListOption<string>[]>>;
|
|
19
23
|
required: true;
|
|
@@ -34,6 +38,10 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
34
38
|
sortable: {
|
|
35
39
|
type: import('vue').PropType<boolean>;
|
|
36
40
|
};
|
|
41
|
+
searchModel: {
|
|
42
|
+
type: import('vue').PropType<(axisId: string, selectedValue: string) => Promise<ListOption<string>>>;
|
|
43
|
+
required: true;
|
|
44
|
+
};
|
|
37
45
|
searchOptions: {
|
|
38
46
|
type: import('vue').PropType<(axisId: string, searchStr: string) => Promise<ListOption<string>[]>>;
|
|
39
47
|
required: true;
|
|
@@ -18,6 +18,10 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
18
18
|
type: import('vue').PropType<boolean>;
|
|
19
19
|
required: true;
|
|
20
20
|
};
|
|
21
|
+
searchModel: {
|
|
22
|
+
type: import('vue').PropType<(axisId: string, selectedValue: string) => Promise<ListOption<string>>>;
|
|
23
|
+
required: true;
|
|
24
|
+
};
|
|
21
25
|
searchOptions: {
|
|
22
26
|
type: import('vue').PropType<(axisId: string, searchStr: string) => Promise<ListOption<string>[]>>;
|
|
23
27
|
required: true;
|
|
@@ -42,6 +46,10 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
42
46
|
type: import('vue').PropType<boolean>;
|
|
43
47
|
required: true;
|
|
44
48
|
};
|
|
49
|
+
searchModel: {
|
|
50
|
+
type: import('vue').PropType<(axisId: string, selectedValue: string) => Promise<ListOption<string>>>;
|
|
51
|
+
required: true;
|
|
52
|
+
};
|
|
45
53
|
searchOptions: {
|
|
46
54
|
type: import('vue').PropType<(axisId: string, searchStr: string) => Promise<ListOption<string>[]>>;
|
|
47
55
|
required: true;
|
|
@@ -15,6 +15,10 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
15
15
|
type: import('vue').PropType<boolean>;
|
|
16
16
|
required: true;
|
|
17
17
|
};
|
|
18
|
+
searchModel: {
|
|
19
|
+
type: import('vue').PropType<(axisId: string, selectedValue: string) => Promise<ListOption<string>>>;
|
|
20
|
+
required: true;
|
|
21
|
+
};
|
|
18
22
|
searchOptions: {
|
|
19
23
|
type: import('vue').PropType<(axisId: string, searchStr: string) => Promise<ListOption<string>[]>>;
|
|
20
24
|
required: true;
|
|
@@ -40,6 +44,10 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
40
44
|
type: import('vue').PropType<boolean>;
|
|
41
45
|
required: true;
|
|
42
46
|
};
|
|
47
|
+
searchModel: {
|
|
48
|
+
type: import('vue').PropType<(axisId: string, selectedValue: string) => Promise<ListOption<string>>>;
|
|
49
|
+
required: true;
|
|
50
|
+
};
|
|
43
51
|
searchOptions: {
|
|
44
52
|
type: import('vue').PropType<(axisId: string, searchStr: string) => Promise<ListOption<string>[]>>;
|
|
45
53
|
required: true;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Ref } from 'vue';
|
|
2
2
|
import { ValueType } from '@platforma-sdk/model';
|
|
3
3
|
import { PValue } from '@milaboratories/pf-plots';
|
|
4
|
-
import {
|
|
4
|
+
import { UniqueValuesBySourceMap } from '../../types.ts';
|
|
5
5
|
|
|
6
6
|
export type ChipInfo = {
|
|
7
7
|
id: string;
|
|
@@ -28,7 +28,7 @@ export type DndBasketProps<T = any> = {
|
|
|
28
28
|
disabled: boolean;
|
|
29
29
|
readonly?: boolean;
|
|
30
30
|
consistency: Record<string, boolean>;
|
|
31
|
-
labelsInfo:
|
|
31
|
+
labelsInfo: UniqueValuesBySourceMap;
|
|
32
32
|
droppedIds: string[];
|
|
33
33
|
availableIds: Set<string>;
|
|
34
34
|
selectedFilters?: Record<string, string | undefined>;
|
|
@@ -37,6 +37,14 @@ export type DndBasketProps<T = any> = {
|
|
|
37
37
|
info: Record<string, ChipInfo>;
|
|
38
38
|
draggedId: string | null;
|
|
39
39
|
sortable?: boolean;
|
|
40
|
+
searchFn: (sourceId: string, searchQuery: string) => Promise<{
|
|
41
|
+
value: string;
|
|
42
|
+
label: string;
|
|
43
|
+
}[]>;
|
|
44
|
+
searchSelectedValueFn: (sourceId: string, selectedValue: string) => Promise<{
|
|
45
|
+
value: string;
|
|
46
|
+
label: string;
|
|
47
|
+
}[]>;
|
|
40
48
|
};
|
|
41
49
|
export type DropItemEvent<T = any> = {
|
|
42
50
|
draggedId: string;
|
|
@@ -280,4 +280,5 @@ export declare const DEFAULT_WIDTH = 600;
|
|
|
280
280
|
export declare const DEFAULT_HEIGHT = 350;
|
|
281
281
|
export declare const DEFAULT_WIDTH_SMALL = 400;
|
|
282
282
|
export declare const DEFAULT_HEIGHT_SMALL = 250;
|
|
283
|
+
export declare const MAX_SEARCH_OPTIONS_LIST_LENGTH = 100;
|
|
283
284
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ContinuousPalette, DotShape, LineType, Palette } from './components/AesSettings/types.ts';
|
|
2
2
|
import { AesType, ContinuousDataMappingSize, NumberRange } from './constantsCommon.ts';
|
|
3
|
-
import {
|
|
3
|
+
import { UniqueValuesBySourceMap } from './types.ts';
|
|
4
4
|
|
|
5
5
|
export type AestheticMappingState = Record<string, AestheticMapping>;
|
|
6
6
|
export type AestheticMapping = AestheticMappingContinuous | AestheticMappingCategorical;
|
|
@@ -55,20 +55,20 @@ export declare function createCategoricalMappingFromPalette(palette: Palette, va
|
|
|
55
55
|
export declare function createContinuousMappingFromPalette(palette: ContinuousPalette): AestheticMappingContinuous;
|
|
56
56
|
export declare function createDefaultMapping(values: (string | number)[]): AestheticMappingCategorical;
|
|
57
57
|
export declare function createDefaultContinuousMapping(columnId: string): ContinuousDataMappingSize;
|
|
58
|
-
export declare function getChartSettingsInheritedAes(uniqueValuesData:
|
|
58
|
+
export declare function getChartSettingsInheritedAes(uniqueValuesData: UniqueValuesBySourceMap, maybeMapping: AestheticMapping | undefined, sourceId: string | null, usedAesInMapping: Record<AesType, boolean>): {
|
|
59
59
|
inheritedAes: {};
|
|
60
60
|
order?: undefined;
|
|
61
61
|
} | {
|
|
62
62
|
order: (string | number)[];
|
|
63
63
|
inheritedAes: Record<string, any>;
|
|
64
64
|
};
|
|
65
|
-
export declare function getScatterplotAes(selectedSource: string, uniqueValuesData:
|
|
66
|
-
export declare function getHistogramAes(selectedSource: string, uniqueValuesData:
|
|
65
|
+
export declare function getScatterplotAes(selectedSource: string, uniqueValuesData: UniqueValuesBySourceMap, dataBindAes: AestheticMappingState): Record<string, any>;
|
|
66
|
+
export declare function getHistogramAes(selectedSource: string, uniqueValuesData: UniqueValuesBySourceMap, dataBindAes: AestheticMappingState): {
|
|
67
67
|
order?: undefined;
|
|
68
68
|
inheritedAes?: undefined;
|
|
69
69
|
} | {
|
|
70
70
|
order: (string | number)[];
|
|
71
71
|
inheritedAes: Record<string, any>;
|
|
72
72
|
};
|
|
73
|
-
export declare function getDendroAes(selectedStr: string, uniqueValuesData:
|
|
73
|
+
export declare function getDendroAes(selectedStr: string, uniqueValuesData: UniqueValuesBySourceMap, dataBindAes: AestheticMappingState, field: keyof AestheticValues): Record<string, AestheticValues[keyof AestheticValues]>;
|
|
74
74
|
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AxisData, ColumnData, Controller, DemoDataStore, InputGuide, InputState } from '@milaboratories/pf-plots';
|
|
2
2
|
import { Ref } from 'vue';
|
|
3
3
|
import { ChipInfo } from '../../components/DragAndDrop/types.ts';
|
|
4
|
-
import {
|
|
4
|
+
import { UniqueValuesBySourceMap } from '../../types.ts';
|
|
5
5
|
|
|
6
6
|
type Option = {
|
|
7
7
|
text: string;
|
|
@@ -30,5 +30,5 @@ export declare function getFreeMandatoryOptions<T extends InputState>(inputGuide
|
|
|
30
30
|
}[];
|
|
31
31
|
export declare function hasInputError<T extends InputState>(name: keyof T['components'], inputGuide: InputGuide<T>): boolean;
|
|
32
32
|
export declare function getErrorForPlDropdown<T extends InputState>(name: keyof T['components'], inputGuide: InputGuide<T>): "" | " ";
|
|
33
|
-
export declare function getChipInfo(inputGuide: InputGuide<InputState>, labelsInfo:
|
|
33
|
+
export declare function getChipInfo(inputGuide: InputGuide<InputState>, labelsInfo: UniqueValuesBySourceMap, sourceIds: string[]): Record<string, ChipInfo>;
|
|
34
34
|
export {};
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { Ref, ComputedRef, Reactive } from 'vue';
|
|
2
|
-
import { GraphMakerProps, GraphMakerState, ReactiveState,
|
|
2
|
+
import { GraphMakerProps, GraphMakerState, ReactiveState, UniqueValuesBySourceMap } from './types.ts';
|
|
3
3
|
import { DemoDataStore, InputGuide, InputState, PlotDataAndSettings, DendroStateController, ChartType, InputNamesByChartType } from '@milaboratories/pf-plots';
|
|
4
4
|
import { AesType } from './constantsCommon.ts';
|
|
5
5
|
import { PColumnSpec } from '@platforma-sdk/model';
|
|
6
|
+
import { ListOption } from '@platforma-sdk/ui-vue';
|
|
6
7
|
|
|
7
8
|
export declare function createReactiveState(initialData: GraphMakerState, chartType: ChartType): {
|
|
8
9
|
chartType: ChartType;
|
|
@@ -338,7 +339,7 @@ export declare function createReactiveState(initialData: GraphMakerState, chartT
|
|
|
338
339
|
dataStateKey: unknown;
|
|
339
340
|
showTooltipHint: boolean;
|
|
340
341
|
};
|
|
341
|
-
export declare function factoryStore(reactiveState: Reactive<ReactiveState>, dataStore: DemoDataStore | null, inputGuide: Ref<InputGuide<InputState>>, chartData: Ref<PlotDataAndSettings | null>, dendroTableData: Ref<Awaited<ReturnType<DendroStateController['createTableData']>> | null>, uniqueValuesData: Ref<Record<string,
|
|
342
|
+
export declare function factoryStore(reactiveState: Reactive<ReactiveState>, dataStore: DemoDataStore | null, inputGuide: Ref<InputGuide<InputState>>, chartData: Ref<PlotDataAndSettings | null>, dendroTableData: Ref<Awaited<ReturnType<DendroStateController['createTableData']>> | null>, uniqueValuesData: Ref<UniqueValuesBySourceMap>, filterLabelsInfo: Ref<Record<string, ListOption>>, readonlyInputs?: InputNamesByChartType[ChartType][]): {
|
|
342
343
|
reactive: {
|
|
343
344
|
chartType: ChartType;
|
|
344
345
|
template: import('./types.ts').LayersTemplate;
|
|
@@ -699,7 +700,8 @@ export declare function factoryStore(reactiveState: Reactive<ReactiveState>, dat
|
|
|
699
700
|
columnsDataStore: DemoDataStore | null;
|
|
700
701
|
inputGuide: Ref<InputGuide<InputState>, InputGuide<InputState>>;
|
|
701
702
|
chartData: Ref<PlotDataAndSettings | null, PlotDataAndSettings | null>;
|
|
702
|
-
uniqueValuesData: Ref<
|
|
703
|
+
uniqueValuesData: Ref<UniqueValuesBySourceMap, UniqueValuesBySourceMap>;
|
|
704
|
+
filterLabelsInfo: Ref<Record<string, ListOption>, Record<string, ListOption>>;
|
|
703
705
|
readonlyInputs: ("label" | "height" | "size" | "x" | "y" | "value" | "lineColor" | "primaryGrouping" | "secondaryGrouping" | "grouping" | "filters" | "tabBy" | "facetBy" | "highlight" | "shape" | "tooltipContent" | "xGroupBy" | "yGroupBy" | "annotationsX" | "annotationsY" | "labels" | "tableContent" | "nodeColor" | "nodeShape" | "nodeSize" | "heatmapForSequence" | "heatmapAnnotation" | "heatmapAxis" | "heatmapGroup" | "valueSize" | "valueColor")[] | undefined;
|
|
704
706
|
};
|
|
705
707
|
export type Store = ComputedRef<ReturnType<typeof factoryStore>>;
|
|
@@ -1064,7 +1066,8 @@ export declare function provideStore(initialState: GraphMakerState, dataStoreRef
|
|
|
1064
1066
|
columnsDataStore: DemoDataStore | null;
|
|
1065
1067
|
inputGuide: Ref<InputGuide<InputState>, InputGuide<InputState>>;
|
|
1066
1068
|
chartData: Ref<PlotDataAndSettings | null, PlotDataAndSettings | null>;
|
|
1067
|
-
uniqueValuesData: Ref<
|
|
1069
|
+
uniqueValuesData: Ref<UniqueValuesBySourceMap, UniqueValuesBySourceMap>;
|
|
1070
|
+
filterLabelsInfo: Ref<Record<string, ListOption>, Record<string, ListOption>>;
|
|
1068
1071
|
readonlyInputs: ("label" | "height" | "size" | "x" | "y" | "value" | "lineColor" | "primaryGrouping" | "secondaryGrouping" | "grouping" | "filters" | "tabBy" | "facetBy" | "highlight" | "shape" | "tooltipContent" | "xGroupBy" | "yGroupBy" | "annotationsX" | "annotationsY" | "labels" | "tableContent" | "nodeColor" | "nodeShape" | "nodeSize" | "heatmapForSequence" | "heatmapAnnotation" | "heatmapAxis" | "heatmapGroup" | "valueSize" | "valueColor")[] | undefined;
|
|
1069
1072
|
}>;
|
|
1070
1073
|
export declare function useStore(): Store;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { InputState } from '@milaboratories/pf-plots';
|
|
2
|
-
import {
|
|
2
|
+
import { UniqueValuesBySourceMap } from '../types.ts';
|
|
3
3
|
|
|
4
|
-
export declare function calculateDiscreteGroups(optionsState: InputState, uniqueValuesInfo:
|
|
4
|
+
export declare function calculateDiscreteGroups(optionsState: InputState, uniqueValuesInfo: UniqueValuesBySourceMap, field: 'primaryGrouping' | 'secondaryGrouping'): string[];
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { DemoDataStore, InputGuide, InputState, PlotDataAndSettings } from '@milaboratories/pf-plots';
|
|
2
|
-
import { GraphMakerProps, ReactiveState,
|
|
2
|
+
import { GraphMakerProps, ReactiveState, UniqueValuesBySourceMap } from '../../types.ts';
|
|
3
3
|
import { Settings } from '@milaboratories/miplots4';
|
|
4
|
+
import { ListOption } from '@platforma-sdk/ui-vue';
|
|
4
5
|
|
|
5
6
|
export declare function loadDataForPlot(inputGuide: InputGuide<InputState>, reactiveState: ReactiveState, dataStore: DemoDataStore | null, fixedOptions?: GraphMakerProps['fixedOptions']): Promise<PlotDataAndSettings | null>;
|
|
6
|
-
export declare function composeChartSettings(chartData: PlotDataAndSettings | null, inputGuide: InputGuide<InputState>, labelsInfo: Record<string,
|
|
7
|
+
export declare function composeChartSettings(chartData: PlotDataAndSettings | null, inputGuide: InputGuide<InputState>, labelsInfo: UniqueValuesBySourceMap, filterLabelsInfo: Record<string, ListOption>, reactiveState: ReactiveState): {
|
|
7
8
|
settings: Settings;
|
|
8
9
|
data: {
|
|
9
10
|
type: "columns";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { InputGuide, InputState, PlotDataAndSettings } from '@milaboratories/pf-plots';
|
|
2
|
-
import { ReactiveState,
|
|
2
|
+
import { ReactiveState, UniqueValuesBySourceMap } from '../../types.ts';
|
|
3
3
|
import { DendroSettings } from '@milaboratories/miplots4';
|
|
4
4
|
|
|
5
|
-
export declare function composeDendroSettings(settings: DendroSettings, dataByColumns: PlotDataAndSettings['data']['byColumns'], reactiveState: ReactiveState, inputGuide: InputGuide<InputState>, uniqueValuesData:
|
|
5
|
+
export declare function composeDendroSettings(settings: DendroSettings, dataByColumns: PlotDataAndSettings['data']['byColumns'], reactiveState: ReactiveState, inputGuide: InputGuide<InputState>, uniqueValuesData: UniqueValuesBySourceMap): {
|
|
6
6
|
type: "dendro";
|
|
7
7
|
title: {
|
|
8
8
|
name: string;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { DiscreteSettings } from '@milaboratories/miplots4';
|
|
2
|
-
import { ReactiveState,
|
|
2
|
+
import { ReactiveState, UniqueValuesBySourceMap } from '../../types.ts';
|
|
3
3
|
import { InputGuide, InputState } from '@milaboratories/pf-plots';
|
|
4
4
|
|
|
5
|
-
export declare function composeDiscreteSettings(settings: DiscreteSettings, reactiveState: ReactiveState, uniqueValuesData:
|
|
5
|
+
export declare function composeDiscreteSettings(settings: DiscreteSettings, reactiveState: ReactiveState, uniqueValuesData: UniqueValuesBySourceMap, inputGuide: InputGuide<InputState>): {
|
|
6
6
|
type: "discrete";
|
|
7
7
|
title: {
|
|
8
8
|
name: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ReactiveState,
|
|
1
|
+
import { ReactiveState, UniqueValuesBySourceMap } from '../../types.ts';
|
|
2
2
|
import { HistogramSettings } from '@milaboratories/miplots4';
|
|
3
3
|
|
|
4
|
-
export declare function composeHistogramSettings(settings: HistogramSettings, reactiveState: ReactiveState, uniqueValuesData:
|
|
4
|
+
export declare function composeHistogramSettings(settings: HistogramSettings, reactiveState: ReactiveState, uniqueValuesData: UniqueValuesBySourceMap): {
|
|
5
5
|
type: "histogram";
|
|
6
6
|
title: {
|
|
7
7
|
name: string;
|
|
@@ -16,6 +16,7 @@ export declare function composeHistogramSettings(settings: HistogramSettings, re
|
|
|
16
16
|
fillColor?: string | {
|
|
17
17
|
type: "grouping";
|
|
18
18
|
value: string;
|
|
19
|
+
palette?: string[] | undefined;
|
|
19
20
|
} | {
|
|
20
21
|
range: string[];
|
|
21
22
|
type?: "linear" | "log" | undefined;
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
-
import { ScatterplotSettings } from '@milaboratories/miplots4';
|
|
2
|
-
import { InputGuide, InputState, PlotDataAndSettings } from '@milaboratories/pf-plots';
|
|
3
|
-
import { ReactiveState,
|
|
1
|
+
import { ScatterplotSettings, ScatterplotUmapSettings } from '@milaboratories/miplots4';
|
|
2
|
+
import { ComponentStateFilter, ComponentStateSimple, InputGuide, InputState, PlotDataAndSettings } from '@milaboratories/pf-plots';
|
|
3
|
+
import { ReactiveState, UniqueValuesBySourceMap } from '../../types.ts';
|
|
4
|
+
import { AestheticMappingState } from '../../dataBindAes.ts';
|
|
4
5
|
|
|
5
|
-
export declare function
|
|
6
|
+
export declare function applyChartInfoFromAnnotations(settings: ScatterplotSettings | ScatterplotUmapSettings, grouping: ComponentStateSimple | ComponentStateFilter, x: ComponentStateSimple | ComponentStateFilter, y: ComponentStateSimple | ComponentStateFilter, inputGuide: InputGuide<InputState>): void;
|
|
7
|
+
export declare function applyInheritedAes(settings: ScatterplotSettings | ScatterplotUmapSettings, grouping: ComponentStateSimple | ComponentStateFilter, shape: ComponentStateSimple | ComponentStateFilter | undefined, uniqueValuesData: UniqueValuesBySourceMap, dataBindAes: AestheticMappingState): void;
|
|
8
|
+
export declare function composeScatterplotSettings(settings: ScatterplotSettings, dataByColumns: PlotDataAndSettings['data']['byColumns'], reactiveState: ReactiveState, inputGuide: InputGuide<InputState>, uniqueValuesData: UniqueValuesBySourceMap): {
|
|
6
9
|
type: "scatterplot";
|
|
7
10
|
title: {
|
|
8
11
|
name: string;
|
|
@@ -33,6 +36,7 @@ export declare function composeScatterplotSettings(settings: ScatterplotSettings
|
|
|
33
36
|
dotFill?: string | {
|
|
34
37
|
type: "grouping";
|
|
35
38
|
value: string;
|
|
39
|
+
palette?: string[] | undefined;
|
|
36
40
|
} | {
|
|
37
41
|
columnName: {
|
|
38
42
|
type: "column";
|
|
@@ -47,6 +51,7 @@ export declare function composeScatterplotSettings(settings: ScatterplotSettings
|
|
|
47
51
|
dotShape?: "0" | {
|
|
48
52
|
type: "grouping";
|
|
49
53
|
value: string;
|
|
54
|
+
palette?: string[] | undefined;
|
|
50
55
|
} | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "13" | "14" | "15" | "16" | "17" | "18" | "20" | "21" | "22" | "23" | "24" | "25" | undefined;
|
|
51
56
|
dotSize?: number | {
|
|
52
57
|
columnName: {
|
|
@@ -68,6 +73,7 @@ export declare function composeScatterplotSettings(settings: ScatterplotSettings
|
|
|
68
73
|
lineColor?: string | {
|
|
69
74
|
type: "grouping";
|
|
70
75
|
value: string;
|
|
76
|
+
palette?: string[] | undefined;
|
|
71
77
|
} | {
|
|
72
78
|
columnName: {
|
|
73
79
|
type: "column";
|
|
@@ -95,45 +101,6 @@ export declare function composeScatterplotSettings(settings: ScatterplotSettings
|
|
|
95
101
|
label?: string | undefined;
|
|
96
102
|
valueLabels?: string | undefined;
|
|
97
103
|
}[] | undefined;
|
|
98
|
-
aes?: {
|
|
99
|
-
size?: number | {
|
|
100
|
-
columnName: {
|
|
101
|
-
type: "column";
|
|
102
|
-
value: string;
|
|
103
|
-
label?: string | undefined;
|
|
104
|
-
valueLabels?: string | undefined;
|
|
105
|
-
};
|
|
106
|
-
domain: number[];
|
|
107
|
-
range: number[];
|
|
108
|
-
type?: "linear" | "log" | undefined;
|
|
109
|
-
} | {
|
|
110
|
-
columnName: {
|
|
111
|
-
type: "column";
|
|
112
|
-
value: string;
|
|
113
|
-
label?: string | undefined;
|
|
114
|
-
valueLabels?: string | undefined;
|
|
115
|
-
};
|
|
116
|
-
valuesMap: Record<string, number>;
|
|
117
|
-
} | undefined;
|
|
118
|
-
color?: string | {
|
|
119
|
-
columnName: {
|
|
120
|
-
type: "column";
|
|
121
|
-
value: string;
|
|
122
|
-
label?: string | undefined;
|
|
123
|
-
valueLabels?: string | undefined;
|
|
124
|
-
};
|
|
125
|
-
valuesMap: Record<string, string>;
|
|
126
|
-
} | undefined;
|
|
127
|
-
shape?: "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "13" | "14" | "15" | "16" | "17" | "18" | "20" | "21" | "22" | "23" | "24" | "25" | {
|
|
128
|
-
columnName: {
|
|
129
|
-
type: "column";
|
|
130
|
-
value: string;
|
|
131
|
-
label?: string | undefined;
|
|
132
|
-
valueLabels?: string | undefined;
|
|
133
|
-
};
|
|
134
|
-
valuesMap: Record<string, "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "13" | "14" | "15" | "16" | "17" | "18" | "20" | "21" | "22" | "23" | "24" | "25">;
|
|
135
|
-
} | undefined;
|
|
136
|
-
} | undefined;
|
|
137
104
|
size?: {
|
|
138
105
|
width?: number | undefined;
|
|
139
106
|
height?: number | undefined;
|
|
@@ -223,6 +190,7 @@ export declare function composeScatterplotSettings(settings: ScatterplotSettings
|
|
|
223
190
|
color?: string | {
|
|
224
191
|
type: "grouping";
|
|
225
192
|
value: string;
|
|
193
|
+
palette?: string[] | undefined;
|
|
226
194
|
} | {
|
|
227
195
|
columnName: {
|
|
228
196
|
type: "column";
|
package/dist/GraphMaker/utils/createChartSettingsForRender/composeScatterplotUmapSettings.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ScatterplotUmapSettings } from '@milaboratories/miplots4';
|
|
2
2
|
import { InputGuide, InputState, PlotDataAndSettings } from '@milaboratories/pf-plots';
|
|
3
|
-
import { ReactiveState,
|
|
3
|
+
import { ReactiveState, UniqueValuesBySourceMap } from '../../types.ts';
|
|
4
4
|
|
|
5
|
-
export declare function composeScatterplotUmapSettings(settings: ScatterplotUmapSettings, dataByColumns: PlotDataAndSettings['data']['byColumns'], reactiveState: ReactiveState, inputGuide: InputGuide<InputState>, uniqueValuesData:
|
|
5
|
+
export declare function composeScatterplotUmapSettings(settings: ScatterplotUmapSettings, dataByColumns: PlotDataAndSettings['data']['byColumns'], reactiveState: ReactiveState, inputGuide: InputGuide<InputState>, uniqueValuesData: UniqueValuesBySourceMap): {
|
|
6
6
|
type: "scatterplot-umap";
|
|
7
7
|
title: {
|
|
8
8
|
name: string;
|
|
@@ -37,10 +37,12 @@ export declare function composeScatterplotUmapSettings(settings: ScatterplotUmap
|
|
|
37
37
|
} | {
|
|
38
38
|
type: "grouping";
|
|
39
39
|
value: string;
|
|
40
|
+
palette?: string[] | undefined;
|
|
40
41
|
} | undefined;
|
|
41
42
|
dotShape?: "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "13" | "14" | "15" | "16" | "17" | "18" | "20" | "21" | "22" | "23" | "24" | "25" | {
|
|
42
43
|
type: "grouping";
|
|
43
44
|
value: string;
|
|
45
|
+
palette?: string[] | undefined;
|
|
44
46
|
} | undefined;
|
|
45
47
|
dotSize?: number | {
|
|
46
48
|
columnName: {
|
|
@@ -72,6 +74,7 @@ export declare function composeScatterplotUmapSettings(settings: ScatterplotUmap
|
|
|
72
74
|
} | {
|
|
73
75
|
type: "grouping";
|
|
74
76
|
value: string;
|
|
77
|
+
palette?: string[] | undefined;
|
|
75
78
|
} | undefined;
|
|
76
79
|
opacity?: number | undefined;
|
|
77
80
|
} | undefined;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { UniqueValuesBySourceMap } from '../types.ts';
|
|
2
|
+
import { Controller, DemoDataStore, InputGuide, InputState } from '@milaboratories/pf-plots';
|
|
3
|
+
import { ListOption } from '@platforma-sdk/ui-vue';
|
|
4
|
+
|
|
5
|
+
export declare function loadUniqueValuesToSave(optionsState: InputState['components'], inputGuide: InputGuide<InputState>, controller: Controller<InputState>, dataStore: DemoDataStore, previousUniqueValues: UniqueValuesBySourceMap): Promise<UniqueValuesBySourceMap>;
|
|
6
|
+
export declare function loadFilterLabelsForTitle(optionsState: InputState['components'], inputGuide: InputGuide<InputState>, controller: Controller<InputState>, dataStore: DemoDataStore): Promise<Record<string, ListOption>>;
|