@milaboratories/graph-maker 1.1.62 → 1.1.64
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/AesSettings/AesDataMappingDiscrete.vue.d.ts +1 -1
- package/dist/GraphMaker/components/AesSettings/FixedColorsList.vue.d.ts +1 -1
- package/dist/GraphMaker/{components/AesSettings/constants.d.ts → constantsAesthetic.d.ts} +33 -1
- package/dist/GraphMaker/{constant.d.ts → constantsCommon.d.ts} +4 -0
- package/dist/GraphMaker/dataBindAes.d.ts +1 -1
- package/dist/GraphMaker/forms/LayersForm/AesSelector.vue.d.ts +1 -1
- package/dist/GraphMaker/forms/LayersForm/DotSizeSelector.vue.d.ts +1 -1
- package/dist/GraphMaker/forms/LayersForm/Layer/discrete/Logo.vue.d.ts +2 -0
- package/dist/GraphMaker/forms/LayersForm/Layer/discrete/utils.d.ts +1 -1
- package/dist/GraphMaker/icons/LogoIcon.vue.d.ts +2 -0
- package/dist/GraphMaker/store.d.ts +13 -1
- package/dist/GraphMaker/types.d.ts +2 -2
- package/dist/GraphMaker/utils/createChartSettingsForRender/composeDiscreteSettings.d.ts +11 -1
- package/dist/GraphMaker/utils/createChartSettingsForRender/getAxesDataFromForms.d.ts +1 -1
- package/dist/GraphMaker/utils/createChartSettingsForRender/getLayersDataFromForms.d.ts +6 -6
- package/dist/GraphMaker/utils/getUsedAesInMapping.d.ts +3 -3
- package/dist/graph-maker.js +36946 -34743
- package/dist/graph-maker.umd.cjs +1103 -1041
- package/package.json +3 -3
- /package/dist/GraphMaker/utils/createChartSettingsForRender/{conposeDendroSettings.d.ts → composeDendroSettings.d.ts} +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AestheticMappingCategorical } from '../../dataBindAes.ts';
|
|
2
|
-
import { AesType } from '../../
|
|
2
|
+
import { AesType } from '../../constantsCommon.ts';
|
|
3
3
|
|
|
4
4
|
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
5
5
|
dataColumnLabel: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CategoricalPalette, ContinuousPalette, DivergingPalette, DotShape, LineType, LineTypeInfo, Palette, PaletteInfo, SequentialPalette } from './types.ts';
|
|
1
|
+
import { CategoricalPalette, ContinuousPalette, DivergingPalette, DotShape, LineType, LineTypeInfo, Palette, PaletteInfo, SequentialPalette } from './components/AesSettings/types.ts';
|
|
2
2
|
|
|
3
3
|
export declare const FIXED_COLORS: {
|
|
4
4
|
name: string;
|
|
@@ -29,3 +29,35 @@ export declare const DEFAULT_DOT_SHAPE = "21";
|
|
|
29
29
|
export declare const FIXED_LINE_TYPES: LineType[];
|
|
30
30
|
export declare const DEFAULT_LINE_TYPE: LineType;
|
|
31
31
|
export declare const LINE_TYPES_MAP: Record<LineType, LineTypeInfo>;
|
|
32
|
+
export declare const NUCLEOTIDE_COLOR_MAPPING: {
|
|
33
|
+
A: string;
|
|
34
|
+
C: string;
|
|
35
|
+
G: string;
|
|
36
|
+
T: string;
|
|
37
|
+
U: string;
|
|
38
|
+
};
|
|
39
|
+
export declare const AMINOACID_COLOR_MAPPING: {
|
|
40
|
+
A: string;
|
|
41
|
+
R: string;
|
|
42
|
+
N: string;
|
|
43
|
+
D: string;
|
|
44
|
+
C: string;
|
|
45
|
+
Q: string;
|
|
46
|
+
E: string;
|
|
47
|
+
G: string;
|
|
48
|
+
H: string;
|
|
49
|
+
I: string;
|
|
50
|
+
L: string;
|
|
51
|
+
K: string;
|
|
52
|
+
M: string;
|
|
53
|
+
F: string;
|
|
54
|
+
P: string;
|
|
55
|
+
S: string;
|
|
56
|
+
T: string;
|
|
57
|
+
W: string;
|
|
58
|
+
Y: string;
|
|
59
|
+
V: string;
|
|
60
|
+
B: string;
|
|
61
|
+
X: string;
|
|
62
|
+
Z: string;
|
|
63
|
+
};
|
|
@@ -210,6 +210,10 @@ export type LayersSettings = {
|
|
|
210
210
|
opacity: number;
|
|
211
211
|
showOutliers: boolean;
|
|
212
212
|
};
|
|
213
|
+
logo: {
|
|
214
|
+
normalize: boolean;
|
|
215
|
+
opacity: number;
|
|
216
|
+
};
|
|
213
217
|
};
|
|
214
218
|
export declare const DEFAULT_LAYERS_SETTINGS: () => LayersSettings;
|
|
215
219
|
export declare function getDefaultLayersSettings(): LayersSettings;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ContinuousPalette, DotShape, LineType, Palette } from './components/AesSettings/types.ts';
|
|
2
|
-
import { AesType, ContinuousDataMappingSize, NumberRange } from './
|
|
2
|
+
import { AesType, ContinuousDataMappingSize, NumberRange } from './constantsCommon.ts';
|
|
3
3
|
import { UniqueValuesData } from './types.ts';
|
|
4
4
|
|
|
5
5
|
export type AestheticMappingState = Record<string, AestheticMapping>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ContinuousDataMappingSize } from '../../
|
|
1
|
+
import { ContinuousDataMappingSize } from '../../constantsCommon.ts';
|
|
2
2
|
|
|
3
3
|
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
4
4
|
selected?: number | ContinuousDataMappingSize;
|
|
@@ -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;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { DiscreteUIState } from '@milaboratories/pf-plots';
|
|
2
|
-
import { FixedOrMappedAes } from '../../../../
|
|
2
|
+
import { FixedOrMappedAes } from '../../../../constantsCommon.ts';
|
|
3
3
|
|
|
4
4
|
export declare function useDefaultAes<T extends FixedOrMappedAes>(value: T | null, optionsState: DiscreteUIState, defaultValue: T, onlySecondaryAvailable?: boolean): T;
|
|
@@ -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;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Ref, ComputedRef, Reactive } from 'vue';
|
|
2
2
|
import { GraphMakerProps, GraphMakerState, ReactiveState, UniqueValuesData } from './types.ts';
|
|
3
3
|
import { DemoDataStore, InputGuide, InputState, PlotDataAndSettings, DendroStateController, ChartType, InputNamesByChartType } from '@milaboratories/pf-plots';
|
|
4
|
-
import { AesType } from './
|
|
4
|
+
import { AesType } from './constantsCommon.ts';
|
|
5
5
|
import { PColumnSpec } from '@platforma-sdk/model';
|
|
6
6
|
|
|
7
7
|
export declare function createReactiveState(initialData: GraphMakerState, chartType: ChartType): {
|
|
@@ -234,6 +234,10 @@ export declare function createReactiveState(initialData: GraphMakerState, chartT
|
|
|
234
234
|
opacity: number;
|
|
235
235
|
showOutliers: boolean;
|
|
236
236
|
};
|
|
237
|
+
logo: {
|
|
238
|
+
normalize: boolean;
|
|
239
|
+
opacity: number;
|
|
240
|
+
};
|
|
237
241
|
};
|
|
238
242
|
axesSettings: {
|
|
239
243
|
title: {
|
|
@@ -552,6 +556,10 @@ export declare function factoryStore(reactiveState: Reactive<ReactiveState>, dat
|
|
|
552
556
|
opacity: number;
|
|
553
557
|
showOutliers: boolean;
|
|
554
558
|
};
|
|
559
|
+
logo: {
|
|
560
|
+
normalize: boolean;
|
|
561
|
+
opacity: number;
|
|
562
|
+
};
|
|
555
563
|
};
|
|
556
564
|
axesSettings: {
|
|
557
565
|
title: {
|
|
@@ -899,6 +907,10 @@ export declare function provideStore(initialState: GraphMakerState, dataStoreRef
|
|
|
899
907
|
opacity: number;
|
|
900
908
|
showOutliers: boolean;
|
|
901
909
|
};
|
|
910
|
+
logo: {
|
|
911
|
+
normalize: boolean;
|
|
912
|
+
opacity: number;
|
|
913
|
+
};
|
|
902
914
|
};
|
|
903
915
|
axesSettings: {
|
|
904
916
|
title: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ChartType, InputState, SelectorStateFilter, InputNamesByChartType } from '@milaboratories/pf-plots';
|
|
2
|
-
import { AxesState, LayersSettings, NumberRange, StatisticsState } from './
|
|
2
|
+
import { AxesState, LayersSettings, NumberRange, StatisticsState } from './constantsCommon.ts';
|
|
3
3
|
import { AestheticMappingCategorical, AestheticMappingState } from './dataBindAes.ts';
|
|
4
4
|
import { AxisSpec, PColumnSpec, PFrameDriver, PFrameHandle } from '@platforma-sdk/model';
|
|
5
5
|
import { FormKey } from './forms';
|
|
@@ -59,7 +59,7 @@ export type ReactiveState = {
|
|
|
59
59
|
dendroInfoByClick: null | DendroNodeInfo;
|
|
60
60
|
dendroSelectedNodeId: null | number;
|
|
61
61
|
};
|
|
62
|
-
export type DiscreteLayer = 'box' | 'binnedDots' | 'jitteredDots' | 'violin' | 'bar' | 'stackedBar' | 'line' | 'errorbar' | 'sina';
|
|
62
|
+
export type DiscreteLayer = 'box' | 'binnedDots' | 'jitteredDots' | 'violin' | 'bar' | 'stackedBar' | 'line' | 'errorbar' | 'sina' | 'logo';
|
|
63
63
|
export type DiscreteLayersTemplate = DiscreteLayer | 'box_binnedDots' | 'box_jitteredDots' | 'violin_binnedDots' | 'violin_jitteredDots' | 'line_jitteredDots' | 'line_binnedDots' | 'line_errorbar' | 'bar_line' | 'bar_errorbar';
|
|
64
64
|
export type ScatterplotLayer = 'dots' | 'curve';
|
|
65
65
|
export type ScatterplotLayersTemplate = ScatterplotLayer | 'curve_dots';
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { DiscreteSettings } from '@milaboratories/miplots4';
|
|
2
2
|
import { ReactiveState, UniqueValuesData } from '../../types.ts';
|
|
3
|
+
import { InputGuide, InputState } from '@milaboratories/pf-plots';
|
|
3
4
|
|
|
4
|
-
export declare function composeDiscreteSettings(settings: DiscreteSettings, reactiveState: ReactiveState, uniqueValuesData: Record<string, UniqueValuesData>): {
|
|
5
|
+
export declare function composeDiscreteSettings(settings: DiscreteSettings, reactiveState: ReactiveState, uniqueValuesData: Record<string, UniqueValuesData>, inputGuide: InputGuide<InputState>): {
|
|
5
6
|
type: "discrete";
|
|
6
7
|
title: {
|
|
7
8
|
name: string;
|
|
@@ -206,6 +207,15 @@ export declare function composeDiscreteSettings(settings: DiscreteSettings, reac
|
|
|
206
207
|
opacity?: number | undefined;
|
|
207
208
|
showOutliers?: boolean | undefined;
|
|
208
209
|
} | undefined;
|
|
210
|
+
} | {
|
|
211
|
+
type: "logo";
|
|
212
|
+
aes?: {
|
|
213
|
+
lineColor?: string | undefined;
|
|
214
|
+
opacity?: number | undefined;
|
|
215
|
+
width?: number | undefined;
|
|
216
|
+
fillColor?: string | Record<string, string> | undefined;
|
|
217
|
+
} | undefined;
|
|
218
|
+
normalize?: boolean | undefined;
|
|
209
219
|
} | {
|
|
210
220
|
type: "stat";
|
|
211
221
|
statType: "overall" | "referenceGroup" | "pairwise";
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { getDefaultLayersSettings, NumberRange, LayersSettings, MappingLink, DiscreteStatisticsState, ColumnNameSchema
|
|
2
|
-
import { Layer,
|
|
3
|
-
import {
|
|
1
|
+
import { getDefaultLayersSettings, NumberRange, LayersSettings, MappingLink, DiscreteStatisticsState, ColumnNameSchema } from '../../constantsCommon.ts';
|
|
2
|
+
import { Layer, ReactiveState } from '../../types.ts';
|
|
3
|
+
import { DiscreteUIState, InputGuide, InputState, PlotDataAndSettings, ScatterplotUIState } from '@milaboratories/pf-plots';
|
|
4
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 getDiscreteLayersSettings(layers: Layer[], layerSettings: LayersSettings, statisticsSettings: DiscreteStatisticsState, optionsState: DiscreteUIState, inputGuide: InputGuide<InputState>): ChartLayerSettings[];
|
|
8
9
|
export declare function getScatterplotLayersSettings(layers: Layer[], layerSettings: ReturnType<typeof getDefaultLayersSettings>, dataByColumns: PlotDataAndSettings['dataByColumns'], optionsState: ScatterplotUIState, dataBindAes: ReactiveState['dataBindAes'], inputGuide: InputGuide<InputState>, groupingSchema?: ColumnNameSchema[]): ScatterplotSettings['layers'];
|
|
9
10
|
export type ChartLayerSettings = {
|
|
10
11
|
[key: string]: string | boolean | null | Record<string, string | DotShape | NumberRange | {
|
|
11
12
|
domain: number[];
|
|
12
13
|
range: number[];
|
|
13
|
-
} | LineType | boolean | number | MappingLink
|
|
14
|
+
} | LineType | boolean | number | MappingLink | Record<string, string>> | undefined;
|
|
14
15
|
type: string;
|
|
15
16
|
aes?: Record<string, string | DotShape | NumberRange | {
|
|
16
17
|
domain: number[];
|
|
17
18
|
range: number[];
|
|
18
|
-
} | LineType | boolean | number | MappingLink
|
|
19
|
+
} | LineType | boolean | number | MappingLink | Record<string, string>>;
|
|
19
20
|
};
|
|
20
|
-
export declare function getChartLayersSettings(chartType: ChartType, template: LayersTemplate, layerSettings: LayersSettings, statisticsSettings: StatisticsState, optionsState: InputState): ChartLayerSettings[];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { AesType, getDefaultLayersSettings, getInitialStatisticsState } from '../
|
|
2
|
-
import { ChartType, InputState } from '@milaboratories/pf-plots';
|
|
1
|
+
import { AesType, getDefaultLayersSettings, getInitialStatisticsState } from '../constantsCommon.ts';
|
|
2
|
+
import { ChartType, InputGuide, InputState } from '@milaboratories/pf-plots';
|
|
3
3
|
import { LayersTemplate } from '../types.ts';
|
|
4
4
|
|
|
5
|
-
export declare function getUsedAesInMapping(chartType: ChartType, template: LayersTemplate, layersSettings: ReturnType<typeof getDefaultLayersSettings>, statisticsSettings: ReturnType<typeof getInitialStatisticsState>, optionsState: InputState): Record<string, Record<AesType, boolean>>;
|
|
5
|
+
export declare function getUsedAesInMapping(chartType: ChartType, template: LayersTemplate, layersSettings: ReturnType<typeof getDefaultLayersSettings>, statisticsSettings: ReturnType<typeof getInitialStatisticsState>, optionsState: InputState, inputGuide: InputGuide<InputState>): Record<string, Record<AesType, boolean>>;
|