mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-17 03:22:15 +00:00
Things were getting a bit complicated and slow with the old parser so I decided to continue #44's work on the main codebase.
22 lines
578 B
JavaScript
22 lines
578 B
JavaScript
'use strict';
|
|
|
|
class DataModelSection {
|
|
type = 'dataModelSection';
|
|
|
|
constructor(data) {
|
|
this.title = data.title;
|
|
this.subtitle = data.subtitle;
|
|
this.metric_value = data.metricValue;
|
|
this.comparison_indicator = data.comparisonIndicator;
|
|
|
|
this.series_configuration = {
|
|
line_series: {
|
|
lines_data: data.seriesConfiguration.lineSeries.linesData,
|
|
domain_axis: data.seriesConfiguration.lineSeries.domainAxis,
|
|
measure_axis: data.seriesConfiguration.lineSeries.measureAxis
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
module.exports = DataModelSection;
|