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

Method render

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

Source from the content-addressed store, hash-verified

67 // </sst>
68
69 render(xmlStream, model) {
70 model = model || this._values;
71 xmlStream.openXml(XmlStream.StdDocAttributes);
72
73 xmlStream.openNode('sst', {
74 xmlns: 'http://schemas.openxmlformats.org/spreadsheetml/2006/main',
75 count: model.count,
76 uniqueCount: model.values.length,
77 });
78
79 const sx = this.sharedStringXform;
80 model.values.forEach(sharedString => {
81 sx.render(xmlStream, sharedString);
82 });
83 xmlStream.closeNode();
84 }
85
86 parseOpen(node) {
87 if (this.parser) {

Callers

nothing calls this directly

Calls 4

openXmlMethod · 0.80
openNodeMethod · 0.80
closeNodeMethod · 0.80
forEachMethod · 0.65

Tested by

no test coverage detected