@milaboratories/graph-maker 1.1.27 → 1.1.29
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/DragAndDrop/DnDRangeChip.vue.d.ts +3 -8
- package/dist/GraphMaker/components/DragAndDrop/types.d.ts +3 -5
- package/dist/GraphMaker/constant.d.ts +6 -4
- package/dist/GraphMaker/dataBindAes.d.ts +2 -2
- package/dist/GraphMaker/utils/getLayersDataFromForms.d.ts +3 -3
- package/dist/graph-maker.js +14667 -14636
- package/dist/graph-maker.umd.cjs +923 -923
- package/package.json +2 -2
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
import { ChipInfo } from './types.ts';
|
|
2
2
|
import { ValueType } from '@platforma-sdk/model';
|
|
3
|
+
import { NumberRange } from '../../constant.ts';
|
|
3
4
|
|
|
4
5
|
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
5
6
|
id: ChipInfo["id"];
|
|
6
7
|
title: string;
|
|
7
8
|
type: ValueType;
|
|
8
|
-
range:
|
|
9
|
-
min: number;
|
|
10
|
-
max: number;
|
|
11
|
-
};
|
|
9
|
+
range: NumberRange;
|
|
12
10
|
modelValue: unknown;
|
|
13
11
|
error: boolean;
|
|
14
12
|
}>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
@@ -18,10 +16,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
18
16
|
id: ChipInfo["id"];
|
|
19
17
|
title: string;
|
|
20
18
|
type: ValueType;
|
|
21
|
-
range:
|
|
22
|
-
min: number;
|
|
23
|
-
max: number;
|
|
24
|
-
};
|
|
19
|
+
range: NumberRange;
|
|
25
20
|
modelValue: unknown;
|
|
26
21
|
error: boolean;
|
|
27
22
|
}>>> & Readonly<{
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Ref } from 'vue';
|
|
2
2
|
import { ValueType } from '@platforma-sdk/model';
|
|
3
|
+
import { NumberRange } from '../../constant.ts';
|
|
3
4
|
|
|
4
5
|
export type ChipInfo = {
|
|
5
6
|
id: string;
|
|
@@ -9,11 +10,8 @@ export type ChipInfo = {
|
|
|
9
10
|
isSubsetFilter: boolean;
|
|
10
11
|
availableBasketIds: Set<string>;
|
|
11
12
|
uniqueValues: string[];
|
|
12
|
-
range:
|
|
13
|
-
|
|
14
|
-
max: number;
|
|
15
|
-
};
|
|
16
|
-
valueLabels: Record<string, string>;
|
|
13
|
+
range: NumberRange | null;
|
|
14
|
+
valueLabels: Record<string, string> | null;
|
|
17
15
|
};
|
|
18
16
|
export type DndBasketProps<T = any> = {
|
|
19
17
|
id: T;
|
|
@@ -11,6 +11,8 @@ export declare const UPPER_LIMIT_KEY = "pl7.app/graph/axis/upperLimit";
|
|
|
11
11
|
export declare const SYMMETRIC_RANGE_KEY = "pl7.app/graph/axis/symmetricRange";
|
|
12
12
|
export declare const PALETTE_KEY = "pl7.app/graph/palette";
|
|
13
13
|
export declare const AXIS_NATURE_KEY = "pl7.app/axisNature";
|
|
14
|
+
export declare const COLUMN_MIN_KEY = "pl7.app/min";
|
|
15
|
+
export declare const COLUMN_MAX_KEY = "pl7.app/max";
|
|
14
16
|
export declare function getInitialTemplate(restoredTemplate: LayersTemplate | null, chartType: ChartType): LayersTemplate;
|
|
15
17
|
export declare const DISCRETE_TEMPLATES_MAP: Record<DiscreteLayersTemplate, DiscreteLayer[]>;
|
|
16
18
|
export declare const SCATTERPLOT_TEMPLATES_MAP: Record<ScatterplotLayersTemplate, ScatterplotLayer[]>;
|
|
@@ -51,7 +53,7 @@ export type StatisticsState = {
|
|
|
51
53
|
};
|
|
52
54
|
};
|
|
53
55
|
export declare function getInitialStatisticsState(initialData?: DeepPartial<StatisticsState>): StatisticsState;
|
|
54
|
-
export type
|
|
56
|
+
export type NumberRange = {
|
|
55
57
|
min: number;
|
|
56
58
|
max: number;
|
|
57
59
|
};
|
|
@@ -61,12 +63,12 @@ export type MappingLink = {
|
|
|
61
63
|
};
|
|
62
64
|
export type ColorAes = string | MappingLink;
|
|
63
65
|
export type DotShapeAes = DotShape | MappingLink;
|
|
64
|
-
export type DotSizeAes = number |
|
|
66
|
+
export type DotSizeAes = number | NumberRange;
|
|
65
67
|
export type LineTypeAes = LineType | MappingLink;
|
|
66
68
|
export type FixedOrMappedAes = ColorAes | DotShapeAes | LineTypeAes;
|
|
67
69
|
export type ContinuousDataMapping = {
|
|
68
70
|
column: string;
|
|
69
|
-
range:
|
|
71
|
+
range: NumberRange;
|
|
70
72
|
};
|
|
71
73
|
export type ColumnNameSchema = {
|
|
72
74
|
type: 'column';
|
|
@@ -74,7 +76,7 @@ export type ColumnNameSchema = {
|
|
|
74
76
|
label?: string;
|
|
75
77
|
valueLabels?: string;
|
|
76
78
|
};
|
|
77
|
-
export declare function
|
|
79
|
+
export declare function isNumberRange(v: number | NumberRange | null | undefined): v is NumberRange;
|
|
78
80
|
export declare function isMappedAes(item: FixedOrMappedAes | null | string | number | boolean | unknown): item is MappingLink;
|
|
79
81
|
export declare function isContinuousDataMapping(v: ContinuousDataMapping | number | null | undefined): v is ContinuousDataMapping;
|
|
80
82
|
export type LayersSettings = {
|
|
@@ -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, ContinuousDataMapping,
|
|
3
|
+
import { AesType, ContinuousDataMapping, NumberRange } from './constant.ts';
|
|
4
4
|
|
|
5
5
|
export type AestheticMapping = AestheticMappingContinuous | AestheticMappingCategorical;
|
|
6
6
|
interface MappingRange {
|
|
@@ -38,7 +38,7 @@ export declare const DEFAULT_LINE_SHAPE = "solid";
|
|
|
38
38
|
export declare const DEFAULT_LINE_WIDTH = 1;
|
|
39
39
|
export declare const DEFAULT_DOT_SHAPE = "21";
|
|
40
40
|
export declare const DEFAULT_DOT_SIZE = 3;
|
|
41
|
-
export declare const DEFAULT_DOT_RANGE:
|
|
41
|
+
export declare const DEFAULT_DOT_RANGE: NumberRange;
|
|
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;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { getDefaultLayersSettings,
|
|
1
|
+
import { getDefaultLayersSettings, NumberRange, LayersSettings, MappingLink, StatisticsState, ColumnNameSchema } from '../constant.ts';
|
|
2
2
|
import { Layer, LayersTemplate } from '../types.ts';
|
|
3
3
|
import { ChartType, InputState, PlotDataAndSettings } from '@milaboratories/pf-plots';
|
|
4
4
|
import { DotShape, LineType } from '../components/AesSettings/types.ts';
|
|
@@ -7,12 +7,12 @@ import { ScatterplotSettings } from '@milaboratories/miplots4';
|
|
|
7
7
|
export declare function getStatLayers(statisticsSettings: StatisticsState): ChartLayerSettings[];
|
|
8
8
|
export declare function getScatterplotLayersSettings(layers: Layer[], layerSettings: ReturnType<typeof getDefaultLayersSettings>, dataByColumns: PlotDataAndSettings['dataByColumns'], grouping: ColumnNameSchema[]): ScatterplotSettings['layers'];
|
|
9
9
|
export type ChartLayerSettings = {
|
|
10
|
-
[key: string]: string | boolean | null | Record<string, string | DotShape |
|
|
10
|
+
[key: string]: string | boolean | null | Record<string, string | DotShape | NumberRange | {
|
|
11
11
|
domain: number[];
|
|
12
12
|
range: number[];
|
|
13
13
|
} | LineType | boolean | number | MappingLink> | undefined;
|
|
14
14
|
type: string;
|
|
15
|
-
aes?: Record<string, string | DotShape |
|
|
15
|
+
aes?: Record<string, string | DotShape | NumberRange | {
|
|
16
16
|
domain: number[];
|
|
17
17
|
range: number[];
|
|
18
18
|
} | LineType | boolean | number | MappingLink>;
|