TimeseriesPanel: Fix variables in data links (#56729)

* TimeseriesPanel: Fix variables in data links

* Refactor variable fix for all Timeseries panels

* cr mods
This commit is contained in:
Victor Marin
2022-10-18 14:22:31 +03:00
committed by GitHub
parent 178b05160a
commit 76d6e3c075
5 changed files with 54 additions and 17 deletions

View File

@@ -26,3 +26,4 @@ export { PanelPlugin, type SetFieldConfigOptionsArgs, type StandardOptionConfig
export { createFieldConfigRegistry } from './panel/registryFactories';
export { type QueryRunner, type QueryRunnerOptions } from './types/queryRunner';
export { type GroupingToMatrixTransformerOptions } from './transformations/transformers/groupingToMatrix';
export { getLinksSupplier } from './field/fieldOverrides';

View File

@@ -16,6 +16,10 @@ export class SortedVector<T = any> implements Vector<T> {
return this.source.get(this.order[index]);
}
getOrderIndex(index: number): number {
return this.order[index];
}
toArray(): T[] {
return vectorToArray(this);
}