mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-16 11:02:10 +00:00
* refactor: move common info into MediaInfo * refactor: better inference on Memo * refactor: improved typesafety in parser methods * refactor: remove PlaylistAuthor in favor of Author * refactor: cleanup live chat parsers - Replace non standard author type with Author class - Remove redundant code * fix: new errors due to changes * fix: pass actions to FormatUtils#toDash * refactor!: merge NavigatableText and Text into single class
25 lines
736 B
TypeScript
25 lines
736 B
TypeScript
import Parser from '../index.js';
|
|
import HeatMarker from './HeatMarker.js';
|
|
|
|
import { YTNode } from '../helpers.js';
|
|
|
|
class Heatmap extends YTNode {
|
|
static type = 'Heatmap';
|
|
|
|
max_height_dp: number;
|
|
min_height_dp: number;
|
|
show_hide_animation_duration_millis: number;
|
|
heat_markers: HeatMarker[];
|
|
heat_markers_decorations: any;
|
|
|
|
constructor(data: any) {
|
|
super();
|
|
this.max_height_dp = data.maxHeightDp;
|
|
this.min_height_dp = data.minHeightDp;
|
|
this.show_hide_animation_duration_millis = data.showHideAnimationDurationMillis;
|
|
this.heat_markers = Parser.parseArray(data.heatMarkers, HeatMarker);
|
|
this.heat_markers_decorations = Parser.parseArray(data.heatMarkersDecorations);
|
|
}
|
|
}
|
|
|
|
export default Heatmap; |