@designliquido/foles
Version:
Linguagem de folhas de estilo para documentos em geral em português
46 lines • 1.53 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.Inset = void 0;
const metodo_css_1 = require("./metodo-css");
class Inset extends metodo_css_1.MetodoCss {
constructor(arrayValores) {
super();
this.arrayValores = [];
this.arrayValores = arrayValores;
this.traducao = "inset";
this.valoresAceitos = {
"arredondar": "round",
};
}
paraTexto() {
let traducaoRetorno = '';
const valoresFolEs = Object.keys(this.valoresAceitos);
this.arrayValores.forEach((valor, index) => {
if (valor.tipo === 'NUMERO') {
if (index === 0) {
traducaoRetorno += `${valor.lexema}`;
}
else {
traducaoRetorno += ` ${valor.lexema}`;
}
}
else if (valoresFolEs.includes(valor.lexema)) {
if (index === 0) {
traducaoRetorno += `${this.valoresAceitos[valor.lexema]}`;
}
else {
traducaoRetorno += ` ${this.valoresAceitos[valor.lexema]}`;
}
}
else if (valor.tipo === 'QUANTIFICADOR') {
traducaoRetorno += `${valor.lexema}`;
}
else {
traducaoRetorno += ` ${valor.lexema}`;
}
});
return `inserir(${traducaoRetorno})`;
}
}
exports.Inset = Inset;
//# sourceMappingURL=inset.js.map