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

Method render

lib/xlsx/xform/style/dxf-xform.js:36–60  ·  view source on GitHub ↗
(xmlStream, model)

Source from the content-addressed store, hash-verified

34 // how do we generate dxfid?
35
36 render(xmlStream, model) {
37 xmlStream.openNode(this.tag);
38
39 if (model.font) {
40 this.map.font.render(xmlStream, model.font);
41 }
42 if (model.numFmt && model.numFmtId) {
43 const numFmtModel = {id: model.numFmtId, formatCode: model.numFmt};
44 this.map.numFmt.render(xmlStream, numFmtModel);
45 }
46 if (model.fill) {
47 this.map.fill.render(xmlStream, model.fill);
48 }
49 if (model.alignment) {
50 this.map.alignment.render(xmlStream, model.alignment);
51 }
52 if (model.border) {
53 this.map.border.render(xmlStream, model.border);
54 }
55 if (model.protection) {
56 this.map.protection.render(xmlStream, model.protection);
57 }
58
59 xmlStream.closeNode();
60 }
61
62 parseOpen(node) {
63 if (this.parser) {

Callers

nothing calls this directly

Calls 2

openNodeMethod · 0.80
closeNodeMethod · 0.80

Tested by

no test coverage detected