@milaboratories/graph-maker 1.1.19 → 1.1.20

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.
@@ -56,8 +56,19 @@ export type DotShapeAes = DotShape | MappingLink;
56
56
  export type DotSizeAes = number | Range;
57
57
  export type LineTypeAes = LineType | MappingLink;
58
58
  export type FixedOrMappedAes = ColorAes | DotShapeAes | LineTypeAes;
59
- export declare function isRange(v: number | Range): v is Range;
60
- export declare function isMappedAes(item: FixedOrMappedAes | null | string | number | boolean | undefined): item is MappingLink;
59
+ export type ContinuousDataMapping = {
60
+ column: string;
61
+ range: Range;
62
+ };
63
+ export type ColumnNameSchema = {
64
+ type: 'column';
65
+ value: string;
66
+ label?: string;
67
+ valueLabels?: string;
68
+ };
69
+ export declare function isRange(v: number | Range | null | undefined): v is Range;
70
+ export declare function isMappedAes(item: FixedOrMappedAes | null | string | number | boolean | unknown): item is MappingLink;
71
+ export declare function isContinuousDataMapping(v: ContinuousDataMapping | number | null | undefined): v is ContinuousDataMapping;
61
72
  export type LayersSettings = {
62
73
  dendro: {
63
74
  dotFill: ColorAes;
@@ -76,6 +87,7 @@ export type LayersSettings = {
76
87
  dots: {
77
88
  dotFill: ColorAes | null;
78
89
  dotShape: DotShapeAes | null;
90
+ dotSize: ContinuousDataMapping | number | null;
79
91
  };
80
92
  curve: {
81
93
  smoothing: boolean;
@@ -1,6 +1,6 @@
1
1
  import { ContinuousPalette, DotShape, LineType, Palette } from './components/AesSettings/types.ts';
2
2
  import { InputGuide, InputState } from '@milaboratories/pf-plots';
3
- import { AesType, Range } from './constant.ts';
3
+ import { AesType, ContinuousDataMapping, Range } from './constant.ts';
4
4
 
5
5
  export type AestheticMapping = AestheticMappingContinuous | AestheticMappingCategorical;
6
6
  interface MappingRange {
@@ -42,6 +42,7 @@ export declare const DEFAULT_DOT_RANGE: Range;
42
42
  export declare function updateAestheticMapping(values: (string | number)[], currentMapping?: AestheticMappingCategorical): AestheticMappingCategorical;
43
43
  export declare function createMappingFromPalette(palette: Palette, values: (string | number)[]): AestheticMappingCategorical;
44
44
  export declare function createDefaultMapping(values: (string | number)[]): AestheticMappingCategorical;
45
+ export declare function createDefaultContinuousMapping(columnId: string): ContinuousDataMapping;
45
46
  export declare function getChartSettingsInheritedAes(inputGuide: InputGuide<InputState>, maybeMapping: AestheticMapping | undefined, sourceId: string | null, usedAesInMapping: Record<AesType, boolean>): {
46
47
  inheritedAes: {};
47
48
  order?: undefined;
@@ -0,0 +1,25 @@
1
+ import { ContinuousDataMapping } from '../../constant.ts';
2
+
3
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
4
+ selected?: number | ContinuousDataMapping;
5
+ possibleAesSourceInputs?: string[];
6
+ }>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
7
+ "aes-update": (...args: any[]) => void;
8
+ "aes-selector-close": (...args: any[]) => void;
9
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
10
+ selected?: number | ContinuousDataMapping;
11
+ possibleAesSourceInputs?: string[];
12
+ }>>> & Readonly<{
13
+ "onAes-update"?: ((...args: any[]) => any) | undefined;
14
+ "onAes-selector-close"?: ((...args: any[]) => any) | undefined;
15
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
16
+ export default _default;
17
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
18
+ type __VLS_TypePropsToRuntimeProps<T> = {
19
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
20
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
21
+ } : {
22
+ type: import('vue').PropType<T[K]>;
23
+ required: true;
24
+ };
25
+ };
@@ -49,6 +49,13 @@ export declare function createReactiveState(initialData: GraphMakerState, chartT
49
49
  type: string;
50
50
  value?: string | undefined;
51
51
  } | null;
52
+ dotSize: number | {
53
+ column: string;
54
+ range: {
55
+ min: number;
56
+ max: number;
57
+ };
58
+ } | null;
52
59
  };
53
60
  curve: {
54
61
  smoothing: boolean;
@@ -324,6 +331,13 @@ export declare function factoryStore(reactiveState: Reactive<ReactiveState>, dat
324
331
  type: string;
325
332
  value?: string | undefined;
326
333
  } | null;
334
+ dotSize: number | {
335
+ column: string;
336
+ range: {
337
+ min: number;
338
+ max: number;
339
+ };
340
+ } | null;
327
341
  };
328
342
  curve: {
329
343
  smoothing: boolean;
@@ -626,6 +640,13 @@ export declare function provideStore(initialState: GraphMakerState, dataStoreRef
626
640
  type: string;
627
641
  value?: string | undefined;
628
642
  } | null;
643
+ dotSize: number | {
644
+ column: string;
645
+ range: {
646
+ min: number;
647
+ max: number;
648
+ };
649
+ } | null;
629
650
  };
630
651
  curve: {
631
652
  smoothing: boolean;
@@ -1,12 +1,18 @@
1
- import { LayersSettings, MappingLink, StatisticsState } from '../constant.ts';
1
+ import { Range, LayersSettings, MappingLink, StatisticsState } from '../constant.ts';
2
2
  import { LayersTemplate } from '../types.ts';
3
- import { ChartType, InputState } from '@milaboratories/pf-plots';
3
+ import { ChartType, InputState, PlotDataAndSettings } from '@milaboratories/pf-plots';
4
4
  import { DotShape, LineType } from '../components/AesSettings/types.ts';
5
5
 
6
6
  export declare function getStatLayers(statisticsSettings: StatisticsState): ChartLayerSettings[];
7
7
  export type ChartLayerSettings = {
8
- [key: string]: string | boolean | null | Record<string, string | DotShape | LineType | boolean | number | MappingLink> | undefined;
8
+ [key: string]: string | boolean | null | Record<string, string | DotShape | Range | {
9
+ domain: number[];
10
+ range: number[];
11
+ } | LineType | boolean | number | MappingLink> | undefined;
9
12
  type: string;
10
- aes?: Record<string, string | DotShape | LineType | boolean | number | MappingLink>;
13
+ aes?: Record<string, string | DotShape | Range | {
14
+ domain: number[];
15
+ range: number[];
16
+ } | LineType | boolean | number | MappingLink>;
11
17
  };
12
- export declare function getChartLayersSettings(chartType: ChartType, template: LayersTemplate, layerSettings: LayersSettings, statisticsSettings: StatisticsState, optionsState: InputState): ChartLayerSettings[];
18
+ export declare function getChartLayersSettings(chartType: ChartType, template: LayersTemplate, layerSettings: LayersSettings, statisticsSettings: StatisticsState, optionsState: InputState, settings: Record<string, unknown>, dataByColumns: PlotDataAndSettings['dataByColumns']): ChartLayerSettings[];