@milaboratories/graph-maker 1.1.37 → 1.1.39
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/PalettesForm.vue.d.ts +29 -3
- package/dist/GraphMaker/components/AesSettings/constants.d.ts +3 -1
- package/dist/GraphMaker/components/DragAndDrop/DnDRangeChip.vue.d.ts +2 -7
- package/dist/GraphMaker/components/DragAndDrop/DndDoubleChip.vue.d.ts +2 -7
- package/dist/GraphMaker/components/MultiselectButton.vue.d.ts +0 -2
- package/dist/GraphMaker/dataBindAes.d.ts +5 -3
- package/dist/GraphMaker/forms/LayersForm/Layer/heatmap/HeatmapAnnotations.vue.d.ts +2 -0
- package/dist/GraphMaker/icons/HeatmapAnnotation.vue.d.ts +2 -0
- package/dist/GraphMaker/store.d.ts +3 -3
- package/dist/GraphMaker/types.d.ts +2 -2
- package/dist/graph-maker.js +22408 -22201
- package/dist/graph-maker.umd.cjs +965 -974
- package/dist/style.css +1 -1
- package/package.json +4 -4
|
@@ -1,14 +1,32 @@
|
|
|
1
1
|
import { Palette } from './types.ts';
|
|
2
2
|
|
|
3
|
-
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
3
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
4
4
|
selected: Palette;
|
|
5
|
+
categorical?: boolean;
|
|
6
|
+
sequential?: boolean;
|
|
7
|
+
diverging?: boolean;
|
|
8
|
+
}>, {
|
|
9
|
+
categorical: boolean;
|
|
10
|
+
sequential: boolean;
|
|
11
|
+
diverging: boolean;
|
|
5
12
|
}>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
6
13
|
select: (...args: any[]) => void;
|
|
7
|
-
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
14
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
8
15
|
selected: Palette;
|
|
16
|
+
categorical?: boolean;
|
|
17
|
+
sequential?: boolean;
|
|
18
|
+
diverging?: boolean;
|
|
19
|
+
}>, {
|
|
20
|
+
categorical: boolean;
|
|
21
|
+
sequential: boolean;
|
|
22
|
+
diverging: boolean;
|
|
9
23
|
}>>> & Readonly<{
|
|
10
24
|
onSelect?: ((...args: any[]) => any) | undefined;
|
|
11
|
-
}>, {
|
|
25
|
+
}>, {
|
|
26
|
+
categorical: boolean;
|
|
27
|
+
sequential: boolean;
|
|
28
|
+
diverging: boolean;
|
|
29
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
12
30
|
export default _default;
|
|
13
31
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
14
32
|
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
@@ -19,3 +37,11 @@ type __VLS_TypePropsToRuntimeProps<T> = {
|
|
|
19
37
|
required: true;
|
|
20
38
|
};
|
|
21
39
|
};
|
|
40
|
+
type __VLS_WithDefaults<P, D> = {
|
|
41
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
42
|
+
default: D[K];
|
|
43
|
+
}> : P[K];
|
|
44
|
+
};
|
|
45
|
+
type __VLS_Prettify<T> = {
|
|
46
|
+
[K in keyof T]: T[K];
|
|
47
|
+
} & {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CategoricalPalette, DivergingPalette, DotShape, LineType, LineTypeInfo, Palette, PaletteInfo, SequentialPalette } from './types.ts';
|
|
1
|
+
import { CategoricalPalette, ContinuousPalette, DivergingPalette, DotShape, LineType, LineTypeInfo, Palette, PaletteInfo, SequentialPalette } from './types.ts';
|
|
2
2
|
|
|
3
3
|
export declare const FIXED_COLORS: {
|
|
4
4
|
name: string;
|
|
@@ -20,6 +20,8 @@ export declare const CATEGORICAL_MAP: Record<CategoricalPalette, PaletteInfo>;
|
|
|
20
20
|
export declare const SEQUENTIAL_MAP: Record<SequentialPalette, PaletteInfo>;
|
|
21
21
|
export declare const DIVERGING_MAP: Record<DivergingPalette, PaletteInfo>;
|
|
22
22
|
export declare const PALETTE_MAP: Record<Palette, PaletteInfo>;
|
|
23
|
+
export declare const DEFAULT_CATEGORICAL_PALETTE: CategoricalPalette;
|
|
24
|
+
export declare const DEFAULT_CONTINUOUS_PALETTE: ContinuousPalette;
|
|
23
25
|
export declare const DEFAULT_PALETTE: Palette;
|
|
24
26
|
export declare const FIXES_DOT_SHAPES: DotShape[];
|
|
25
27
|
export declare const UNKNOWN_COLOR = "#F0F0F0";
|
|
@@ -1,19 +1,14 @@
|
|
|
1
1
|
import { ChipInfo } from './types.ts';
|
|
2
|
-
import { ValueType } from '@platforma-sdk/model';
|
|
3
2
|
|
|
4
3
|
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
5
|
-
|
|
6
|
-
title: string;
|
|
7
|
-
type: ValueType;
|
|
4
|
+
info: ChipInfo;
|
|
8
5
|
modelValue: unknown;
|
|
9
6
|
error: boolean;
|
|
10
7
|
}>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
11
8
|
"close-chip": (id: string) => void;
|
|
12
9
|
"update:modelValue": (id: unknown) => void;
|
|
13
10
|
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
14
|
-
|
|
15
|
-
title: string;
|
|
16
|
-
type: ValueType;
|
|
11
|
+
info: ChipInfo;
|
|
17
12
|
modelValue: unknown;
|
|
18
13
|
error: boolean;
|
|
19
14
|
}>>> & Readonly<{
|
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
import { ChipInfo } from './types.ts';
|
|
2
|
-
import { ValueType } from '@platforma-sdk/model';
|
|
3
2
|
|
|
4
3
|
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
5
|
-
|
|
6
|
-
title: string;
|
|
7
|
-
type: ValueType;
|
|
4
|
+
info: ChipInfo;
|
|
8
5
|
modelValue: unknown;
|
|
9
6
|
error: boolean;
|
|
10
7
|
sortable?: boolean;
|
|
@@ -12,9 +9,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
12
9
|
"close-chip": (id: string) => void;
|
|
13
10
|
"update:modelValue": (id: unknown) => void;
|
|
14
11
|
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
15
|
-
|
|
16
|
-
title: string;
|
|
17
|
-
type: ValueType;
|
|
12
|
+
info: ChipInfo;
|
|
18
13
|
modelValue: unknown;
|
|
19
14
|
error: boolean;
|
|
20
15
|
sortable?: boolean;
|
|
@@ -4,14 +4,12 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
4
4
|
label: string;
|
|
5
5
|
title?: string;
|
|
6
6
|
palette?: Palette;
|
|
7
|
-
iconColor?: string;
|
|
8
7
|
}>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
9
8
|
"button-click": (...args: any[]) => void;
|
|
10
9
|
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
11
10
|
label: string;
|
|
12
11
|
title?: string;
|
|
13
12
|
palette?: Palette;
|
|
14
|
-
iconColor?: string;
|
|
15
13
|
}>>> & Readonly<{
|
|
16
14
|
"onButton-click"?: ((...args: any[]) => any) | undefined;
|
|
17
15
|
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
@@ -2,6 +2,7 @@ import { ContinuousPalette, DotShape, LineType, Palette } from './components/Aes
|
|
|
2
2
|
import { AesType, ContinuousDataMapping, NumberRange } from './constant.ts';
|
|
3
3
|
import { UniqueValuesData } from './types.ts';
|
|
4
4
|
|
|
5
|
+
export type AestheticMappingState = Record<string, AestheticMapping>;
|
|
5
6
|
export type AestheticMapping = AestheticMappingContinuous | AestheticMappingCategorical;
|
|
6
7
|
interface MappingRange {
|
|
7
8
|
maxValue: number;
|
|
@@ -40,7 +41,8 @@ export declare const DEFAULT_DOT_SHAPE = "21";
|
|
|
40
41
|
export declare const DEFAULT_DOT_SIZE = 3;
|
|
41
42
|
export declare const DEFAULT_DOT_RANGE: NumberRange;
|
|
42
43
|
export declare function updateAestheticMapping(values: (string | number)[], currentMapping?: AestheticMappingCategorical): AestheticMappingCategorical;
|
|
43
|
-
export declare function
|
|
44
|
+
export declare function createCategoricalMappingFromPalette(palette: Palette, values: (string | number)[]): AestheticMappingCategorical;
|
|
45
|
+
export declare function createContinuousMappingFromPalette(palette: ContinuousPalette): AestheticMappingContinuous;
|
|
44
46
|
export declare function createDefaultMapping(values: (string | number)[]): AestheticMappingCategorical;
|
|
45
47
|
export declare function createDefaultContinuousMapping(columnId: string): ContinuousDataMapping;
|
|
46
48
|
export declare function getChartSettingsInheritedAes(uniqueValuesData: Record<string, UniqueValuesData>, maybeMapping: AestheticMapping | undefined, sourceId: string | null, usedAesInMapping: Record<AesType, boolean>): {
|
|
@@ -50,6 +52,6 @@ export declare function getChartSettingsInheritedAes(uniqueValuesData: Record<st
|
|
|
50
52
|
order: (string | number)[];
|
|
51
53
|
inheritedAes: Record<string, any>;
|
|
52
54
|
};
|
|
53
|
-
export declare function getScatterplotAes(selectedStr: string, uniqueValuesData: Record<string, UniqueValuesData>, dataBindAes:
|
|
54
|
-
export declare function getDendroAes(selectedStr: string, uniqueValuesData: Record<string, UniqueValuesData>, dataBindAes:
|
|
55
|
+
export declare function getScatterplotAes(selectedStr: string, uniqueValuesData: Record<string, UniqueValuesData>, dataBindAes: AestheticMappingState): Record<string, any>;
|
|
56
|
+
export declare function getDendroAes(selectedStr: string, uniqueValuesData: Record<string, UniqueValuesData>, dataBindAes: AestheticMappingState, field: keyof AestheticValues): Record<string, AestheticValues[keyof AestheticValues]>;
|
|
55
57
|
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;
|
|
@@ -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;
|
|
@@ -287,7 +287,7 @@ export declare function createReactiveState(initialData: GraphMakerState, chartT
|
|
|
287
287
|
showLegend: boolean;
|
|
288
288
|
};
|
|
289
289
|
};
|
|
290
|
-
dataBindAes:
|
|
290
|
+
dataBindAes: import('./dataBindAes').AestheticMappingState;
|
|
291
291
|
chartScale: number;
|
|
292
292
|
dendroInfoByClick: {
|
|
293
293
|
x: number;
|
|
@@ -581,7 +581,7 @@ export declare function factoryStore(reactiveState: Reactive<ReactiveState>, dat
|
|
|
581
581
|
showLegend: boolean;
|
|
582
582
|
};
|
|
583
583
|
};
|
|
584
|
-
dataBindAes:
|
|
584
|
+
dataBindAes: import('./dataBindAes').AestheticMappingState;
|
|
585
585
|
chartScale: number;
|
|
586
586
|
dendroInfoByClick: {
|
|
587
587
|
x: number;
|
|
@@ -903,7 +903,7 @@ export declare function provideStore(initialState: GraphMakerState, dataStoreRef
|
|
|
903
903
|
showLegend: boolean;
|
|
904
904
|
};
|
|
905
905
|
};
|
|
906
|
-
dataBindAes:
|
|
906
|
+
dataBindAes: import('./dataBindAes').AestheticMappingState;
|
|
907
907
|
chartScale: number;
|
|
908
908
|
dendroInfoByClick: {
|
|
909
909
|
x: number;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ChartType, InputState, SelectorStateFilter, InputNamesByChartType } from '@milaboratories/pf-plots';
|
|
2
2
|
import { AxesState, LayersSettings, NumberRange, StatisticsState } from './constant.ts';
|
|
3
|
-
import { AestheticMappingCategorical } from './dataBindAes.ts';
|
|
3
|
+
import { AestheticMappingCategorical, AestheticMappingState } from './dataBindAes.ts';
|
|
4
4
|
import { AxisSpec, PColumnSpec, PFrameDriver, PFrameHandle } from '@platforma-sdk/model';
|
|
5
5
|
import { FormKey } from './forms';
|
|
6
6
|
|
|
@@ -43,7 +43,7 @@ export type ReactiveState = {
|
|
|
43
43
|
layersSettings: LayersSettings;
|
|
44
44
|
axesSettings: AxesState;
|
|
45
45
|
statisticsSettings: StatisticsState;
|
|
46
|
-
dataBindAes:
|
|
46
|
+
dataBindAes: AestheticMappingState;
|
|
47
47
|
chartScale: number;
|
|
48
48
|
dendroInfoByClick: null | {
|
|
49
49
|
x: number;
|