@platforma-sdk/model 1.34.8 → 1.34.10

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/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const PlatformaSDKVersion = "1.34.8";
1
+ export declare const PlatformaSDKVersion = "1.34.10";
2
2
  //# sourceMappingURL=version.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,mBAAmB,WAAW,CAAC"}
1
+ {"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,mBAAmB,YAAY,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@platforma-sdk/model",
3
- "version": "1.34.8",
3
+ "version": "1.34.10",
4
4
  "description": "Platforma.bio SDK / Block Model",
5
5
  "types": "./dist/index.d.ts",
6
6
  "main": "./dist/index.js",
@@ -248,11 +248,15 @@ export function createPFrameForGraphs<A, U>(
248
248
  }
249
249
 
250
250
  // all compatible with block columns but without label columns
251
- const compatibleWithoutLabels = (columns.getColumns([...blockAxes.values()]
252
- .map((ax) => ({
253
- axes: [ax],
254
- partialAxesMatch: true,
255
- })), {dontWaitAllData: true, overrideLabelAnnotation: false}) ?? []).filter((column) => !isLabelColumn(column.spec));
251
+ const compatibleWithoutLabels = (columns.getColumns((spec) => spec.axesSpec.some(axisSpec => {
252
+ const axisId = getAxisId(axisSpec);
253
+ for (const selectorAxisId of blockAxes.values()) {
254
+ if (matchAxisId(selectorAxisId, axisId)) {
255
+ return true;
256
+ }
257
+ }
258
+ return false;
259
+ }), {dontWaitAllData: true, overrideLabelAnnotation: false}) ?? []).filter((column) => !isLabelColumn(column.spec));
256
260
 
257
261
  // extend axes set for label columns request
258
262
  for (const c of compatibleWithoutLabels) {
@@ -263,11 +267,15 @@ export function createPFrameForGraphs<A, U>(
263
267
  }
264
268
 
265
269
  // label columns must be compatible with full set of axes - block axes and axes from compatible columns from result pool
266
- const compatibleLabels = (columns.getColumns([...allAxes.values()]
267
- .map((ax) => ({
268
- axes: [ax],
269
- partialAxesMatch: true,
270
- })), {dontWaitAllData: true, overrideLabelAnnotation: false}) ?? []).filter((column) => isLabelColumn(column.spec));
270
+ const compatibleLabels = (columns.getColumns((spec) => spec.axesSpec.some(axisSpec => {
271
+ const axisId = getAxisId(axisSpec);
272
+ for (const selectorAxisId of allAxes.values()) {
273
+ if (matchAxisId(selectorAxisId, axisId)) {
274
+ return true;
275
+ }
276
+ }
277
+ return false;
278
+ }), {dontWaitAllData: true, overrideLabelAnnotation: false}) ?? []).filter((column) => isLabelColumn(column.spec));
271
279
 
272
280
  const compatible = [...compatibleWithoutLabels, ...compatibleLabels];
273
281