UNPKG

@designliquido/foles

Version:

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

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