UNPKG

plotly.js

Version:

The open source JavaScript graphing library that also powers plotly.py and Plotly Dash

15 lines (11 loc) • 342 B
'use strict'; var Lib = require('../../lib'); module.exports = function handleHeatmapLabelDefaults(coerce, layout) { coerce('texttemplate'); coerce('texttemplatefallback'); var fontDflt = Lib.extendFlat({}, layout.font, { color: 'auto', size: 'auto' }); Lib.coerceFont(coerce, 'textfont', fontDflt); };