MCPcopy Index your code
hub / github.com/plotly/plotly.js / includeFormat

Function includeFormat

src/plots/plots.js:656–667  ·  view source on GitHub ↗
(newFormat)

Source from the content-addressed store, hash-verified

654 var formatObj = {};
655
656 function includeFormat(newFormat) {
657 var formatFinished = true;
658 for(var i = 0; i < formatKeys.length; i++) {
659 var formatKey = formatKeys[i];
660 if(!formatObj[formatKey]) {
661 if(newFormat[formatKey]) {
662 formatObj[formatKey] = newFormat[formatKey];
663 } else formatFinished = false;
664 }
665 }
666 if(formatFinished) formatDone = true;
667 }
668
669 // same as localize, look for format parts in each format spec in the chain
670 for(var i = 0; i < 2; i++) {

Callers 1

getFormatObjFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…