@milaboratories/graph-maker 1.1.5 → 1.1.6
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/index.vue.d.ts +10 -50
- package/dist/GraphMaker/store.d.ts +4 -5
- package/dist/GraphMaker/types.d.ts +2 -6
- package/dist/GraphMaker/utils/index.d.ts +1 -1
- package/dist/GraphMaker/utils/loadDefaultSources.d.ts +10 -0
- package/dist/graph-maker.js +10863 -10836
- package/dist/graph-maker.umd.cjs +919 -919
- package/package.json +3 -3
- package/dist/GraphMaker/utils/getFixedColumnOrAxisIdFromSettings.d.ts +0 -4
|
@@ -21,11 +21,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
21
21
|
type: import('vue').PropType<import('./types.ts').PredefinedGraphOption<"discrete">[]>;
|
|
22
22
|
};
|
|
23
23
|
fixedOptions: {
|
|
24
|
-
type: import('vue').PropType<
|
|
25
|
-
inputName: "y" | "primaryGrouping" | "secondaryGrouping" | "filters" | "tabBy" | "facetBy";
|
|
26
|
-
selectedSource: import('@platforma-sdk/model').PTableRecordSingleValueFilterV2["column"];
|
|
27
|
-
selectedFilterValue?: string | number;
|
|
28
|
-
}[]>;
|
|
24
|
+
type: import('vue').PropType<import('./types.ts').PredefinedGraphOption<"discrete">[]>;
|
|
29
25
|
};
|
|
30
26
|
allowChartDeleting: {
|
|
31
27
|
type: import('vue').PropType<boolean>;
|
|
@@ -53,11 +49,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
53
49
|
type: import('vue').PropType<import('./types.ts').PredefinedGraphOption<"scatterplot">[]>;
|
|
54
50
|
};
|
|
55
51
|
fixedOptions: {
|
|
56
|
-
type: import('vue').PropType<
|
|
57
|
-
inputName: "x" | "y" | "filters" | "tabBy" | "facetBy" | "grouping";
|
|
58
|
-
selectedSource: import('@platforma-sdk/model').PTableRecordSingleValueFilterV2["column"];
|
|
59
|
-
selectedFilterValue?: string | number;
|
|
60
|
-
}[]>;
|
|
52
|
+
type: import('vue').PropType<import('./types.ts').PredefinedGraphOption<"scatterplot">[]>;
|
|
61
53
|
};
|
|
62
54
|
allowChartDeleting: {
|
|
63
55
|
type: import('vue').PropType<boolean>;
|
|
@@ -85,11 +77,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
85
77
|
type: import('vue').PropType<import('./types.ts').PredefinedGraphOption<"scatterplot-umap">[]>;
|
|
86
78
|
};
|
|
87
79
|
fixedOptions: {
|
|
88
|
-
type: import('vue').PropType<
|
|
89
|
-
inputName: "x" | "y" | "filters" | "tabBy" | "facetBy" | "grouping";
|
|
90
|
-
selectedSource: import('@platforma-sdk/model').PTableRecordSingleValueFilterV2["column"];
|
|
91
|
-
selectedFilterValue?: string | number;
|
|
92
|
-
}[]>;
|
|
80
|
+
type: import('vue').PropType<import('./types.ts').PredefinedGraphOption<"scatterplot-umap">[]>;
|
|
93
81
|
};
|
|
94
82
|
allowChartDeleting: {
|
|
95
83
|
type: import('vue').PropType<boolean>;
|
|
@@ -117,11 +105,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
117
105
|
type: import('vue').PropType<import('./types.ts').PredefinedGraphOption<"heatmap">[]>;
|
|
118
106
|
};
|
|
119
107
|
fixedOptions: {
|
|
120
|
-
type: import('vue').PropType<
|
|
121
|
-
inputName: "x" | "y" | "filters" | "tabBy" | "facetBy" | "value" | "xGroupBy" | "yGroupBy" | "annotations";
|
|
122
|
-
selectedSource: import('@platforma-sdk/model').PTableRecordSingleValueFilterV2["column"];
|
|
123
|
-
selectedFilterValue?: string | number;
|
|
124
|
-
}[]>;
|
|
108
|
+
type: import('vue').PropType<import('./types.ts').PredefinedGraphOption<"heatmap">[]>;
|
|
125
109
|
};
|
|
126
110
|
allowChartDeleting: {
|
|
127
111
|
type: import('vue').PropType<boolean>;
|
|
@@ -149,11 +133,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
149
133
|
type: import('vue').PropType<import('./types.ts').PredefinedGraphOption<"dendro">[]>;
|
|
150
134
|
};
|
|
151
135
|
fixedOptions: {
|
|
152
|
-
type: import('vue').PropType<
|
|
153
|
-
inputName: "height" | "lineColor" | "filters" | "tabBy" | "facetBy" | "nodeColor" | "nodeShape" | "value" | "labels" | "tableContent" | "nodeSize" | "heatmapForSequence" | "heatmapAnnotation" | "heatmapAxis" | "heatmapGroup";
|
|
154
|
-
selectedSource: import('@platforma-sdk/model').PTableRecordSingleValueFilterV2["column"];
|
|
155
|
-
selectedFilterValue?: string | number;
|
|
156
|
-
}[]>;
|
|
136
|
+
type: import('vue').PropType<import('./types.ts').PredefinedGraphOption<"dendro">[]>;
|
|
157
137
|
};
|
|
158
138
|
allowChartDeleting: {
|
|
159
139
|
type: import('vue').PropType<boolean>;
|
|
@@ -183,11 +163,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
183
163
|
type: import('vue').PropType<import('./types.ts').PredefinedGraphOption<"discrete">[]>;
|
|
184
164
|
};
|
|
185
165
|
fixedOptions: {
|
|
186
|
-
type: import('vue').PropType<
|
|
187
|
-
inputName: "y" | "primaryGrouping" | "secondaryGrouping" | "filters" | "tabBy" | "facetBy";
|
|
188
|
-
selectedSource: import('@platforma-sdk/model').PTableRecordSingleValueFilterV2["column"];
|
|
189
|
-
selectedFilterValue?: string | number;
|
|
190
|
-
}[]>;
|
|
166
|
+
type: import('vue').PropType<import('./types.ts').PredefinedGraphOption<"discrete">[]>;
|
|
191
167
|
};
|
|
192
168
|
allowChartDeleting: {
|
|
193
169
|
type: import('vue').PropType<boolean>;
|
|
@@ -215,11 +191,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
215
191
|
type: import('vue').PropType<import('./types.ts').PredefinedGraphOption<"scatterplot">[]>;
|
|
216
192
|
};
|
|
217
193
|
fixedOptions: {
|
|
218
|
-
type: import('vue').PropType<
|
|
219
|
-
inputName: "x" | "y" | "filters" | "tabBy" | "facetBy" | "grouping";
|
|
220
|
-
selectedSource: import('@platforma-sdk/model').PTableRecordSingleValueFilterV2["column"];
|
|
221
|
-
selectedFilterValue?: string | number;
|
|
222
|
-
}[]>;
|
|
194
|
+
type: import('vue').PropType<import('./types.ts').PredefinedGraphOption<"scatterplot">[]>;
|
|
223
195
|
};
|
|
224
196
|
allowChartDeleting: {
|
|
225
197
|
type: import('vue').PropType<boolean>;
|
|
@@ -247,11 +219,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
247
219
|
type: import('vue').PropType<import('./types.ts').PredefinedGraphOption<"scatterplot-umap">[]>;
|
|
248
220
|
};
|
|
249
221
|
fixedOptions: {
|
|
250
|
-
type: import('vue').PropType<
|
|
251
|
-
inputName: "x" | "y" | "filters" | "tabBy" | "facetBy" | "grouping";
|
|
252
|
-
selectedSource: import('@platforma-sdk/model').PTableRecordSingleValueFilterV2["column"];
|
|
253
|
-
selectedFilterValue?: string | number;
|
|
254
|
-
}[]>;
|
|
222
|
+
type: import('vue').PropType<import('./types.ts').PredefinedGraphOption<"scatterplot-umap">[]>;
|
|
255
223
|
};
|
|
256
224
|
allowChartDeleting: {
|
|
257
225
|
type: import('vue').PropType<boolean>;
|
|
@@ -279,11 +247,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
279
247
|
type: import('vue').PropType<import('./types.ts').PredefinedGraphOption<"heatmap">[]>;
|
|
280
248
|
};
|
|
281
249
|
fixedOptions: {
|
|
282
|
-
type: import('vue').PropType<
|
|
283
|
-
inputName: "x" | "y" | "filters" | "tabBy" | "facetBy" | "value" | "xGroupBy" | "yGroupBy" | "annotations";
|
|
284
|
-
selectedSource: import('@platforma-sdk/model').PTableRecordSingleValueFilterV2["column"];
|
|
285
|
-
selectedFilterValue?: string | number;
|
|
286
|
-
}[]>;
|
|
250
|
+
type: import('vue').PropType<import('./types.ts').PredefinedGraphOption<"heatmap">[]>;
|
|
287
251
|
};
|
|
288
252
|
allowChartDeleting: {
|
|
289
253
|
type: import('vue').PropType<boolean>;
|
|
@@ -311,11 +275,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
311
275
|
type: import('vue').PropType<import('./types.ts').PredefinedGraphOption<"dendro">[]>;
|
|
312
276
|
};
|
|
313
277
|
fixedOptions: {
|
|
314
|
-
type: import('vue').PropType<
|
|
315
|
-
inputName: "height" | "lineColor" | "filters" | "tabBy" | "facetBy" | "nodeColor" | "nodeShape" | "value" | "labels" | "tableContent" | "nodeSize" | "heatmapForSequence" | "heatmapAnnotation" | "heatmapAxis" | "heatmapGroup";
|
|
316
|
-
selectedSource: import('@platforma-sdk/model').PTableRecordSingleValueFilterV2["column"];
|
|
317
|
-
selectedFilterValue?: string | number;
|
|
318
|
-
}[]>;
|
|
278
|
+
type: import('vue').PropType<import('./types.ts').PredefinedGraphOption<"dendro">[]>;
|
|
319
279
|
};
|
|
320
280
|
allowChartDeleting: {
|
|
321
281
|
type: import('vue').PropType<boolean>;
|
|
@@ -2,7 +2,6 @@ import { Ref, ComputedRef, Reactive } from 'vue';
|
|
|
2
2
|
import { GraphMakerProps, GraphMakerState, ReactiveState } from './types.ts';
|
|
3
3
|
import { DemoDataStore, InputGuide, InputState, PlotDataAndSettings, DendroStateController, ChartType } from '@milaboratories/pf-plots';
|
|
4
4
|
import { AesType } from './constant.ts';
|
|
5
|
-
import { AxisSpec, PColumnSpec } from '@platforma-sdk/model';
|
|
6
5
|
|
|
7
6
|
export declare function createReactiveState(initialData: GraphMakerState, chartType: ChartType): {
|
|
8
7
|
chartType: ChartType;
|
|
@@ -556,11 +555,11 @@ export declare function factoryStore(reactiveState: Reactive<ReactiveState>, dat
|
|
|
556
555
|
usedAesInMapping: ComputedRef<Record<string, Record<AesType, boolean>>>;
|
|
557
556
|
dendroTableData: Ref<Record<string, {
|
|
558
557
|
label: string;
|
|
559
|
-
spec: PColumnSpec | AxisSpec;
|
|
558
|
+
spec: import('@milaboratories/pf-plots').PColumnSpec | import('@milaboratories/pf-plots').AxisSpec;
|
|
560
559
|
data: import('@milaboratories/pf-plots').PValue[];
|
|
561
560
|
}> | null, Record<string, {
|
|
562
561
|
label: string;
|
|
563
|
-
spec: PColumnSpec | AxisSpec;
|
|
562
|
+
spec: import('@milaboratories/pf-plots').PColumnSpec | import('@milaboratories/pf-plots').AxisSpec;
|
|
564
563
|
data: import('@milaboratories/pf-plots').PValue[];
|
|
565
564
|
}> | null>;
|
|
566
565
|
};
|
|
@@ -853,11 +852,11 @@ export declare function provideStore(initialState: GraphMakerState, dataStoreRef
|
|
|
853
852
|
usedAesInMapping: ComputedRef<Record<string, Record<AesType, boolean>>>;
|
|
854
853
|
dendroTableData: Ref<Record<string, {
|
|
855
854
|
label: string;
|
|
856
|
-
spec: PColumnSpec | AxisSpec;
|
|
855
|
+
spec: import('@milaboratories/pf-plots').PColumnSpec | import('@milaboratories/pf-plots').AxisSpec;
|
|
857
856
|
data: import('@milaboratories/pf-plots').PValue[];
|
|
858
857
|
}> | null, Record<string, {
|
|
859
858
|
label: string;
|
|
860
|
-
spec: PColumnSpec | AxisSpec;
|
|
859
|
+
spec: import('@milaboratories/pf-plots').PColumnSpec | import('@milaboratories/pf-plots').AxisSpec;
|
|
861
860
|
data: import('@milaboratories/pf-plots').PValue[];
|
|
862
861
|
}> | null>;
|
|
863
862
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ChartType, InputState, InputNamesByChartType } from '@milaboratories/pf-plots';
|
|
2
2
|
import { AxesState, getDefaultLayersSettings, LayersSettings, StatisticsState } from './constant.ts';
|
|
3
3
|
import { AestheticMappingCategorical } from './dataBindAes.ts';
|
|
4
|
-
import { AxisSpec, PColumnSpec,
|
|
4
|
+
import { AxisSpec, PColumnSpec, PFrameDriver, PFrameHandle } from '@platforma-sdk/model';
|
|
5
5
|
|
|
6
6
|
export type GraphMakerState = {
|
|
7
7
|
title: string;
|
|
@@ -21,11 +21,7 @@ export interface GraphMakerPropsTyped<T extends ChartType> {
|
|
|
21
21
|
pFrame: PFrameHandle | undefined;
|
|
22
22
|
chartType: T;
|
|
23
23
|
defaultOptions?: PredefinedGraphOption<T>[];
|
|
24
|
-
fixedOptions?:
|
|
25
|
-
inputName: InputNamesByChartType[T];
|
|
26
|
-
selectedSource: PTableRecordSingleValueFilterV2['column'];
|
|
27
|
-
selectedFilterValue?: string | number;
|
|
28
|
-
}[];
|
|
24
|
+
fixedOptions?: PredefinedGraphOption<T>[];
|
|
29
25
|
allowChartDeleting?: boolean;
|
|
30
26
|
driver?: PFrameDriver;
|
|
31
27
|
labelsModifier?: (id: string, label: string) => string;
|
|
@@ -2,5 +2,5 @@ export * from './getLayersDataFromForms.ts';
|
|
|
2
2
|
export * from './calculateDiscreteGroups.ts';
|
|
3
3
|
export * from './getStatisticsOptions.ts';
|
|
4
4
|
export * from './saveToFile.ts';
|
|
5
|
-
export * from './getFixedColumnOrAxisIdFromSettings.ts';
|
|
6
5
|
export * from './addFixedOptionsToState.ts';
|
|
6
|
+
export * from './loadDefaultSources.ts';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ChartType, DemoDataStore, InputNamesByChartType } from '@milaboratories/pf-plots';
|
|
2
|
+
import { PredefinedGraphOption } from '../types.ts';
|
|
3
|
+
|
|
4
|
+
type LoadedDefaultOptions<T extends ChartType> = {
|
|
5
|
+
inputName: InputNamesByChartType[T];
|
|
6
|
+
selectedSource: string;
|
|
7
|
+
selectedFilterValue?: string | number;
|
|
8
|
+
};
|
|
9
|
+
export declare function loadDefaultSources(dataStore: DemoDataStore, defaultOptions: PredefinedGraphOption<ChartType>[], considerAxisDomains?: boolean): Promise<LoadedDefaultOptions<ChartType>[]>;
|
|
10
|
+
export {};
|