UNPKG

@designliquido/foles

Version:

Linguagem de folhas de estilo para documentos em geral em português

22 lines 772 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Ornaments = void 0; const metodo_css_1 = require("./metodo-css"); class Ornaments extends metodo_css_1.MetodoCss { constructor(valor) { super(); this.valor = valor.tipo === 'NUMERO' ? Number(valor.lexema) : valor.lexema; this.traducao = "ornaments"; } paraTexto() { if (typeof this.valor === 'number') { if (this.valor < 1 || this.valor > 99) { throw new Error('O valor da função ornaments() deve estar entre 1 e 99'); } return `ornamentos(${this.valor})`; } return `ornamentos("${this.valor}")`; } } exports.Ornaments = Ornaments; //# sourceMappingURL=ornaments.js.map