@milaboratories/graph-maker 1.1.62 → 1.1.64

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,5 +1,5 @@
1
1
  import { AestheticMappingCategorical } from '../../dataBindAes.ts';
2
- import { AesType } from '../../constant.ts';
2
+ import { AesType } from '../../constantsCommon.ts';
3
3
 
4
4
  declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
5
5
  dataColumnLabel: string;
@@ -1,4 +1,4 @@
1
- import { FIXED_COLORS } from './constants.ts';
1
+ import { FIXED_COLORS } from '../../constantsAesthetic.ts';
2
2
 
3
3
  declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
4
4
  modelValue: string;
@@ -1,4 +1,4 @@
1
- import { CategoricalPalette, ContinuousPalette, DivergingPalette, DotShape, LineType, LineTypeInfo, Palette, PaletteInfo, SequentialPalette } from './types.ts';
1
+ import { CategoricalPalette, ContinuousPalette, DivergingPalette, DotShape, LineType, LineTypeInfo, Palette, PaletteInfo, SequentialPalette } from './components/AesSettings/types.ts';
2
2
 
3
3
  export declare const FIXED_COLORS: {
4
4
  name: string;
@@ -29,3 +29,35 @@ export declare const DEFAULT_DOT_SHAPE = "21";
29
29
  export declare const FIXED_LINE_TYPES: LineType[];
30
30
  export declare const DEFAULT_LINE_TYPE: LineType;
31
31
  export declare const LINE_TYPES_MAP: Record<LineType, LineTypeInfo>;
32
+ export declare const NUCLEOTIDE_COLOR_MAPPING: {
33
+ A: string;
34
+ C: string;
35
+ G: string;
36
+ T: string;
37
+ U: string;
38
+ };
39
+ export declare const AMINOACID_COLOR_MAPPING: {
40
+ A: string;
41
+ R: string;
42
+ N: string;
43
+ D: string;
44
+ C: string;
45
+ Q: string;
46
+ E: string;
47
+ G: string;
48
+ H: string;
49
+ I: string;
50
+ L: string;
51
+ K: string;
52
+ M: string;
53
+ F: string;
54
+ P: string;
55
+ S: string;
56
+ T: string;
57
+ W: string;
58
+ Y: string;
59
+ V: string;
60
+ B: string;
61
+ X: string;
62
+ Z: string;
63
+ };
@@ -210,6 +210,10 @@ export type LayersSettings = {
210
210
  opacity: number;
211
211
  showOutliers: boolean;
212
212
  };
213
+ logo: {
214
+ normalize: boolean;
215
+ opacity: number;
216
+ };
213
217
  };
214
218
  export declare const DEFAULT_LAYERS_SETTINGS: () => LayersSettings;
215
219
  export declare function getDefaultLayersSettings(): LayersSettings;
@@ -1,5 +1,5 @@
1
1
  import { ContinuousPalette, DotShape, LineType, Palette } from './components/AesSettings/types.ts';
2
- import { AesType, ContinuousDataMappingSize, NumberRange } from './constant.ts';
2
+ import { AesType, ContinuousDataMappingSize, NumberRange } from './constantsCommon.ts';
3
3
  import { UniqueValuesData } from './types.ts';
4
4
 
5
5
  export type AestheticMappingState = Record<string, AestheticMapping>;
@@ -1,4 +1,4 @@
1
- import { AesType, MappingLink } from '../../constant.ts';
1
+ import { AesType, MappingLink } from '../../constantsCommon.ts';
2
2
 
3
3
  declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
4
4
  label: string;
@@ -1,4 +1,4 @@
1
- import { ContinuousDataMappingSize } from '../../constant.ts';
1
+ import { ContinuousDataMappingSize } from '../../constantsCommon.ts';
2
2
 
3
3
  declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
4
4
  selected?: number | ContinuousDataMappingSize;
@@ -0,0 +1,2 @@
1
+ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
2
+ export default _default;
@@ -1,4 +1,4 @@
1
1
  import { DiscreteUIState } from '@milaboratories/pf-plots';
2
- import { FixedOrMappedAes } from '../../../../constant.ts';
2
+ import { FixedOrMappedAes } from '../../../../constantsCommon.ts';
3
3
 
4
4
  export declare function useDefaultAes<T extends FixedOrMappedAes>(value: T | null, optionsState: DiscreteUIState, defaultValue: T, onlySecondaryAvailable?: boolean): T;
@@ -0,0 +1,2 @@
1
+ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
2
+ export default _default;
@@ -1,7 +1,7 @@
1
1
  import { Ref, ComputedRef, Reactive } from 'vue';
