@milaboratories/graph-maker 1.1.156 → 1.1.158
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/GraphMaker/components/Chart.vue.d.ts.map +1 -1
- package/dist/GraphMaker/components/Chart.vue.js +20 -16
- package/dist/GraphMaker/components/Chart.vue.js.map +1 -1
- package/dist/GraphMaker/components/DragAndDrop/DndDoubleChip.vue.d.ts.map +1 -1
- package/dist/GraphMaker/components/DragAndDrop/DndDoubleChip.vue.js +24 -23
- package/dist/GraphMaker/components/DragAndDrop/DndDoubleChip.vue.js.map +1 -1
- package/dist/GraphMaker/constantsCommon.d.ts +1 -0
- package/dist/GraphMaker/constantsCommon.d.ts.map +1 -1
- package/dist/GraphMaker/constantsCommon.js +17 -16
- 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 +104 -93
- package/dist/GraphMaker/forms/AxesSettingsForm/HeatmapAxesSettingsForm.vue.js.map +1 -1
- package/dist/GraphMaker/index.vue.js +33 -33
- package/dist/GraphMaker/index.vue.js.map +1 -1
- package/dist/GraphMaker/utils/createChartSettingsForRender/composeHeatmapSettings.d.ts +1 -0
- package/dist/GraphMaker/utils/createChartSettingsForRender/composeHeatmapSettings.d.ts.map +1 -1
- package/dist/GraphMaker/utils/createChartSettingsForRender/composeHeatmapSettings.js +11 -11
- package/dist/GraphMaker/utils/createChartSettingsForRender/composeHeatmapSettings.js.map +1 -1
- package/dist/node_modules/@milaboratories/miplots4/dist/heatmap/ChartRenderer.js +136 -135
- package/dist/node_modules/@milaboratories/miplots4/dist/heatmap/ChartRenderer.js.map +1 -1
- package/dist/node_modules/@milaboratories/miplots4/dist/heatmap/HeatmapSettingsImpl.js +2 -2
- package/dist/node_modules/@milaboratories/miplots4/dist/heatmap/HeatmapSettingsImpl.js.map +1 -1
- package/dist/node_modules/@milaboratories/miplots4/dist/heatmap/components/Annotations/Annotation.js +115 -107
- package/dist/node_modules/@milaboratories/miplots4/dist/heatmap/components/Annotations/Annotation.js.map +1 -1
- package/dist/node_modules/@milaboratories/miplots4/dist/heatmap/components/Annotations/AnnotationCellsCanvas.js +99 -0
- package/dist/node_modules/@milaboratories/miplots4/dist/heatmap/components/Annotations/AnnotationCellsCanvas.js.map +1 -0
- package/dist/node_modules/@milaboratories/miplots4/dist/heatmap/components/Annotations/AnnotationCellsSvg.js +57 -0
- package/dist/node_modules/@milaboratories/miplots4/dist/heatmap/components/Annotations/AnnotationCellsSvg.js.map +1 -0
- package/dist/node_modules/@milaboratories/miplots4/dist/heatmap/components/Annotations/index.js +43 -43
- package/dist/node_modules/@milaboratories/miplots4/dist/heatmap/components/Annotations/index.js.map +1 -1
- package/dist/node_modules/@milaboratories/miplots4/dist/heatmap/components/CanvasCells.js +85 -0
- package/dist/node_modules/@milaboratories/miplots4/dist/heatmap/components/CanvasCells.js.map +1 -0
- package/dist/node_modules/@milaboratories/miplots4/dist/heatmap/components/Captions/AxisCaptions.js +5 -5
- package/dist/node_modules/@milaboratories/miplots4/dist/heatmap/components/Captions/GroupCaptions.js +16 -16
- package/dist/node_modules/@milaboratories/miplots4/dist/heatmap/components/Chart.js +191 -197
- 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 +29 -27
- package/dist/node_modules/@milaboratories/miplots4/dist/heatmap/components/ChartsGroup.js.map +1 -1
- package/dist/node_modules/@milaboratories/miplots4/dist/heatmap/components/SvgCells.js +38 -0
- package/dist/node_modules/@milaboratories/miplots4/dist/heatmap/components/SvgCells.js.map +1 -0
- package/dist/node_modules/@milaboratories/miplots4/dist/heatmap/components/tooltipUtils.js +44 -0
- package/dist/node_modules/@milaboratories/miplots4/dist/heatmap/components/tooltipUtils.js.map +1 -0
- package/dist/node_modules/@milaboratories/miplots4/dist/heatmap/constants.js +16 -15
- package/dist/node_modules/@milaboratories/miplots4/dist/heatmap/constants.js.map +1 -1
- package/dist/node_modules/@milaboratories/miplots4/dist/heatmap/getCells.js +63 -66
- package/dist/node_modules/@milaboratories/miplots4/dist/heatmap/getCells.js.map +1 -1
- package/dist/node_modules/@milaboratories/miplots4/dist/heatmap/index.js +64 -62
- package/dist/node_modules/@milaboratories/miplots4/dist/heatmap/index.js.map +1 -1
- package/dist/node_modules/@milaboratories/miplots4/dist/heatmap/utils/calculateChartSideElementSizes.js +9 -9
- package/dist/node_modules/@milaboratories/miplots4/dist/histogram/components/ChartsGroup.js +14 -14
- package/dist/node_modules/@milaboratories/miplots4/dist/types/heatmap.js +5 -4
- package/dist/node_modules/@milaboratories/miplots4/dist/types/heatmap.js.map +1 -1
- package/dist/node_modules/@milaboratories/pf-plots/dist/constants.js +10 -8
- package/dist/node_modules/@milaboratories/pf-plots/dist/constants.js.map +1 -1
- package/dist/node_modules/@milaboratories/pf-plots/dist/controllers/ComponentController.js +21 -21
- package/dist/node_modules/@milaboratories/pf-plots/dist/controllers/controllersByChartType/bubble.js +19 -19
- package/dist/node_modules/@milaboratories/pf-plots/dist/controllers/controllersByChartType/heatmap.js +8 -8
- package/dist/node_modules/@milaboratories/pf-plots/dist/controllers/controllersByChartType/scatterplot-umap.js +9 -9
- package/dist/node_modules/@milaboratories/pf-plots/dist/controllers/controllersByChartType/scatterplot.js +7 -7
- package/dist/node_modules/@milaboratories/pf-plots/dist/node_modules/@milaboratories/pl-model-common/dist/drivers/blob.js +2 -2
- package/dist/node_modules/@milaboratories/pf-plots/dist/node_modules/@milaboratories/pl-model-common/dist/drivers/blob.js.map +1 -1
- package/dist/node_modules/@milaboratories/pf-plots/dist/node_modules/@milaboratories/pl-model-common/dist/drivers/pframe/spec/spec.js +59 -57
- package/dist/node_modules/@milaboratories/pf-plots/dist/node_modules/@milaboratories/pl-model-common/dist/drivers/pframe/spec/spec.js.map +1 -1
- package/dist/node_modules/@milaboratories/pf-plots/dist/node_modules/@platforma-sdk/model/dist/components/PlDataTable.js.map +1 -1
- package/dist/node_modules/@milaboratories/pf-plots/dist/node_modules/@platforma-sdk/model/dist/render/util/label.js +13 -13
- package/dist/node_modules/@milaboratories/pf-plots/dist/pframe/ColumnsProvider.js +137 -133
- package/dist/node_modules/@milaboratories/pf-plots/dist/pframe/ColumnsProvider.js.map +1 -1
- package/dist/node_modules/@milaboratories/pf-plots/dist/utils.js +74 -74
- package/dist/node_modules/@milaboratories/pf-plots/dist/utils.js.map +1 -1
- package/package.json +3 -3
|
@@ -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 StackedAreaIcon from './icons/StackedAreaIcon.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 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 stackedArea: ['stackedArea'],\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 stackedArea: 'Stacked Bar + Stream Area',\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 stackedArea: {\n fillColor: ColorAes | null,\n lineColor: ColorAes,\n barsOpacity: number,\n areaOpacity: number,\n normalize: boolean,\n showBars: 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 stackedArea: {\n fillColor: null as ColorAes | null,\n lineColor: DEFAULT_LINE_COLOR as ColorAes,\n barsOpacity: 1,\n areaOpacity: 0.7,\n normalize: false,\n showBars: true\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 order: {\n source: string,\n options: {value: string, label: string}[]\n } | null;\n cellSize: number | null;\n };\n axisY: {\n labelsRotation: LabelsRotation | null; // only for discrete X axis - 'center'/'90deg'/'45deg'; null for auto mode before user chose\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 order: {\n source: string,\n options: {value: string, label: string}[]\n } | null;\n cellSize: number | null;\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 order: null,\n cellSize: null,\n },\n axisY: {\n labelsRotation: null,\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 order: null,\n cellSize: null,\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 stackedArea: StackedAreaIcon,\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","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","StackedAreaIcon","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":";;;;;;;;;;;;;;;;;;;;;;;;AAsDO,MAAMA,KAAiB,4BACjBC,KAAkB,iCAClBC,KAAkB,iCAClBC,KAAsB,qCACtBC,KAAc,yBAGdC,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,K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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 StackedAreaIcon from './icons/StackedAreaIcon.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 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 stackedArea: ['stackedArea'],\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 stackedArea: 'Stacked Bar + Stream Area',\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 stackedArea: {\n fillColor: ColorAes | null,\n lineColor: ColorAes,\n barsOpacity: number,\n areaOpacity: number,\n normalize: boolean,\n showBars: 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 stackedArea: {\n fillColor: null as ColorAes | null,\n lineColor: DEFAULT_LINE_COLOR as ColorAes,\n barsOpacity: 1,\n areaOpacity: 0.7,\n normalize: false,\n showBars: true\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 order: {\n source: string,\n options: {value: string, label: string}[]\n } | null;\n cellSize: number | null;\n };\n axisY: {\n labelsRotation: LabelsRotation | null; // only for discrete X axis - 'center'/'90deg'/'45deg'; null for auto mode before user chose\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 order: {\n source: string,\n options: {value: string, label: string}[]\n } | null;\n cellSize: number | null;\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 canvasRenderMode: boolean;\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 order: null,\n cellSize: null,\n },\n axisY: {\n labelsRotation: null,\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 order: null,\n cellSize: null,\n },\n legend: {},\n other: {\n frame: 'full',\n reverse: false,\n canvasRenderMode: 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 stackedArea: StackedAreaIcon,\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","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","StackedAreaIcon","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":";;;;;;;;;;;;;;;;;;;;;;;;AAsDO,MAAMA,KAAiB,4BACjBC,KAAkB,iCAClBC,KAAkB,iCAClBC,KAAsB,qCACtBC,KAAc,yBAGdC,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,cAA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AAsB,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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HeatmapAxesSettingsForm.vue.d.ts","sourceRoot":"","sources":["../../../../src/GraphMaker/forms/AxesSettingsForm/HeatmapAxesSettingsForm.vue"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"HeatmapAxesSettingsForm.vue.d.ts","sourceRoot":"","sources":["../../../../src/GraphMaker/forms/AxesSettingsForm/HeatmapAxesSettingsForm.vue"],"names":[],"mappings":";AAu2BA,wBAMG"}
|
|
@@ -1,72 +1,72 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { PlBtnGroup as d, PlTextField as A, Slider as w } from "@platforma-sdk/ui-vue";
|
|
3
|
-
import { useStore as
|
|
1
|
+
import { defineComponent as R, computed as r, createElementBlock as n, openBlock as u, createElementVNode as a, createVNode as s, withCtx as b, createCommentVNode as m, unref as l, createTextVNode as F } from "vue";
|
|
2
|
+
import { PlBtnGroup as d, PlTextField as A, Slider as w, PlCheckbox as B } from "@platforma-sdk/ui-vue";
|
|
3
|
+
import { useStore as z } from "../../store.js";
|
|
4
4
|
import L from "../../components/CollapsableBlock.vue.js";
|
|
5
5
|
import C from "../../icons/Right.vue.js";
|
|
6
6
|
import U from "../../icons/Down.vue.js";
|
|
7
7
|
import p from "../../components/BtnIconGroup.vue.js";
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
const
|
|
8
|
+
import G from "../../icons/AlignLeft.vue.js";
|
|
9
|
+
import H from "../../icons/AlignCenter.vue.js";
|
|
10
|
+
import h from "../../icons/AlignRight.vue.js";
|
|
11
|
+
import D from "../../icons/FrameFull.vue.js";
|
|
12
|
+
import Z from "../../icons/FrameEmpty.vue.js";
|
|
13
|
+
import W from "../../icons/Rotation0.vue.js";
|
|
14
|
+
import $ from "../../icons/Rotation45.vue.js";
|
|
15
|
+
import j from "../../icons/Rotation90.vue.js";
|
|
16
|
+
const q = { class: "axes-settings-list" }, J = { class: "axes-settings-options-row block" }, K = {
|
|
17
17
|
key: 0,
|
|
18
18
|
class: "axes-settings-input"
|
|
19
|
-
},
|
|
19
|
+
}, Q = { class: "axes-settings-options-row" }, ee = { class: "axes-settings-options-row" }, le = {
|
|
20
20
|
key: 0,
|
|
21
21
|
class: "axes-settings-options-row"
|
|
22
|
-
},
|
|
22
|
+
}, te = { class: "axes-settings-options-row block" }, oe = { key: 1 }, se = { class: "axes-settings-options-row block" }, ae = { class: "axes-settings-options-row block" }, ie = {
|
|
23
23
|
key: 2,
|
|
24
24
|
class: "axes-settings-options-row"
|
|
25
|
-
},
|
|
25
|
+
}, ne = { class: "axes-settings-options-row" }, ue = {
|
|
26
26
|
key: 0,
|
|
27
27
|
class: "axes-settings-options-row"
|
|
28
|
-
},
|
|
28
|
+
}, de = { class: "axes-settings-options-row block" }, re = { key: 1 }, me = { class: "axes-settings-options-row block" }, pe = { class: "axes-settings-options-row block" }, xe = {
|
|
29
29
|
key: 2,
|
|
30
30
|
class: "axes-settings-options-row"
|
|
31
|
-
},
|
|
31
|
+
}, ve = { class: "other" }, ge = { class: "axes-settings-options-row" }, Ve = { class: "axes-settings-options-row" }, fe = { class: "axes-settings-options-row" }, be = { class: "axes-settings-options-row block" }, Y = 4, O = 50, _ = 20, Ne = /* @__PURE__ */ R({
|
|
32
32
|
__name: "HeatmapAxesSettingsForm",
|
|
33
|
-
setup(
|
|
34
|
-
const x =
|
|
33
|
+
setup(Se) {
|
|
34
|
+
const x = z(), o = x.value.reactive.axesSettings, S = {
|
|
35
35
|
height: 40,
|
|
36
36
|
horizontalPadding: 12,
|
|
37
37
|
defaultState: "open"
|
|
38
38
|
}, I = [
|
|
39
|
-
{ value: "left", icon:
|
|
40
|
-
{ value: "center", icon:
|
|
41
|
-
{ value: "right", icon:
|
|
39
|
+
{ value: "left", icon: G },
|
|
40
|
+
{ value: "center", icon: H },
|
|
41
|
+
{ value: "right", icon: h }
|
|
42
42
|
], v = [
|
|
43
|
-
{ value: 0, icon:
|
|
44
|
-
{ value: 45, icon:
|
|
45
|
-
{ value: 90, icon:
|
|
46
|
-
],
|
|
43
|
+
{ value: 0, icon: W },
|
|
44
|
+
{ value: 45, icon: $ },
|
|
45
|
+
{ value: 90, icon: j }
|
|
46
|
+
], T = [
|
|
47
47
|
{ value: "auto", text: "Auto" },
|
|
48
48
|
{ value: "custom", text: "Custom" },
|
|
49
49
|
{ value: "hidden", text: "Hide" }
|
|
50
50
|
], N = [
|
|
51
|
-
{ value: "none", icon:
|
|
52
|
-
{ value: "full", icon:
|
|
51
|
+
{ value: "none", icon: Z },
|
|
52
|
+
{ value: "full", icon: D }
|
|
53
53
|
], M = [
|
|
54
54
|
{ text: "X", value: "x" },
|
|
55
55
|
{ text: "Y", value: "y" },
|
|
56
56
|
{ text: "XY", value: "xy" },
|
|
57
57
|
{ text: "None", value: "none" }
|
|
58
|
-
],
|
|
58
|
+
], k = [
|
|
59
59
|
{ text: "ascending", value: "asc" },
|
|
60
60
|
{ text: "descending", value: "desc" }
|
|
61
|
-
],
|
|
61
|
+
], X = [
|
|
62
62
|
{ text: "auto", value: "auto" },
|
|
63
63
|
{ text: "custom", value: "custom" }
|
|
64
|
-
], g =
|
|
64
|
+
], g = r(() => x.value.reactive.layersSettings.heatmapClustered), P = r(() => M.filter((i) => x.value.reactive.template !== "heatmapClustered" ? !0 : g.value.dendrogramX && g.value.dendrogramY ? i.value !== "x" && i.value !== "xy" && i.value !== "y" : g.value.dendrogramX ? i.value !== "x" && i.value !== "xy" : g.value.dendrogramY ? i.value !== "y" && i.value !== "xy" : !0)), E = r(() => x.value.reactive.optionsState.components), c = r(() => o.axisX.cellSize === null ? "auto" : "custom"), V = r({
|
|
65
65
|
get: () => o.axisX.cellSize,
|
|
66
66
|
set: (i) => {
|
|
67
67
|
o.axisX.cellSize = i;
|
|
68
68
|
}
|
|
69
|
-
}),
|
|
69
|
+
}), y = r(() => o.axisY.cellSize === null ? "auto" : "custom"), f = r({
|
|
70
70
|
get: () => o.axisY.cellSize,
|
|
71
71
|
set: (i) => {
|
|
72
72
|
o.axisY.cellSize = i;
|
|
@@ -74,35 +74,35 @@ const $ = { class: "axes-settings-list" }, j = { class: "axes-settings-options-r
|
|
|
74
74
|
});
|
|
75
75
|
return (i, e) => (u(), n("div", {
|
|
76
76
|
class: "axes-form",
|
|
77
|
-
onClick: e[
|
|
77
|
+
onClick: e[23] || (e[23] = (t) => t.stopPropagation())
|
|
78
78
|
}, [
|
|
79
|
-
e[
|
|
80
|
-
a("div",
|
|
79
|
+
e[31] || (e[31] = a("h3", { class: "axes-title" }, " Axes ", -1)),
|
|
80
|
+
a("div", q, [
|
|
81
81
|
s(L, {
|
|
82
82
|
title: "Title",
|
|
83
|
-
settings:
|
|
83
|
+
settings: S,
|
|
84
84
|
icon: C,
|
|
85
85
|
"icon-open": U
|
|
86
86
|
}, {
|
|
87
|
-
default:
|
|
88
|
-
a("div",
|
|
87
|
+
default: b(() => [
|
|
88
|
+
a("div", J, [
|
|
89
89
|
s(l(d), {
|
|
90
90
|
label: "Title",
|
|
91
|
-
options:
|
|
91
|
+
options: T,
|
|
92
92
|
modelValue: l(o).title.mode,
|
|
93
93
|
"onUpdate:modelValue": e[0] || (e[0] = (t) => l(o).title.mode = t)
|
|
94
94
|
}, null, 8, ["modelValue"])
|
|
95
95
|
]),
|
|
96
|
-
l(o).title.mode === "custom" ? (u(), n("div",
|
|
96
|
+
l(o).title.mode === "custom" ? (u(), n("div", K, [
|
|
97
97
|
s(l(A), {
|
|
98
98
|
label: "Chart title",
|
|
99
99
|
placeholder: "Chart title",
|
|
100
100
|
modelValue: l(o).title.value,
|
|
101
101
|
"onUpdate:modelValue": e[1] || (e[1] = (t) => l(o).title.value = t)
|
|
102
102
|
}, null, 8, ["modelValue"])
|
|
103
|
-
])) :
|
|
104
|
-
a("div",
|
|
105
|
-
e[
|
|
103
|
+
])) : m("", !0),
|
|
104
|
+
a("div", Q, [
|
|
105
|
+
e[24] || (e[24] = a("span", null, "Alignment", -1)),
|
|
106
106
|
s(p, {
|
|
107
107
|
options: I,
|
|
108
108
|
modelValue: l(o).title.position,
|
|
@@ -114,162 +114,173 @@ const $ = { class: "axes-settings-list" }, j = { class: "axes-settings-options-r
|
|
|
114
114
|
}),
|
|
115
115
|
s(L, {
|
|
116
116
|
title: "X-axis",
|
|
117
|
-
settings:
|
|
117
|
+
settings: S,
|
|
118
118
|
icon: C,
|
|
119
119
|
"icon-open": U
|
|
120
120
|
}, {
|
|
121
|
-
default:
|
|
122
|
-
a("div",
|
|
123
|
-
e[
|
|
121
|
+
default: b(() => [
|
|
122
|
+
a("div", ee, [
|
|
123
|
+
e[25] || (e[25] = a("span", null, "Labels rotation", -1)),
|
|
124
124
|
s(p, {
|
|
125
125
|
options: v,
|
|
126
126
|
modelValue: l(o).axisX.axisLabelsAngle,
|
|
127
127
|
"onUpdate:modelValue": e[3] || (e[3] = (t) => l(o).axisX.axisLabelsAngle = t)
|
|
128
128
|
}, null, 8, ["modelValue"])
|
|
129
129
|
]),
|
|
130
|
-
E.value.xGroupBy.selectorStates.length ? (u(), n("div",
|
|
131
|
-
e[
|
|
130
|
+
E.value.xGroupBy.selectorStates.length ? (u(), n("div", le, [
|
|
131
|
+
e[26] || (e[26] = a("span", null, "Group labels rotation", -1)),
|
|
132
132
|
s(p, {
|
|
133
133
|
options: v,
|
|
134
134
|
modelValue: l(o).axisX.groupLabelsAngle,
|
|
135
135
|
"onUpdate:modelValue": e[4] || (e[4] = (t) => l(o).axisX.groupLabelsAngle = t)
|
|
136
136
|
}, null, 8, ["modelValue"])
|
|
137
|
-
])) :
|
|
138
|
-
a("div",
|
|
137
|
+
])) : m("", !0),
|
|
138
|
+
a("div", te, [
|
|
139
139
|
s(l(d), {
|
|
140
140
|
label: "Title",
|
|
141
|
-
options:
|
|
141
|
+
options: T,
|
|
142
142
|
modelValue: l(o).axisX.titleMode,
|
|
143
143
|
"onUpdate:modelValue": e[5] || (e[5] = (t) => l(o).axisX.titleMode = t)
|
|
144
144
|
}, null, 8, ["modelValue"])
|
|
145
145
|
]),
|
|
146
|
-
l(o).axisX.titleMode === "custom" ? (u(), n("div",
|
|
146
|
+
l(o).axisX.titleMode === "custom" ? (u(), n("div", oe, [
|
|
147
147
|
s(l(A), {
|
|
148
148
|
label: "Text",
|
|
149
149
|
placeholder: "Type",
|
|
150
150
|
modelValue: l(o).axisX.customTitle,
|
|
151
151
|
"onUpdate:modelValue": e[6] || (e[6] = (t) => l(o).axisX.customTitle = t)
|
|
152
152
|
}, null, 8, ["modelValue"])
|
|
153
|
-
])) :
|
|
154
|
-
a("div",
|
|
153
|
+
])) : m("", !0),
|
|
154
|
+
a("div", se, [
|
|
155
155
|
s(l(d), {
|
|
156
156
|
label: "Sorting",
|
|
157
|
-
options:
|
|
157
|
+
options: k,
|
|
158
158
|
modelValue: l(o).axisX.sorting,
|
|
159
159
|
"onUpdate:modelValue": e[7] || (e[7] = (t) => l(o).axisX.sorting = t)
|
|
160
160
|
}, null, 8, ["modelValue"])
|
|
161
161
|
]),
|
|
162
|
-
a("div",
|
|
162
|
+
a("div", ae, [
|
|
163
163
|
s(l(d), {
|
|
164
164
|
label: "Cell width mode",
|
|
165
|
-
options:
|
|
165
|
+
options: X,
|
|
166
166
|
modelValue: c.value,
|
|
167
167
|
"onUpdate:modelValue": [
|
|
168
168
|
e[8] || (e[8] = (t) => c.value = t),
|
|
169
169
|
e[9] || (e[9] = (t) => {
|
|
170
|
-
V.value = t === "auto" ? null :
|
|
170
|
+
V.value = t === "auto" ? null : _;
|
|
171
171
|
})
|
|
172
172
|
]
|
|
173
173
|
}, null, 8, ["modelValue"])
|
|
174
174
|
]),
|
|
175
|
-
c.value === "custom" && V.value !== null ? (u(), n("div",
|
|
175
|
+
c.value === "custom" && V.value !== null ? (u(), n("div", ie, [
|
|
176
176
|
s(l(w), {
|
|
177
177
|
label: "Cell width",
|
|
178
178
|
min: Y,
|
|
179
|
-
max:
|
|
179
|
+
max: O,
|
|
180
180
|
modelValue: V.value,
|
|
181
181
|
"onUpdate:modelValue": e[10] || (e[10] = (t) => V.value = t),
|
|
182
182
|
measure: "px",
|
|
183
183
|
style: { width: "100%" }
|
|
184
184
|
}, null, 8, ["modelValue"])
|
|
185
|
-
])) :
|
|
185
|
+
])) : m("", !0)
|
|
186
186
|
]),
|
|
187
187
|
_: 1
|
|
188
188
|
}),
|
|
189
189
|
s(L, {
|
|
190
190
|
title: "Y-axis",
|
|
191
|
-
settings:
|
|
191
|
+
settings: S,
|
|
192
192
|
icon: C,
|
|
193
193
|
"icon-open": U
|
|
194
194
|
}, {
|
|
195
|
-
default:
|
|
196
|
-
a("div",
|
|
197
|
-
e[
|
|
195
|
+
default: b(() => [
|
|
196
|
+
a("div", ne, [
|
|
197
|
+
e[27] || (e[27] = a("span", null, "Labels rotation", -1)),
|
|
198
198
|
s(p, {
|
|
199
199
|
options: v,
|
|
200
200
|
modelValue: l(o).axisY.axisLabelsAngle,
|
|
201
201
|
"onUpdate:modelValue": e[11] || (e[11] = (t) => l(o).axisY.axisLabelsAngle = t)
|
|
202
202
|
}, null, 8, ["modelValue"])
|
|
203
203
|
]),
|
|
204
|
-
E.value.yGroupBy.selectorStates.length ? (u(), n("div",
|
|
205
|
-
e[
|
|
204
|
+
E.value.yGroupBy.selectorStates.length ? (u(), n("div", ue, [
|
|
205
|
+
e[28] || (e[28] = a("span", null, "Group labels rotation", -1)),
|
|
206
206
|
s(p, {
|
|
207
207
|
options: v,
|
|
208
208
|
modelValue: l(o).axisY.groupLabelsAngle,
|
|
209
209
|
"onUpdate:modelValue": e[12] || (e[12] = (t) => l(o).axisY.groupLabelsAngle = t)
|
|
210
210
|
}, null, 8, ["modelValue"])
|
|
211
|
-
])) :
|
|
212
|
-
a("div",
|
|
211
|
+
])) : m("", !0),
|
|
212
|
+
a("div", de, [
|
|
213
213
|
s(l(d), {
|
|
214
214
|
label: "Title",
|
|
215
|
-
options:
|
|
215
|
+
options: T,
|
|
216
216
|
modelValue: l(o).axisY.titleMode,
|
|
217
217
|
"onUpdate:modelValue": e[13] || (e[13] = (t) => l(o).axisY.titleMode = t)
|
|
218
218
|
}, null, 8, ["modelValue"])
|
|
219
219
|
]),
|
|
220
|
-
l(o).axisY.titleMode === "custom" ? (u(), n("div",
|
|
220
|
+
l(o).axisY.titleMode === "custom" ? (u(), n("div", re, [
|
|
221
221
|
s(l(A), {
|
|
222
222
|
label: "Text",
|
|
223
223
|
placeholder: "Type",
|
|
224
224
|
modelValue: l(o).axisY.customTitle,
|
|
225
225
|
"onUpdate:modelValue": e[14] || (e[14] = (t) => l(o).axisY.customTitle = t)
|
|
226
226
|
}, null, 8, ["modelValue"])
|
|
227
|
-
])) :
|
|
228
|
-
a("div",
|
|
227
|
+
])) : m("", !0),
|
|
228
|
+
a("div", me, [
|
|
229
229
|
s(l(d), {
|
|
230
230
|
label: "Sorting",
|
|
231
|
-
options:
|
|
231
|
+
options: k,
|
|
232
232
|
modelValue: l(o).axisY.sorting,
|
|
233
233
|
"onUpdate:modelValue": e[15] || (e[15] = (t) => l(o).axisY.sorting = t)
|
|
234
234
|
}, null, 8, ["modelValue"])
|
|
235
235
|
]),
|
|
236
|
-
a("div",
|
|
236
|
+
a("div", pe, [
|
|
237
237
|
s(l(d), {
|
|
238
238
|
label: "Cell height mode",
|
|
239
|
-
options:
|
|
240
|
-
modelValue:
|
|
239
|
+
options: X,
|
|
240
|
+
modelValue: y.value,
|
|
241
241
|
"onUpdate:modelValue": [
|
|
242
|
-
e[16] || (e[16] = (t) =>
|
|
242
|
+
e[16] || (e[16] = (t) => y.value = t),
|
|
243
243
|
e[17] || (e[17] = (t) => {
|
|
244
|
-
f.value = t === "auto" ? null :
|
|
244
|
+
f.value = t === "auto" ? null : _;
|
|
245
245
|
})
|
|
246
246
|
]
|
|
247
247
|
}, null, 8, ["modelValue"])
|
|
248
248
|
]),
|
|
249
|
-
|
|
249
|
+
y.value === "custom" && f.value !== null ? (u(), n("div", xe, [
|
|
250
250
|
s(l(w), {
|
|
251
251
|
label: "Cell height",
|
|
252
252
|
min: Y,
|
|
253
|
-
max:
|
|
253
|
+
max: O,
|
|
254
254
|
modelValue: f.value,
|
|
255
255
|
"onUpdate:modelValue": e[18] || (e[18] = (t) => f.value = t),
|
|
256
256
|
measure: "px",
|
|
257
257
|
style: { width: "100%" }
|
|
258
258
|
}, null, 8, ["modelValue"])
|
|
259
|
-
])) :
|
|
259
|
+
])) : m("", !0)
|
|
260
260
|
]),
|
|
261
261
|
_: 1
|
|
262
262
|
}),
|
|
263
|
-
a("div",
|
|
264
|
-
a("div",
|
|
265
|
-
|
|
263
|
+
a("div", ve, [
|
|
264
|
+
a("div", ge, [
|
|
265
|
+
s(l(B), {
|
|
266
|
+
modelValue: l(o).other.canvasRenderMode,
|
|
267
|
+
"onUpdate:modelValue": e[19] || (e[19] = (t) => l(o).other.canvasRenderMode = t)
|
|
268
|
+
}, {
|
|
269
|
+
default: b(() => e[29] || (e[29] = [
|
|
270
|
+
F("Render as canvas")
|
|
271
|
+
])),
|
|
272
|
+
_: 1
|
|
273
|
+
}, 8, ["modelValue"])
|
|
274
|
+
]),
|
|
275
|
+
a("div", Ve, [
|
|
276
|
+
e[30] || (e[30] = a("span", null, "Frame", -1)),
|
|
266
277
|
s(p, {
|
|
267
278
|
options: N,
|
|
268
279
|
modelValue: l(o).other.frame,
|
|
269
|
-
"onUpdate:modelValue": e[
|
|
280
|
+
"onUpdate:modelValue": e[20] || (e[20] = (t) => l(o).other.frame = t)
|
|
270
281
|
}, null, 8, ["modelValue"])
|
|
271
282
|
]),
|
|
272
|
-
a("div",
|
|
283
|
+
a("div", fe, [
|
|
273
284
|
s(l(w), {
|
|
274
285
|
style: { width: "100%" },
|
|
275
286
|
label: "Facet column count",
|
|
@@ -279,15 +290,15 @@ const $ = { class: "axes-settings-list" }, j = { class: "axes-settings-options-r
|
|
|
279
290
|
breakpoints: !0,
|
|
280
291
|
mode: "input",
|
|
281
292
|
modelValue: l(o).other.facetColumns,
|
|
282
|
-
"onUpdate:modelValue": e[
|
|
293
|
+
"onUpdate:modelValue": e[21] || (e[21] = (t) => l(o).other.facetColumns = t)
|
|
283
294
|
}, null, 8, ["modelValue"])
|
|
284
295
|
]),
|
|
285
|
-
a("div",
|
|
296
|
+
a("div", be, [
|
|
286
297
|
s(l(d), {
|
|
287
298
|
label: "Facet shared by",
|
|
288
|
-
options:
|
|
299
|
+
options: P.value,
|
|
289
300
|
modelValue: l(o).other.facetSharedBy,
|
|
290
|
-
"onUpdate:modelValue": e[
|
|
301
|
+
"onUpdate:modelValue": e[22] || (e[22] = (t) => l(o).other.facetSharedBy = t)
|
|
291
302
|
}, null, 8, ["options", "modelValue"])
|
|
292
303
|
])
|
|
293
304
|
])
|
|
@@ -296,6 +307,6 @@ const $ = { class: "axes-settings-list" }, j = { class: "axes-settings-options-r
|
|
|
296
307
|
}
|
|
297
308
|
});
|
|
298
309
|
export {
|
|
299
|
-
|
|
310
|
+
Ne as default
|
|
300
311
|
};
|
|
301
312
|
//# sourceMappingURL=HeatmapAxesSettingsForm.vue.js.map
|