@designliquido/foles 0.6.3 → 0.7.0
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/lexador/palavras-reservadas/foles.d.ts +23 -0
- package/fontes/lexador/palavras-reservadas/foles.js +23 -0
- package/fontes/lexador/palavras-reservadas/foles.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/inclinar-horizontal.d.ts +9 -0
- package/fontes/valores/metodos/inclinar-horizontal.js +20 -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 +20 -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 +25 -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/rotacionar-eixo-z.d.ts +9 -0
- package/fontes/valores/metodos/rotacionar-eixo-z.js +20 -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 +20 -0
- package/fontes/valores/metodos/rotacionar-horizontal.js.map +1 -0
- package/fontes/valores/metodos/rotacionar-vertical.d.ts +9 -0
- package/fontes/valores/metodos/rotacionar-vertical.js +20 -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 +20 -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 +25 -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 +1176 -178
- package/testes/modificadores/metodos.test.js.map +1 -1
|
@@ -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,OAAO,WAAW,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,aAAa,GAAG,CAAA;SACvD;QAED,OAAO,WAAW,IAAI,CAAC,KAAK,GAAG,CAAA;IACnC,CAAC;CACJ;AAnBD,gDAmBC"}
|
|
@@ -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,20 @@
|
|
|
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
|
+
return `rotate(${this.valor}${this.quantificador})`;
|
|
15
|
+
}
|
|
16
|
+
return `rotate(${this.valor})`;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
exports.Rotacionar = Rotacionar;
|
|
20
|
+
//# 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,OAAO,UAAU,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,aAAa,GAAG,CAAA;SACtD;QAED,OAAO,UAAU,IAAI,CAAC,KAAK,GAAG,CAAA;IAClC,CAAC;CACJ;AAnBD,gCAmBC"}
|
|
@@ -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":";;;AACA,qCAAkC;AAElC,MAAa,YAAa,SAAQ,eAAM;IASpC,YAAY,MAAe,EAAE,cAAuB,EAAE,MAAe,EAAE,cAAuB,EAAE,MAAe,EAAE,cAAuB;QACpI,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,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E,OAAO,eAAe,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,cAAc,KAAK,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,cAAc,KAAK,IAAI,CAAC,MAAM,GAAG,CAAA;SACnH;QAED,IAAI,CAAC,IAAI,CAAC,cAAc,IAAI,CAAC,IAAI,CAAC,cAAc,IAAI,IAAI,CAAC,cAAc,EAAE;YACrE,OAAO,eAAe,IAAI,CAAC,MAAM,KAAK,IAAI,CAAC,MAAM,KAAK,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,cAAc,GAAG,CAAA;SAC7F;QAED,IAAI,CAAC,IAAI,CAAC,cAAc,IAAI,IAAI,CAAC,cAAc,IAAI,CAAC,IAAI,CAAC,cAAc,EAAE;YACrE,OAAO,eAAe,IAAI,CAAC,MAAM,KAAK,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,cAAc,KAAK,IAAI,CAAC,MAAM,GAAG,CAAA;SAC7F;QAED,IAAI,CAAC,IAAI,CAAC,cAAc,IAAI,CAAC,IAAI,CAAC,cAAc,IAAI,IAAI,CAAC,cAAc,EAAE;YACrE,OAAO,eAAe,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,cAAc,KAAK,IAAI,CAAC,MAAM,KAAK,IAAI,CAAC,MAAM,GAAG,CAAA;SAC7F;QAED,OAAO,eAAe,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,cAAc,KAAK,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,cAAc,KAAK,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,cAAc,GAAG,CAAA;IAC1I,CAAC;CACJ;AAnDD,oCAmDC"}
|
|
@@ -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"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Simbolo } from "../../lexador";
|
|
2
|
+
import { Metodo } from "./metodo";
|
|
3
|
+
export declare class Translacao extends Metodo {
|
|
4
|
+
valor1: number;
|
|
5
|
+
quantificador1: string;
|
|
6
|
+
valor2: number;
|
|
7
|
+
quantificador2: string;
|
|
8
|
+
traducao: string;
|
|
9
|
+
constructor(valor1: Simbolo, quantificador1: Simbolo, valor2: Simbolo, quantificador2: Simbolo);
|
|
10
|
+
paraTexto(): string;
|
|
11
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Translacao = void 0;
|
|
4
|
+
const metodo_1 = require("./metodo");
|
|
5
|
+
class Translacao 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 = 'translate';
|
|
13
|
+
}
|
|
14
|
+
paraTexto() {
|
|
15
|
+
if (!this.quantificador1 && !this.valor2 && !this.quantificador2) {
|
|
16
|
+
return `translate(${this.valor1})`;
|
|
17
|
+
}
|
|
18
|
+
if (!this.valor2 && !this.quantificador2) {
|
|
19
|
+
return `translate(${this.valor1}${this.quantificador1})`;
|
|
20
|
+
}
|
|
21
|
+
return `translate(${this.valor1}${this.quantificador1}, ${this.valor2}${this.quantificador2})`;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
exports.Translacao = Translacao;
|
|
25
|
+
//# sourceMappingURL=translacao.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"translacao.js","sourceRoot":"","sources":["../../../../fontes/valores/metodos/translacao.ts"],"names":[],"mappings":";;;AACA,qCAAkC;AAElC,MAAa,UAAW,SAAQ,eAAM;IAOlC,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,WAAW,CAAC;IAChC,CAAC;IAED,SAAS;QACL,IAAI,CAAC,IAAI,CAAC,cAAc,IAAI,CAAC,IAAI,CAAC,MAAM,IAAI,CAAC,IAAI,CAAC,cAAc,EAAE;YAC9D,OAAO,aAAa,IAAI,CAAC,MAAM,GAAG,CAAA;SACrC;QAED,IAAI,CAAC,IAAI,CAAC,MAAM,IAAI,CAAC,IAAI,CAAC,cAAc,EAAE;YACtC,OAAO,aAAa,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,cAAc,GAAG,CAAA;SAC3D;QAED,OAAO,aAAa,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,cAAc,KAAK,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,cAAc,GAAG,CAAA;IAClG,CAAC;CACJ;AA3BD,gCA2BC"}
|
package/package.json
CHANGED
|
@@ -17,4 +17,9 @@ export declare const MetodoSaturar: Array<string>;
|
|
|
17
17
|
export declare const MetodoSepia: Array<string>;
|
|
18
18
|
export declare const MetodoRotacionarMatiz: Array<string>;
|
|
19
19
|
export declare const MetodoProjetarSombra: Array<string>;
|
|
20
|
+
export declare const MetodoPerspectivar: Array<string>;
|
|
21
|
+
export declare const MetodosRotacionar: Array<string>;
|
|
22
|
+
export declare const MetodosInclinar: Array<string>;
|
|
23
|
+
export declare const MetodosTranslacao: Array<string>;
|
|
24
|
+
export declare const MetodosEscalamento: Array<string>;
|
|
20
25
|
export declare const TraducaoValoresMetodos: Object;
|
package/testes/listas/metodos.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.TraducaoValoresMetodos = exports.MetodoProjetarSombra = exports.MetodoRotacionarMatiz = exports.MetodoSepia = exports.MetodoSaturar = exports.MetodoOpacar = exports.MetodoInverter = exports.MetodoEscalaCinza = exports.MetodoRaio = exports.MetodoBrilho = exports.MetodoBorrar = exports.MetodoContraste = exports.MetodoGradienteLinear = exports.MetodoCalcular = exports.MetodoLinear = exports.MetodoCurvaCubica = exports.MetodoPassos = exports.MetodoMinMax = exports.MetodoLimitar = exports.MetodoEncaixarConteudo = void 0;
|
|
3
|
+
exports.TraducaoValoresMetodos = exports.MetodosEscalamento = exports.MetodosTranslacao = exports.MetodosInclinar = exports.MetodosRotacionar = exports.MetodoPerspectivar = exports.MetodoProjetarSombra = exports.MetodoRotacionarMatiz = exports.MetodoSepia = exports.MetodoSaturar = exports.MetodoOpacar = exports.MetodoInverter = exports.MetodoEscalaCinza = exports.MetodoRaio = exports.MetodoBrilho = exports.MetodoBorrar = exports.MetodoContraste = exports.MetodoGradienteLinear = exports.MetodoCalcular = exports.MetodoLinear = exports.MetodoCurvaCubica = exports.MetodoPassos = exports.MetodoMinMax = exports.MetodoLimitar = exports.MetodoEncaixarConteudo = void 0;
|
|
4
4
|
exports.MetodoEncaixarConteudo = [
|
|
5
5
|
'altura-maxima',
|
|
6
6
|
'altura-máxima',
|
|
@@ -96,6 +96,21 @@ exports.MetodoRotacionarMatiz = [
|
|
|
96
96
|
exports.MetodoProjetarSombra = [
|
|
97
97
|
'filtro-fundo',
|
|
98
98
|
];
|
|
99
|
+
exports.MetodoPerspectivar = [
|
|
100
|
+
'transformar',
|
|
101
|
+
];
|
|
102
|
+
exports.MetodosRotacionar = [
|
|
103
|
+
'transformar',
|
|
104
|
+
];
|
|
105
|
+
exports.MetodosInclinar = [
|
|
106
|
+
'transformar',
|
|
107
|
+
];
|
|
108
|
+
exports.MetodosTranslacao = [
|
|
109
|
+
'transformar',
|
|
110
|
+
];
|
|
111
|
+
exports.MetodosEscalamento = [
|
|
112
|
+
'transformar',
|
|
113
|
+
];
|
|
99
114
|
exports.TraducaoValoresMetodos = {
|
|
100
115
|
'altura-maxima': 'max-height',
|
|
101
116
|
'altura-máxima': 'max-height',
|
|
@@ -135,6 +150,7 @@ exports.TraducaoValoresMetodos = {
|
|
|
135
150
|
'tempo-transicao': 'transition-timing-function',
|
|
136
151
|
'tempo-transição': 'transition-timing-function',
|
|
137
152
|
'trajeto-deslocamento': 'offset-path',
|
|
153
|
+
'transformar': 'transform',
|
|
138
154
|
'transicao': 'transition',
|
|
139
155
|
'transição': 'transition',
|
|
140
156
|
'velocidade-animação': 'animation-timing-function',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"metodos.js","sourceRoot":"","sources":["../../../testes/listas/metodos.ts"],"names":[],"mappings":";;;AAAa,QAAA,sBAAsB,GAAkB;IACjD,eAAe;IACf,eAAe;IACf,eAAe;IACf,eAAe;IACf,QAAQ;IACR,gBAAgB;IAChB,gBAAgB;IAChB,gBAAgB;IAChB,gBAAgB;IAChB,SAAS;IACT,0BAA0B;IAC1B,kBAAkB;IAClB,yBAAyB;IACzB,yBAAyB;IACzB,yBAAyB;IACzB,yBAAyB;IACzB,yBAAyB;IACzB,yBAAyB;IACzB,yBAAyB;IACzB,yBAAyB;IACzB,yBAAyB;IACzB,iBAAiB;CACpB,CAAC;AAEW,QAAA,aAAa,GAAkB;IACxC,QAAQ;CACX,CAAC;AAEW,QAAA,YAAY,GAAkB;IACvC,OAAO;IACP,0BAA0B;IAC1B,yBAAyB;IACzB,yBAAyB;IACzB,wBAAwB;CAC3B,CAAC;AAEW,QAAA,YAAY,GAAkB;IACvC,iBAAiB;IACjB,iBAAiB;IACjB,qBAAqB;IACrB,qBAAqB;CACxB,CAAC;AAEW,QAAA,iBAAiB,GAAkB;IAC5C,iBAAiB;IACjB,iBAAiB;IACjB,qBAAqB;IACrB,qBAAqB;CACxB,CAAC;AAEW,QAAA,YAAY,GAAkB;IACvC,WAAW;IACX,WAAW;CACd,CAAC;AAEW,QAAA,cAAc,GAAkB;IACzC,aAAa;IACb,aAAa;CAChB,CAAC;AAEW,QAAA,qBAAqB,GAAkB;IAChD,gBAAgB;IAChB,gBAAgB;IAChB,qBAAqB;IACrB,UA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