@designliquido/foles 0.6.3 → 0.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fontes/avaliador-sintatico/avaliador-sintatico.js +347 -0
- package/fontes/avaliador-sintatico/avaliador-sintatico.js.map +1 -1
- package/fontes/foles.js +1 -0
- package/fontes/foles.js.map +1 -1
- package/fontes/lexador/palavras-reservadas/foles.d.ts +141 -113
- package/fontes/lexador/palavras-reservadas/foles.js +141 -116
- package/fontes/lexador/palavras-reservadas/foles.js.map +1 -1
- package/fontes/modificadores/atributos/gerais.js +167 -165
- package/fontes/modificadores/atributos/gerais.js.map +1 -1
- package/fontes/modificadores/atributos/quantificadores.js +1 -0
- package/fontes/modificadores/atributos/quantificadores.js.map +1 -1
- package/fontes/modificadores/transformar.js +2 -1
- package/fontes/modificadores/transformar.js.map +1 -1
- package/fontes/valores/dicionario-valores.js +41 -0
- package/fontes/valores/dicionario-valores.js.map +1 -1
- package/fontes/valores/metodos/escalamento-3d.d.ts +10 -0
- package/fontes/valores/metodos/escalamento-3d.js +18 -0
- package/fontes/valores/metodos/escalamento-3d.js.map +1 -0
- package/fontes/valores/metodos/escalamento-eixo-z.d.ts +8 -0
- package/fontes/valores/metodos/escalamento-eixo-z.js +16 -0
- package/fontes/valores/metodos/escalamento-eixo-z.js.map +1 -0
- package/fontes/valores/metodos/escalamento-horizontal.d.ts +8 -0
- package/fontes/valores/metodos/escalamento-horizontal.js +16 -0
- package/fontes/valores/metodos/escalamento-horizontal.js.map +1 -0
- package/fontes/valores/metodos/escalamento-vertical.d.ts +8 -0
- package/fontes/valores/metodos/escalamento-vertical.js +16 -0
- package/fontes/valores/metodos/escalamento-vertical.js.map +1 -0
- package/fontes/valores/metodos/escalamento.d.ts +9 -0
- package/fontes/valores/metodos/escalamento.js +20 -0
- package/fontes/valores/metodos/escalamento.js.map +1 -0
- package/fontes/valores/metodos/gradiente-linear.js +1 -0
- package/fontes/valores/metodos/gradiente-linear.js.map +1 -1
- package/fontes/valores/metodos/inclinar-horizontal.d.ts +9 -0
- package/fontes/valores/metodos/inclinar-horizontal.js +21 -0
- package/fontes/valores/metodos/inclinar-horizontal.js.map +1 -0
- package/fontes/valores/metodos/inclinar-vertical.d.ts +9 -0
- package/fontes/valores/metodos/inclinar-vertical.js +21 -0
- package/fontes/valores/metodos/inclinar-vertical.js.map +1 -0
- package/fontes/valores/metodos/inclinar.d.ts +11 -0
- package/fontes/valores/metodos/inclinar.js +28 -0
- package/fontes/valores/metodos/inclinar.js.map +1 -0
- package/fontes/valores/metodos/perspectivar.d.ts +9 -0
- package/fontes/valores/metodos/perspectivar.js +20 -0
- package/fontes/valores/metodos/perspectivar.js.map +1 -0
- package/fontes/valores/metodos/raio.js +1 -0
- package/fontes/valores/metodos/raio.js.map +1 -1
- package/fontes/valores/metodos/rotacionar-eixo-z.d.ts +9 -0
- package/fontes/valores/metodos/rotacionar-eixo-z.js +21 -0
- package/fontes/valores/metodos/rotacionar-eixo-z.js.map +1 -0
- package/fontes/valores/metodos/rotacionar-horizontal.d.ts +9 -0
- package/fontes/valores/metodos/rotacionar-horizontal.js +21 -0
- package/fontes/valores/metodos/rotacionar-horizontal.js.map +1 -0
- package/fontes/valores/metodos/rotacionar-matiz.js +1 -0
- package/fontes/valores/metodos/rotacionar-matiz.js.map +1 -1
- package/fontes/valores/metodos/rotacionar-vertical.d.ts +9 -0
- package/fontes/valores/metodos/rotacionar-vertical.js +21 -0
- package/fontes/valores/metodos/rotacionar-vertical.js.map +1 -0
- package/fontes/valores/metodos/rotacionar.d.ts +9 -0
- package/fontes/valores/metodos/rotacionar.js +21 -0
- package/fontes/valores/metodos/rotacionar.js.map +1 -0
- package/fontes/valores/metodos/translacao-3d.d.ts +13 -0
- package/fontes/valores/metodos/translacao-3d.js +42 -0
- package/fontes/valores/metodos/translacao-3d.js.map +1 -0
- package/fontes/valores/metodos/translacao-eixo-z.d.ts +9 -0
- package/fontes/valores/metodos/translacao-eixo-z.js +20 -0
- package/fontes/valores/metodos/translacao-eixo-z.js.map +1 -0
- package/fontes/valores/metodos/translacao-horizontal.d.ts +9 -0
- package/fontes/valores/metodos/translacao-horizontal.js +20 -0
- package/fontes/valores/metodos/translacao-horizontal.js.map +1 -0
- package/fontes/valores/metodos/translacao-vertical.d.ts +9 -0
- package/fontes/valores/metodos/translacao-vertical.js +20 -0
- package/fontes/valores/metodos/translacao-vertical.js.map +1 -0
- package/fontes/valores/metodos/translacao.d.ts +11 -0
- package/fontes/valores/metodos/translacao.js +28 -0
- package/fontes/valores/metodos/translacao.js.map +1 -0
- package/package.json +1 -1
- package/testes/listas/metodos.d.ts +5 -0
- package/testes/listas/metodos.js +17 -1
- package/testes/listas/metodos.js.map +1 -1
- package/testes/modificadores/metodos.test.js +1248 -180
- package/testes/modificadores/metodos.test.js.map +1 -1
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.EscalamentoHorizontal = void 0;
|
|
4
|
+
const metodo_1 = require("./metodo");
|
|
5
|
+
class EscalamentoHorizontal extends metodo_1.Metodo {
|
|
6
|
+
constructor(valor1, valor2) {
|
|
7
|
+
super();
|
|
8
|
+
this.valor1 = Number(valor1.lexema);
|
|
9
|
+
this.traducao = 'scaleX';
|
|
10
|
+
}
|
|
11
|
+
paraTexto() {
|
|
12
|
+
return `scaleX(${this.valor1})`;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
exports.EscalamentoHorizontal = EscalamentoHorizontal;
|
|
16
|
+
//# sourceMappingURL=escalamento-horizontal.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"escalamento-horizontal.js","sourceRoot":"","sources":["../../../../fontes/valores/metodos/escalamento-horizontal.ts"],"names":[],"mappings":";;;AACA,qCAAkC;AAElC,MAAa,qBAAsB,SAAQ,eAAM;IAI7C,YAAY,MAAe,EAAE,MAAe;QACxC,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;QACpC,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;IAC7B,CAAC;IAED,SAAS;QACL,OAAO,UAAU,IAAI,CAAC,MAAM,GAAG,CAAA;IACnC,CAAC;CACJ;AAbD,sDAaC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.EscalamentoVertical = void 0;
|
|
4
|
+
const metodo_1 = require("./metodo");
|
|
5
|
+
class EscalamentoVertical extends metodo_1.Metodo {
|
|
6
|
+
constructor(valor1, valor2) {
|
|
7
|
+
super();
|
|
8
|
+
this.valor1 = Number(valor1.lexema);
|
|
9
|
+
this.traducao = 'scaleY';
|
|
10
|
+
}
|
|
11
|
+
paraTexto() {
|
|
12
|
+
return `scaleY(${this.valor1})`;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
exports.EscalamentoVertical = EscalamentoVertical;
|
|
16
|
+
//# sourceMappingURL=escalamento-vertical.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"escalamento-vertical.js","sourceRoot":"","sources":["../../../../fontes/valores/metodos/escalamento-vertical.ts"],"names":[],"mappings":";;;AACA,qCAAkC;AAElC,MAAa,mBAAoB,SAAQ,eAAM;IAI3C,YAAY,MAAe,EAAE,MAAe;QACxC,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;QACpC,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;IAC7B,CAAC;IAED,SAAS;QACL,OAAO,UAAU,IAAI,CAAC,MAAM,GAAG,CAAA;IACnC,CAAC;CACJ;AAbD,kDAaC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Escalamento = void 0;
|
|
4
|
+
const metodo_1 = require("./metodo");
|
|
5
|
+
class Escalamento extends metodo_1.Metodo {
|
|
6
|
+
constructor(valor1, valor2) {
|
|
7
|
+
super();
|
|
8
|
+
this.valor1 = Number(valor1.lexema);
|
|
9
|
+
this.valor2 = valor2 ? Number(valor2.lexema) : null;
|
|
10
|
+
this.traducao = 'scale';
|
|
11
|
+
}
|
|
12
|
+
paraTexto() {
|
|
13
|
+
if (this.valor2) {
|
|
14
|
+
return `scale(${this.valor1}, ${this.valor2})`;
|
|
15
|
+
}
|
|
16
|
+
return `scale(${this.valor1})`;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
exports.Escalamento = Escalamento;
|
|
20
|
+
//# sourceMappingURL=escalamento.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"escalamento.js","sourceRoot":"","sources":["../../../../fontes/valores/metodos/escalamento.ts"],"names":[],"mappings":";;;AACA,qCAAkC;AAElC,MAAa,WAAY,SAAQ,eAAM;IAKnC,YAAY,MAAe,EAAE,MAAe;QACxC,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;QACpC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;QACpD,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAC;IAC5B,CAAC;IAED,SAAS;QACL,IAAI,IAAI,CAAC,MAAM,EAAE;YACb,OAAO,SAAS,IAAI,CAAC,MAAM,KAAK,IAAI,CAAC,MAAM,GAAG,CAAA;SACjD;QAED,OAAO,SAAS,IAAI,CAAC,MAAM,GAAG,CAAA;IAClC,CAAC;CACJ;AAnBD,kCAmBC"}
|
|
@@ -15,6 +15,7 @@ class GradienteLinear extends metodo_1.Metodo {
|
|
|
15
15
|
paraTexto() {
|
|
16
16
|
this.cor1 = cores_1.cores[this.cor1];
|
|
17
17
|
this.cor2 = cores_1.cores[this.cor2];
|
|
18
|
+
this.quantificadorAngulo === 'graus' ? this.quantificadorAngulo = 'deg' : null;
|
|
18
19
|
return `linear-gradient(${this.valorAngulo}${this.quantificadorAngulo}, ${this.cor1}, ${this.cor2})`;
|
|
19
20
|
}
|
|
20
21
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gradiente-linear.js","sourceRoot":"","sources":["../../../../fontes/valores/metodos/gradiente-linear.ts"],"names":[],"mappings":";;;AACA,qCAAkC;AAClC,+DAA4D;AAE5D,MAAa,eAAgB,SAAQ,eAAM;IAOvC,YAAY,WAAoB,EAAE,mBAA4B,EAAE,IAAa,EAAE,IAAa;QACxF,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,WAAW,GAAG,MAAM,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC;QAC9C,IAAI,CAAC,mBAAmB,GAAG,mBAAmB,CAAC,MAAM,CAAC;QACtD,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,MAAM,CAAC;QACxB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,MAAM,CAAC;QACxB,IAAI,CAAC,QAAQ,GAAG,iBAAiB,CAAC;IACtC,CAAC;IAED,SAAS;QACL,IAAI,CAAC,IAAI,GAAG,aAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAC7B,IAAI,CAAC,IAAI,GAAG,aAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAC7B,OAAO,mBAAmB,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC,mBAAmB,KAAK,IAAI,CAAC,IAAI,KAAK,IAAI,CAAC,IAAI,GAAG,CAAA;IACxG,CAAC;CACJ;
|
|
1
|
+
{"version":3,"file":"gradiente-linear.js","sourceRoot":"","sources":["../../../../fontes/valores/metodos/gradiente-linear.ts"],"names":[],"mappings":";;;AACA,qCAAkC;AAClC,+DAA4D;AAE5D,MAAa,eAAgB,SAAQ,eAAM;IAOvC,YAAY,WAAoB,EAAE,mBAA4B,EAAE,IAAa,EAAE,IAAa;QACxF,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,WAAW,GAAG,MAAM,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC;QAC9C,IAAI,CAAC,mBAAmB,GAAG,mBAAmB,CAAC,MAAM,CAAC;QACtD,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,MAAM,CAAC;QACxB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,MAAM,CAAC;QACxB,IAAI,CAAC,QAAQ,GAAG,iBAAiB,CAAC;IACtC,CAAC;IAED,SAAS;QACL,IAAI,CAAC,IAAI,GAAG,aAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAC7B,IAAI,CAAC,IAAI,GAAG,aAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAC7B,IAAI,CAAC,mBAAmB,KAAK,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,mBAAmB,GAAG,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC;QAE/E,OAAO,mBAAmB,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC,mBAAmB,KAAK,IAAI,CAAC,IAAI,KAAK,IAAI,CAAC,IAAI,GAAG,CAAA;IACxG,CAAC;CACJ;AAvBD,0CAuBC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Simbolo } from "../../lexador";
|
|
2
|
+
import { Metodo } from "./metodo";
|
|
3
|
+
export declare class InclinarHorizontal extends Metodo {
|
|
4
|
+
valor: number;
|
|
5
|
+
quantificador: string;
|
|
6
|
+
traducao: string;
|
|
7
|
+
constructor(valor: Simbolo, quantificador: Simbolo);
|
|
8
|
+
paraTexto(): string;
|
|
9
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.InclinarHorizontal = void 0;
|
|
4
|
+
const metodo_1 = require("./metodo");
|
|
5
|
+
class InclinarHorizontal extends metodo_1.Metodo {
|
|
6
|
+
constructor(valor, quantificador) {
|
|
7
|
+
super();
|
|
8
|
+
this.valor = Number(valor.lexema);
|
|
9
|
+
this.quantificador = quantificador ? quantificador.lexema : null;
|
|
10
|
+
this.traducao = 'skewX';
|
|
11
|
+
}
|
|
12
|
+
paraTexto() {
|
|
13
|
+
if (this.quantificador) {
|
|
14
|
+
this.quantificador === 'graus' ? this.quantificador = 'deg' : null;
|
|
15
|
+
return `skewX(${this.valor}${this.quantificador})`;
|
|
16
|
+
}
|
|
17
|
+
return `skewX(${this.valor})`;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
exports.InclinarHorizontal = InclinarHorizontal;
|
|
21
|
+
//# sourceMappingURL=inclinar-horizontal.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"inclinar-horizontal.js","sourceRoot":"","sources":["../../../../fontes/valores/metodos/inclinar-horizontal.ts"],"names":[],"mappings":";;;AACA,qCAAkC;AAElC,MAAa,kBAAmB,SAAQ,eAAM;IAK1C,YAAY,KAAc,EAAE,aAAsB;QAC9C,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;QAClC,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC,CAAC,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC;QACjE,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAC;IAC5B,CAAC;IAED,SAAS;QACL,IAAI,IAAI,CAAC,aAAa,EAAE;YACpB,IAAI,CAAC,aAAa,KAAK,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,aAAa,GAAG,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC;YACnE,OAAO,SAAS,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,aAAa,GAAG,CAAA;SACrD;QAED,OAAO,SAAS,IAAI,CAAC,KAAK,GAAG,CAAA;IACjC,CAAC;CACJ;AApBD,gDAoBC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Simbolo } from "../../lexador";
|
|
2
|
+
import { Metodo } from "./metodo";
|
|
3
|
+
export declare class InclinarVertical extends Metodo {
|
|
4
|
+
valor: number;
|
|
5
|
+
quantificador: string;
|
|
6
|
+
traducao: string;
|
|
7
|
+
constructor(valor: Simbolo, quantificador: Simbolo);
|
|
8
|
+
paraTexto(): string;
|
|
9
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.InclinarVertical = void 0;
|
|
4
|
+
const metodo_1 = require("./metodo");
|
|
5
|
+
class InclinarVertical extends metodo_1.Metodo {
|
|
6
|
+
constructor(valor, quantificador) {
|
|
7
|
+
super();
|
|
8
|
+
this.valor = Number(valor.lexema);
|
|
9
|
+
this.quantificador = quantificador ? quantificador.lexema : null;
|
|
10
|
+
this.traducao = 'skewY';
|
|
11
|
+
}
|
|
12
|
+
paraTexto() {
|
|
13
|
+
if (this.quantificador) {
|
|
14
|
+
this.quantificador === 'graus' ? this.quantificador = 'deg' : null;
|
|
15
|
+
return `skewY(${this.valor}${this.quantificador})`;
|
|
16
|
+
}
|
|
17
|
+
return `skewY(${this.valor})`;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
exports.InclinarVertical = InclinarVertical;
|
|
21
|
+
//# sourceMappingURL=inclinar-vertical.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"inclinar-vertical.js","sourceRoot":"","sources":["../../../../fontes/valores/metodos/inclinar-vertical.ts"],"names":[],"mappings":";;;AACA,qCAAkC;AAElC,MAAa,gBAAiB,SAAQ,eAAM;IAKxC,YAAY,KAAc,EAAE,aAAsB;QAC9C,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;QAClC,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC,CAAC,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC;QACjE,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAC;IAC5B,CAAC;IAED,SAAS;QACL,IAAI,IAAI,CAAC,aAAa,EAAE;YACpB,IAAI,CAAC,aAAa,KAAK,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,aAAa,GAAG,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC;YACnE,OAAO,SAAS,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,aAAa,GAAG,CAAA;SACrD;QAED,OAAO,SAAS,IAAI,CAAC,KAAK,GAAG,CAAA;IACjC,CAAC;CACJ;AApBD,4CAoBC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Simbolo } from "../../lexador";
|
|
2
|
+
import { Metodo } from "./metodo";
|
|
3
|
+
export declare class Inclinar extends Metodo {
|
|
4
|
+
valor1: number;
|
|
5
|
+
quantificador1: string;
|
|
6
|
+
valor2: number | string;
|
|
7
|
+
quantificador2: string;
|
|
8
|
+
traducao: string;
|
|
9
|
+
constructor(valor1: Simbolo, quantificador1: Simbolo, valor2: Simbolo, quantificador2: Simbolo);
|
|
10
|
+
paraTexto(): string;
|
|
11
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Inclinar = void 0;
|
|
4
|
+
const metodo_1 = require("./metodo");
|
|
5
|
+
class Inclinar extends metodo_1.Metodo {
|
|
6
|
+
constructor(valor1, quantificador1, valor2, quantificador2) {
|
|
7
|
+
super();
|
|
8
|
+
this.valor1 = Number(valor1.lexema);
|
|
9
|
+
this.quantificador1 = quantificador1 ? quantificador1.lexema : null;
|
|
10
|
+
this.valor2 = valor2 ? Number(valor2.lexema) : null;
|
|
11
|
+
this.quantificador2 = quantificador2 ? quantificador2.lexema : null;
|
|
12
|
+
this.traducao = 'skew';
|
|
13
|
+
}
|
|
14
|
+
paraTexto() {
|
|
15
|
+
if (!this.quantificador1 && !this.valor2 && !this.quantificador2) {
|
|
16
|
+
return `skew(${this.valor1})`;
|
|
17
|
+
}
|
|
18
|
+
if (!this.valor2 && !this.quantificador2) {
|
|
19
|
+
this.quantificador1 === 'graus' ? this.quantificador1 = 'deg' : null;
|
|
20
|
+
return `skew(${this.valor1}${this.quantificador1})`;
|
|
21
|
+
}
|
|
22
|
+
this.quantificador1 === 'graus' ? this.quantificador1 = 'deg' : null;
|
|
23
|
+
this.quantificador2 === 'graus' ? this.quantificador2 = 'deg' : null;
|
|
24
|
+
return `skew(${this.valor1}${this.quantificador1}, ${this.valor2}${this.quantificador2})`;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
exports.Inclinar = Inclinar;
|
|
28
|
+
//# sourceMappingURL=inclinar.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"inclinar.js","sourceRoot":"","sources":["../../../../fontes/valores/metodos/inclinar.ts"],"names":[],"mappings":";;;AACA,qCAAkC;AAElC,MAAa,QAAS,SAAQ,eAAM;IAOhC,YAAY,MAAe,EAAE,cAAuB,EAAE,MAAe,EAAE,cAAuB;QAC1F,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;QACpC,IAAI,CAAC,cAAc,GAAG,cAAc,CAAC,CAAC,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC;QACpE,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;QACpD,IAAI,CAAC,cAAc,GAAG,cAAc,CAAC,CAAC,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC;QACpE,IAAI,CAAC,QAAQ,GAAG,MAAM,CAAC;IAC3B,CAAC;IAED,SAAS;QACL,IAAI,CAAC,IAAI,CAAC,cAAc,IAAI,CAAC,IAAI,CAAC,MAAM,IAAI,CAAC,IAAI,CAAC,cAAc,EAAE;YAC9D,OAAO,QAAQ,IAAI,CAAC,MAAM,GAAG,CAAA;SAChC;QAED,IAAI,CAAC,IAAI,CAAC,MAAM,IAAI,CAAC,IAAI,CAAC,cAAc,EAAE;YACtC,IAAI,CAAC,cAAc,KAAK,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,cAAc,GAAG,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC;YACrE,OAAO,QAAQ,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,cAAc,GAAG,CAAA;SACtD;QAED,IAAI,CAAC,cAAc,KAAK,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,cAAc,GAAG,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC;QACrE,IAAI,CAAC,cAAc,KAAK,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,cAAc,GAAG,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC;QACrE,OAAO,QAAQ,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,cAAc,KAAK,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,cAAc,GAAG,CAAA;IAC7F,CAAC;CACJ;AA9BD,4BA8BC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Simbolo } from "../../lexador";
|
|
2
|
+
import { Metodo } from "./metodo";
|
|
3
|
+
export declare class Perspectivar extends Metodo {
|
|
4
|
+
valor: number | string;
|
|
5
|
+
quantificador: string;
|
|
6
|
+
traducao: string;
|
|
7
|
+
constructor(valor: Simbolo, quantificador: Simbolo);
|
|
8
|
+
paraTexto(): string;
|
|
9
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Perspectivar = void 0;
|
|
4
|
+
const metodo_1 = require("./metodo");
|
|
5
|
+
class Perspectivar extends metodo_1.Metodo {
|
|
6
|
+
constructor(valor, quantificador) {
|
|
7
|
+
super();
|
|
8
|
+
this.valor = typeof valor === "number" ? Number(valor.lexema) : valor.lexema;
|
|
9
|
+
this.quantificador = quantificador ? quantificador.lexema : null;
|
|
10
|
+
this.traducao = 'perspective';
|
|
11
|
+
}
|
|
12
|
+
paraTexto() {
|
|
13
|
+
if (this.quantificador) {
|
|
14
|
+
return `perspective(${this.valor}${this.quantificador})`;
|
|
15
|
+
}
|
|
16
|
+
return `perspective(${this.valor})`;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
exports.Perspectivar = Perspectivar;
|
|
20
|
+
//# sourceMappingURL=perspectivar.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"perspectivar.js","sourceRoot":"","sources":["../../../../fontes/valores/metodos/perspectivar.ts"],"names":[],"mappings":";;;AACA,qCAAkC;AAElC,MAAa,YAAa,SAAQ,eAAM;IAKpC,YAAY,KAAc,EAAE,aAAsB;QAC9C,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,KAAK,GAAG,OAAO,KAAK,KAAK,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAE,KAAiB,CAAC,MAAM,CAAC,CAAC,CAAC,CAAE,KAAiB,CAAC,MAAM,CAAC;QACvG,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC,CAAC,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC;QACjE,IAAI,CAAC,QAAQ,GAAG,aAAa,CAAC;IAClC,CAAC;IAED,SAAS;QACL,IAAI,IAAI,CAAC,aAAa,EAAE;YACpB,OAAO,eAAe,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,aAAa,GAAG,CAAA;SAC3D;QAED,OAAO,eAAe,IAAI,CAAC,KAAK,GAAG,CAAA;IACvC,CAAC;CACJ;AAnBD,oCAmBC"}
|
|
@@ -14,6 +14,7 @@ class Raio extends metodo_1.Metodo {
|
|
|
14
14
|
paraTexto() {
|
|
15
15
|
if (this.posicao) {
|
|
16
16
|
this.posicao = posicoes_1.posicoesRaio[this.posicao];
|
|
17
|
+
this.quantificador === 'graus' ? this.quantificador = 'deg' : null;
|
|
17
18
|
return `ray(${this.posicao} ${this.valor}${this.quantificador})`;
|
|
18
19
|
}
|
|
19
20
|
return `ray(${this.valor}${this.quantificador})`;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"raio.js","sourceRoot":"","sources":["../../../../fontes/valores/metodos/raio.ts"],"names":[],"mappings":";;;AACA,qCAAkC;AAClC,qEAAsE;AAEtE,MAAa,IAAK,SAAQ,eAAM;IAM5B,YAAY,OAAgB,EAAE,KAAc,EAAE,aAAsB;QAChE,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC;QAC/C,IAAI,CAAC,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;QAClC,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC,MAAM,CAAC;QAC1C,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC;IAC1B,CAAC;IAED,SAAS;QACL,IAAI,IAAI,CAAC,OAAO,EAAE;YACd,IAAI,CAAC,OAAO,GAAG,uBAAY,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;YAC1C,OAAO,OAAO,IAAI,CAAC,OAAO,IAAI,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,aAAa,GAAG,CAAA;SACnE;QAED,OAAO,OAAO,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,aAAa,GAAG,CAAA;IACpD,CAAC;CACJ;
|
|
1
|
+
{"version":3,"file":"raio.js","sourceRoot":"","sources":["../../../../fontes/valores/metodos/raio.ts"],"names":[],"mappings":";;;AACA,qCAAkC;AAClC,qEAAsE;AAEtE,MAAa,IAAK,SAAQ,eAAM;IAM5B,YAAY,OAAgB,EAAE,KAAc,EAAE,aAAsB;QAChE,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC;QAC/C,IAAI,CAAC,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;QAClC,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC,MAAM,CAAC;QAC1C,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC;IAC1B,CAAC;IAED,SAAS;QACL,IAAI,IAAI,CAAC,OAAO,EAAE;YACd,IAAI,CAAC,OAAO,GAAG,uBAAY,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;YAC1C,IAAI,CAAC,aAAa,KAAK,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,aAAa,GAAG,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC;YACnE,OAAO,OAAO,IAAI,CAAC,OAAO,IAAI,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,aAAa,GAAG,CAAA;SACnE;QAED,OAAO,OAAO,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,aAAa,GAAG,CAAA;IACpD,CAAC;CACJ;AAvBD,oBAuBC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Simbolo } from "../../lexador";
|
|
2
|
+
import { Metodo } from "./metodo";
|
|
3
|
+
export declare class RotacionarEixoZ extends Metodo {
|
|
4
|
+
valor: number;
|
|
5
|
+
quantificador: string;
|
|
6
|
+
traducao: string;
|
|
7
|
+
constructor(valor: Simbolo, quantificador: Simbolo);
|
|
8
|
+
paraTexto(): string;
|
|
9
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RotacionarEixoZ = void 0;
|
|
4
|
+
const metodo_1 = require("./metodo");
|
|
5
|
+
class RotacionarEixoZ extends metodo_1.Metodo {
|
|
6
|
+
constructor(valor, quantificador) {
|
|
7
|
+
super();
|
|
8
|
+
this.valor = Number(valor.lexema);
|
|
9
|
+
this.quantificador = quantificador ? quantificador.lexema : null;
|
|
10
|
+
this.traducao = 'rotateZ';
|
|
11
|
+
}
|
|
12
|
+
paraTexto() {
|
|
13
|
+
if (this.quantificador) {
|
|
14
|
+
this.quantificador === 'graus' ? this.quantificador = 'deg' : null;
|
|
15
|
+
return `rotateZ(${this.valor}${this.quantificador})`;
|
|
16
|
+
}
|
|
17
|
+
return `rotateZ(${this.valor})`;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
exports.RotacionarEixoZ = RotacionarEixoZ;
|
|
21
|
+
//# sourceMappingURL=rotacionar-eixo-z.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rotacionar-eixo-z.js","sourceRoot":"","sources":["../../../../fontes/valores/metodos/rotacionar-eixo-z.ts"],"names":[],"mappings":";;;AACA,qCAAkC;AAElC,MAAa,eAAgB,SAAQ,eAAM;IAKvC,YAAY,KAAc,EAAE,aAAsB;QAC9C,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;QAClC,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC,CAAC,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC;QACjE,IAAI,CAAC,QAAQ,GAAG,SAAS,CAAC;IAC9B,CAAC;IAED,SAAS;QACL,IAAI,IAAI,CAAC,aAAa,EAAE;YACpB,IAAI,CAAC,aAAa,KAAK,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,aAAa,GAAG,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC;YACnE,OAAO,WAAW,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,aAAa,GAAG,CAAA;SACvD;QAED,OAAO,WAAW,IAAI,CAAC,KAAK,GAAG,CAAA;IACnC,CAAC;CACJ;AApBD,0CAoBC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Simbolo } from "../../lexador";
|
|
2
|
+
import { Metodo } from "./metodo";
|
|
3
|
+
export declare class RotacionarHorizontal extends Metodo {
|
|
4
|
+
valor: number;
|
|
5
|
+
quantificador: string;
|
|
6
|
+
traducao: string;
|
|
7
|
+
constructor(valor: Simbolo, quantificador: Simbolo);
|
|
8
|
+
paraTexto(): string;
|
|
9
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RotacionarHorizontal = void 0;
|
|
4
|
+
const metodo_1 = require("./metodo");
|
|
5
|
+
class RotacionarHorizontal extends metodo_1.Metodo {
|
|
6
|
+
constructor(valor, quantificador) {
|
|
7
|
+
super();
|
|
8
|
+
this.valor = Number(valor.lexema);
|
|
9
|
+
this.quantificador = quantificador ? quantificador.lexema : null;
|
|
10
|
+
this.traducao = 'rotateX';
|
|
11
|
+
}
|
|
12
|
+
paraTexto() {
|
|
13
|
+
if (this.quantificador) {
|
|
14
|
+
this.quantificador === 'graus' ? this.quantificador = 'deg' : null;
|
|
15
|
+
return `rotateX(${this.valor}${this.quantificador})`;
|
|
16
|
+
}
|
|
17
|
+
return `rotateX(${this.valor})`;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
exports.RotacionarHorizontal = RotacionarHorizontal;
|
|
21
|
+
//# sourceMappingURL=rotacionar-horizontal.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rotacionar-horizontal.js","sourceRoot":"","sources":["../../../../fontes/valores/metodos/rotacionar-horizontal.ts"],"names":[],"mappings":";;;AACA,qCAAkC;AAElC,MAAa,oBAAqB,SAAQ,eAAM;IAK5C,YAAY,KAAc,EAAE,aAAsB;QAC9C,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;QAClC,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC,CAAC,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC;QACjE,IAAI,CAAC,QAAQ,GAAG,SAAS,CAAC;IAC9B,CAAC;IAED,SAAS;QACL,IAAI,IAAI,CAAC,aAAa,EAAE;YACpB,IAAI,CAAC,aAAa,KAAK,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,aAAa,GAAG,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC;YACnE,OAAO,WAAW,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,aAAa,GAAG,CAAA;SACvD;QAED,OAAO,WAAW,IAAI,CAAC,KAAK,GAAG,CAAA;IACnC,CAAC;CACJ;AApBD,oDAoBC"}
|
|
@@ -11,6 +11,7 @@ class RotacionarMatiz extends metodo_1.Metodo {
|
|
|
11
11
|
}
|
|
12
12
|
paraTexto() {
|
|
13
13
|
if (this.quantificador) {
|
|
14
|
+
this.quantificador === 'graus' ? this.quantificador = 'deg' : null;
|
|
14
15
|
return `hue-rotate(${this.valor}${this.quantificador})`;
|
|
15
16
|
}
|
|
16
17
|
return `hue-rotate(${this.valor})`;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rotacionar-matiz.js","sourceRoot":"","sources":["../../../../fontes/valores/metodos/rotacionar-matiz.ts"],"names":[],"mappings":";;;AACA,qCAAkC;AAElC,MAAa,eAAgB,SAAQ,eAAM;IAKvC,YAAY,KAAc,EAAE,aAAsB;QAC9C,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;QAClC,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC,CAAC,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC;QACjE,IAAI,CAAC,QAAQ,GAAG,YAAY,CAAC;IACjC,CAAC;IAED,SAAS;QACL,IAAI,IAAI,CAAC,aAAa,EAAE;YACpB,OAAO,cAAc,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,aAAa,GAAG,CAAA;SAC1D;QAED,OAAO,cAAc,IAAI,CAAC,KAAK,GAAG,CAAA;IACtC,CAAC;CACJ;
|
|
1
|
+
{"version":3,"file":"rotacionar-matiz.js","sourceRoot":"","sources":["../../../../fontes/valores/metodos/rotacionar-matiz.ts"],"names":[],"mappings":";;;AACA,qCAAkC;AAElC,MAAa,eAAgB,SAAQ,eAAM;IAKvC,YAAY,KAAc,EAAE,aAAsB;QAC9C,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;QAClC,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC,CAAC,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC;QACjE,IAAI,CAAC,QAAQ,GAAG,YAAY,CAAC;IACjC,CAAC;IAED,SAAS;QACL,IAAI,IAAI,CAAC,aAAa,EAAE;YACpB,IAAI,CAAC,aAAa,KAAK,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,aAAa,GAAG,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC;YACnE,OAAO,cAAc,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,aAAa,GAAG,CAAA;SAC1D;QAED,OAAO,cAAc,IAAI,CAAC,KAAK,GAAG,CAAA;IACtC,CAAC;CACJ;AApBD,0CAoBC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Simbolo } from "../../lexador";
|
|
2
|
+
import { Metodo } from "./metodo";
|
|
3
|
+
export declare class RotacionarVertical extends Metodo {
|
|
4
|
+
valor: number;
|
|
5
|
+
quantificador: string;
|
|
6
|
+
traducao: string;
|
|
7
|
+
constructor(valor: Simbolo, quantificador: Simbolo);
|
|
8
|
+
paraTexto(): string;
|
|
9
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RotacionarVertical = void 0;
|
|
4
|
+
const metodo_1 = require("./metodo");
|
|
5
|
+
class RotacionarVertical extends metodo_1.Metodo {
|
|
6
|
+
constructor(valor, quantificador) {
|
|
7
|
+
super();
|
|
8
|
+
this.valor = Number(valor.lexema);
|
|
9
|
+
this.quantificador = quantificador ? quantificador.lexema : null;
|
|
10
|
+
this.traducao = 'rotateY';
|
|
11
|
+
}
|
|
12
|
+
paraTexto() {
|
|
13
|
+
if (this.quantificador) {
|
|
14
|
+
this.quantificador === 'graus' ? this.quantificador = 'deg' : null;
|
|
15
|
+
return `rotateY(${this.valor}${this.quantificador})`;
|
|
16
|
+
}
|
|
17
|
+
return `rotateY(${this.valor})`;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
exports.RotacionarVertical = RotacionarVertical;
|
|
21
|
+
//# sourceMappingURL=rotacionar-vertical.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rotacionar-vertical.js","sourceRoot":"","sources":["../../../../fontes/valores/metodos/rotacionar-vertical.ts"],"names":[],"mappings":";;;AACA,qCAAkC;AAElC,MAAa,kBAAmB,SAAQ,eAAM;IAK1C,YAAY,KAAc,EAAE,aAAsB;QAC9C,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;QAClC,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC,CAAC,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC;QACjE,IAAI,CAAC,QAAQ,GAAG,SAAS,CAAC;IAC9B,CAAC;IAED,SAAS;QACL,IAAI,IAAI,CAAC,aAAa,EAAE;YACpB,IAAI,CAAC,aAAa,KAAK,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,aAAa,GAAG,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC;YACnE,OAAO,WAAW,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,aAAa,GAAG,CAAA;SACvD;QAED,OAAO,WAAW,IAAI,CAAC,KAAK,GAAG,CAAA;IACnC,CAAC;CACJ;AApBD,gDAoBC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Simbolo } from "../../lexador";
|
|
2
|
+
import { Metodo } from "./metodo";
|
|
3
|
+
export declare class Rotacionar extends Metodo {
|
|
4
|
+
valor: number;
|
|
5
|
+
quantificador: string;
|
|
6
|
+
traducao: string;
|
|
7
|
+
constructor(valor: Simbolo, quantificador: Simbolo);
|
|
8
|
+
paraTexto(): string;
|
|
9
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Rotacionar = void 0;
|
|
4
|
+
const metodo_1 = require("./metodo");
|
|
5
|
+
class Rotacionar extends metodo_1.Metodo {
|
|
6
|
+
constructor(valor, quantificador) {
|
|
7
|
+
super();
|
|
8
|
+
this.valor = Number(valor.lexema);
|
|
9
|
+
this.quantificador = quantificador ? quantificador.lexema : null;
|
|
10
|
+
this.traducao = 'rotate';
|
|
11
|
+
}
|
|
12
|
+
paraTexto() {
|
|
13
|
+
if (this.quantificador) {
|
|
14
|
+
this.quantificador === 'graus' ? this.quantificador = 'deg' : null;
|
|
15
|
+
return `rotate(${this.valor}${this.quantificador})`;
|
|
16
|
+
}
|
|
17
|
+
return `rotate(${this.valor})`;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
exports.Rotacionar = Rotacionar;
|
|
21
|
+
//# sourceMappingURL=rotacionar.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rotacionar.js","sourceRoot":"","sources":["../../../../fontes/valores/metodos/rotacionar.ts"],"names":[],"mappings":";;;AACA,qCAAkC;AAElC,MAAa,UAAW,SAAQ,eAAM;IAKlC,YAAY,KAAc,EAAE,aAAsB;QAC9C,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;QAClC,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC,CAAC,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC;QACjE,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;IAC7B,CAAC;IAED,SAAS;QACL,IAAI,IAAI,CAAC,aAAa,EAAE;YACpB,IAAI,CAAC,aAAa,KAAK,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,aAAa,GAAG,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC;YACnE,OAAO,UAAU,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,aAAa,GAAG,CAAA;SACtD;QAED,OAAO,UAAU,IAAI,CAAC,KAAK,GAAG,CAAA;IAClC,CAAC;CACJ;AApBD,gCAoBC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Simbolo } from "../../lexador";
|
|
2
|
+
import { Metodo } from "./metodo";
|
|
3
|
+
export declare class Translacao3d extends Metodo {
|
|
4
|
+
valor1: number;
|
|
5
|
+
quantificador1: string;
|
|
6
|
+
valor2: number;
|
|
7
|
+
quantificador2: string;
|
|
8
|
+
valor3: number;
|
|
9
|
+
quantificador3: string;
|
|
10
|
+
traducao: string;
|
|
11
|
+
constructor(valor1: Simbolo, quantificador1: Simbolo, valor2: Simbolo, quantificador2: Simbolo, valor3: Simbolo, quantificador3: Simbolo);
|
|
12
|
+
paraTexto(): string;
|
|
13
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Translacao3d = void 0;
|
|
4
|
+
const metodo_1 = require("./metodo");
|
|
5
|
+
class Translacao3d extends metodo_1.Metodo {
|
|
6
|
+
constructor(valor1, quantificador1, valor2, quantificador2, valor3, quantificador3) {
|
|
7
|
+
super();
|
|
8
|
+
this.valor1 = Number(valor1.lexema);
|
|
9
|
+
this.quantificador1 = quantificador1 ? quantificador1.lexema : null;
|
|
10
|
+
this.valor2 = valor2 ? Number(valor2.lexema) : null;
|
|
11
|
+
this.quantificador2 = quantificador2 ? quantificador2.lexema : null;
|
|
12
|
+
this.valor3 = valor3 ? Number(valor3.lexema) : null;
|
|
13
|
+
this.quantificador3 = quantificador3 ? quantificador3.lexema : null;
|
|
14
|
+
this.traducao = 'translate3d';
|
|
15
|
+
}
|
|
16
|
+
paraTexto() {
|
|
17
|
+
if (!this.quantificador1 && !this.valor2 && !this.quantificador2 && !this.valor3 && !this.quantificador3) {
|
|
18
|
+
return `translate3d(${this.valor1})`;
|
|
19
|
+
}
|
|
20
|
+
if (!this.quantificador1 && this.quantificador2 && this.quantificador3) {
|
|
21
|
+
return `translate3d(${this.valor1}, ${this.valor2}${this.quantificador2}, ${this.valor3}${this.quantificador3})`;
|
|
22
|
+
}
|
|
23
|
+
if (!this.quantificador2 && this.quantificador1 && this.quantificador3) {
|
|
24
|
+
return `translate3d(${this.valor1}${this.quantificador1}, ${this.valor2}, ${this.valor3}${this.quantificador3})`;
|
|
25
|
+
}
|
|
26
|
+
if (!this.quantificador3 && this.quantificador2 && this.quantificador1) {
|
|
27
|
+
return `translate3d(${this.valor1}${this.quantificador1}, ${this.valor2}${this.quantificador2}, ${this.valor3})`;
|
|
28
|
+
}
|
|
29
|
+
if (!this.quantificador1 && !this.quantificador2 && this.quantificador3) {
|
|
30
|
+
return `translate3d(${this.valor1}, ${this.valor2}, ${this.valor3}${this.quantificador3})`;
|
|
31
|
+
}
|
|
32
|
+
if (!this.quantificador3 && this.quantificador2 && !this.quantificador1) {
|
|
33
|
+
return `translate3d(${this.valor1}, ${this.valor2}${this.quantificador2}, ${this.valor3})`;
|
|
34
|
+
}
|
|
35
|
+
if (!this.quantificador3 && !this.quantificador2 && this.quantificador1) {
|
|
36
|
+
return `translate3d(${this.valor1}${this.quantificador1}, ${this.valor2}, ${this.valor3})`;
|
|
37
|
+
}
|
|
38
|
+
return `translate3d(${this.valor1}${this.quantificador1}, ${this.valor2}${this.quantificador2}, ${this.valor3}${this.quantificador3})`;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
exports.Translacao3d = Translacao3d;
|
|
42
|
+
//# sourceMappingURL=translacao-3d.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"translacao-3d.js","sourceRoot":"","sources":["../../../../fontes/valores/metodos/translacao-3d.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Simbolo } from "../../lexador";
|
|
2
|
+
import { Metodo } from "./metodo";
|
|
3
|
+
export declare class TranslacaoEixoZ extends Metodo {
|
|
4
|
+
valor: number;
|
|
5
|
+
quantificador: string;
|
|
6
|
+
traducao: string;
|
|
7
|
+
constructor(valor: Simbolo, quantificador: Simbolo);
|
|
8
|
+
paraTexto(): string;
|
|
9
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TranslacaoEixoZ = void 0;
|
|
4
|
+
const metodo_1 = require("./metodo");
|
|
5
|
+
class TranslacaoEixoZ extends metodo_1.Metodo {
|
|
6
|
+
constructor(valor, quantificador) {
|
|
7
|
+
super();
|
|
8
|
+
this.valor = Number(valor.lexema);
|
|
9
|
+
this.quantificador = quantificador ? quantificador.lexema : null;
|
|
10
|
+
this.traducao = 'translateZ';
|
|
11
|
+
}
|
|
12
|
+
paraTexto() {
|
|
13
|
+
if (this.quantificador) {
|
|
14
|
+
return `translateZ(${this.valor}${this.quantificador})`;
|
|
15
|
+
}
|
|
16
|
+
return `translateZ(${this.valor})`;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
exports.TranslacaoEixoZ = TranslacaoEixoZ;
|
|
20
|
+
//# sourceMappingURL=translacao-eixo-z.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"translacao-eixo-z.js","sourceRoot":"","sources":["../../../../fontes/valores/metodos/translacao-eixo-z.ts"],"names":[],"mappings":";;;AACA,qCAAkC;AAElC,MAAa,eAAgB,SAAQ,eAAM;IAKvC,YAAY,KAAc,EAAE,aAAsB;QAC9C,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;QAClC,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC,CAAC,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC;QACjE,IAAI,CAAC,QAAQ,GAAG,YAAY,CAAC;IACjC,CAAC;IAED,SAAS;QACL,IAAI,IAAI,CAAC,aAAa,EAAE;YACpB,OAAO,cAAc,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,aAAa,GAAG,CAAA;SAC1D;QAED,OAAO,cAAc,IAAI,CAAC,KAAK,GAAG,CAAA;IACtC,CAAC;CACJ;AAnBD,0CAmBC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Simbolo } from "../../lexador";
|
|
2
|
+
import { Metodo } from "./metodo";
|
|
3
|
+
export declare class TranslacaoHorizontal extends Metodo {
|
|
4
|
+
valor: number;
|
|
5
|
+
quantificador: string;
|
|
6
|
+
traducao: string;
|
|
7
|
+
constructor(valor: Simbolo, quantificador: Simbolo);
|
|
8
|
+
paraTexto(): string;
|
|
9
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TranslacaoHorizontal = void 0;
|
|
4
|
+
const metodo_1 = require("./metodo");
|
|
5
|
+
class TranslacaoHorizontal extends metodo_1.Metodo {
|
|
6
|
+
constructor(valor, quantificador) {
|
|
7
|
+
super();
|
|
8
|
+
this.valor = Number(valor.lexema);
|
|
9
|
+
this.quantificador = quantificador ? quantificador.lexema : null;
|
|
10
|
+
this.traducao = 'translateX';
|
|
11
|
+
}
|
|
12
|
+
paraTexto() {
|
|
13
|
+
if (this.quantificador) {
|
|
14
|
+
return `translateX(${this.valor}${this.quantificador})`;
|
|
15
|
+
}
|
|
16
|
+
return `translateX(${this.valor})`;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
exports.TranslacaoHorizontal = TranslacaoHorizontal;
|
|
20
|
+
//# sourceMappingURL=translacao-horizontal.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"translacao-horizontal.js","sourceRoot":"","sources":["../../../../fontes/valores/metodos/translacao-horizontal.ts"],"names":[],"mappings":";;;AACA,qCAAkC;AAElC,MAAa,oBAAqB,SAAQ,eAAM;IAK5C,YAAY,KAAc,EAAE,aAAsB;QAC9C,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;QAClC,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC,CAAC,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC;QACjE,IAAI,CAAC,QAAQ,GAAG,YAAY,CAAC;IACjC,CAAC;IAED,SAAS;QACL,IAAI,IAAI,CAAC,aAAa,EAAE;YACpB,OAAO,cAAc,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,aAAa,GAAG,CAAA;SAC1D;QAED,OAAO,cAAc,IAAI,CAAC,KAAK,GAAG,CAAA;IACtC,CAAC;CACJ;AAnBD,oDAmBC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Simbolo } from "../../lexador";
|
|
2
|
+
import { Metodo } from "./metodo";
|
|
3
|
+
export declare class TranslacaoVertical extends Metodo {
|
|
4
|
+
valor: number;
|
|
5
|
+
quantificador: string;
|
|
6
|
+
traducao: string;
|
|
7
|
+
constructor(valor: Simbolo, quantificador: Simbolo);
|
|
8
|
+
paraTexto(): string;
|
|
9
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TranslacaoVertical = void 0;
|
|
4
|
+
const metodo_1 = require("./metodo");
|
|
5
|
+
class TranslacaoVertical extends metodo_1.Metodo {
|
|
6
|
+
constructor(valor, quantificador) {
|
|
7
|
+
super();
|
|
8
|
+
this.valor = Number(valor.lexema);
|
|
9
|
+
this.quantificador = quantificador ? quantificador.lexema : null;
|
|
10
|
+
this.traducao = 'translateY';
|
|
11
|
+
}
|
|
12
|
+
paraTexto() {
|
|
13
|
+
if (this.quantificador) {
|
|
14
|
+
return `translateY(${this.valor}${this.quantificador})`;
|
|
15
|
+
}
|
|
16
|
+
return `translateY(${this.valor})`;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
exports.TranslacaoVertical = TranslacaoVertical;
|
|
20
|
+
//# sourceMappingURL=translacao-vertical.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"translacao-vertical.js","sourceRoot":"","sources":["../../../../fontes/valores/metodos/translacao-vertical.ts"],"names":[],"mappings":";;;AACA,qCAAkC;AAElC,MAAa,kBAAmB,SAAQ,eAAM;IAK1C,YAAY,KAAc,EAAE,aAAsB;QAC9C,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;QAClC,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC,CAAC,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC;QACjE,IAAI,CAAC,QAAQ,GAAG,YAAY,CAAC;IACjC,CAAC;IAED,SAAS;QACL,IAAI,IAAI,CAAC,aAAa,EAAE;YACpB,OAAO,cAAc,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,aAAa,GAAG,CAAA;SAC1D;QAED,OAAO,cAAc,IAAI,CAAC,KAAK,GAAG,CAAA;IACtC,CAAC;CACJ;AAnBD,gDAmBC"}
|