@platforma-open/milaboratories.repertoire-mutation-heatmap.block 1.1.8 → 1.1.9
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/block-pack/main.plj.gz +0 -0
- package/block-pack/manifest.json +1 -1
- package/block-pack/model.json +1 -1
- package/block-pack/published.json +1 -1
- package/block-pack/ui.tgz +0 -0
- package/dist/AGENTS.d.ts +2 -0
- package/dist/AGENTS.d.ts.map +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +27 -3
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -23,7 +23,8 @@ function makeLandscapeChartState(title, currentTab) {
|
|
|
23
23
|
},
|
|
24
24
|
axisY: {
|
|
25
25
|
hideAxisLabels: false,
|
|
26
|
-
cellSize: 20
|
|
26
|
+
cellSize: 20,
|
|
27
|
+
annotationTitlePosition: "bottom"
|
|
27
28
|
}
|
|
28
29
|
}
|
|
29
30
|
};
|
|
@@ -163,6 +164,22 @@ function withParentOnXAxis(state) {
|
|
|
163
164
|
}
|
|
164
165
|
};
|
|
165
166
|
}
|
|
167
|
+
/**
|
|
168
|
+
* Puts the Y annotation track titles at the bottom on a saved chart. Axes settings are seeded once,
|
|
169
|
+
* when a chart is created, so a chart saved before the Y-axis tracks keeps the default (top).
|
|
170
|
+
*/
|
|
171
|
+
function withYAnnotationTitleAtBottom(state) {
|
|
172
|
+
return {
|
|
173
|
+
...state,
|
|
174
|
+
axesSettings: {
|
|
175
|
+
...state.axesSettings,
|
|
176
|
+
axisY: {
|
|
177
|
+
...state.axesSettings?.axisY,
|
|
178
|
+
annotationTitlePosition: "bottom"
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
};
|
|
182
|
+
}
|
|
166
183
|
function mapChartStates(data, rewrite) {
|
|
167
184
|
return {
|
|
168
185
|
compositionHeatmapState: rewrite(data.compositionHeatmapState),
|
|
@@ -13791,6 +13808,10 @@ const dataModel = new DataModelBuilder({ kind }).from("v1").migrate("v2", (v1) =
|
|
|
13791
13808
|
drillDownChartState: makeDrillDownChartState(),
|
|
13792
13809
|
drillDownTableState: createPlDataTableStateV2(),
|
|
13793
13810
|
...mapChartStates(v4, withRegionColoursReseeded)
|
|
13811
|
+
})).migrate("v6", (v5) => ({
|
|
13812
|
+
...v5,
|
|
13813
|
+
...mapChartStates(v5, withYAnnotationTitleAtBottom),
|
|
13814
|
+
drillDownChartState: withYAnnotationTitleAtBottom(v5.drillDownChartState)
|
|
13794
13815
|
})).init(() => ({
|
|
13795
13816
|
drillDowns: [],
|
|
13796
13817
|
drillDownChartState: makeDrillDownChartState(),
|
|
@@ -13816,7 +13837,8 @@ const dataModel = new DataModelBuilder({ kind }).from("v1").migrate("v2", (v1) =
|
|
|
13816
13837
|
},
|
|
13817
13838
|
axisY: {
|
|
13818
13839
|
hideAxisLabels: false,
|
|
13819
|
-
cellSize: 20
|
|
13840
|
+
cellSize: 20,
|
|
13841
|
+
annotationTitlePosition: "bottom"
|
|
13820
13842
|
}
|
|
13821
13843
|
}
|
|
13822
13844
|
}
|
|
@@ -13911,7 +13933,9 @@ const platforma$1 = BlockModelV3.create({
|
|
|
13911
13933
|
return createPFrameForGraphs(ctx, pCols);
|
|
13912
13934
|
}).output("singleMutantHeatmapPCols", (ctx) => {
|
|
13913
13935
|
return outputPColumns(ctx, "singleMutantHeatmapPf");
|
|
13914
|
-
}).output("landscapePanels", (ctx) => landscapePanelsFrom(outputPColumns(ctx, "singleMutantHeatmapPf"))).
|
|
13936
|
+
}).output("landscapePanels", (ctx) => landscapePanelsFrom(outputPColumns(ctx, "singleMutantHeatmapPf"))).output("singleMutantCount", (ctx) => {
|
|
13937
|
+
return ctx.outputs?.resolve("singleMutantCount")?.getDataAsJson()?.singleMutantCount;
|
|
13938
|
+
}).outputWithStatus("drillDownHeatmapPf", (ctx) => {
|
|
13915
13939
|
const pCols = outputPColumns(ctx, "drillDownHeatmapPf");
|
|
13916
13940
|
if (pCols === void 0) return void 0;
|
|
13917
13941
|
return createPFrameForGraphs(ctx, pCols);
|