UNPKG

plotly.js

Version:

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

16 lines (11 loc) • 416 B
'use strict'; var Lib = require('../../lib'); var layoutAttributes = require('./layout_attributes'); module.exports = function supplyLayoutDefaults(layoutIn, layoutOut) { function coerce(attr, dflt) { return Lib.coerce(layoutIn, layoutOut, layoutAttributes, attr, dflt); } coerce('hiddenlabels'); coerce('funnelareacolorway', layoutOut.colorway); coerce('extendfunnelareacolors'); };