2
2
  import { GraphMakerProps, GraphMakerState, ReactiveState, UniqueValuesData } from './types.ts';
3
3
  import { DemoDataStore, InputGuide, InputState, PlotDataAndSettings, DendroStateController, ChartType, InputNamesByChartType } from '@milaboratories/pf-plots';
4
- import { AesType } from './constant.ts';
4
+ import { AesType } from './constantsCommon.ts';
5
5
  import { PColumnSpec } from '@platforma-sdk/model';
6
6
 
7
7
  export declare function createReactiveState(initialData: GraphMakerState, chartType: ChartType): {
@@ -234,6 +234,10 @@ export declare function createReactiveState(initialData: GraphMakerState, chartT
234
234
  opacity: number;
235
235
  showOutliers: boolean;
236
236
  };
237
+ logo: {
238
+ normalize: boolean;
239
+ opacity: number;
240
+ };
237
241
  };
238
242
  axesSettings: {
239
243
  title: {
@@ -552,6 +556,10 @@ export declare function factoryStore(reactiveState: Reactive<ReactiveState>, dat
552
556
  opacity: number;
553
557
  showOutliers: boolean;
554
558
  };
559
+ logo: {
560
+ normalize: boolean;
561
+ opacity: number;
562
+ };
555
563
  };
556
564
  axesSettings: {
557
565
  title: {
@@ -899,6 +907,10 @@ export declare function provideStore(initialState: GraphMakerState, dataStoreRef
899
907
  opacity: number;
900
908
  showOutliers: boolean;
901
909
  };
910
+ logo: {
911
+ normalize: boolean;
912
+ opacity: number;
913
+ };
902
914
  };
903
915
  axesSettings: {
904
916
  title: {
@@ -1,5 +1,5 @@
1
1
  import { ChartType, InputState, SelectorStateFilter, InputNamesByChartType } from '@milaboratories/pf-plots';
2
- import { AxesState, LayersSettings, NumberRange, StatisticsState } from './constant.ts';
2
+ import { AxesState, LayersSettings, NumberRange, StatisticsState } from './constantsCommon.ts';
3
3
  import { AestheticMappingCategorical, AestheticMappingState } from './dataBindAes.ts';
4
4
  import { AxisSpec, PColumnSpec, PFrameDriver, PFrameHandle } from '@platforma-sdk/model';
5
5
  import { FormKey } from './forms';
@@ -59,7 +59,7 @@ export type ReactiveState = {
59
59
  dendroInfoByClick: null | DendroNodeInfo;
60
60
  dendroSelectedNodeId: null | number;
61
61
  };
62
- export type DiscreteLayer = 'box' | 'binnedDots' | 'jitteredDots' | 'violin' | 'bar' | 'stackedBar' | 'line' | 'errorbar' | 'sina';
62
+ export type DiscreteLayer = 'box' | 'binnedDots' | 'jitteredDots' | 'violin' | 'bar' | 'stackedBar' | 'line' | 'errorbar' | 'sina' | 'logo';
63
63
  export type DiscreteLayersTemplate = DiscreteLayer | 'box_binnedDots' | 'box_jitteredDots' | 'violin_binnedDots' | 'violin_jitteredDots' | 'line_jitteredDots' | 'line_binnedDots' | 'line_errorbar' | 'bar_line' | 'bar_errorbar';
64
64
  export type ScatterplotLayer = 'dots' | 'curve';
65
65
  export type ScatterplotLayersTemplate = ScatterplotLayer | 'curve_dots';
@@ -1,7 +1,8 @@
1
1
  import { DiscreteSettings } from '@milaboratories/miplots4';
2
2
  import { ReactiveState, UniqueValuesData } from '../../types.ts';
3
+ import { InputGuide, InputState } from '@milaboratories/pf-plots';
3
4
 
4
- export declare function composeDiscreteSettings(settings: DiscreteSettings, reactiveState: ReactiveState, uniqueValuesData: Record<string, UniqueValuesData>): {
5
+ export declare function composeDiscreteSettings(settings: DiscreteSettings, reactiveState: ReactiveState, uniqueValuesData: Record<string, UniqueValuesData>, inputGuide: InputGuide<InputState>): {
5
6
  type: "discrete";
6
7
  title: {
7
8
  name: string;
@@ -206,6 +207,15 @@ export declare function composeDiscreteSettings(settings: DiscreteSettings, reac
206
207
  opacity?: number | undefined;
207
208
  showOutliers?: boolean | undefined;
208
209
  } | undefined;
210
+ } | {
211
+ type: "logo";
212
+ aes?: {
213
+ lineColor?: string | undefined;
214
+ opacity?: number | undefined;
215
+ width?: number | undefined;
216
+ fillColor?: string | Record<string, string> | undefined;
217
+ } | undefined;
218
+ normalize?: boolean | undefined;
209
219
  } | {
210
220
  type: "stat";
211
221
  statType: "overall" | "referenceGroup" | "pairwise";
@@ -1,4 +1,4 @@
1
- import { AxesState } from '../../constant.ts';
1
+ import { AxesState } from '../../constantsCommon.ts';
2
2
  import { ChartType } from '@milaboratories/pf-plots';
3
3
  import { LabelsRotation, UniqueValuesData } from '../../types.ts';
4
4
 
@@ -1,20 +1,20 @@
1
- import { getDefaultLayersSettings, NumberRange, LayersSettings, MappingLink, DiscreteStatisticsState, ColumnNameSchema, StatisticsState } from '../../constant.ts';
2
- import { Layer, LayersTemplate, ReactiveState } from '../../types.ts';
3
- import { ChartType, InputGuide, InputState, PlotDataAndSettings, ScatterplotUIState } from '@milaboratories/pf-plots';
1
+ import { getDefaultLayersSettings, NumberRange, LayersSettings, MappingLink, DiscreteStatisticsState, ColumnNameSchema } from '../../constantsCommon.ts';
2
+ import { Layer, ReactiveState } from '../../types.ts';
3
+ import { DiscreteUIState, InputGuide, InputState, PlotDataAndSettings, ScatterplotUIState } from '@milaboratories/pf-plots';
4
4
  import { DotShape, LineType } from '../../components/AesSettings/types.ts';
5
5
  import { ScatterplotSettings } from '@milaboratories/miplots4';
6
6
 
7
7
  export declare function getStatLayers(statisticsSettings: DiscreteStatisticsState): ChartLayerSettings[];
8
+ export declare function getDiscreteLayersSettings(layers: Layer[], layerSettings: LayersSettings, statisticsSettings: DiscreteStatisticsState, optionsState: DiscreteUIState, inputGuide: InputGuide<InputState>): ChartLayerSettings[];
8
9
  export declare function getScatterplotLayersSettings(layers: Layer[], layerSettings: ReturnType<typeof getDefaultLayersSettings>, dataByColumns: PlotDataAndSettings['dataByColumns'], optionsState: ScatterplotUIState, dataBindAes: ReactiveState['dataBindAes'], inputGuide: InputGuide<InputState>, groupingSchema?: ColumnNameSchema[]): ScatterplotSettings['layers'];
9
10
  export type ChartLayerSettings = {
10
11
  [key: string]: string | boolean | null | Record<string, string | DotShape | NumberRange | {
11
12
  domain: number[];
12
13
  range: number[];
13
- } | LineType | boolean | number | MappingLink> | undefined;
14
+ } | LineType | boolean | number | MappingLink | Record<string, string>> | undefined;
14
15
  type: string;
15
16
  aes?: Record<string, string | DotShape | NumberRange | {
16
17
  domain: number[];
17
18
  range: number[];
18
- } | LineType | boolean | number | MappingLink>;
19
+ } | LineType | boolean | number | MappingLink | Record<string, string>>;
19
20
  };
20
- export declare function getChartLayersSettings(chartType: ChartType, template: LayersTemplate, layerSettings: LayersSettings, statisticsSettings: StatisticsState, optionsState: InputState): ChartLayerSettings[];
@@ -1,5 +1,5 @@
1
- import { AesType, getDefaultLayersSettings, getInitialStatisticsState } from '../constant.ts';
2
- import { ChartType, InputState } from '@milaboratories/pf-plots';
1
+ import { AesType, getDefaultLayersSettings, getInitialStatisticsState } from '../constantsCommon.ts';
2
+ import { ChartType, InputGuide, InputState } from '@milaboratories/pf-plots';
3
3
  import { LayersTemplate } from '../types.ts';
4
4
 
5
- export declare function getUsedAesInMapping(chartType: ChartType, template: LayersTemplate, layersSettings: ReturnType<typeof getDefaultLayersSettings>, statisticsSettings: ReturnType<typeof getInitialStatisticsState>, optionsState: InputState): Record<string, Record<AesType, boolean>>;
5
+ export declare function getUsedAesInMapping(chartType: ChartType, template: LayersTemplate, layersSettings: ReturnType<typeof getDefaultLayersSettings>, statisticsSettings: ReturnType<typeof getInitialStatisticsState>, optionsState: InputState, inputGuide: InputGuide<InputState>): Record<string, Record<AesType, boolean>>;