@milaboratories/graph-maker 1.1.46 → 1.1.47
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 +7 -0
- package/dist/GraphMaker/forms/AxesSettingsForm/BubbleAxesSettingsForm.vue.d.ts +2 -0
- package/dist/GraphMaker/forms/DataMappingForm/BubbleForm.vue.d.ts +2 -0
- package/dist/GraphMaker/forms/LayersForm/Layer/Bubble.vue.d.ts +2 -0
- package/dist/GraphMaker/index.vue.d.ts +63 -1
- package/dist/GraphMaker/store.d.ts +21 -0
- package/dist/GraphMaker/types.d.ts +5 -3
- package/dist/GraphMaker/utils/createChartSettingsForRender/composeBubbleSettings.d.ts +95 -0
- package/dist/GraphMaker/utils/createChartSettingsForRender/composeHeatmapSettings.d.ts +7 -7
- package/dist/graph-maker.js +32159 -31163
- package/dist/graph-maker.umd.cjs +1032 -1030
- package/package.json +3 -3
|
@@ -90,6 +90,13 @@ export declare function isNumberRange(v: number | NumberRange | null | undefined
|
|
|
90
90
|
export declare function isMappedAes(item: FixedOrMappedAes | null | string | number | boolean | unknown): item is MappingLink;
|
|
91
91
|
export declare function isContinuousDataMapping(v: ContinuousDataMapping | number | null | undefined): v is ContinuousDataMapping;
|
|
92
92
|
export type LayersSettings = {
|
|
93
|
+
bubble: {
|
|
94
|
+
minRadius: number;
|
|
95
|
+
maxRadius: number;
|
|
96
|
+
normalizationDirection: 'row' | 'column' | null;
|
|
97
|
+
normalizationMethod: 'standardScaling' | 'meanNormalization';
|
|
98
|
+
strokeColor: null | string;
|
|
99
|
+
};
|
|
93
100
|
bins: {
|
|
94
101
|
fillColor: ColorAes | null;
|
|
95
102
|
opacity: number;
|
|
@@ -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;
|
|
@@ -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;
|
|
@@ -190,6 +190,37 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
190
190
|
labelsModifier: {
|
|
191
191
|
type: import('vue').PropType<(id: string, label: string) => string>;
|
|
192
192
|
};
|
|
193
|
+
} | {
|
|
194
|
+
modelValue: {
|
|
195
|
+
required: true;
|
|
196
|
+
type: import('vue').PropType<GraphMakerState>;
|
|
197
|
+
};
|
|
198
|
+
pFrame: {
|
|
199
|
+
type: import('vue').PropType<import('@platforma-sdk/model').PFrameHandle | undefined>;
|
|
200
|
+
required: true;
|
|
201
|
+
};
|
|
202
|
+
chartType: {
|
|
203
|
+
type: import('vue').PropType<"bubble">;
|
|
204
|
+
required: true;
|
|
205
|
+
};
|
|
206
|
+
defaultOptions: {
|
|
207
|
+
type: import('vue').PropType<import('./types.ts').PredefinedGraphOption<"bubble">[]>;
|
|
208
|
+
};
|
|
209
|
+
fixedOptions: {
|
|
210
|
+
type: import('vue').PropType<import('./types.ts').PredefinedGraphOption<"bubble">[]>;
|
|
211
|
+
};
|
|
212
|
+
allowChartDeleting: {
|
|
213
|
+
type: import('vue').PropType<boolean>;
|
|
214
|
+
};
|
|
215
|
+
driver: {
|
|
216
|
+
type: import('vue').PropType<PFrameDriver>;
|
|
217
|
+
};
|
|
218
|
+
tooltipButton: {
|
|
219
|
+
type: import('vue').PropType<string>;
|
|
220
|
+
};
|
|
221
|
+
labelsModifier: {
|
|
222
|
+
type: import('vue').PropType<(id: string, label: string) => string>;
|
|
223
|
+
};
|
|
193
224
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
194
225
|
"tooltip-btn-click": (...args: any[]) => void;
|
|
195
226
|
"delete-this-graph": (...args: any[]) => void;
|
|
@@ -379,10 +410,41 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
379
410
|
labelsModifier: {
|
|
380
411
|
type: import('vue').PropType<(id: string, label: string) => string>;
|
|
381
412
|
};
|
|
413
|
+
} | {
|
|
414
|
+
modelValue: {
|
|
415
|
+
required: true;
|
|
416
|
+
type: import('vue').PropType<GraphMakerState>;
|
|
417
|
+
};
|
|
418
|
+
pFrame: {
|
|
419
|
+
type: import('vue').PropType<import('@platforma-sdk/model').PFrameHandle | undefined>;
|
|
420
|
+
required: true;
|
|
421
|
+
};
|
|
422
|
+
chartType: {
|
|
423
|
+
type: import('vue').PropType<"bubble">;
|
|
424
|
+
required: true;
|
|
425
|
+
};
|
|
426
|
+
defaultOptions: {
|
|
427
|
+
type: import('vue').PropType<import('./types.ts').PredefinedGraphOption<"bubble">[]>;
|
|
428
|
+
};
|
|
429
|
+
fixedOptions: {
|
|
430
|
+
type: import('vue').PropType<import('./types.ts').PredefinedGraphOption<"bubble">[]>;
|
|
431
|
+
};
|
|
432
|
+
allowChartDeleting: {
|
|
433
|
+
type: import('vue').PropType<boolean>;
|
|
434
|
+
};
|
|
435
|
+
driver: {
|
|
436
|
+
type: import('vue').PropType<PFrameDriver>;
|
|
437
|
+
};
|
|
438
|
+
tooltipButton: {
|
|
439
|
+
type: import('vue').PropType<string>;
|
|
440
|
+
};
|
|
441
|
+
labelsModifier: {
|
|
442
|
+
type: import('vue').PropType<(id: string, label: string) => string>;
|
|
443
|
+
};
|
|
382
444
|
}>> & Readonly<{
|
|
383
445
|
"onTooltip-btn-click"?: ((...args: any[]) => any) | undefined;
|
|
384
446
|
"onDelete-this-graph"?: ((...args: any[]) => any) | undefined;
|
|
385
|
-
}>, {} | {} | {} | {} | {} | {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
447
|
+
}>, {} | {} | {} | {} | {} | {} | {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
386
448
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
387
449
|
export default _default;
|
|
388
450
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -14,6 +14,13 @@ export declare function createReactiveState(initialData: GraphMakerState, chartT
|
|
|
14
14
|
dividedAxes: Record<string, boolean>;
|
|
15
15
|
};
|
|
16
16
|
layersSettings: {
|
|
17
|
+
bubble: {
|
|
18
|
+
minRadius: number;
|
|
19
|
+
maxRadius: number;
|
|
20
|
+
normalizationDirection: "row" | "column" | null;
|
|
21
|
+
normalizationMethod: "standardScaling" | "meanNormalization";
|
|
22
|
+
strokeColor: null | string;
|
|
23
|
+
};
|
|
17
24
|
bins: {
|
|
18
25
|
fillColor: string | {
|
|
19
26
|
type: string;
|
|
@@ -321,6 +328,13 @@ export declare function factoryStore(reactiveState: Reactive<ReactiveState>, dat
|
|
|
321
328
|
dividedAxes: Record<string, boolean>;
|
|
322
329
|
};
|
|
323
330
|
layersSettings: {
|
|
331
|
+
bubble: {
|
|
332
|
+
minRadius: number;
|
|
333
|
+
maxRadius: number;
|
|
334
|
+
normalizationDirection: "row" | "column" | null;
|
|
335
|
+
normalizationMethod: "standardScaling" | "meanNormalization";
|
|
336
|
+
strokeColor: null | string;
|
|
337
|
+
};
|
|
324
338
|
bins: {
|
|
325
339
|
fillColor: string | {
|
|
326
340
|
type: string;
|
|
@@ -656,6 +670,13 @@ export declare function provideStore(initialState: GraphMakerState, dataStoreRef
|
|
|
656
670
|
dividedAxes: Record<string, boolean>;
|
|
657
671
|
};
|
|
658
672
|
layersSettings: {
|
|
673
|
+
bubble: {
|
|
674
|
+
minRadius: number;
|
|
675
|
+
maxRadius: number;
|
|
676
|
+
normalizationDirection: "row" | "column" | null;
|
|
677
|
+
normalizationMethod: "standardScaling" | "meanNormalization";
|
|
678
|
+
strokeColor: null | string;
|
|
679
|
+
};
|
|
659
680
|
bins: {
|
|
660
681
|
fillColor: string | {
|
|
661
682
|
type: string;
|
|
@@ -34,7 +34,7 @@ export interface GraphMakerPropsTyped<T extends ChartType> {
|
|
|
34
34
|
tooltipButton?: string;
|
|
35
35
|
labelsModifier?: (id: string, label: string) => string;
|
|
36
36
|
}
|
|
37
|
-
export type GraphMakerProps = GraphMakerPropsTyped<'discrete'> | GraphMakerPropsTyped<'scatterplot'> | GraphMakerPropsTyped<'scatterplot-umap'> | GraphMakerPropsTyped<'heatmap'> | GraphMakerPropsTyped<'dendro'> | GraphMakerPropsTyped<'histogram'>;
|
|
37
|
+
export type GraphMakerProps = GraphMakerPropsTyped<'discrete'> | GraphMakerPropsTyped<'scatterplot'> | GraphMakerPropsTyped<'scatterplot-umap'> | GraphMakerPropsTyped<'heatmap'> | GraphMakerPropsTyped<'dendro'> | GraphMakerPropsTyped<'histogram'> | GraphMakerPropsTyped<'bubble'>;
|
|
38
38
|
export type GraphMakerInputName<T extends ChartType> = InputNamesByChartType[T];
|
|
39
39
|
export type DendroNodeInfo = {
|
|
40
40
|
x: number;
|
|
@@ -63,8 +63,10 @@ export type DendroLayer = 'dendro';
|
|
|
63
63
|
export type DendroLayerTemplate = DendroLayer;
|
|
64
64
|
export type HistogramLayer = 'bins';
|
|
65
65
|
export type HistogramLayerTemplate = HistogramLayer;
|
|
66
|
-
export type
|
|
67
|
-
export type
|
|
66
|
+
export type BubbleLayer = 'bubble';
|
|
67
|
+
export type BubbleLayerTemplate = BubbleLayer;
|
|
68
|
+
export type LayersTemplate = DiscreteLayersTemplate | ScatterplotLayersTemplate | HeatmapLayerTemplate | DendroLayerTemplate | HistogramLayerTemplate | BubbleLayerTemplate;
|
|
69
|
+
export type Layer = DiscreteLayer | ScatterplotLayer | HeatmapLayer | DendroLayer | HistogramLayer | BubbleLayer;
|
|
68
70
|
export type TitlePosition = 'left' | 'right' | 'center';
|
|
69
71
|
export type LabelsPosition = 'top' | 'bottom' | 'left' | 'right' | 'hidden';
|
|
70
72
|
export type LabelsRotation = 'center' | '45deg' | '90deg';
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { BubbleSettings } from '@milaboratories/miplots4';
|
|
2
|
+
import { ReactiveState } from '../../types.ts';
|
|
3
|
+
|
|
4
|
+
export declare function composeBubbleSettings(settings: BubbleSettings, reactiveState: ReactiveState): {
|
|
5
|
+
type: "bubble";
|
|
6
|
+
title: {
|
|
7
|
+
name: string;
|
|
8
|
+
show?: boolean | undefined;
|
|
9
|
+
position?: "left" | "center" | "right" | undefined;
|
|
10
|
+
};
|
|
11
|
+
valueSize: {
|
|
12
|
+
type: "column";
|
|
13
|
+
value: string;
|
|
14
|
+
label?: string | undefined;
|
|
15
|
+
valueLabels?: string | undefined;
|
|
16
|
+
};
|
|
17
|
+
valueColor: {
|
|
18
|
+
type: "column";
|
|
19
|
+
value: string;
|
|
20
|
+
label?: string | undefined;
|
|
21
|
+
valueLabels?: string | undefined;
|
|
22
|
+
};
|
|
23
|
+
xColumn: {
|
|
24
|
+
type: "column";
|
|
25
|
+
value: string;
|
|
26
|
+
label?: string | undefined;
|
|
27
|
+
valueLabels?: string | undefined;
|
|
28
|
+
};
|
|
29
|
+
yColumn: {
|
|
30
|
+
type: "column";
|
|
31
|
+
value: string;
|
|
32
|
+
label?: string | undefined;
|
|
33
|
+
valueLabels?: string | undefined;
|
|
34
|
+
};
|
|
35
|
+
aes?: {
|
|
36
|
+
colorsList?: string[] | undefined;
|
|
37
|
+
minRadius?: number | undefined;
|
|
38
|
+
maxRadius?: number | undefined;
|
|
39
|
+
cellStrokeColor?: string | undefined;
|
|
40
|
+
emptyCellColor?: string | undefined;
|
|
41
|
+
} | undefined;
|
|
42
|
+
size?: {
|
|
43
|
+
width?: number | undefined;
|
|
44
|
+
height?: number | undefined;
|
|
45
|
+
cellSize?: number | undefined;
|
|
46
|
+
} | undefined;
|
|
47
|
+
legend?: {
|
|
48
|
+
show?: boolean | undefined;
|
|
49
|
+
position?: "right" | "inside" | "top" | "bottom" | undefined;
|
|
50
|
+
} | undefined;
|
|
51
|
+
tooltips?: {
|
|
52
|
+
show?: boolean | undefined;
|
|
53
|
+
content?: {
|
|
54
|
+
type: "column";
|
|
55
|
+
value: string;
|
|
56
|
+
label?: string | undefined;
|
|
57
|
+
valueLabels?: string | undefined;
|
|
58
|
+
}[] | undefined;
|
|
59
|
+
} | undefined;
|
|
60
|
+
frame?: {
|
|
61
|
+
type?: "left" | "bottom" | "left-bottom" | "full" | "empty" | undefined;
|
|
62
|
+
} | undefined;
|
|
63
|
+
facetSettings?: {
|
|
64
|
+
nRows?: number | undefined;
|
|
65
|
+
nCols?: number | undefined;
|
|
66
|
+
} | undefined;
|
|
67
|
+
xAxis?: {
|
|
68
|
+
title?: string | undefined;
|
|
69
|
+
position?: "top" | "bottom" | undefined;
|
|
70
|
+
showTicks?: boolean | undefined;
|
|
71
|
+
showTitle?: boolean | undefined;
|
|
72
|
+
showAxisLabels?: boolean | undefined;
|
|
73
|
+
axisLabelsAngle?: 0 | 45 | 90 | undefined;
|
|
74
|
+
} | undefined;
|
|
75
|
+
yAxis?: {
|
|
76
|
+
title?: string | undefined;
|
|
77
|
+
position?: "left" | "right" | undefined;
|
|
78
|
+
showTicks?: boolean | undefined;
|
|
79
|
+
showTitle?: boolean | undefined;
|
|
80
|
+
showAxisLabels?: boolean | undefined;
|
|
81
|
+
axisLabelsAngle?: 0 | 45 | 90 | undefined;
|
|
82
|
+
} | undefined;
|
|
83
|
+
facetBy?: {
|
|
84
|
+
type: "column";
|
|
85
|
+
value: string;
|
|
86
|
+
label?: string | undefined;
|
|
87
|
+
valueLabels?: string | undefined;
|
|
88
|
+
}[] | undefined;
|
|
89
|
+
normalization?: {
|
|
90
|
+
direction: "column" | "row";
|
|
91
|
+
method: "standardScaling" | "meanNormalization";
|
|
92
|
+
colorRange?: number[] | undefined;
|
|
93
|
+
sizeRange?: number[] | undefined;
|
|
94
|
+
} | undefined;
|
|
95
|
+
};
|
|
@@ -28,11 +28,11 @@ export declare function composeHeatmapSettings(settings: HeatmapSettings, reacti
|
|
|
28
28
|
};
|
|
29
29
|
aes?: {
|
|
30
30
|
colorsList?: string[] | undefined;
|
|
31
|
+
cellStrokeColor?: string | undefined;
|
|
32
|
+
emptyCellColor?: string | undefined;
|
|
31
33
|
colorsMap?: Record<string, string> | undefined;
|
|
32
34
|
valueColors?: string[] | undefined;
|
|
33
35
|
valuesByColors?: number[] | undefined;
|
|
34
|
-
cellStrokeColor?: string | undefined;
|
|
35
|
-
emptyCellColor?: string | undefined;
|
|
36
36
|
groupGap?: number | undefined;
|
|
37
37
|
cellGap?: number | undefined;
|
|
38
38
|
} | undefined;
|
|
@@ -90,6 +90,11 @@ export declare function composeHeatmapSettings(settings: HeatmapSettings, reacti
|
|
|
90
90
|
label?: string | undefined;
|
|
91
91
|
valueLabels?: string | undefined;
|
|
92
92
|
}[] | undefined;
|
|
93
|
+
normalization?: {
|
|
94
|
+
direction: "column" | "row";
|
|
95
|
+
method: "standardScaling" | "meanNormalization";
|
|
96
|
+
colorRange?: number[] | undefined;
|
|
97
|
+
} | undefined;
|
|
93
98
|
valueType?: "discrete" | "continuous" | undefined;
|
|
94
99
|
xGroupBy?: {
|
|
95
100
|
type: "column";
|
|
@@ -103,11 +108,6 @@ export declare function composeHeatmapSettings(settings: HeatmapSettings, reacti
|
|
|
103
108
|
label?: string | undefined;
|
|
104
109
|
valueLabels?: string | undefined;
|
|
105
110
|
}[] | undefined;
|
|
106
|
-
normalization?: {
|
|
107
|
-
method: "standardScaling" | "meanNormalization";
|
|
108
|
-
direction: "column" | "row";
|
|
109
|
-
colorRange?: number[] | undefined;
|
|
110
|
-
} | undefined;
|
|
111
111
|
annotations?: ({
|
|
112
112
|
type: "discrete" | "continuous";
|
|
113
113
|
valueColumn: {
|