import { withTextMeasure } from '../../../../utils/bbox/canvas_text_bbox_calculator' ; import { Theme } from '../../../../utils/themes/theme' ; import { ShapeViewModel } from '../../layout/types/viewmodel_types' ; import { shapeViewModel } from '../../layout/viewmodel/viewmodel' ; import { HeatmapSpec } from '../../specs' ; import { ChartElementSizes , HeatmapTable } from '../../state/selectors/compute_chart_dimensions' ; import { ColorScale } from '../../state/selectors/get_color_scale' ; internal export function render ( spec , elementSizes , heatmapTable , colorScale , bandsToHide , theme ) { return withTextMeasure ( ( measureText ) => { return shapeViewModel ( measureText , spec , theme , elementSizes , heatmapTable , colorScale , bandsToHide ) ; } ) ; }