UNPKG

exceljs

Version:

Excel Workbook Manager - Read and Write xlsx and csv Files.

36 lines (34 loc) 783 B
"use strict"; const BaseXform = require('../../base-xform'); class VmlPositionXform extends BaseXform { constructor(model) { super(); this._model = model; } get tag() { return this._model && this._model.tag; } render(xmlStream, model, type) { if (model === type[2]) { xmlStream.leafNode(this.tag); } else if (this.tag === 'x:SizeWithCells' && model === type[1]) { xmlStream.leafNode(this.tag); } } parseOpen(node) { switch (node.name) { case this.tag: this.model = {}; this.model[this.tag] = true; return true; default: return false; } } parseText() {} parseClose() { return false; } } module.exports = VmlPositionXform; //# sourceMappingURL=vml-position-xform.js.map