@meshmakers/octo-meshboard 3.4.360 → 3.4.370
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/package.json
CHANGED
|
@@ -312,8 +312,10 @@ interface PersistentQueryDataSource extends WidgetDataSource {
|
|
|
312
312
|
/**
|
|
313
313
|
* The canonical aggregation functions a resolution-aware series can be reduced with
|
|
314
314
|
* (AB#4290). Values match the backend `CkRollupFunction` / `AggregationType` GraphQL enums.
|
|
315
|
+
* `TIME_WEIGHTED_AVG` (AB#4336) reduces an event-based rollup to its LOCF-weighted duty cycle;
|
|
316
|
+
* the series resolver matches TWA rollups (incl. cascades) the same way it matches the others.
|
|
315
317
|
*/
|
|
316
|
-
type SeriesAggregationFunction = 'AVG' | 'MIN' | 'MAX' | 'SUM' | 'COUNT';
|
|
318
|
+
type SeriesAggregationFunction = 'AVG' | 'MIN' | 'MAX' | 'SUM' | 'COUNT' | 'TIME_WEIGHTED_AVG';
|
|
317
319
|
/**
|
|
318
320
|
* Aggregation types supported
|
|
319
321
|
*/
|
|
@@ -687,6 +689,12 @@ interface BarChartWidgetConfig extends WidgetConfig {
|
|
|
687
689
|
filters?: WidgetFilterConfig[];
|
|
688
690
|
/** Suffix appended to data labels (e.g. ' kW') */
|
|
689
691
|
dataLabelSuffix?: string;
|
|
692
|
+
/**
|
|
693
|
+
* Factor every raw value is multiplied with before charting (default 1). Lets a widget render
|
|
694
|
+
* engine units in display units without a second query — e.g. 1/3600000 turns the
|
|
695
|
+
* millisecond StateDuration aggregation (AB#4336) into hours, 0.001 turns Wh into kWh.
|
|
696
|
+
*/
|
|
697
|
+
valueScale?: number;
|
|
690
698
|
/** Threshold-based per-bar coloring. Thresholds sorted ascending by value. */
|
|
691
699
|
colorThresholds?: BarChartColorThreshold[];
|
|
692
700
|
/** Default bar color when value exceeds all thresholds */
|