@milaboratories/graph-maker 1.1.136 → 1.1.138
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/README.md +120 -24
- package/dist/GraphMaker/components/SettingsTabs/icons/AxesIcon.vue.d.ts.map +1 -0
- package/dist/GraphMaker/{icons → components/SettingsTabs/icons}/AxesIcon.vue.js +1 -1
- package/dist/GraphMaker/components/SettingsTabs/icons/AxesIcon.vue.js.map +1 -0
- package/dist/GraphMaker/components/SettingsTabs/icons/DeleteChartIcon.vue.d.ts.map +1 -0
- package/dist/GraphMaker/{icons → components/SettingsTabs/icons}/DeleteChartIcon.vue.js +1 -1
- package/dist/GraphMaker/components/SettingsTabs/icons/DeleteChartIcon.vue.js.map +1 -0
- package/dist/GraphMaker/components/SettingsTabs/icons/ExportIcon.vue.d.ts.map +1 -0
- package/dist/GraphMaker/{icons → components/SettingsTabs/icons}/ExportIcon.vue.js +1 -1
- package/dist/GraphMaker/components/SettingsTabs/icons/ExportIcon.vue.js.map +1 -0
- package/dist/GraphMaker/components/SettingsTabs/icons/LayersIcon.vue.d.ts.map +1 -0
- package/dist/GraphMaker/{icons → components/SettingsTabs/icons}/LayersIcon.vue.js +1 -1
- package/dist/GraphMaker/components/SettingsTabs/icons/LayersIcon.vue.js.map +1 -0
- package/dist/GraphMaker/components/SettingsTabs/icons/LinkIcon.vue.d.ts.map +1 -0
- package/dist/GraphMaker/{icons → components/SettingsTabs/icons}/LinkIcon.vue.js +1 -1
- package/dist/GraphMaker/components/SettingsTabs/icons/LinkIcon.vue.js.map +1 -0
- package/dist/GraphMaker/components/SettingsTabs/icons/LogIcon.vue.d.ts +3 -0
- package/dist/GraphMaker/components/SettingsTabs/icons/LogIcon.vue.d.ts.map +1 -0
- package/dist/GraphMaker/components/SettingsTabs/icons/LogIcon.vue.js +12 -0
- package/dist/GraphMaker/components/SettingsTabs/icons/LogIcon.vue.js.map +1 -0
- package/dist/GraphMaker/components/SettingsTabs/icons/LogIcon.vue2.js +5 -0
- package/dist/GraphMaker/components/SettingsTabs/icons/LogIcon.vue2.js.map +1 -0
- package/dist/GraphMaker/components/SettingsTabs/icons/SettingsIcon.vue.d.ts.map +1 -0
- package/dist/GraphMaker/components/SettingsTabs/index.vue.d.ts +2 -0
- package/dist/GraphMaker/components/SettingsTabs/index.vue.d.ts.map +1 -1
- package/dist/GraphMaker/components/SettingsTabs/index.vue.js +17 -15
- package/dist/GraphMaker/components/SettingsTabs/index.vue.js.map +1 -1
- package/dist/GraphMaker/constantsCommon.d.ts +2 -0
- package/dist/GraphMaker/constantsCommon.d.ts.map +1 -1
- package/dist/GraphMaker/constantsCommon.js +19 -17
- package/dist/GraphMaker/constantsCommon.js.map +1 -1
- package/dist/GraphMaker/forms/AxesSettingsForm/HeatmapAxesSettingsForm.vue.d.ts.map +1 -1
- package/dist/GraphMaker/forms/AxesSettingsForm/HeatmapAxesSettingsForm.vue.js +144 -122
- package/dist/GraphMaker/forms/AxesSettingsForm/HeatmapAxesSettingsForm.vue.js.map +1 -1
- package/dist/GraphMaker/forms/LogForm.vue.d.ts +19 -0
- package/dist/GraphMaker/forms/LogForm.vue.d.ts.map +1 -0
- package/dist/GraphMaker/forms/LogForm.vue.js +22 -0
- package/dist/GraphMaker/forms/LogForm.vue.js.map +1 -0
- package/dist/GraphMaker/forms/index.d.ts +22 -0
- package/dist/GraphMaker/forms/index.d.ts.map +1 -1
- package/dist/GraphMaker/forms/index.js +35 -28
- package/dist/GraphMaker/forms/index.js.map +1 -1
- package/dist/GraphMaker/index.vue.d.ts +1 -0
- package/dist/GraphMaker/index.vue.d.ts.map +1 -1
- package/dist/GraphMaker/index.vue.js +161 -159
- package/dist/GraphMaker/index.vue.js.map +1 -1
- package/dist/GraphMaker/store.d.ts.map +1 -1
- package/dist/GraphMaker/store.js +71 -67
- package/dist/GraphMaker/store.js.map +1 -1
- package/dist/GraphMaker/utils/createChartSettingsForRender/getAxesDataFromForms.d.ts.map +1 -1
- package/dist/GraphMaker/utils/createChartSettingsForRender/getAxesDataFromForms.js +9 -9
- package/dist/GraphMaker/utils/createChartSettingsForRender/getAxesDataFromForms.js.map +1 -1
- package/dist/lib.js +1 -1
- package/dist/node_modules/@milaboratories/miplots4/dist/heatmap/ChartRenderer.js +246 -228
- package/dist/node_modules/@milaboratories/miplots4/dist/heatmap/ChartRenderer.js.map +1 -1
- package/dist/node_modules/@milaboratories/miplots4/dist/heatmap/components/Captions/GroupCaptions.js +46 -37
- package/dist/node_modules/@milaboratories/miplots4/dist/heatmap/components/Captions/GroupCaptions.js.map +1 -1
- package/dist/node_modules/@milaboratories/miplots4/dist/heatmap/components/Chart.js +63 -61
- package/dist/node_modules/@milaboratories/miplots4/dist/heatmap/components/Chart.js.map +1 -1
- package/dist/node_modules/@milaboratories/miplots4/dist/heatmap/components/ChartsGroup.js +4 -4
- package/dist/node_modules/@milaboratories/miplots4/dist/heatmap/components/Dendrograms.js +57 -51
- package/dist/node_modules/@milaboratories/miplots4/dist/heatmap/components/Dendrograms.js.map +1 -1
- package/dist/node_modules/@milaboratories/miplots4/dist/heatmap/getDendrograms.js +33 -33
- package/dist/node_modules/@milaboratories/miplots4/dist/heatmap/getDendrograms.js.map +1 -1
- package/dist/node_modules/@milaboratories/miplots4/dist/heatmap/index.js +20 -20
- package/dist/node_modules/@milaboratories/miplots4/dist/heatmap/utils/calculateCaptionTails.js +89 -54
- package/dist/node_modules/@milaboratories/miplots4/dist/heatmap/utils/calculateCaptionTails.js.map +1 -1
- package/dist/node_modules/@milaboratories/miplots4/dist/heatmap/utils/calculateChartSideElementSizes.js +19 -19
- package/dist/node_modules/@milaboratories/miplots4/dist/heatmap/utils/calculateChartSideElementSizes.js.map +1 -1
- package/dist/node_modules/@milaboratories/miplots4/dist/scatterplot/ChartRenderer.js +181 -168
- package/dist/node_modules/@milaboratories/miplots4/dist/scatterplot/ChartRenderer.js.map +1 -1
- package/dist/node_modules/@milaboratories/miplots4/dist/scatterplot/components/ChartsGroup.js +1 -1
- package/dist/node_modules/@milaboratories/miplots4/dist/scatterplot/components/ChartsGroup.js.map +1 -1
- package/dist/node_modules/@milaboratories/miplots4/dist/scatterplot/index.js +5 -5
- package/dist/node_modules/@milaboratories/miplots4/dist/scatterplot-umap/components/Lasso.js +144 -120
- package/dist/node_modules/@milaboratories/miplots4/dist/scatterplot-umap/components/Lasso.js.map +1 -1
- package/dist/node_modules/@milaboratories/miplots4/dist/scatterplot-umap/components/LowerSVG.js +35 -35
- package/dist/node_modules/@milaboratories/miplots4/dist/scatterplot-umap/components/LowerSVG.js.map +1 -1
- package/dist/node_modules/@milaboratories/miplots4/dist/scatterplot-umap/index.js +1 -1
- package/dist/node_modules/@milaboratories/miplots4/dist/scatterplot-umap/index.js.map +1 -1
- package/package.json +2 -2
- package/dist/GraphMaker/icons/AxesIcon.vue.d.ts.map +0 -1
- package/dist/GraphMaker/icons/AxesIcon.vue.js.map +0 -1
- package/dist/GraphMaker/icons/DeleteChartIcon.vue.d.ts.map +0 -1
- package/dist/GraphMaker/icons/DeleteChartIcon.vue.js.map +0 -1
- package/dist/GraphMaker/icons/ExportIcon.vue.d.ts.map +0 -1
- package/dist/GraphMaker/icons/ExportIcon.vue.js.map +0 -1
- package/dist/GraphMaker/icons/LayersIcon.vue.d.ts.map +0 -1
- package/dist/GraphMaker/icons/LayersIcon.vue.js.map +0 -1
- package/dist/GraphMaker/icons/LinkIcon.vue.d.ts.map +0 -1
- package/dist/GraphMaker/icons/LinkIcon.vue.js.map +0 -1
- package/dist/GraphMaker/icons/SettingsIcon.vue.d.ts.map +0 -1
- /package/dist/GraphMaker/{icons → components/SettingsTabs/icons}/AxesIcon.vue.d.ts +0 -0
- /package/dist/GraphMaker/{icons → components/SettingsTabs/icons}/DeleteChartIcon.vue.d.ts +0 -0
- /package/dist/GraphMaker/{icons → components/SettingsTabs/icons}/ExportIcon.vue.d.ts +0 -0
- /package/dist/GraphMaker/{icons → components/SettingsTabs/icons}/LayersIcon.vue.d.ts +0 -0
- /package/dist/GraphMaker/{icons → components/SettingsTabs/icons}/LinkIcon.vue.d.ts +0 -0
- /package/dist/GraphMaker/{icons → components/SettingsTabs/icons}/SettingsIcon.vue.d.ts +0 -0
- /package/dist/GraphMaker/{icons → components/SettingsTabs/icons}/SettingsIcon.vue.js +0 -0
- /package/dist/GraphMaker/{icons → components/SettingsTabs/icons}/SettingsIcon.vue.js.map +0 -0
- /package/dist/GraphMaker/{icons → components/SettingsTabs/icons}/SettingsIcon.vue2.js +0 -0
- /package/dist/GraphMaker/{icons → components/SettingsTabs/icons}/SettingsIcon.vue2.js.map +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constantsCommon.js","sources":["../../src/GraphMaker/constantsCommon.ts"],"sourcesContent":["import type { ChartType } from '@milaboratories/pf-plots';\nimport type { Component } from 'vue';\nimport {\n DotShape,\n LineType\n} from './components/AesSettings/types';\nimport {\n DEFAULT_BLACK,\n DEFAULT_DOT_SHAPE,\n DEFAULT_LINE_TYPE\n} from './constantsAesthetic';\nimport { DEFAULT_DOT_SIZE, DEFAULT_LINE_COLOR } from './dataBindAes';\nimport BarAndErrorIcon from './icons/BarAndErrorIcon.vue';\nimport BarAndLineIcon from './icons/BarAndLineIcon.vue';\nimport BarIcon from './icons/BarIcon.vue';\nimport BinnedDotsIcon from './icons/BinnedDotsIcon.vue';\nimport BoxplotAndBinnedIcon from './icons/BoxplotAndBinnedIcon.vue';\nimport BoxplotAndJitterIcon from './icons/BoxplotAndJitterIcon.vue';\nimport BoxplotIcon from './icons/BoxplotIcon.vue';\nimport DendroIcon from './icons/DendroIcon.vue';\nimport HeatmapIcon from './icons/HeatmapIcon.vue';\nimport JitteredDotsIcon from './icons/JitteredDotsIcon.vue';\nimport LineAndBinnedIcon from './icons/LineAndBinnedIcon.vue';\nimport LineAndErrorbarIcon from './icons/LineAndErrorbarIcon.vue';\nimport LineAndJitterIcon from './icons/LineAndJitterIcon.vue';\nimport LineIcon from './icons/LineIcon.vue';\nimport LogoIcon from './icons/LogoIcon.vue';\nimport ScatterplotIcon from './icons/ScatterplotIcon.vue';\nimport SinaIcon from './icons/SinaIcon.vue';\nimport StackedBarIcon from './icons/StackedBarIcon.vue';\nimport ViolinAndBinnedIcon from './icons/ViolinAndBinnedIcon.vue';\nimport ViolinAndJitterIcon from './icons/ViolinAndJitterIcon.vue';\nimport ViolinIcon from './icons/ViolinIcon.vue';\nimport {\n AxisTitleMode,\n DeepPartial,\n DiscreteLayer,\n DiscreteLayersTemplate,\n Frame,\n HeatmapFrame, HeatmapLayer, HeatmapLayerTemplate, HistogramLayer, HistogramLayerTemplate,\n LabelsPosition,\n LabelsRotation,\n Layer,\n LayersTemplate,\n Scale,\n ScatterplotLayer,\n ScatterplotLayersTemplate,\n TitlePosition\n} from './types';\n\nexport const DEFAULT_CHART_TYPE: ChartType = 'discrete';\n\n/** Annotations keys */\nexport const THRESHOLDS_KEY = 'pl7.app/graph/thresholds';\nexport const LOWER_LIMIT_KEY = 'pl7.app/graph/axis/lowerLimit';\nexport const UPPER_LIMIT_KEY = 'pl7.app/graph/axis/upperLimit';\nexport const SYMMETRIC_RANGE_KEY = 'pl7.app/graph/axis/symmetricRange';\nexport const PALETTE_KEY = 'pl7.app/graph/palette';\nexport const AXIS_NATURE_KEY = 'pl7.app/axisNature';\nexport const COLUMN_MIN_KEY = 'pl7.app/min';\nexport const COLUMN_MAX_KEY = 'pl7.app/max';\nexport const SUBSET_FILTER_KEY = 'pl7.app/isSubset';\n\nexport function getInitialTemplate(\n restoredTemplate: LayersTemplate | null,\n chartType: ChartType\n) {\n if (chartType === 'discrete') {\n return restoredTemplate &&\n DISCRETE_TEMPLATES_MAP[restoredTemplate as DiscreteLayersTemplate]\n ? restoredTemplate\n : 'box';\n }\n if (chartType === 'scatterplot' || chartType === 'scatterplot-umap') {\n return restoredTemplate &&\n SCATTERPLOT_TEMPLATES_MAP[restoredTemplate as ScatterplotLayersTemplate]\n ? restoredTemplate\n : 'dots';\n }\n if (chartType === 'dendro') {\n return 'dendro';\n }\n return restoredTemplate ?? 'heatmap';\n}\n\nexport const DISCRETE_TEMPLATES_MAP: Record<\n DiscreteLayersTemplate,\n DiscreteLayer[]\n> = {\n box: ['box'],\n box_binnedDots: ['box', 'binnedDots'],\n box_jitteredDots: ['box', 'jitteredDots'],\n violin: ['violin'],\n violin_binnedDots: ['violin', 'binnedDots'],\n violin_jitteredDots: ['violin', 'jitteredDots'],\n binnedDots: ['binnedDots'],\n jitteredDots: ['jitteredDots'],\n bar: ['bar'],\n bar_line: ['bar', 'line'],\n bar_errorbar: ['bar', 'errorbar'],\n stackedBar: ['stackedBar'],\n line: ['line'],\n line_jitteredDots: ['line', 'jitteredDots'],\n line_binnedDots: ['line', 'binnedDots'],\n line_errorbar: ['line', 'errorbar'],\n errorbar: ['errorbar'],\n sina: ['sina'],\n logo: ['logo']\n};\n\nexport const SCATTERPLOT_TEMPLATES_MAP: Record<\n ScatterplotLayersTemplate,\n ScatterplotLayer[]\n> = {\n dots: ['dots'],\n curve: ['curve'],\n curve_dots: ['curve', 'dots']\n};\n\nexport const SCATTERPLOT_UMAP_TEMPLATES_MAP: Partial<Record<\n ScatterplotLayersTemplate,\n ScatterplotLayer[]\n>> = {\n dots: ['dots'],\n curve_dots: ['curve', 'dots']\n};\n\nexport const HEATMAP_TEMPLATES_MAP: Record<HeatmapLayerTemplate, HeatmapLayer[]> = {\n heatmap: ['heatmap'],\n heatmapClustered: ['heatmapClustered']\n};\nexport const HISTOGRAM_TEMPLATES_MAP: Record<HistogramLayerTemplate, HistogramLayer[]> = {\n bins: ['bins']\n}\nexport const LAYER_TITLES: Record<Layer, string> = {\n box: 'Boxplot',\n binnedDots: 'Binned Dots',\n jitteredDots: 'Jittered Dots',\n violin: 'Violins',\n bar: 'Bar',\n stackedBar: 'Stacked Bar',\n line: 'Line',\n errorbar: 'Error Bar',\n sina: 'Sina',\n logo: 'Logo Plot',\n dots: 'Scatter Plot',\n curve: 'Curve',\n heatmap: 'Heatmap',\n heatmapClustered: 'Heatmap + Dendro',\n dendro: 'Dendrogram',\n bins: 'Histogram',\n bubble: 'Bubble plot'\n};\n\nexport type DiscreteStatisticsState = {\n overall: {\n data: { testMethod: null | string };\n validity: { testMethod: boolean };\n };\n referenceGroup: {\n data: {\n testMethod: null | string;\n referenceGroup: null | string;\n correctionMethod: string;\n format: 'significance' | 'pValue';\n ns: boolean;\n };\n validity: {\n testMethod: boolean;\n referenceGroup: boolean;\n };\n };\n pairwise: {\n data: {\n testMethod: null | string;\n correctionMethod: string;\n format: 'significance' | 'pValue';\n ns: boolean;\n };\n validity: { testMethod: boolean };\n };\n};\n\nexport type ScatterplotStatisticsState = {\n trend: {\n on: boolean,\n trim: boolean,\n showLegend: boolean\n },\n}\n\nexport type StatisticsState = DiscreteStatisticsState | ScatterplotStatisticsState;\n\nexport function getInitialStatisticsState(chartType: ChartType, initialData?: DeepPartial<StatisticsState>): StatisticsState {\n if (chartType === 'discrete') {\n const initial = initialData as DiscreteStatisticsState;\n return {\n overall: {\n data: { testMethod: initial?.overall?.data?.testMethod ?? null },\n validity: { testMethod: initial?.overall?.validity?.testMethod ?? true }\n },\n referenceGroup: {\n data: {\n testMethod: initial?.referenceGroup?.data?.testMethod ?? null,\n referenceGroup: initial?.referenceGroup?.data?.referenceGroup ?? null,\n correctionMethod: initial?.referenceGroup?.data?.correctionMethod ?? 'Bonferroni',\n format: initial?.referenceGroup?.data?.format ?? 'significance',\n ns: initial?.referenceGroup?.data?.ns ?? false\n },\n validity: {\n testMethod: initial?.referenceGroup?.validity?.testMethod ?? true,\n referenceGroup: initial?.referenceGroup?.validity?.referenceGroup ?? true\n }\n },\n pairwise: {\n data: {\n testMethod: initial?.pairwise?.data?.testMethod ?? null,\n correctionMethod: initial?.pairwise?.data?.correctionMethod ?? 'Bonferroni',\n format: initial?.pairwise?.data?.format ?? 'significance',\n ns: initial?.pairwise?.data?.ns ?? false\n },\n validity: { testMethod: initial?.pairwise?.validity?.testMethod ?? true }\n }\n } as DiscreteStatisticsState;\n }\n const initial = initialData as ScatterplotStatisticsState;\n return {\n trend: {\n on: initial?.trend?.on ?? false,\n trim: initial?.trend?.trim ?? false,\n showLegend: initial?.trend?.showLegend ?? true\n }\n };\n}\n\nexport type NumberRange = { min: number, max: number }\nexport type MappingLink = { type: string, value?: string }; // {type: 'primaryGrouping'} for example\nexport type ColorAes = string | MappingLink;\nexport type DotShapeAes = DotShape | MappingLink;\nexport type DotSizeAes = number | NumberRange;\nexport type LineTypeAes = LineType | MappingLink;\nexport type FixedOrMappedAes = ColorAes | DotShapeAes | LineTypeAes;\n\nexport type ContinuousDataMappingSize = {\n column: string,\n range: NumberRange\n}\n\nexport type ContinuousDataMappingForGraph<T extends string | number> = {columnName: ColumnNameSchema, domain: number[], range: T[], type: 'linear' | 'log'}\n\nexport type ColumnNameSchema = {\n type: 'column'\n value: string,\n label?: string\n valueLabels?: string\n}\n\nexport function isNumberRange(v: number | NumberRange | null | undefined): v is NumberRange {\n return typeof v !== 'undefined' && v !== null && typeof v === 'object' && 'min' in v && 'max' in v;\n}\n\nexport function isMappedAes(\n item: FixedOrMappedAes | null | string | number | boolean | unknown\n): item is MappingLink {\n return typeof item === 'object' && item !== null && 'type' in item;\n}\n\nexport function isContinuousDataMapping(v: ContinuousDataMappingSize | MappingLink | number | string | null | undefined): v is ContinuousDataMappingSize {\n return typeof v !== 'undefined' && v !== null && typeof v === 'object' && 'range' in v;\n}\n\nexport type LayersSettings = {\n //bubble\n bubble: {\n NAValueAs: number | null,\n minRadius: number,\n maxRadius: number,\n normalizationDirection: 'row' | 'column' | null,\n normalizationMethod: 'standardScaling' | 'meanNormalization',\n strokeColor: null | string\n },\n // histogram\n bins: {\n fillColor: ColorAes | null,\n opacity: number\n },\n //dendrogram\n dendro: {\n dotFill: ColorAes,\n dotShape: DotShapeAes,\n dotSize: DotSizeAes,\n lineColor: ColorAes,\n mode: 'normal' | 'useAllNodesAsLeaves',\n leavesMode: 'normal' | 'alignLeavesToLine',\n showTable: boolean,\n showLegend: boolean,\n },\n //heatmap\n heatmap: {\n NAValueAs: number | null,\n normalizationDirection: 'row' | 'column' | null,\n normalizationMethod: 'standardScaling' | 'meanNormalization',\n },\n heatmapClustered: {\n NAValueAs: number | null,\n normalizationDirection: 'row' | 'column' | null,\n normalizationMethod: 'standardScaling' | 'meanNormalization',\n dendrogramX: boolean,\n dendrogramY: boolean,\n disableClusteringX: boolean,\n disableClusteringY: boolean,\n },\n //scatterplot\n dots: {\n dotFill: ColorAes | null,\n dotShape: DotShapeAes | null,\n dotSize: ContinuousDataMappingSize | number | null\n },\n curve: {\n smoothing: boolean,\n lineColor: ColorAes\n },\n //discrete\n box: {\n showOutliers: boolean,\n fillColor: ColorAes | null,\n lineColor: ColorAes,\n dotShape: DotShapeAes,\n lineType: LineTypeAes,\n gapWidth: number,\n opacity: number,\n stat: {\n low: number,\n middle: number,\n upper: number,\n k: number,\n },\n },\n binnedDots: {\n fillColor: ColorAes | null,\n lineColor: ColorAes,\n opacity: number,\n showOutliers: boolean,\n },\n jitteredDots: {\n dotFill: ColorAes | null,\n dotShape: DotShapeAes,\n lineColor: ColorAes,\n opacity: number,\n showOutliers: boolean,\n },\n violin: {\n fillColor: ColorAes | null,\n lineColor: ColorAes,\n lineType: LineTypeAes,\n opacity: number,\n trim: boolean,\n showQuartiles: boolean,\n quartilesLineStyle: LineType,\n medianLineStyle: LineType\n },\n bar: {\n fillColor: ColorAes | null,\n lineColor: ColorAes,\n opacity: number,\n height: 'max' | 'mean' | 'median',\n },\n stackedBar: {\n fillColor: ColorAes | null,\n lineColor: ColorAes,\n opacity: number,\n normalize: boolean\n },\n line: {\n pointsValues: 'mean' | 'median',\n lineColor: ColorAes | null,\n dotShape: DotShapeAes,\n lineType: LineTypeAes,\n dotFill: ColorAes | null,\n opacity: number,\n },\n errorbar: {\n pointsValues: 'mean' | 'median',\n interval: 'sd' | 'se' | '',\n lineColor: ColorAes | null,\n dotShape: DotShapeAes,\n dotFill: ColorAes | null,\n opacity: number,\n },\n sina: {\n dotFill: ColorAes | null,\n dotShape: DotShapeAes,\n opacity: number,\n showOutliers: boolean,\n },\n logo: {\n normalize: boolean,\n opacity: number,\n }\n};\nexport const DEFAULT_LAYERS_SETTINGS: () => LayersSettings = () => ({\n //bubble\n bubble: {\n NAValueAs: 0,\n strokeColor: null,\n minRadius: 3,\n maxRadius: 38,\n normalizationDirection: 'row',\n normalizationMethod: 'standardScaling',\n },\n // histogram\n bins: {\n fillColor: null,\n opacity: 1\n },\n //dendro\n dendro: {\n dotFill: DEFAULT_BLACK,\n dotShape: DEFAULT_DOT_SHAPE,\n dotSize: DEFAULT_DOT_SIZE,\n lineColor: DEFAULT_BLACK,\n mode: 'normal',\n leavesMode: 'normal',\n showTable: false,\n showLegend: true\n },\n //heatmap\n heatmap: {\n NAValueAs: 0,\n normalizationDirection: 'row',\n normalizationMethod: 'standardScaling',\n },\n heatmapClustered: {\n NAValueAs: 0,\n normalizationDirection: 'row',\n normalizationMethod: 'standardScaling',\n dendrogramX: true,\n dendrogramY: true,\n disableClusteringX: false,\n disableClusteringY: false\n },\n //scatterplot\n dots: {\n dotFill: null as ColorAes | null,\n dotShape: null as DotShapeAes | null,\n dotSize: null as ContinuousDataMappingSize | number | null\n },\n curve: { lineColor: DEFAULT_BLACK, smoothing: true },\n //discrete\n box: {\n showOutliers: true,\n fillColor: null as ColorAes | null,\n lineColor: DEFAULT_LINE_COLOR as ColorAes,\n dotShape: DEFAULT_DOT_SHAPE as DotShapeAes,\n lineType: DEFAULT_LINE_TYPE as LineTypeAes,\n gapWidth: 0.2,\n opacity: 1,\n stat: {\n low: 0.25,\n middle: 0.5,\n upper: 0.75,\n k: 1.5\n }\n },\n binnedDots: {\n fillColor: null as ColorAes | null,\n lineColor: DEFAULT_LINE_COLOR as ColorAes,\n opacity: 1,\n showOutliers: true\n },\n jitteredDots: {\n dotFill: null as ColorAes | null,\n dotShape: DEFAULT_DOT_SHAPE as DotShapeAes,\n lineColor: DEFAULT_LINE_COLOR as ColorAes,\n opacity: 1,\n showOutliers: true\n },\n violin: {\n fillColor: null as ColorAes | null,\n lineColor: DEFAULT_LINE_COLOR as ColorAes,\n lineType: DEFAULT_LINE_TYPE as LineTypeAes,\n opacity: 1,\n trim: false,\n showQuartiles: false,\n quartilesLineStyle: 'dashed',\n medianLineStyle: 'solid'\n },\n bar: {\n fillColor: null as ColorAes | null,\n lineColor: DEFAULT_LINE_COLOR as ColorAes,\n opacity: 1,\n height: 'max'\n },\n stackedBar: {\n fillColor: null as ColorAes | null,\n lineColor: DEFAULT_LINE_COLOR as ColorAes,\n opacity: 1,\n normalize: false\n },\n line: {\n pointsValues: 'mean',\n lineColor: null as ColorAes | null,\n dotShape: DEFAULT_DOT_SHAPE as DotShapeAes,\n lineType: DEFAULT_LINE_TYPE as LineTypeAes,\n dotFill: null as ColorAes | null,\n opacity: 1\n },\n errorbar: {\n pointsValues: 'mean',\n interval: 'sd',\n lineColor: null as ColorAes | null,\n dotShape: DEFAULT_DOT_SHAPE as DotShapeAes,\n dotFill: null as ColorAes | null,\n opacity: 1\n },\n sina: {\n dotFill: null as ColorAes | null,\n dotShape: DEFAULT_DOT_SHAPE as DotShapeAes,\n opacity: 1,\n showOutliers: true\n },\n logo: {\n normalize: false,\n opacity: 1\n }\n});\n\nexport function getDefaultLayersSettings() {\n return DEFAULT_LAYERS_SETTINGS();\n}\n\nconst DISCRETE_LAYERS: Layer[] = [\n 'box',\n 'binnedDots',\n 'jitteredDots',\n 'violin',\n 'bar',\n 'stackedBar',\n 'line',\n 'errorbar',\n 'sina',\n 'logo'\n];\nconst SCATTERPLOT_LAYERS: Layer[] = ['dots', 'curve'];\nconst SCATTERPLOT_UMAP_LAYERS: Layer[] = ['dots'];\nconst HEATMAP_LAYERS: Layer[] = ['heatmap', 'heatmapClustered'];\nconst DENDRO_LAYERS: Layer[] = ['dendro'];\nconst HISTOGRAM_LAYERS: Layer[] = ['bins'];\nconst BUBBLE_LAYERS: Layer[] = ['bubble'];\nconst LAYERS_BY_CHART_TYPE: Record<ChartType, Layer[]> = {\n discrete: DISCRETE_LAYERS,\n scatterplot: SCATTERPLOT_LAYERS,\n 'scatterplot-umap': SCATTERPLOT_UMAP_LAYERS,\n heatmap: HEATMAP_LAYERS,\n dendro: DENDRO_LAYERS,\n histogram: HISTOGRAM_LAYERS,\n bubble: BUBBLE_LAYERS\n};\n\nexport function getInitialLayersSettings(\n initialSettings?: DeepPartial<LayersSettings>\n): LayersSettings {\n const defaultSettings = DEFAULT_LAYERS_SETTINGS();\n const layers: Layer[] = Object.keys(defaultSettings) as Layer[];\n return layers.reduce((res, layer) => {\n Object.assign(\n res[layer],\n initialSettings?.[layer] ?? {}\n );\n return res;\n }, defaultSettings);\n}\n\nexport type Sorting = 'asc' | 'desc';\nexport type AxesState = {\n title: { value: string; position: TitlePosition; mode: AxisTitleMode; facetTitleFrame: Frame };\n axisX: {\n labelsPosition: LabelsPosition; // for heatmap - top/bottom/left/right/hidden\n labelsRotation: LabelsRotation | null; // only for discrete X axis - 'center'/'90deg'/'45deg'; null for auto mode before user chose\n axisLabelsAngle: 0 | 45 | 90; // for heatmap\n titleMode: AxisTitleMode; // 'auto' - from column or 'custom' - from 'customTitle' field or 'hidden'\n customTitle: string; // user axis title, not default from column\n gridlines: boolean;\n linesBetweenCategories: boolean; // for discrete - position for vertical gridlines\n ticks: boolean;\n scale: Scale; // linear or log\n significantLinesStyle: LineType;\n sorting: Sorting;\n allowNullPrimaryGroups: boolean; // for discrete - allow group with null grouping value\n allowNullSecondaryGroups: boolean;\n };\n axisY: {\n titleMode: AxisTitleMode;\n customTitle: string;\n axisLabelsAngle: 0 | 45 | 90; // for heatmap\n gridlines: boolean;\n ticks: boolean;\n scale: Scale;\n significantLinesStyle: LineType;\n sorting: Sorting;\n };\n legend: {};\n other: {\n frame: Frame | HeatmapFrame;\n reverse: boolean;\n facetSharedBy: 'x' | 'y' | 'xy' | 'none';\n facetColumns: number;\n binsCount: number;\n groupingDirection: 'straight' | 'reverse';\n groupingStack: 'vertical' | 'horizontal';\n };\n};\n\nconst DEFAULT_AXES: () => AxesState = () => ({\n title: {\n value: 'Graph 1',\n position: 'center',\n mode: 'auto',\n facetTitleFrame: 'full'\n },\n axisX: {\n labelsPosition: 'bottom',\n labelsRotation: null,\n axisLabelsAngle: 90,\n titleMode: 'auto',\n customTitle: '',\n gridlines: true,\n linesBetweenCategories: true,\n ticks: true,\n scale: 'linear',\n significantLinesStyle: 'dashed',\n sorting: 'asc',\n allowNullPrimaryGroups: false,\n allowNullSecondaryGroups: false\n },\n axisY: {\n titleMode: 'auto',\n customTitle: '',\n axisLabelsAngle: 90,\n gridlines: true,\n ticks: true,\n scale: 'linear',\n significantLinesStyle: 'dashed',\n sorting: 'asc'\n },\n legend: {},\n other: {\n frame: 'full',\n reverse: false,\n facetSharedBy: 'xy',\n facetColumns: 3,\n binsCount: 10,\n groupingDirection: 'straight',\n groupingStack: 'vertical'\n }\n});\n\nfunction isHeatmapFrame(frame: Frame | HeatmapFrame): frame is HeatmapFrame {\n return frame === 'full' || frame === 'none';\n}\n\nexport function getInitialAxesSettings(\n chartType: ChartType,\n initialAxesSettings?: DeepPartial<AxesState>\n): AxesState {\n const defaultAxes = DEFAULT_AXES();\n if (!initialAxesSettings) {\n return defaultAxes;\n }\n\n // TODO: divide into separated settings for chart types\n function getFrame(frame?: Frame | HeatmapFrame): Frame | HeatmapFrame {\n if (!frame) {\n return 'full';\n }\n if (chartType === 'heatmap' && !isHeatmapFrame(frame)) {\n return 'full' as HeatmapFrame;\n }\n if (chartType !== 'heatmap' && isHeatmapFrame(frame)) {\n return frame === 'none' ? 'empty' : (frame as Frame);\n }\n return frame;\n }\n\n return {\n title: {\n ...defaultAxes.title,\n ...initialAxesSettings.title\n },\n axisX: {\n ...defaultAxes.axisX,\n ...initialAxesSettings.axisX\n },\n axisY: {\n ...defaultAxes.axisY,\n ...initialAxesSettings.axisY\n },\n legend: {\n ...defaultAxes.legend,\n ...initialAxesSettings.legend\n },\n other: {\n ...defaultAxes.other,\n ...initialAxesSettings.other,\n frame: getFrame(initialAxesSettings.other?.frame)\n }\n };\n}\n\nexport const LAYER_ICONS: Record<LayersTemplate, Component> = {\n box: BoxplotIcon,\n box_binnedDots: BoxplotAndBinnedIcon,\n box_jitteredDots: BoxplotAndJitterIcon,\n binnedDots: BinnedDotsIcon,\n jitteredDots: JitteredDotsIcon,\n violin: ViolinIcon,\n violin_binnedDots: ViolinAndBinnedIcon,\n violin_jitteredDots: ViolinAndJitterIcon,\n bar: BarIcon,\n bar_line: BarAndLineIcon,\n bar_errorbar: BarAndErrorIcon,\n stackedBar: StackedBarIcon,\n line: LineIcon,\n line_binnedDots: LineAndBinnedIcon,\n line_jitteredDots: LineAndJitterIcon,\n line_errorbar: LineAndErrorbarIcon,\n errorbar: BarAndLineIcon,\n sina: SinaIcon,\n logo: LogoIcon,\n dots: ScatterplotIcon,\n curve: LineIcon,\n curve_dots: LineAndJitterIcon,\n heatmap: HeatmapIcon,\n heatmapClustered: DendroIcon,\n dendro: DendroIcon,\n bins: BarIcon,\n bubble: HeatmapIcon\n};\n\ntype Option = { value: string; text: string };\nexport const STAT_TEST_METHOD: Option[] = [\n { value: 'ttest', text: 'TTest' },\n { value: 'anova', text: 'ANOVA' },\n { value: 'wilcoxon', text: 'Wilcoxon' },\n { value: 'kruskalWallis', text: 'Kruskal-Wallis' }\n];\n\nexport const STAT_CORRECTION_METHOD: Option[] = [\n { value: 'BenjaminiHochberg', text: 'Benjamini-Hochberg' },\n { value: 'BenjaminiYekutieli', text: 'Benjamini-Yekutieli' },\n { value: 'Bonferroni', text: 'Bonferroni' },\n { value: 'Hochberg', text: 'Hochberg' },\n { value: 'Holm', text: 'Holm' },\n { value: 'Hommel', text: 'Hommel' },\n { value: 'none', text: 'None' }\n];\n\nexport const FORMAT_P_VALUE_OPTIONS: Option[] = [\n { value: 'pValue', text: 'p-value' },\n { value: 'significance', text: 'significance' }\n];\n\nexport type AesType = 'fill' | 'stroke' | 'dotShape' | 'lineType' | 'size';\n\nexport const DEFAULT_WIDTH = 600;\nexport const DEFAULT_HEIGHT = 350;\nexport const DEFAULT_WIDTH_SMALL = 400;\nexport const DEFAULT_HEIGHT_SMALL = 250;\n\nexport const MAX_SEARCH_OPTIONS_LIST_LENGTH = 100;\n"],"names":["THRESHOLDS_KEY","LOWER_LIMIT_KEY","UPPER_LIMIT_KEY","SYMMETRIC_RANGE_KEY","PALETTE_KEY","AXIS_NATURE_KEY","SUBSET_FILTER_KEY","getInitialTemplate","restoredTemplate","chartType","DISCRETE_TEMPLATES_MAP","SCATTERPLOT_TEMPLATES_MAP","SCATTERPLOT_UMAP_TEMPLATES_MAP","HEATMAP_TEMPLATES_MAP","HISTOGRAM_TEMPLATES_MAP","LAYER_TITLES","getInitialStatisticsState","initialData","initial","_C","_D","_E","isNumberRange","v","isMappedAes","item","isContinuousDataMapping","DEFAULT_LAYERS_SETTINGS","DEFAULT_BLACK","DEFAULT_DOT_SHAPE","DEFAULT_DOT_SIZE","DEFAULT_LINE_COLOR","DEFAULT_LINE_TYPE","getInitialLayersSettings","initialSettings","defaultSettings","res","layer","DEFAULT_AXES","isHeatmapFrame","frame","getInitialAxesSettings","initialAxesSettings","defaultAxes","getFrame","_a","LAYER_ICONS","BoxplotIcon","BoxplotAndBinnedIcon","BoxplotAndJitterIcon","BinnedDotsIcon","JitteredDotsIcon","ViolinIcon","ViolinAndBinnedIcon","ViolinAndJitterIcon","BarIcon","BarAndLineIcon","BarAndErrorIcon","StackedBarIcon","LineIcon","LineAndBinnedIcon","LineAndJitterIcon","LineAndErrorbarIcon","SinaIcon","LogoIcon","ScatterplotIcon","HeatmapIcon","DendroIcon","STAT_TEST_METHOD","STAT_CORRECTION_METHOD","FORMAT_P_VALUE_OPTIONS","DEFAULT_WIDTH","DEFAULT_HEIGHT","DEFAULT_WIDTH_SMALL","DEFAULT_HEIGHT_SMALL","MAX_SEARCH_OPTIONS_LIST_LENGTH"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;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AAE,OAAO,SAAS,MAAM,QAAA;AAAA,EACxB,EAAE,OAAO,SAAS,MAAM,QAAA;AAAA,EACxB,EAAE,OAAO,YAAY,MAAM,WAAA;AAAA,EAC3B,EAAE,OAAO,iBAAiB,MAAM,iBAAA;AAClC,GAEaC,KAAmC;AAAA,EAC9C,EAAE,OAAO,qBAAqB,MAAM,qBAAA;AAAA,EACpC,EAAE,OAAO,sBAAsB,MAAM,sBAAA;AAAA,EACrC,EAAE,OAAO,cAAc,MAAM,aAAA;AAAA,EAC7B,EAAE,OAAO,YAAY,MAAM,WAAA;AAAA,EAC3B,EAAE,OAAO,QAAQ,MAAM,OAAA;AAAA,EACvB,EAAE,OAAO,UAAU,MAAM,SAAA;AAAA,EACzB,EAAE,OAAO,QAAQ,MAAM,OAAA;AACzB,GAEaC,KAAmC;AAAA,EAC9C,EAAE,OAAO,UAAU,MAAM,UAAA;AAAA,EACzB,EAAE,OAAO,gBAAgB,MAAM,eAAA;AACjC,GAIaC,KAAgB,KAChBC,KAAiB,KACjBC,KAAsB,KACtBC,KAAuB,KAEvBC,KAAiC;"}
|
|
1
|
+
{"version":3,"file":"constantsCommon.js","sources":["../../src/GraphMaker/constantsCommon.ts"],"sourcesContent":["import type { ChartType } from '@milaboratories/pf-plots';\nimport type { Component } from 'vue';\nimport {\n DotShape,\n LineType\n} from './components/AesSettings/types';\nimport {\n DEFAULT_BLACK,\n DEFAULT_DOT_SHAPE,\n DEFAULT_LINE_TYPE\n} from './constantsAesthetic';\nimport { DEFAULT_DOT_SIZE, DEFAULT_LINE_COLOR } from './dataBindAes';\nimport BarAndErrorIcon from './icons/BarAndErrorIcon.vue';\nimport BarAndLineIcon from './icons/BarAndLineIcon.vue';\nimport BarIcon from './icons/BarIcon.vue';\nimport BinnedDotsIcon from './icons/BinnedDotsIcon.vue';\nimport BoxplotAndBinnedIcon from './icons/BoxplotAndBinnedIcon.vue';\nimport BoxplotAndJitterIcon from './icons/BoxplotAndJitterIcon.vue';\nimport BoxplotIcon from './icons/BoxplotIcon.vue';\nimport DendroIcon from './icons/DendroIcon.vue';\nimport HeatmapIcon from './icons/HeatmapIcon.vue';\nimport JitteredDotsIcon from './icons/JitteredDotsIcon.vue';\nimport LineAndBinnedIcon from './icons/LineAndBinnedIcon.vue';\nimport LineAndErrorbarIcon from './icons/LineAndErrorbarIcon.vue';\nimport LineAndJitterIcon from './icons/LineAndJitterIcon.vue';\nimport LineIcon from './icons/LineIcon.vue';\nimport LogoIcon from './icons/LogoIcon.vue';\nimport ScatterplotIcon from './icons/ScatterplotIcon.vue';\nimport SinaIcon from './icons/SinaIcon.vue';\nimport StackedBarIcon from './icons/StackedBarIcon.vue';\nimport ViolinAndBinnedIcon from './icons/ViolinAndBinnedIcon.vue';\nimport ViolinAndJitterIcon from './icons/ViolinAndJitterIcon.vue';\nimport ViolinIcon from './icons/ViolinIcon.vue';\nimport {\n AxisTitleMode,\n DeepPartial,\n DiscreteLayer,\n DiscreteLayersTemplate,\n Frame,\n HeatmapFrame, HeatmapLayer, HeatmapLayerTemplate, HistogramLayer, HistogramLayerTemplate,\n LabelsPosition,\n LabelsRotation,\n Layer,\n LayersTemplate,\n Scale,\n ScatterplotLayer,\n ScatterplotLayersTemplate,\n TitlePosition\n} from './types';\n\nexport const DEFAULT_CHART_TYPE: ChartType = 'discrete';\n\n/** Annotations keys */\nexport const THRESHOLDS_KEY = 'pl7.app/graph/thresholds';\nexport const LOWER_LIMIT_KEY = 'pl7.app/graph/axis/lowerLimit';\nexport const UPPER_LIMIT_KEY = 'pl7.app/graph/axis/upperLimit';\nexport const SYMMETRIC_RANGE_KEY = 'pl7.app/graph/axis/symmetricRange';\nexport const PALETTE_KEY = 'pl7.app/graph/palette';\nexport const AXIS_NATURE_KEY = 'pl7.app/axisNature';\nexport const COLUMN_MIN_KEY = 'pl7.app/min';\nexport const COLUMN_MAX_KEY = 'pl7.app/max';\nexport const SUBSET_FILTER_KEY = 'pl7.app/isSubset';\n\nexport function getInitialTemplate(\n restoredTemplate: LayersTemplate | null,\n chartType: ChartType\n) {\n if (chartType === 'discrete') {\n return restoredTemplate &&\n DISCRETE_TEMPLATES_MAP[restoredTemplate as DiscreteLayersTemplate]\n ? restoredTemplate\n : 'box';\n }\n if (chartType === 'scatterplot' || chartType === 'scatterplot-umap') {\n return restoredTemplate &&\n SCATTERPLOT_TEMPLATES_MAP[restoredTemplate as ScatterplotLayersTemplate]\n ? restoredTemplate\n : 'dots';\n }\n if (chartType === 'dendro') {\n return 'dendro';\n }\n return restoredTemplate ?? 'heatmap';\n}\n\nexport const DISCRETE_TEMPLATES_MAP: Record<\n DiscreteLayersTemplate,\n DiscreteLayer[]\n> = {\n box: ['box'],\n box_binnedDots: ['box', 'binnedDots'],\n box_jitteredDots: ['box', 'jitteredDots'],\n violin: ['violin'],\n violin_binnedDots: ['violin', 'binnedDots'],\n violin_jitteredDots: ['violin', 'jitteredDots'],\n binnedDots: ['binnedDots'],\n jitteredDots: ['jitteredDots'],\n bar: ['bar'],\n bar_line: ['bar', 'line'],\n bar_errorbar: ['bar', 'errorbar'],\n stackedBar: ['stackedBar'],\n line: ['line'],\n line_jitteredDots: ['line', 'jitteredDots'],\n line_binnedDots: ['line', 'binnedDots'],\n line_errorbar: ['line', 'errorbar'],\n errorbar: ['errorbar'],\n sina: ['sina'],\n logo: ['logo']\n};\n\nexport const SCATTERPLOT_TEMPLATES_MAP: Record<\n ScatterplotLayersTemplate,\n ScatterplotLayer[]\n> = {\n dots: ['dots'],\n curve: ['curve'],\n curve_dots: ['curve', 'dots']\n};\n\nexport const SCATTERPLOT_UMAP_TEMPLATES_MAP: Partial<Record<\n ScatterplotLayersTemplate,\n ScatterplotLayer[]\n>> = {\n dots: ['dots'],\n curve_dots: ['curve', 'dots']\n};\n\nexport const HEATMAP_TEMPLATES_MAP: Record<HeatmapLayerTemplate, HeatmapLayer[]> = {\n heatmap: ['heatmap'],\n heatmapClustered: ['heatmapClustered']\n};\nexport const HISTOGRAM_TEMPLATES_MAP: Record<HistogramLayerTemplate, HistogramLayer[]> = {\n bins: ['bins']\n}\nexport const LAYER_TITLES: Record<Layer, string> = {\n box: 'Boxplot',\n binnedDots: 'Binned Dots',\n jitteredDots: 'Jittered Dots',\n violin: 'Violins',\n bar: 'Bar',\n stackedBar: 'Stacked Bar',\n line: 'Line',\n errorbar: 'Error Bar',\n sina: 'Sina',\n logo: 'Logo Plot',\n dots: 'Scatter Plot',\n curve: 'Curve',\n heatmap: 'Heatmap',\n heatmapClustered: 'Heatmap + Dendro',\n dendro: 'Dendrogram',\n bins: 'Histogram',\n bubble: 'Bubble plot'\n};\n\nexport type DiscreteStatisticsState = {\n overall: {\n data: { testMethod: null | string };\n validity: { testMethod: boolean };\n };\n referenceGroup: {\n data: {\n testMethod: null | string;\n referenceGroup: null | string;\n correctionMethod: string;\n format: 'significance' | 'pValue';\n ns: boolean;\n };\n validity: {\n testMethod: boolean;\n referenceGroup: boolean;\n };\n };\n pairwise: {\n data: {\n testMethod: null | string;\n correctionMethod: string;\n format: 'significance' | 'pValue';\n ns: boolean;\n };\n validity: { testMethod: boolean };\n };\n};\n\nexport type ScatterplotStatisticsState = {\n trend: {\n on: boolean,\n trim: boolean,\n showLegend: boolean\n },\n}\n\nexport type StatisticsState = DiscreteStatisticsState | ScatterplotStatisticsState;\n\nexport function getInitialStatisticsState(chartType: ChartType, initialData?: DeepPartial<StatisticsState>): StatisticsState {\n if (chartType === 'discrete') {\n const initial = initialData as DiscreteStatisticsState;\n return {\n overall: {\n data: { testMethod: initial?.overall?.data?.testMethod ?? null },\n validity: { testMethod: initial?.overall?.validity?.testMethod ?? true }\n },\n referenceGroup: {\n data: {\n testMethod: initial?.referenceGroup?.data?.testMethod ?? null,\n referenceGroup: initial?.referenceGroup?.data?.referenceGroup ?? null,\n correctionMethod: initial?.referenceGroup?.data?.correctionMethod ?? 'Bonferroni',\n format: initial?.referenceGroup?.data?.format ?? 'significance',\n ns: initial?.referenceGroup?.data?.ns ?? false\n },\n validity: {\n testMethod: initial?.referenceGroup?.validity?.testMethod ?? true,\n referenceGroup: initial?.referenceGroup?.validity?.referenceGroup ?? true\n }\n },\n pairwise: {\n data: {\n testMethod: initial?.pairwise?.data?.testMethod ?? null,\n correctionMethod: initial?.pairwise?.data?.correctionMethod ?? 'Bonferroni',\n format: initial?.pairwise?.data?.format ?? 'significance',\n ns: initial?.pairwise?.data?.ns ?? false\n },\n validity: { testMethod: initial?.pairwise?.validity?.testMethod ?? true }\n }\n } as DiscreteStatisticsState;\n }\n const initial = initialData as ScatterplotStatisticsState;\n return {\n trend: {\n on: initial?.trend?.on ?? false,\n trim: initial?.trend?.trim ?? false,\n showLegend: initial?.trend?.showLegend ?? true\n }\n };\n}\n\nexport type NumberRange = { min: number, max: number }\nexport type MappingLink = { type: string, value?: string }; // {type: 'primaryGrouping'} for example\nexport type ColorAes = string | MappingLink;\nexport type DotShapeAes = DotShape | MappingLink;\nexport type DotSizeAes = number | NumberRange;\nexport type LineTypeAes = LineType | MappingLink;\nexport type FixedOrMappedAes = ColorAes | DotShapeAes | LineTypeAes;\n\nexport type ContinuousDataMappingSize = {\n column: string,\n range: NumberRange\n}\n\nexport type ContinuousDataMappingForGraph<T extends string | number> = {columnName: ColumnNameSchema, domain: number[], range: T[], type: 'linear' | 'log'}\n\nexport type ColumnNameSchema = {\n type: 'column'\n value: string,\n label?: string\n valueLabels?: string\n}\n\nexport function isNumberRange(v: number | NumberRange | null | undefined): v is NumberRange {\n return typeof v !== 'undefined' && v !== null && typeof v === 'object' && 'min' in v && 'max' in v;\n}\n\nexport function isMappedAes(\n item: FixedOrMappedAes | null | string | number | boolean | unknown\n): item is MappingLink {\n return typeof item === 'object' && item !== null && 'type' in item;\n}\n\nexport function isContinuousDataMapping(v: ContinuousDataMappingSize | MappingLink | number | string | null | undefined): v is ContinuousDataMappingSize {\n return typeof v !== 'undefined' && v !== null && typeof v === 'object' && 'range' in v;\n}\n\nexport type LayersSettings = {\n //bubble\n bubble: {\n NAValueAs: number | null,\n minRadius: number,\n maxRadius: number,\n normalizationDirection: 'row' | 'column' | null,\n normalizationMethod: 'standardScaling' | 'meanNormalization',\n strokeColor: null | string\n },\n // histogram\n bins: {\n fillColor: ColorAes | null,\n opacity: number\n },\n //dendrogram\n dendro: {\n dotFill: ColorAes,\n dotShape: DotShapeAes,\n dotSize: DotSizeAes,\n lineColor: ColorAes,\n mode: 'normal' | 'useAllNodesAsLeaves',\n leavesMode: 'normal' | 'alignLeavesToLine',\n showTable: boolean,\n showLegend: boolean,\n },\n //heatmap\n heatmap: {\n NAValueAs: number | null,\n normalizationDirection: 'row' | 'column' | null,\n normalizationMethod: 'standardScaling' | 'meanNormalization',\n },\n heatmapClustered: {\n NAValueAs: number | null,\n normalizationDirection: 'row' | 'column' | null,\n normalizationMethod: 'standardScaling' | 'meanNormalization',\n dendrogramX: boolean,\n dendrogramY: boolean,\n disableClusteringX: boolean,\n disableClusteringY: boolean,\n },\n //scatterplot\n dots: {\n dotFill: ColorAes | null,\n dotShape: DotShapeAes | null,\n dotSize: ContinuousDataMappingSize | number | null\n },\n curve: {\n smoothing: boolean,\n lineColor: ColorAes\n },\n //discrete\n box: {\n showOutliers: boolean,\n fillColor: ColorAes | null,\n lineColor: ColorAes,\n dotShape: DotShapeAes,\n lineType: LineTypeAes,\n gapWidth: number,\n opacity: number,\n stat: {\n low: number,\n middle: number,\n upper: number,\n k: number,\n },\n },\n binnedDots: {\n fillColor: ColorAes | null,\n lineColor: ColorAes,\n opacity: number,\n showOutliers: boolean,\n },\n jitteredDots: {\n dotFill: ColorAes | null,\n dotShape: DotShapeAes,\n lineColor: ColorAes,\n opacity: number,\n showOutliers: boolean,\n },\n violin: {\n fillColor: ColorAes | null,\n lineColor: ColorAes,\n lineType: LineTypeAes,\n opacity: number,\n trim: boolean,\n showQuartiles: boolean,\n quartilesLineStyle: LineType,\n medianLineStyle: LineType\n },\n bar: {\n fillColor: ColorAes | null,\n lineColor: ColorAes,\n opacity: number,\n height: 'max' | 'mean' | 'median',\n },\n stackedBar: {\n fillColor: ColorAes | null,\n lineColor: ColorAes,\n opacity: number,\n normalize: boolean\n },\n line: {\n pointsValues: 'mean' | 'median',\n lineColor: ColorAes | null,\n dotShape: DotShapeAes,\n lineType: LineTypeAes,\n dotFill: ColorAes | null,\n opacity: number,\n },\n errorbar: {\n pointsValues: 'mean' | 'median',\n interval: 'sd' | 'se' | '',\n lineColor: ColorAes | null,\n dotShape: DotShapeAes,\n dotFill: ColorAes | null,\n opacity: number,\n },\n sina: {\n dotFill: ColorAes | null,\n dotShape: DotShapeAes,\n opacity: number,\n showOutliers: boolean,\n },\n logo: {\n normalize: boolean,\n opacity: number,\n }\n};\nexport const DEFAULT_LAYERS_SETTINGS: () => LayersSettings = () => ({\n //bubble\n bubble: {\n NAValueAs: 0,\n strokeColor: null,\n minRadius: 3,\n maxRadius: 38,\n normalizationDirection: 'row',\n normalizationMethod: 'standardScaling',\n },\n // histogram\n bins: {\n fillColor: null,\n opacity: 1\n },\n //dendro\n dendro: {\n dotFill: DEFAULT_BLACK,\n dotShape: DEFAULT_DOT_SHAPE,\n dotSize: DEFAULT_DOT_SIZE,\n lineColor: DEFAULT_BLACK,\n mode: 'normal',\n leavesMode: 'normal',\n showTable: false,\n showLegend: true\n },\n //heatmap\n heatmap: {\n NAValueAs: 0,\n normalizationDirection: 'row',\n normalizationMethod: 'standardScaling',\n },\n heatmapClustered: {\n NAValueAs: 0,\n normalizationDirection: 'row',\n normalizationMethod: 'standardScaling',\n dendrogramX: true,\n dendrogramY: true,\n disableClusteringX: false,\n disableClusteringY: false\n },\n //scatterplot\n dots: {\n dotFill: null as ColorAes | null,\n dotShape: null as DotShapeAes | null,\n dotSize: null as ContinuousDataMappingSize | number | null\n },\n curve: { lineColor: DEFAULT_BLACK, smoothing: true },\n //discrete\n box: {\n showOutliers: true,\n fillColor: null as ColorAes | null,\n lineColor: DEFAULT_LINE_COLOR as ColorAes,\n dotShape: DEFAULT_DOT_SHAPE as DotShapeAes,\n lineType: DEFAULT_LINE_TYPE as LineTypeAes,\n gapWidth: 0.2,\n opacity: 1,\n stat: {\n low: 0.25,\n middle: 0.5,\n upper: 0.75,\n k: 1.5\n }\n },\n binnedDots: {\n fillColor: null as ColorAes | null,\n lineColor: DEFAULT_LINE_COLOR as ColorAes,\n opacity: 1,\n showOutliers: true\n },\n jitteredDots: {\n dotFill: null as ColorAes | null,\n dotShape: DEFAULT_DOT_SHAPE as DotShapeAes,\n lineColor: DEFAULT_LINE_COLOR as ColorAes,\n opacity: 1,\n showOutliers: true\n },\n violin: {\n fillColor: null as ColorAes | null,\n lineColor: DEFAULT_LINE_COLOR as ColorAes,\n lineType: DEFAULT_LINE_TYPE as LineTypeAes,\n opacity: 1,\n trim: false,\n showQuartiles: false,\n quartilesLineStyle: 'dashed',\n medianLineStyle: 'solid'\n },\n bar: {\n fillColor: null as ColorAes | null,\n lineColor: DEFAULT_LINE_COLOR as ColorAes,\n opacity: 1,\n height: 'max'\n },\n stackedBar: {\n fillColor: null as ColorAes | null,\n lineColor: DEFAULT_LINE_COLOR as ColorAes,\n opacity: 1,\n normalize: false\n },\n line: {\n pointsValues: 'mean',\n lineColor: null as ColorAes | null,\n dotShape: DEFAULT_DOT_SHAPE as DotShapeAes,\n lineType: DEFAULT_LINE_TYPE as LineTypeAes,\n dotFill: null as ColorAes | null,\n opacity: 1\n },\n errorbar: {\n pointsValues: 'mean',\n interval: 'sd',\n lineColor: null as ColorAes | null,\n dotShape: DEFAULT_DOT_SHAPE as DotShapeAes,\n dotFill: null as ColorAes | null,\n opacity: 1\n },\n sina: {\n dotFill: null as ColorAes | null,\n dotShape: DEFAULT_DOT_SHAPE as DotShapeAes,\n opacity: 1,\n showOutliers: true\n },\n logo: {\n normalize: false,\n opacity: 1\n }\n});\n\nexport function getDefaultLayersSettings() {\n return DEFAULT_LAYERS_SETTINGS();\n}\n\nconst DISCRETE_LAYERS: Layer[] = [\n 'box',\n 'binnedDots',\n 'jitteredDots',\n 'violin',\n 'bar',\n 'stackedBar',\n 'line',\n 'errorbar',\n 'sina',\n 'logo'\n];\nconst SCATTERPLOT_LAYERS: Layer[] = ['dots', 'curve'];\nconst SCATTERPLOT_UMAP_LAYERS: Layer[] = ['dots'];\nconst HEATMAP_LAYERS: Layer[] = ['heatmap', 'heatmapClustered'];\nconst DENDRO_LAYERS: Layer[] = ['dendro'];\nconst HISTOGRAM_LAYERS: Layer[] = ['bins'];\nconst BUBBLE_LAYERS: Layer[] = ['bubble'];\nconst LAYERS_BY_CHART_TYPE: Record<ChartType, Layer[]> = {\n discrete: DISCRETE_LAYERS,\n scatterplot: SCATTERPLOT_LAYERS,\n 'scatterplot-umap': SCATTERPLOT_UMAP_LAYERS,\n heatmap: HEATMAP_LAYERS,\n dendro: DENDRO_LAYERS,\n histogram: HISTOGRAM_LAYERS,\n bubble: BUBBLE_LAYERS\n};\n\nexport function getInitialLayersSettings(\n initialSettings?: DeepPartial<LayersSettings>\n): LayersSettings {\n const defaultSettings = DEFAULT_LAYERS_SETTINGS();\n const layers: Layer[] = Object.keys(defaultSettings) as Layer[];\n return layers.reduce((res, layer) => {\n Object.assign(\n res[layer],\n initialSettings?.[layer] ?? {}\n );\n return res;\n }, defaultSettings);\n}\n\nexport type Sorting = 'asc' | 'desc';\nexport type AxesState = {\n title: { value: string; position: TitlePosition; mode: AxisTitleMode; facetTitleFrame: Frame };\n axisX: {\n labelsPosition: LabelsPosition; // for heatmap - top/bottom/left/right/hidden\n labelsRotation: LabelsRotation | null; // only for discrete X axis - 'center'/'90deg'/'45deg'; null for auto mode before user chose\n axisLabelsAngle: 0 | 45 | 90; // for heatmap\n groupLabelsAngle: 0 | 45 | 90; // for heatmap\n titleMode: AxisTitleMode; // 'auto' - from column or 'custom' - from 'customTitle' field or 'hidden'\n customTitle: string; // user axis title, not default from column\n gridlines: boolean;\n linesBetweenCategories: boolean; // for discrete - position for vertical gridlines\n ticks: boolean;\n scale: Scale; // linear or log\n significantLinesStyle: LineType;\n sorting: Sorting;\n allowNullPrimaryGroups: boolean; // for discrete - allow group with null grouping value\n allowNullSecondaryGroups: boolean;\n };\n axisY: {\n titleMode: AxisTitleMode;\n customTitle: string;\n axisLabelsAngle: 0 | 45 | 90; // for heatmap\n groupLabelsAngle: 0 | 45 | 90; // for heatmap\n gridlines: boolean;\n ticks: boolean;\n scale: Scale;\n significantLinesStyle: LineType;\n sorting: Sorting;\n };\n legend: {};\n other: {\n frame: Frame | HeatmapFrame;\n reverse: boolean;\n facetSharedBy: 'x' | 'y' | 'xy' | 'none';\n facetColumns: number;\n binsCount: number;\n groupingDirection: 'straight' | 'reverse';\n groupingStack: 'vertical' | 'horizontal';\n };\n};\n\nconst DEFAULT_AXES: () => AxesState = () => ({\n title: {\n value: 'Graph 1',\n position: 'center',\n mode: 'auto',\n facetTitleFrame: 'full'\n },\n axisX: {\n labelsPosition: 'bottom',\n labelsRotation: null,\n axisLabelsAngle: 90,\n groupLabelsAngle: 45,\n titleMode: 'auto',\n customTitle: '',\n gridlines: true,\n linesBetweenCategories: true,\n ticks: true,\n scale: 'linear',\n significantLinesStyle: 'dashed',\n sorting: 'asc',\n allowNullPrimaryGroups: false,\n allowNullSecondaryGroups: false\n },\n axisY: {\n titleMode: 'auto',\n customTitle: '',\n axisLabelsAngle: 90,\n groupLabelsAngle: 45,\n gridlines: true,\n ticks: true,\n scale: 'linear',\n significantLinesStyle: 'dashed',\n sorting: 'asc'\n },\n legend: {},\n other: {\n frame: 'full',\n reverse: false,\n facetSharedBy: 'xy',\n facetColumns: 3,\n binsCount: 10,\n groupingDirection: 'straight',\n groupingStack: 'vertical'\n }\n});\n\nfunction isHeatmapFrame(frame: Frame | HeatmapFrame): frame is HeatmapFrame {\n return frame === 'full' || frame === 'none';\n}\n\nexport function getInitialAxesSettings(\n chartType: ChartType,\n initialAxesSettings?: DeepPartial<AxesState>\n): AxesState {\n const defaultAxes = DEFAULT_AXES();\n if (!initialAxesSettings) {\n return defaultAxes;\n }\n\n // TODO: divide into separated settings for chart types\n function getFrame(frame?: Frame | HeatmapFrame): Frame | HeatmapFrame {\n if (!frame) {\n return 'full';\n }\n if (chartType === 'heatmap' && !isHeatmapFrame(frame)) {\n return 'full' as HeatmapFrame;\n }\n if (chartType !== 'heatmap' && isHeatmapFrame(frame)) {\n return frame === 'none' ? 'empty' : (frame as Frame);\n }\n return frame;\n }\n\n return {\n title: {\n ...defaultAxes.title,\n ...initialAxesSettings.title\n },\n axisX: {\n ...defaultAxes.axisX,\n ...initialAxesSettings.axisX\n },\n axisY: {\n ...defaultAxes.axisY,\n ...initialAxesSettings.axisY\n },\n legend: {\n ...defaultAxes.legend,\n ...initialAxesSettings.legend\n },\n other: {\n ...defaultAxes.other,\n ...initialAxesSettings.other,\n frame: getFrame(initialAxesSettings.other?.frame)\n }\n };\n}\n\nexport const LAYER_ICONS: Record<LayersTemplate, Component> = {\n box: BoxplotIcon,\n box_binnedDots: BoxplotAndBinnedIcon,\n box_jitteredDots: BoxplotAndJitterIcon,\n binnedDots: BinnedDotsIcon,\n jitteredDots: JitteredDotsIcon,\n violin: ViolinIcon,\n violin_binnedDots: ViolinAndBinnedIcon,\n violin_jitteredDots: ViolinAndJitterIcon,\n bar: BarIcon,\n bar_line: BarAndLineIcon,\n bar_errorbar: BarAndErrorIcon,\n stackedBar: StackedBarIcon,\n line: LineIcon,\n line_binnedDots: LineAndBinnedIcon,\n line_jitteredDots: LineAndJitterIcon,\n line_errorbar: LineAndErrorbarIcon,\n errorbar: BarAndLineIcon,\n sina: SinaIcon,\n logo: LogoIcon,\n dots: ScatterplotIcon,\n curve: LineIcon,\n curve_dots: LineAndJitterIcon,\n heatmap: HeatmapIcon,\n heatmapClustered: DendroIcon,\n dendro: DendroIcon,\n bins: BarIcon,\n bubble: HeatmapIcon\n};\n\ntype Option = { value: string; text: string };\nexport const STAT_TEST_METHOD: Option[] = [\n { value: 'ttest', text: 'TTest' },\n { value: 'anova', text: 'ANOVA' },\n { value: 'wilcoxon', text: 'Wilcoxon' },\n { value: 'kruskalWallis', text: 'Kruskal-Wallis' }\n];\n\nexport const STAT_CORRECTION_METHOD: Option[] = [\n { value: 'BenjaminiHochberg', text: 'Benjamini-Hochberg' },\n { value: 'BenjaminiYekutieli', text: 'Benjamini-Yekutieli' },\n { value: 'Bonferroni', text: 'Bonferroni' },\n { value: 'Hochberg', text: 'Hochberg' },\n { value: 'Holm', text: 'Holm' },\n { value: 'Hommel', text: 'Hommel' },\n { value: 'none', text: 'None' }\n];\n\nexport const FORMAT_P_VALUE_OPTIONS: Option[] = [\n { value: 'pValue', text: 'p-value' },\n { value: 'significance', text: 'significance' }\n];\n\nexport type AesType = 'fill' | 'stroke' | 'dotShape' | 'lineType' | 'size';\n\nexport const DEFAULT_WIDTH = 600;\nexport const DEFAULT_HEIGHT = 350;\nexport const DEFAULT_WIDTH_SMALL = 400;\nexport const DEFAULT_HEIGHT_SMALL = 250;\n\nexport const MAX_SEARCH_OPTIONS_LIST_LENGTH = 100;\n"],"names":["THRESHOLDS_KEY","LOWER_LIMIT_KEY","UPPER_LIMIT_KEY","SYMMETRIC_RANGE_KEY","PALETTE_KEY","AXIS_NATURE_KEY","SUBSET_FILTER_KEY","getInitialTemplate","restoredTemplate","chartType","DISCRETE_TEMPLATES_MAP","SCATTERPLOT_TEMPLATES_MAP","SCATTERPLOT_UMAP_TEMPLATES_MAP","HEATMAP_TEMPLATES_MAP","HISTOGRAM_TEMPLATES_MAP","LAYER_TITLES","getInitialStatisticsState","initialData","initial","_C","_D","_E","isNumberRange","v","isMappedAes","item","isContinuousDataMapping","DEFAULT_LAYERS_SETTINGS","DEFAULT_BLACK","DEFAULT_DOT_SHAPE","DEFAULT_DOT_SIZE","DEFAULT_LINE_COLOR","DEFAULT_LINE_TYPE","getInitialLayersSettings","initialSettings","defaultSettings","res","layer","DEFAULT_AXES","isHeatmapFrame","frame","getInitialAxesSettings","initialAxesSettings","defaultAxes","getFrame","_a","LAYER_ICONS","BoxplotIcon","BoxplotAndBinnedIcon","BoxplotAndJitterIcon","BinnedDotsIcon","JitteredDotsIcon","ViolinIcon","ViolinAndBinnedIcon","ViolinAndJitterIcon","BarIcon","BarAndLineIcon","BarAndErrorIcon","StackedBarIcon","LineIcon","LineAndBinnedIcon","LineAndJitterIcon","LineAndErrorbarIcon","SinaIcon","LogoIcon","ScatterplotIcon","HeatmapIcon","DendroIcon","STAT_TEST_METHOD","STAT_CORRECTION_METHOD","FORMAT_P_VALUE_OPTIONS","DEFAULT_WIDTH","DEFAULT_HEIGHT","DEFAULT_WIDTH_SMALL","DEFAULT_HEIGHT_SMALL","MAX_SEARCH_OPTIONS_LIST_LENGTH"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAqDO,MAAMA,KAAiB,4BACjBC,KAAkB,iCAClBC,KAAkB,iCAClBC,KAAsB,qCACtBC,KAAc,yBACdC,KAAkB,sBAGlBC,KAAoB;AAE1B,SAASC,GACdC,GACAC,GACA;AACA,SAAIA,MAAc,aACTD,KACPE,GAAuBF,CAA0C,IAC7DA,IACA,QAEFC,MAAc,iBAAiBA,MAAc,qBACxCD,KACPG,GAA0BH,CAA6C,IACnEA,IACA,SAEFC,MAAc,WACT,WAEFD,KAAoB;AAC7B;AAEO,MAAME,KAGT;AAAA,EACF,KAAK,CAAC,KAAK;AAAA,EACX,gBAAgB,CAAC,OAAO,YAAY;AAAA,EACpC,kBAAkB,CAAC,OAAO,cAAc;AAAA,EACxC,QAAQ,CAAC,QAAQ;AAAA,EACjB,mBAAmB,CAAC,UAAU,YAAY;AAAA,EAC1C,qBAAqB,CAAC,UAAU,cAAc;AAAA,EAC9C,YAAY,CAAC,YAAY;AAAA,EACzB,cAAc,CAAC,cAAc;AAAA,EAC7B,KAAK,CAAC,KAAK;AAAA,EACX,UAAU,CAAC,OAAO,MAAM;AAAA,EACxB,cAAc,CAAC,OAAO,UAAU;AAAA,EAChC,YAAY,CAAC,YAAY;AAAA,EACzB,MAAM,CAAC,MAAM;AAAA,EACb,mBAAmB,CAAC,QAAQ,cAAc;AAAA,EAC1C,iBAAiB,CAAC,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Form/HeatmapAxesSettingsForm.vue"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"HeatmapAxesSettingsForm.vue.d.ts","sourceRoot":"","sources":["../../../../src/GraphMaker/forms/AxesSettingsForm/HeatmapAxesSettingsForm.vue"],"names":[],"mappings":";AAiqBA,wBAMG"}
|
|
@@ -1,187 +1,209 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { PlBtnGroup as
|
|
3
|
-
import { useStore as
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
1
|
+
import { defineComponent as Y, computed as f, createElementBlock as a, openBlock as u, createElementVNode as s, createVNode as i, withCtx as b, createCommentVNode as m, unref as t } from "vue";
|
|
2
|
+
import { PlBtnGroup as d, PlTextField as T, Slider as L } from "@platforma-sdk/ui-vue";
|
|
3
|
+
import { useStore as _ } from "../../store.js";
|
|
4
|
+
import A from "../../components/CollapsableBlock.vue.js";
|
|
5
|
+
import y from "../../icons/Right.vue.js";
|
|
6
|
+
import S from "../../icons/Down.vue.js";
|
|
7
|
+
import r from "../../components/BtnIconGroup.vue.js";
|
|
8
|
+
import C from "../../icons/AlignLeft.vue.js";
|
|
9
9
|
import N from "../../icons/AlignCenter.vue.js";
|
|
10
10
|
import F from "../../icons/AlignRight.vue.js";
|
|
11
11
|
import I from "../../icons/FrameFull.vue.js";
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
const
|
|
12
|
+
import P from "../../icons/FrameEmpty.vue.js";
|
|
13
|
+
import E from "../../icons/Rotation0.vue.js";
|
|
14
|
+
import R from "../../icons/Rotation45.vue.js";
|
|
15
|
+
import M from "../../icons/Rotation90.vue.js";
|
|
16
|
+
const B = { class: "axes-settings-list" }, G = { class: "axes-settings-options-row block" }, H = {
|
|
17
17
|
key: 0,
|
|
18
18
|
class: "axes-settings-input"
|
|
19
|
-
},
|
|
19
|
+
}, D = { class: "axes-settings-options-row" }, $ = { class: "axes-settings-options-row" }, h = {
|
|
20
|
+
key: 0,
|
|
21
|
+
class: "axes-settings-options-row"
|
|
22
|
+
}, z = { class: "axes-settings-options-row block" }, j = { key: 1 }, q = { class: "axes-settings-options-row block" }, J = { class: "axes-settings-options-row" }, K = {
|
|
23
|
+
key: 0,
|
|
24
|
+
class: "axes-settings-options-row"
|
|
25
|
+
}, Q = { class: "axes-settings-options-row block" }, W = { key: 1 }, Z = { class: "axes-settings-options-row block" }, ee = { class: "other" }, te = { class: "axes-settings-options-row" }, oe = { class: "axes-settings-options-row" }, le = { class: "axes-settings-options-row block" }, Ae = /* @__PURE__ */ Y({
|
|
20
26
|
__name: "HeatmapAxesSettingsForm",
|
|
21
|
-
setup(
|
|
22
|
-
const p =
|
|
27
|
+
setup(se) {
|
|
28
|
+
const p = _(), o = p.value.reactive.axesSettings, g = {
|
|
23
29
|
height: 40,
|
|
24
30
|
horizontalPadding: 12,
|
|
25
31
|
defaultState: "open"
|
|
26
|
-
},
|
|
27
|
-
{ value: "left", icon:
|
|
32
|
+
}, k = [
|
|
33
|
+
{ value: "left", icon: C },
|
|
28
34
|
{ value: "center", icon: N },
|
|
29
35
|
{ value: "right", icon: F }
|
|
30
|
-
],
|
|
31
|
-
{ value: 0, icon:
|
|
32
|
-
{ value: 45, icon:
|
|
33
|
-
{ value: 90, icon:
|
|
34
|
-
],
|
|
36
|
+
], x = [
|
|
37
|
+
{ value: 0, icon: E },
|
|
38
|
+
{ value: 45, icon: R },
|
|
39
|
+
{ value: 90, icon: M }
|
|
40
|
+
], V = [
|
|
35
41
|
{ value: "auto", text: "Auto" },
|
|
36
42
|
{ value: "custom", text: "Custom" },
|
|
37
43
|
{ value: "hidden", text: "Hide" }
|
|
38
|
-
],
|
|
39
|
-
{ value: "none", icon:
|
|
44
|
+
], w = [
|
|
45
|
+
{ value: "none", icon: P },
|
|
40
46
|
{ value: "full", icon: I }
|
|
41
|
-
],
|
|
47
|
+
], O = [
|
|
42
48
|
{ text: "X", value: "x" },
|
|
43
49
|
{ text: "Y", value: "y" },
|
|
44
50
|
{ text: "XY", value: "xy" },
|
|
45
51
|
{ text: "None", value: "none" }
|
|
46
|
-
],
|
|
52
|
+
], c = [
|
|
47
53
|
{ text: "ascending", value: "asc" },
|
|
48
54
|
{ text: "descending", value: "desc" }
|
|
49
|
-
],
|
|
50
|
-
return (
|
|
55
|
+
], v = f(() => p.value.reactive.layersSettings.heatmapClustered), U = f(() => O.filter((n) => p.value.reactive.template !== "heatmapClustered" ? !0 : v.value.dendrogramX && v.value.dendrogramY ? n.value !== "x" && n.value !== "xy" && n.value !== "y" : v.value.dendrogramX ? n.value !== "x" && n.value !== "xy" : v.value.dendrogramY ? n.value !== "y" && n.value !== "xy" : !0)), X = f(() => p.value.reactive.optionsState.components);
|
|
56
|
+
return (n, e) => (u(), a("div", {
|
|
51
57
|
class: "axes-form",
|
|
52
|
-
onClick:
|
|
58
|
+
onClick: e[16] || (e[16] = (l) => l.stopPropagation())
|
|
53
59
|
}, [
|
|
54
|
-
|
|
55
|
-
s("div",
|
|
56
|
-
i(
|
|
60
|
+
e[23] || (e[23] = s("h3", { class: "axes-title" }, " Axes ", -1)),
|
|
61
|
+
s("div", B, [
|
|
62
|
+
i(A, {
|
|
57
63
|
title: "Title",
|
|
58
|
-
settings:
|
|
59
|
-
icon:
|
|
60
|
-
"icon-open":
|
|
64
|
+
settings: g,
|
|
65
|
+
icon: y,
|
|
66
|
+
"icon-open": S
|
|
61
67
|
}, {
|
|
62
|
-
default:
|
|
63
|
-
s("div",
|
|
64
|
-
i(
|
|
68
|
+
default: b(() => [
|
|
69
|
+
s("div", G, [
|
|
70
|
+
i(t(d), {
|
|
65
71
|
label: "Title",
|
|
66
|
-
options:
|
|
67
|
-
modelValue:
|
|
68
|
-
"onUpdate:modelValue":
|
|
72
|
+
options: V,
|
|
73
|
+
modelValue: t(o).title.mode,
|
|
74
|
+
"onUpdate:modelValue": e[0] || (e[0] = (l) => t(o).title.mode = l)
|
|
69
75
|
}, null, 8, ["modelValue"])
|
|
70
76
|
]),
|
|
71
|
-
|
|
72
|
-
i(
|
|
77
|
+
t(o).title.mode === "custom" ? (u(), a("div", H, [
|
|
78
|
+
i(t(T), {
|
|
73
79
|
label: "Chart title",
|
|
74
80
|
placeholder: "Chart title",
|
|
75
|
-
modelValue:
|
|
76
|
-
"onUpdate:modelValue":
|
|
81
|
+
modelValue: t(o).title.value,
|
|
82
|
+
"onUpdate:modelValue": e[1] || (e[1] = (l) => t(o).title.value = l)
|
|
77
83
|
}, null, 8, ["modelValue"])
|
|
78
|
-
])) :
|
|
79
|
-
s("div",
|
|
80
|
-
|
|
81
|
-
i(
|
|
82
|
-
options:
|
|
83
|
-
modelValue:
|
|
84
|
-
"onUpdate:modelValue":
|
|
84
|
+
])) : m("", !0),
|
|
85
|
+
s("div", D, [
|
|
86
|
+
e[17] || (e[17] = s("span", null, "Alignment", -1)),
|
|
87
|
+
i(r, {
|
|
88
|
+
options: k,
|
|
89
|
+
modelValue: t(o).title.position,
|
|
90
|
+
"onUpdate:modelValue": e[2] || (e[2] = (l) => t(o).title.position = l)
|
|
85
91
|
}, null, 8, ["modelValue"])
|
|
86
92
|
])
|
|
87
93
|
]),
|
|
88
94
|
_: 1
|
|
89
95
|
}),
|
|
90
|
-
i(
|
|
96
|
+
i(A, {
|
|
91
97
|
title: "X-axis",
|
|
92
|
-
settings:
|
|
93
|
-
icon:
|
|
94
|
-
"icon-open":
|
|
98
|
+
settings: g,
|
|
99
|
+
icon: y,
|
|
100
|
+
"icon-open": S
|
|
95
101
|
}, {
|
|
96
|
-
default:
|
|
97
|
-
s("div",
|
|
98
|
-
|
|
99
|
-
i(
|
|
100
|
-
options:
|
|
101
|
-
modelValue:
|
|
102
|
-
"onUpdate:modelValue":
|
|
102
|
+
default: b(() => [
|
|
103
|
+
s("div", $, [
|
|
104
|
+
e[18] || (e[18] = s("span", null, "Labels rotation", -1)),
|
|
105
|
+
i(r, {
|
|
106
|
+
options: x,
|
|
107
|
+
modelValue: t(o).axisX.axisLabelsAngle,
|
|
108
|
+
"onUpdate:modelValue": e[3] || (e[3] = (l) => t(o).axisX.axisLabelsAngle = l)
|
|
103
109
|
}, null, 8, ["modelValue"])
|
|
104
110
|
]),
|
|
105
|
-
|
|
106
|
-
|
|
111
|
+
X.value.xGroupBy.selectorStates.length ? (u(), a("div", h, [
|
|
112
|
+
e[19] || (e[19] = s("span", null, "Group labels rotation", -1)),
|
|
113
|
+
i(r, {
|
|
114
|
+
options: x,
|
|
115
|
+
modelValue: t(o).axisX.groupLabelsAngle,
|
|
116
|
+
"onUpdate:modelValue": e[4] || (e[4] = (l) => t(o).axisX.groupLabelsAngle = l)
|
|
117
|
+
}, null, 8, ["modelValue"])
|
|
118
|
+
])) : m("", !0),
|
|
119
|
+
s("div", z, [
|
|
120
|
+
i(t(d), {
|
|
107
121
|
label: "Title",
|
|
108
|
-
options:
|
|
109
|
-
modelValue:
|
|
110
|
-
"onUpdate:modelValue":
|
|
122
|
+
options: V,
|
|
123
|
+
modelValue: t(o).axisX.titleMode,
|
|
124
|
+
"onUpdate:modelValue": e[5] || (e[5] = (l) => t(o).axisX.titleMode = l)
|
|
111
125
|
}, null, 8, ["modelValue"])
|
|
112
126
|
]),
|
|
113
|
-
|
|
114
|
-
i(
|
|
127
|
+
t(o).axisX.titleMode === "custom" ? (u(), a("div", j, [
|
|
128
|
+
i(t(T), {
|
|
115
129
|
label: "Text",
|
|
116
130
|
placeholder: "Type",
|
|
117
|
-
modelValue:
|
|
118
|
-
"onUpdate:modelValue":
|
|
131
|
+
modelValue: t(o).axisX.customTitle,
|
|
132
|
+
"onUpdate:modelValue": e[6] || (e[6] = (l) => t(o).axisX.customTitle = l)
|
|
119
133
|
}, null, 8, ["modelValue"])
|
|
120
|
-
])) :
|
|
121
|
-
s("div",
|
|
122
|
-
i(
|
|
134
|
+
])) : m("", !0),
|
|
135
|
+
s("div", q, [
|
|
136
|
+
i(t(d), {
|
|
123
137
|
label: "Sorting",
|
|
124
|
-
options:
|
|
125
|
-
modelValue:
|
|
126
|
-
"onUpdate:modelValue":
|
|
138
|
+
options: c,
|
|
139
|
+
modelValue: t(o).axisX.sorting,
|
|
140
|
+
"onUpdate:modelValue": e[7] || (e[7] = (l) => t(o).axisX.sorting = l)
|
|
127
141
|
}, null, 8, ["modelValue"])
|
|
128
142
|
])
|
|
129
143
|
]),
|
|
130
144
|
_: 1
|
|
131
145
|
}),
|
|
132
|
-
i(
|
|
146
|
+
i(A, {
|
|
133
147
|
title: "Y-axis",
|
|
134
|
-
settings:
|
|
135
|
-
icon:
|
|
136
|
-
"icon-open":
|
|
148
|
+
settings: g,
|
|
149
|
+
icon: y,
|
|
150
|
+
"icon-open": S
|
|
137
151
|
}, {
|
|
138
|
-
default:
|
|
139
|
-
s("div",
|
|
140
|
-
|
|
141
|
-
i(
|
|
142
|
-
options:
|
|
143
|
-
modelValue:
|
|
144
|
-
"onUpdate:modelValue":
|
|
152
|
+
default: b(() => [
|
|
153
|
+
s("div", J, [
|
|
154
|
+
e[20] || (e[20] = s("span", null, "Labels rotation", -1)),
|
|
155
|
+
i(r, {
|
|
156
|
+
options: x,
|
|
157
|
+
modelValue: t(o).axisY.axisLabelsAngle,
|
|
158
|
+
"onUpdate:modelValue": e[8] || (e[8] = (l) => t(o).axisY.axisLabelsAngle = l)
|
|
145
159
|
}, null, 8, ["modelValue"])
|
|
146
160
|
]),
|
|
147
|
-
|
|
148
|
-
|
|
161
|
+
X.value.yGroupBy.selectorStates.length ? (u(), a("div", K, [
|
|
162
|
+
e[21] || (e[21] = s("span", null, "Group labels rotation", -1)),
|
|
163
|
+
i(r, {
|
|
164
|
+
options: x,
|
|
165
|
+
modelValue: t(o).axisY.groupLabelsAngle,
|
|
166
|
+
"onUpdate:modelValue": e[9] || (e[9] = (l) => t(o).axisY.groupLabelsAngle = l)
|
|
167
|
+
}, null, 8, ["modelValue"])
|
|
168
|
+
])) : m("", !0),
|
|
169
|
+
s("div", Q, [
|
|
170
|
+
i(t(d), {
|
|
149
171
|
label: "Title",
|
|
150
|
-
options:
|
|
151
|
-
modelValue:
|
|
152
|
-
"onUpdate:modelValue":
|
|
172
|
+
options: V,
|
|
173
|
+
modelValue: t(o).axisY.titleMode,
|
|
174
|
+
"onUpdate:modelValue": e[10] || (e[10] = (l) => t(o).axisY.titleMode = l)
|
|
153
175
|
}, null, 8, ["modelValue"])
|
|
154
176
|
]),
|
|
155
|
-
|
|
156
|
-
i(
|
|
177
|
+
t(o).axisY.titleMode === "custom" ? (u(), a("div", W, [
|
|
178
|
+
i(t(T), {
|
|
157
179
|
label: "Text",
|
|
158
180
|
placeholder: "Type",
|
|
159
|
-
modelValue:
|
|
160
|
-
"onUpdate:modelValue":
|
|
181
|
+
modelValue: t(o).axisY.customTitle,
|
|
182
|
+
"onUpdate:modelValue": e[11] || (e[11] = (l) => t(o).axisY.customTitle = l)
|
|
161
183
|
}, null, 8, ["modelValue"])
|
|
162
|
-
])) :
|
|
163
|
-
s("div",
|
|
164
|
-
i(
|
|
184
|
+
])) : m("", !0),
|
|
185
|
+
s("div", Z, [
|
|
186
|
+
i(t(d), {
|
|
165
187
|
label: "Sorting",
|
|
166
|
-
options:
|
|
167
|
-
modelValue:
|
|
168
|
-
"onUpdate:modelValue":
|
|
188
|
+
options: c,
|
|
189
|
+
modelValue: t(o).axisY.sorting,
|
|
190
|
+
"onUpdate:modelValue": e[12] || (e[12] = (l) => t(o).axisY.sorting = l)
|
|
169
191
|
}, null, 8, ["modelValue"])
|
|
170
192
|
])
|
|
171
193
|
]),
|
|
172
194
|
_: 1
|
|
173
195
|
}),
|
|
174
|
-
s("div",
|
|
175
|
-
s("div",
|
|
176
|
-
|
|
177
|
-
i(
|
|
178
|
-
options:
|
|
179
|
-
modelValue:
|
|
180
|
-
"onUpdate:modelValue":
|
|
196
|
+
s("div", ee, [
|
|
197
|
+
s("div", te, [
|
|
198
|
+
e[22] || (e[22] = s("span", null, "Frame", -1)),
|
|
199
|
+
i(r, {
|
|
200
|
+
options: w,
|
|
201
|
+
modelValue: t(o).other.frame,
|
|
202
|
+
"onUpdate:modelValue": e[13] || (e[13] = (l) => t(o).other.frame = l)
|
|
181
203
|
}, null, 8, ["modelValue"])
|
|
182
204
|
]),
|
|
183
|
-
s("div",
|
|
184
|
-
i(
|
|
205
|
+
s("div", oe, [
|
|
206
|
+
i(t(L), {
|
|
185
207
|
style: { width: "100%" },
|
|
186
208
|
label: "Facet column count",
|
|
187
209
|
min: 1,
|
|
@@ -189,16 +211,16 @@ const M = { class: "axes-settings-list" }, B = { class: "axes-settings-options-r
|
|
|
189
211
|
step: 1,
|
|
190
212
|
breakpoints: !0,
|
|
191
213
|
mode: "input",
|
|
192
|
-
modelValue:
|
|
193
|
-
"onUpdate:modelValue":
|
|
214
|
+
modelValue: t(o).other.facetColumns,
|
|
215
|
+
"onUpdate:modelValue": e[14] || (e[14] = (l) => t(o).other.facetColumns = l)
|
|
194
216
|
}, null, 8, ["modelValue"])
|
|
195
217
|
]),
|
|
196
|
-
s("div",
|
|
197
|
-
i(
|
|
218
|
+
s("div", le, [
|
|
219
|
+
i(t(d), {
|
|
198
220
|
label: "Facet shared by",
|
|
199
|
-
options:
|
|
200
|
-
modelValue:
|
|
201
|
-
"onUpdate:modelValue":
|
|
221
|
+
options: U.value,
|
|
222
|
+
modelValue: t(o).other.facetSharedBy,
|
|
223
|
+
"onUpdate:modelValue": e[15] || (e[15] = (l) => t(o).other.facetSharedBy = l)
|
|
202
224
|
}, null, 8, ["options", "modelValue"])
|
|
203
225
|
])
|
|
204
226
|
])
|
|
@@ -207,6 +229,6 @@ const M = { class: "axes-settings-list" }, B = { class: "axes-settings-options-r
|
|
|
207
229
|
}
|
|
208
230
|
});
|
|
209
231
|
export {
|
|
210
|
-
|
|
232
|
+
Ae as default
|
|
211
233
|
};
|
|
212
234
|
//# sourceMappingURL=HeatmapAxesSettingsForm.vue.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HeatmapAxesSettingsForm.vue.js","sources":["../../../../src/GraphMaker/forms/AxesSettingsForm/HeatmapAxesSettingsForm.vue"],"sourcesContent":["<script lang=\"ts\" setup>\nimport { Slider, PlToggleSwitch } from '@platforma-sdk/ui-vue';\nimport { useStore } from '../../store';\nimport CollapsableBlock from '../../components/CollapsableBlock.vue';\nimport Right from '../../icons/Right.vue';\nimport Down from '../../icons/Down.vue';\nimport { PlTextField, PlBtnGroup } from '@platforma-sdk/ui-vue';\nimport BtnIconGroup from '../../components/BtnIconGroup.vue';\nimport AlignLeft from '../../icons/AlignLeft.vue';\nimport AlignCenter from '../../icons/AlignCenter.vue';\nimport AlignRight from '../../icons/AlignRight.vue';\nimport FrameFull from '../../icons/FrameFull.vue';\nimport FrameEmpty from '../../icons/FrameEmpty.vue';\nimport Rotation0 from '../../icons/Rotation0.vue';\nimport Rotation45 from '../../icons/Rotation45.vue';\nimport Rotation90 from '../../icons/Rotation90.vue';\nimport FrameLeft from '../../icons/FrameLeft.vue';\nimport FrameBottom from '../../icons/FrameBottom.vue';\nimport FrameLeftBottom from '../../icons/FrameLeftBottom.vue';\nimport { computed } from 'vue';\n\nconst store = useStore();\nconst settings = store.value.reactive.axesSettings;\nconst blockSettings = {\n height: 40,\n horizontalPadding: 12,\n defaultState: 'open' as 'open' | 'close'\n};\nconst OPTIONS_TITLE_ALIGN = [\n {value: 'left', icon: AlignLeft},\n {value: 'center', icon: AlignCenter},\n {value: 'right', icon: AlignRight},\n]\n// const OPTIONS_FACET_FRAME = [\n// {value: 'empty', icon: FrameEmpty},\n// {value: 'full', icon: FrameFull},\n// ]\nconst OPTIONS_HEATMAP_ROTATION = [\n { value: 0, icon: Rotation0 },\n { value: 45, icon: Rotation45 },\n { value: 90, icon: Rotation90 }\n];\nconst OPTIONS_AXIS_LABEL_MODE = [\n { value: 'auto', text: 'Auto' },\n { value: 'custom', text: 'Custom' },\n { value: 'hidden', text: 'Hide' }\n];\nconst OPTIONS_CHART_FRAME = [\n { value: 'none', icon: FrameEmpty },\n { value: 'full', icon: FrameFull }\n];\nconst OPTIONS_FACET_SHARED = [\n { text: 'X', value: 'x' },\n { text: 'Y', value: 'y' },\n { text: 'XY', value: 'xy' },\n { text: 'None', value: 'none' }\n];\nconst OPTIONS_SORTING = [\n { text: 'ascending', value: 'asc' },\n { text: 'descending', value: 'desc' },\n];\n\nconst layer = computed(() => store.value.reactive.layersSettings.heatmapClustered);\nconst optionsFacetShared = computed(() => OPTIONS_FACET_SHARED.filter((option) => {\n if (store.value.reactive.template !== 'heatmapClustered') {\n return true;\n }\n if (layer.value.dendrogramX && layer.value.dendrogramY) {\n return option.value !== 'x' && option.value !== 'xy' && option.value !== 'y';\n }\n if (layer.value.dendrogramX) {\n return option.value !== 'x' && option.value !== 'xy';\n }\n if (layer.value.dendrogramY) {\n return option.value !== 'y' && option.value !== 'xy';\n }\n return true;\n}));\n</script>\n\n<template>\n <div class=\"axes-form\" @click=\"(e) => e.stopPropagation()\">\n <h3 class=\"axes-title\">\n Axes\n </h3>\n <div class=\"axes-settings-list\">\n <!-- Chart title -->\n <collapsable-block title=\"Title\" :settings=\"blockSettings\" :icon=\"Right\" :icon-open=\"Down\">\n <div class=\"axes-settings-options-row block\">\n <pl-btn-group\n label=\"Title\"\n :options=\"OPTIONS_AXIS_LABEL_MODE\"\n v-model=\"settings.title.mode\"\n />\n </div>\n <div class=\"axes-settings-input\" v-if=\"settings.title.mode === 'custom'\">\n <pl-text-field\n label=\"Chart title\"\n placeholder=\"Chart title\"\n v-model=\"settings.title.value\"\n />\n </div>\n <div class=\"axes-settings-options-row\">\n <span>Alignment</span>\n <btn-icon-group :options=\"OPTIONS_TITLE_ALIGN\" v-model=\"settings.title.position\"/>\n </div>\n </collapsable-block>\n <!-- X axis settings-->\n <collapsable-block title=\"X-axis\" :settings=\"blockSettings\" :icon=\"Right\" :icon-open=\"Down\">\n <div class=\"axes-settings-options-row\">\n <span>Labels rotation</span>\n <btn-icon-group :options=\"OPTIONS_HEATMAP_ROTATION\" v-model=\"settings.axisX.axisLabelsAngle\" />\n </div>\n <div class=\"axes-settings-options-row block\">\n <pl-btn-group\n label=\"Title\"\n :options=\"OPTIONS_AXIS_LABEL_MODE\"\n v-model=\"settings.axisX.titleMode\"\n />\n </div>\n <div v-if=\"settings.axisX.titleMode === 'custom'\">\n <pl-text-field\n label=\"Text\"\n placeholder=\"Type\"\n v-model=\"settings.axisX.customTitle\"\n />\n </div>\n <div class=\"axes-settings-options-row block\">\n <pl-btn-group\n label=\"Sorting\"\n :options=\"OPTIONS_SORTING\"\n v-model=\"settings.axisX.sorting\"\n />\n </div>\n </collapsable-block>\n <!-- Y axis settings-->\n <collapsable-block title=\"Y-axis\" :settings=\"blockSettings\" :icon=\"Right\" :icon-open=\"Down\">\n <div class=\"axes-settings-options-row\">\n <span>Labels rotation</span>\n <btn-icon-group :options=\"OPTIONS_HEATMAP_ROTATION\" v-model=\"settings.axisY.axisLabelsAngle\" />\n </div>\n <div class=\"axes-settings-options-row block\">\n <pl-btn-group\n label=\"Title\"\n :options=\"OPTIONS_AXIS_LABEL_MODE\"\n v-model=\"settings.axisY.titleMode\"\n />\n </div>\n <div v-if=\"settings.axisY.titleMode === 'custom'\">\n <pl-text-field\n label=\"Text\"\n placeholder=\"Type\"\n v-model=\"settings.axisY.customTitle\"\n />\n </div>\n <div class=\"axes-settings-options-row block\">\n <pl-btn-group\n label=\"Sorting\"\n :options=\"OPTIONS_SORTING\"\n v-model=\"settings.axisY.sorting\"\n />\n </div>\n </collapsable-block>\n <!-- Facet settings-->\n <div class=\"other\">\n <div class=\"axes-settings-options-row\">\n <span>Frame</span>\n <btn-icon-group :options=\"OPTIONS_CHART_FRAME\" v-model=\"settings.other.frame\" />\n </div>\n <div class=\"axes-settings-options-row\">\n <Slider\n :style=\"{width: '100%'}\"\n label=\"Facet column count\"\n :min=\"1\"\n :max=\"6\"\n :step=\"1\"\n :breakpoints=\"true\"\n mode=\"input\"\n v-model=\"settings.other.facetColumns\"\n />\n </div>\n <div class=\"axes-settings-options-row block\">\n <pl-btn-group\n label=\"Facet shared by\"\n :options=\"optionsFacetShared\"\n v-model=\"settings.other.facetSharedBy\"\n />\n </div>\n </div>\n </div>\n </div>\n</template>\n"],"names":["store","useStore","settings","blockSettings","OPTIONS_TITLE_ALIGN","AlignLeft","AlignCenter","AlignRight","OPTIONS_HEATMAP_ROTATION","Rotation0","Rotation45","Rotation90","OPTIONS_AXIS_LABEL_MODE","OPTIONS_CHART_FRAME","FrameEmpty","FrameFull","OPTIONS_FACET_SHARED","OPTIONS_SORTING","layer","computed","optionsFacetShared","option"],"mappings":"
|
|
1
|
+
{"version":3,"file":"HeatmapAxesSettingsForm.vue.js","sources":["../../../../src/GraphMaker/forms/AxesSettingsForm/HeatmapAxesSettingsForm.vue"],"sourcesContent":["<script lang=\"ts\" setup>\nimport { Slider, PlToggleSwitch } from '@platforma-sdk/ui-vue';\nimport { useStore } from '../../store';\nimport CollapsableBlock from '../../components/CollapsableBlock.vue';\nimport Right from '../../icons/Right.vue';\nimport Down from '../../icons/Down.vue';\nimport { PlTextField, PlBtnGroup } from '@platforma-sdk/ui-vue';\nimport BtnIconGroup from '../../components/BtnIconGroup.vue';\nimport AlignLeft from '../../icons/AlignLeft.vue';\nimport AlignCenter from '../../icons/AlignCenter.vue';\nimport AlignRight from '../../icons/AlignRight.vue';\nimport FrameFull from '../../icons/FrameFull.vue';\nimport FrameEmpty from '../../icons/FrameEmpty.vue';\nimport Rotation0 from '../../icons/Rotation0.vue';\nimport Rotation45 from '../../icons/Rotation45.vue';\nimport Rotation90 from '../../icons/Rotation90.vue';\nimport FrameLeft from '../../icons/FrameLeft.vue';\nimport FrameBottom from '../../icons/FrameBottom.vue';\nimport FrameLeftBottom from '../../icons/FrameLeftBottom.vue';\nimport { computed } from 'vue';\nimport { HeatmapUIState } from '@milaboratories/pf-plots';\n\nconst store = useStore();\nconst settings = store.value.reactive.axesSettings;\nconst blockSettings = {\n height: 40,\n horizontalPadding: 12,\n defaultState: 'open' as 'open' | 'close'\n};\nconst OPTIONS_TITLE_ALIGN = [\n {value: 'left', icon: AlignLeft},\n {value: 'center', icon: AlignCenter},\n {value: 'right', icon: AlignRight},\n]\n// const OPTIONS_FACET_FRAME = [\n// {value: 'empty', icon: FrameEmpty},\n// {value: 'full', icon: FrameFull},\n// ]\nconst OPTIONS_HEATMAP_ROTATION = [\n { value: 0, icon: Rotation0 },\n { value: 45, icon: Rotation45 },\n { value: 90, icon: Rotation90 }\n];\nconst OPTIONS_AXIS_LABEL_MODE = [\n { value: 'auto', text: 'Auto' },\n { value: 'custom', text: 'Custom' },\n { value: 'hidden', text: 'Hide' }\n];\nconst OPTIONS_CHART_FRAME = [\n { value: 'none', icon: FrameEmpty },\n { value: 'full', icon: FrameFull }\n];\nconst OPTIONS_FACET_SHARED = [\n { text: 'X', value: 'x' },\n { text: 'Y', value: 'y' },\n { text: 'XY', value: 'xy' },\n { text: 'None', value: 'none' }\n];\nconst OPTIONS_SORTING = [\n { text: 'ascending', value: 'asc' },\n { text: 'descending', value: 'desc' },\n];\n\nconst layer = computed(() => store.value.reactive.layersSettings.heatmapClustered);\nconst optionsFacetShared = computed(() => OPTIONS_FACET_SHARED.filter((option) => {\n if (store.value.reactive.template !== 'heatmapClustered') {\n return true;\n }\n if (layer.value.dendrogramX && layer.value.dendrogramY) {\n return option.value !== 'x' && option.value !== 'xy' && option.value !== 'y';\n }\n if (layer.value.dendrogramX) {\n return option.value !== 'x' && option.value !== 'xy';\n }\n if (layer.value.dendrogramY) {\n return option.value !== 'y' && option.value !== 'xy';\n }\n return true;\n}));\n\nconst options = computed(() => (store.value.reactive.optionsState.components as HeatmapUIState['components']));\n</script>\n\n<template>\n <div class=\"axes-form\" @click=\"(e) => e.stopPropagation()\">\n <h3 class=\"axes-title\">\n Axes\n </h3>\n <div class=\"axes-settings-list\">\n <!-- Chart title -->\n <collapsable-block title=\"Title\" :settings=\"blockSettings\" :icon=\"Right\" :icon-open=\"Down\">\n <div class=\"axes-settings-options-row block\">\n <pl-btn-group\n label=\"Title\"\n :options=\"OPTIONS_AXIS_LABEL_MODE\"\n v-model=\"settings.title.mode\"\n />\n </div>\n <div class=\"axes-settings-input\" v-if=\"settings.title.mode === 'custom'\">\n <pl-text-field\n label=\"Chart title\"\n placeholder=\"Chart title\"\n v-model=\"settings.title.value\"\n />\n </div>\n <div class=\"axes-settings-options-row\">\n <span>Alignment</span>\n <btn-icon-group :options=\"OPTIONS_TITLE_ALIGN\" v-model=\"settings.title.position\"/>\n </div>\n </collapsable-block>\n <!-- X axis settings-->\n <collapsable-block title=\"X-axis\" :settings=\"blockSettings\" :icon=\"Right\" :icon-open=\"Down\">\n <div class=\"axes-settings-options-row\">\n <span>Labels rotation</span>\n <btn-icon-group :options=\"OPTIONS_HEATMAP_ROTATION\" v-model=\"settings.axisX.axisLabelsAngle\" />\n </div>\n <div class=\"axes-settings-options-row\" v-if=\"options.xGroupBy.selectorStates.length\">\n <span>Group labels rotation</span>\n <btn-icon-group :options=\"OPTIONS_HEATMAP_ROTATION\" v-model=\"settings.axisX.groupLabelsAngle\" />\n </div>\n <div class=\"axes-settings-options-row block\">\n <pl-btn-group\n label=\"Title\"\n :options=\"OPTIONS_AXIS_LABEL_MODE\"\n v-model=\"settings.axisX.titleMode\"\n />\n </div>\n <div v-if=\"settings.axisX.titleMode === 'custom'\">\n <pl-text-field\n label=\"Text\"\n placeholder=\"Type\"\n v-model=\"settings.axisX.customTitle\"\n />\n </div>\n <div class=\"axes-settings-options-row block\">\n <pl-btn-group\n label=\"Sorting\"\n :options=\"OPTIONS_SORTING\"\n v-model=\"settings.axisX.sorting\"\n />\n </div>\n </collapsable-block>\n <!-- Y axis settings-->\n <collapsable-block title=\"Y-axis\" :settings=\"blockSettings\" :icon=\"Right\" :icon-open=\"Down\">\n <div class=\"axes-settings-options-row\">\n <span>Labels rotation</span>\n <btn-icon-group :options=\"OPTIONS_HEATMAP_ROTATION\" v-model=\"settings.axisY.axisLabelsAngle\" />\n </div>\n <div class=\"axes-settings-options-row\" v-if=\"options.yGroupBy.selectorStates.length\">\n <span>Group labels rotation</span>\n <btn-icon-group :options=\"OPTIONS_HEATMAP_ROTATION\" v-model=\"settings.axisY.groupLabelsAngle\" />\n </div>\n <div class=\"axes-settings-options-row block\">\n <pl-btn-group\n label=\"Title\"\n :options=\"OPTIONS_AXIS_LABEL_MODE\"\n v-model=\"settings.axisY.titleMode\"\n />\n </div>\n <div v-if=\"settings.axisY.titleMode === 'custom'\">\n <pl-text-field\n label=\"Text\"\n placeholder=\"Type\"\n v-model=\"settings.axisY.customTitle\"\n />\n </div>\n <div class=\"axes-settings-options-row block\">\n <pl-btn-group\n label=\"Sorting\"\n :options=\"OPTIONS_SORTING\"\n v-model=\"settings.axisY.sorting\"\n />\n </div>\n </collapsable-block>\n <!-- Facet settings-->\n <div class=\"other\">\n <div class=\"axes-settings-options-row\">\n <span>Frame</span>\n <btn-icon-group :options=\"OPTIONS_CHART_FRAME\" v-model=\"settings.other.frame\" />\n </div>\n <div class=\"axes-settings-options-row\">\n <Slider\n :style=\"{width: '100%'}\"\n label=\"Facet column count\"\n :min=\"1\"\n :max=\"6\"\n :step=\"1\"\n :breakpoints=\"true\"\n mode=\"input\"\n v-model=\"settings.other.facetColumns\"\n />\n </div>\n <div class=\"axes-settings-options-row block\">\n <pl-btn-group\n label=\"Facet shared by\"\n :options=\"optionsFacetShared\"\n v-model=\"settings.other.facetSharedBy\"\n />\n </div>\n </div>\n </div>\n </div>\n</template>\n"],"names":["store","useStore","settings","blockSettings","OPTIONS_TITLE_ALIGN","AlignLeft","AlignCenter","AlignRight","OPTIONS_HEATMAP_ROTATION","Rotation0","Rotation45","Rotation90","OPTIONS_AXIS_LABEL_MODE","OPTIONS_CHART_FRAME","FrameEmpty","FrameFull","OPTIONS_FACET_SHARED","OPTIONS_SORTING","layer","computed","optionsFacetShared","option","options"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAsBA,UAAMA,IAAQC,EAAA,GACRC,IAA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UAAU,QAAQA,EAAO,UAAU,MAEvEH,EAAM,MAAM,cACPG,EAAO,UAAU,OAAOA,EAAO,UAAU,OAE9CH,EAAM,MAAM,cACPG,EAAO,UAAU,OAAOA,EAAO,UAAU,OAE3C,EACR,CAAC,GAEIC,IAAUH,EAAS,MAAOnB,EAAM,MAAM,SAAS,aAAa,UAA2C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
declare function __VLS_template(): {
|
|
2
|
+
attrs: Partial<{}>;
|
|
3
|
+
slots: {
|
|
4
|
+
default?(_: {}): any;
|
|
5
|
+
logSlot?(_: {}): any;
|
|
6
|
+
};
|
|
7
|
+
refs: {};
|
|
8
|
+
rootEl: HTMLDivElement;
|
|
9
|
+
};
|
|
10
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
11
|
+
declare const __VLS_component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
12
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
13
|
+
export default _default;
|
|
14
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
15
|
+
new (): {
|
|
16
|
+
$slots: S;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
//# sourceMappingURL=LogForm.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LogForm.vue.d.ts","sourceRoot":"","sources":["../../../src/GraphMaker/forms/LogForm.vue"],"names":[],"mappings":"AAuBA,iBAAS,cAAc;WAoCT,OAAO,IAA6B;;yBAXrB,GAAG;yBACH,GAAG;;;;EAe/B;AAOD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,0RAMnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAEpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|