plotly.js
Version:
The open source javascript graphing library that powers plotly
20 lines (15 loc) • 523 B
JavaScript
var Lib = require('../../lib');
/*
* opts: object of flags to control features not all text users support
* noSelect: caller does not support selected/unselected attribute containers
*/
module.exports = function(traceIn, traceOut, layout, coerce, opts) {
opts = opts || {};
coerce('textposition');
Lib.coerceFont(coerce, 'textfont', opts.font || layout.font, opts);
if(!opts.noSelect) {
coerce('selected.textfont.color');
coerce('unselected.textfont.color');
}
};
;