@milaboratories/graph-maker 1.1.41 → 1.1.43

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.
@@ -1,20 +1,14 @@
1
+ import { DendroNodeInfo } from '../types.ts';
2
+
1
3
  declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
2
- info: {
3
- x: number;
4
- y: number;
5
- info: Record<string, string | number>;
6
- };
4
+ info: DendroNodeInfo;
7
5
  tooltipBtn?: string;
8
6
  containerRef: Element;
9
7
  }>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
10
8
  close: (...args: any[]) => void;
11
9
  "tooltip-btn-click": (...args: any[]) => void;
12
10
  }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
13
- info: {
14
- x: number;
15
- y: number;
16
- info: Record<string, string | number>;
17
- };
11
+ info: DendroNodeInfo;
18
12
  tooltipBtn?: string;
19
13
  containerRef: Element;
20
14
  }>>> & Readonly<{
@@ -99,8 +99,13 @@ export type LayersSettings = {
99
99
  showTable: boolean;
100
100
  showLegend: boolean;
101
101
  };
102
- heatmap: {};
102
+ heatmap: {
103
+ normalizationDirection: 'row' | 'column' | null;
104
+ normalizationMethod: 'standardScaling' | 'meanNormalization';
105
+ };
103
106
  heatmapClustered: {
107
+ normalizationDirection: 'row' | 'column' | null;
108
+ normalizationMethod: 'standardScaling' | 'meanNormalization';
104
109
  dendrogramX: boolean;
105
110
  dendrogramY: boolean;
106
111
  disableClusteringX: boolean;
@@ -36,8 +36,13 @@ export declare function createReactiveState(initialData: GraphMakerState, chartT
36
36
  showTable: boolean;
37
37
  showLegend: boolean;
38
38
  };
39
- heatmap: {};
39
+ heatmap: {
40
+ normalizationDirection: "row" | "column" | null;
41
+ normalizationMethod: "standardScaling" | "meanNormalization";
42
+ };
40
43
  heatmapClustered: {
44
+ normalizationDirection: "row" | "column" | null;
45
+ normalizationMethod: "standardScaling" | "meanNormalization";
41
46
  dendrogramX: boolean;
42
47
  dendrogramY: boolean;
43
48
  disableClusteringX: boolean;
@@ -292,7 +297,7 @@ export declare function createReactiveState(initialData: GraphMakerState, chartT
292
297
  dendroInfoByClick: {
293
298
  x: number;
294
299
  y: number;
295
- info: Record<string, string | number>;
300
+ info: Record<string, string | number>[];
296
301
  } | null;
297
302
  dendroSelectedNodeId: null | number;
298
303
  };
@@ -330,8 +335,13 @@ export declare function factoryStore(reactiveState: Reactive<ReactiveState>, dat
330
335
  showTable: boolean;
331
336
  showLegend: boolean;
332
337
  };
333
- heatmap: {};
338
+ heatmap: {
339
+ normalizationDirection: "row" | "column" | null;
340
+ normalizationMethod: "standardScaling" | "meanNormalization";
341
+ };
334
342
  heatmapClustered: {
343
+ normalizationDirection: "row" | "column" | null;
344
+ normalizationMethod: "standardScaling" | "meanNormalization";
335
345
  dendrogramX: boolean;
336
346
  dendrogramY: boolean;
337
347
  disableClusteringX: boolean;
@@ -586,7 +596,7 @@ export declare function factoryStore(reactiveState: Reactive<ReactiveState>, dat
586
596
  dendroInfoByClick: {
587
597
  x: number;
588
598
  y: number;
589
- info: Record<string, string | number>;
599
+ info: Record<string, string | number>[];
590
600
  } | null;
591
601
  dendroSelectedNodeId: null | number;
592
602
  };
@@ -652,8 +662,13 @@ export declare function provideStore(initialState: GraphMakerState, dataStoreRef
652
662
  showTable: boolean;
653
663
  showLegend: boolean;
654
664
  };
655
- heatmap: {};
665
+ heatmap: {
666
+ normalizationDirection: "row" | "column" | null;
667
+ normalizationMethod: "standardScaling" | "meanNormalization";
668
+ };
656
669
  heatmapClustered: {
670
+ normalizationDirection: "row" | "column" | null;
671
+ normalizationMethod: "standardScaling" | "meanNormalization";
657
672
  dendrogramX: boolean;
658
673
  dendrogramY: boolean;
659
674
  disableClusteringX: boolean;
@@ -908,7 +923,7 @@ export declare function provideStore(initialState: GraphMakerState, dataStoreRef
908
923
  dendroInfoByClick: {
909
924
  x: number;
910
925
  y: number;
911
- info: Record<string, string | number>;
926
+ info: Record<string, string | number>[];
912
927
  } | null;
913
928
  dendroSelectedNodeId: null | number;
914
929
  };
@@ -36,6 +36,11 @@ export interface GraphMakerPropsTyped<T extends ChartType> {
36
36
  }
37
37
  export type GraphMakerProps = GraphMakerPropsTyped<'discrete'> | GraphMakerPropsTyped<'scatterplot'> | GraphMakerPropsTyped<'scatterplot-umap'> | GraphMakerPropsTyped<'heatmap'> | GraphMakerPropsTyped<'dendro'>;
38
38
  export type GraphMakerInputName<T extends ChartType> = InputNamesByChartType[T];
39
+ export type DendroNodeInfo = {
40
+ x: number;
41
+ y: number;
42
+ info: Record<string, string | number>[];
43
+ };
39
44
  export type ReactiveState = {
40
45
  chartType: ChartType;
41
46
  template: LayersTemplate;
@@ -45,11 +50,7 @@ export type ReactiveState = {
45
50
  statisticsSettings: StatisticsState;
46
51
  dataBindAes: AestheticMappingState;
47
52
  chartScale: number;
48
- dendroInfoByClick: null | {
49
- x: number;
50
- y: number;
51
- info: Record<string, string | number>;
52
- };
53
+ dendroInfoByClick: null | DendroNodeInfo;
53
54
  dendroSelectedNodeId: null | number;
54
55
  };
55
56
  export type DiscreteLayer = 'box' | 'binnedDots' | 'jitteredDots' | 'violin' | 'bar' | 'stackedBar' | 'line' | 'errorbar' | 'sina';