@milaboratories/graph-maker 1.1.18 → 1.1.19

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.
@@ -29,9 +29,9 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
29
29
  "onUpdate:modelValue"?: ((value: number) => any) | undefined;
30
30
  onActive?: ((v: boolean) => any) | undefined;
31
31
  }>, {
32
+ min: number;
32
33
  max: number;
33
34
  padding: number;
34
- min: number;
35
35
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
36
36
  export default _default;
37
37
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
@@ -43,19 +43,26 @@ export type StatisticsState = {
43
43
  };
44
44
  };
45
45
  export declare function getInitialStatisticsState(initialData?: StatisticsState): StatisticsState;
46
+ export type Range = {
47
+ min: number;
48
+ max: number;
49
+ };
46
50
  export type MappingLink = {
47
51
  type: string;
48
52
  value?: string;
49
53
  };
50
54
  export type ColorAes = string | MappingLink;
51
55
  export type DotShapeAes = DotShape | MappingLink;
56
+ export type DotSizeAes = number | Range;
52
57
  export type LineTypeAes = LineType | MappingLink;
53
58
  export type FixedOrMappedAes = ColorAes | DotShapeAes | LineTypeAes;
59
+ export declare function isRange(v: number | Range): v is Range;
54
60
  export declare function isMappedAes(item: FixedOrMappedAes | null | string | number | boolean | undefined): item is MappingLink;
55
61
  export type LayersSettings = {
56
62
  dendro: {
57
63
  dotFill: ColorAes;
58
64
  dotShape: DotShapeAes;
65
+ dotSize: DotSizeAes;
59
66
  lineColor: ColorAes;
60
67
  mode: 'normal' | 'useAllNodesAsLeaves';
61
68
  leavesMode: 'normal' | 'alignLeavesToLine';
@@ -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 } from './constant.ts';
3
+ import { AesType, Range } from './constant.ts';
4
4
 
5
5
  export type AestheticMapping = AestheticMappingContinuous | AestheticMappingCategorical;
6
6
  interface MappingRange {
@@ -38,6 +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: Range;
41
42
  export declare function updateAestheticMapping(values: (string | number)[], currentMapping?: AestheticMappingCategorical): AestheticMappingCategorical;
42
43
  export declare function createMappingFromPalette(palette: Palette, values: (string | number)[]): AestheticMappingCategorical;
43
44
  export declare function createDefaultMapping(values: (string | number)[]): AestheticMappingCategorical;
@@ -23,6 +23,10 @@ export declare function createReactiveState(initialData: GraphMakerState, chartT
23
23
  type: string;
24
24
  value?: string | undefined;
25
25
  };
26
+ dotSize: number | {
27
+ min: number;
28
+ max: number;
29
+ };
26
30
  lineColor: string | {
27
31
  type: string;
28
32
  value?: string | undefined;
@@ -294,6 +298,10 @@ export declare function factoryStore(reactiveState: Reactive<ReactiveState>, dat
294
298
  type: string;
295
299
  value?: string | undefined;
296
300
  };
301
+ dotSize: number | {
302
+ min: number;
303
+ max: number;
304
+ };
297
305
  lineColor: string | {
298
306
  type: string;
299
307
  value?: string | undefined;
@@ -592,6 +600,10 @@ export declare function provideStore(initialState: GraphMakerState, dataStoreRef
592
600
  type: string;
593
601
  value?: string | undefined;
594
602
  };
603
+ dotSize: number | {
604
+ min: number;
605
+ max: number;
606
+ };
595
607
  lineColor: string | {
596
608
  type: string;
597
609
  value?: string | undefined;