@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/components/PFrameForGraphs.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +187 -181
- package/dist/index.mjs.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/components/PFrameForGraphs.ts +18 -10
package/dist/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const PlatformaSDKVersion = "1.34.
|
|
1
|
+
export declare const PlatformaSDKVersion = "1.34.10";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/dist/version.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,mBAAmB,
|
|
1
|
+
{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,mBAAmB,YAAY,CAAC"}
|
package/package.json
CHANGED
|
@@ -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(
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
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(
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
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
|
|