MCPcopy
hub / github.com/exceljs/exceljs / render

Method render

lib/xlsx/xform/strings/shared-string-xform.js:31–45  ·  view source on GitHub ↗
(xmlStream, model)

Source from the content-addressed store, hash-verified

29 }
30
31 render(xmlStream, model) {
32 xmlStream.openNode(this.tag);
33 if (model && model.hasOwnProperty('richText') && model.richText) {
34 if (model.richText.length) {
35 model.richText.forEach(text => {
36 this.map.r.render(xmlStream, text);
37 });
38 } else {
39 this.map.t.render(xmlStream, '');
40 }
41 } else if (model !== undefined && model !== null) {
42 this.map.t.render(xmlStream, model);
43 }
44 xmlStream.closeNode();
45 }
46
47 parseOpen(node) {
48 const {name} = node;

Callers

nothing calls this directly

Calls 3

openNodeMethod · 0.80
closeNodeMethod · 0.80
forEachMethod · 0.65

Tested by

no test coverage detected